From 49ba147f98b27a68ba7a6f59fbf43093c788547f Mon Sep 17 00:00:00 2001 From: Vincent Date: Wed, 5 Mar 2014 12:25:40 -0800 Subject: [PATCH] Release for v5.2.0. --- ChangeLog.md | 527 + LICENSE | 201 + README.md | 177 + build_lib/WSDLInterpreter/TemplateHelper.php | 116 + build_lib/WSDLInterpreter/WSDLInterpreter.php | 834 + .../WSDLInterpreter/WsdlElement/Class.php | 170 + .../WSDLInterpreter/WsdlElement/Factory.php | 265 + .../WSDLInterpreter/WsdlElement/Function.php | 147 + .../WSDLInterpreter/WsdlElement/Named.php | 88 + .../WsdlElement/NamedClass.php | 110 + .../WSDLInterpreter/WsdlElement/Property.php | 117 + .../WSDLInterpreter/WsdlElement/Service.php | 89 + .../WSDLInterpreter/WsdlElement/Utils.php | 241 + build_lib/WSDLInterpreter/file_header.tmpl | 27 + .../templates/file_header.phpt | 27 + build_lib/WSDLInterpreter/wsdl2php.xsl | 334 + build_lib/Wsdl2PhpTask.php | 270 + build_lib/build.xml | 86 + examples/AdWords/Auth/GetRefreshToken.php | 102 + examples/AdWords/Auth/init.php | 43 + examples/AdWords/README.md | 12 + .../AccountManagement/CreateAccount.php | 86 + .../AccountManagement/GetAccountAlerts.php | 103 + .../AccountManagement/GetAccountChanges.php | 148 + .../AccountManagement/GetAccountHierarchy.php | 127 + .../AddAdGroupBidModifier.php | 101 + .../AddClickToDownloadAd.php | 133 + .../AdvancedOperations/AddSitelinks.php | 337 + .../CreateAndAttachSharedKeywordSet.php | 153 + .../FindAndRemoveCriteriaFromSharedSet.php | 208 + .../GetAdGroupBidModifiers.php | 96 + .../AddAdGroupDemographicCriteria.php | 110 + .../v201306/BasicOperations/AddAdGroups.php | 111 + .../v201306/BasicOperations/AddCampaigns.php | 151 + .../v201306/BasicOperations/AddKeywords.php | 110 + .../v201306/BasicOperations/AddTextAds.php | 102 + .../v201306/BasicOperations/DeleteAd.php | 88 + .../v201306/BasicOperations/DeleteAdGroup.php | 84 + .../BasicOperations/DeleteCampaign.php | 85 + .../v201306/BasicOperations/DeleteKeyword.php | 92 + .../v201306/BasicOperations/GetAdGroups.php | 94 + .../v201306/BasicOperations/GetCampaigns.php | 87 + .../BasicOperations/GetCampaignsWithAwql.php | 86 + .../v201306/BasicOperations/GetKeywords.php | 99 + .../v201306/BasicOperations/GetTextAds.php | 99 + .../v201306/BasicOperations/PauseAd.php | 93 + .../v201306/BasicOperations/UpdateAdGroup.php | 92 + .../BasicOperations/UpdateCampaign.php | 84 + .../v201306/BasicOperations/UpdateKeyword.php | 93 + .../CampaignManagement/AddExperiment.php | 163 + .../CampaignManagement/AddKeywordsInBulk.php | 205 + .../AddLocationExtension.php | 130 + .../AddLocationExtensionOverride.php | 110 + .../GetAllDisapprovedAds.php | 101 + .../GetAllDisapprovedAdsWithAwql.php | 98 + .../CampaignManagement/PromoteExperiment.php | 86 + .../CampaignManagement/SetAdParameters.php | 93 + .../CampaignManagement/SetBidModifier.php | 102 + .../CampaignManagement/ValidateTextAd.php | 106 + .../ErrorHandling/HandlePartialFailures.php | 116 + .../HandlePolicyViolationError.php | 146 + .../HandleTwoFactorAuthorizationError.php | 65 + .../v201306/Migration/SetCampaignEnhanced.php | 88 + .../Migration/UpgradeLegacySitelinks.php | 425 + .../v201306/Misc/GetAllImagesAndVideos.php | 100 + examples/AdWords/v201306/Misc/UploadImage.php | 77 + .../Optimization/EstimateKeywordTraffic.php | 142 + .../Optimization/GetKeywordBidSimulations.php | 106 + .../v201306/Optimization/GetKeywordIdeas.php | 116 + .../Optimization/GetPlacementIdeas.php | 101 + .../v201306/Remarketing/AddAudience.php | 107 + .../Remarketing/AddConversionTracker.php | 96 + .../Reporting/DownloadCriteriaReport.php | 91 + .../DownloadCriteriaReportWithAwql.php | 82 + .../v201306/Reporting/GetCampaignStats.php | 100 + .../v201306/Reporting/GetReportFields.php | 78 + .../AddCampaignTargetingCriteria.php | 103 + .../GetCampaignTargetingCriteria.php | 101 + .../GetTargetableLanguagesAndCarriers.php | 77 + .../v201306/Targeting/LookupLocation.php | 109 + examples/AdWords/v201306/init.php | 46 + .../AccountManagement/CreateAccount.php | 86 + .../AccountManagement/GetAccountAlerts.php | 103 + .../AccountManagement/GetAccountChanges.php | 148 + .../AccountManagement/GetAccountHierarchy.php | 127 + .../AddAdGroupBidModifier.php | 101 + .../AddClickToDownloadAd.php | 133 + .../AdvancedOperations/AddSitelinks.php | 337 + .../CreateAndAttachSharedKeywordSet.php | 153 + .../FindAndRemoveCriteriaFromSharedSet.php | 208 + .../GetAdGroupBidModifiers.php | 96 + .../AdvancedOperations/UpdateSitelinks.php | 247 + .../UploadOfflineConversions.php | 116 + .../UseSharedBiddingStrategy.php | 191 + .../AddAdGroupDemographicCriteria.php | 110 + .../v201309/BasicOperations/AddAdGroups.php | 111 + .../v201309/BasicOperations/AddCampaigns.php | 151 + .../v201309/BasicOperations/AddKeywords.php | 110 + .../v201309/BasicOperations/AddTextAds.php | 102 + .../v201309/BasicOperations/DeleteAd.php | 88 + .../v201309/BasicOperations/DeleteAdGroup.php | 84 + .../BasicOperations/DeleteCampaign.php | 85 + .../v201309/BasicOperations/DeleteKeyword.php | 92 + .../v201309/BasicOperations/GetAdGroups.php | 94 + .../v201309/BasicOperations/GetCampaigns.php | 87 + .../BasicOperations/GetCampaignsWithAwql.php | 86 + .../v201309/BasicOperations/GetKeywords.php | 99 + .../v201309/BasicOperations/GetTextAds.php | 99 + .../v201309/BasicOperations/PauseAd.php | 93 + .../v201309/BasicOperations/UpdateAdGroup.php | 92 + .../BasicOperations/UpdateCampaign.php | 84 + .../v201309/BasicOperations/UpdateKeyword.php | 93 + .../CampaignManagement/AddExperiment.php | 163 + .../CampaignManagement/AddKeywordsInBulk.php | 205 + .../AddLocationExtension.php | 130 + .../GetAllDisapprovedAds.php | 103 + .../GetAllDisapprovedAdsWithAwql.php | 100 + .../CampaignManagement/PromoteExperiment.php | 86 + .../CampaignManagement/SetAdParameters.php | 93 + .../CampaignManagement/SetBidModifier.php | 102 + .../CampaignManagement/ValidateTextAd.php | 106 + .../ErrorHandling/HandlePartialFailures.php | 116 + .../HandlePolicyViolationError.php | 146 + .../HandleTwoFactorAuthorizationError.php | 65 + .../v201309/Express/AddExpressBusinesses.php | 94 + .../AdWords/v201309/Express/AddPromotion.php | 143 + .../v201309/Express/GetExpressBusinesses.php | 96 + .../AdWords/v201309/Express/GetPromotions.php | 92 + .../v201309/Express/UpdateExpressBusiness.php | 83 + .../v201309/Express/UpdatePromotion.php | 89 + .../v201309/Misc/GetAllImagesAndVideos.php | 100 + examples/AdWords/v201309/Misc/UploadImage.php | 77 + .../Optimization/EstimateKeywordTraffic.php | 142 + .../Optimization/GetKeywordBidSimulations.php | 106 + .../v201309/Optimization/GetKeywordIdeas.php | 116 + .../Optimization/GetPlacementIdeas.php | 101 + .../v201309/Remarketing/AddAudience.php | 107 + .../Remarketing/AddConversionTracker.php | 95 + .../Reporting/DownloadCriteriaReport.php | 91 + .../DownloadCriteriaReportWithAwql.php | 82 + .../v201309/Reporting/GetReportFields.php | 78 + .../AddCampaignTargetingCriteria.php | 103 + .../GetCampaignTargetingCriteria.php | 101 + .../GetTargetableLanguagesAndCarriers.php | 77 + .../v201309/Targeting/LookupLocation.php | 109 + examples/AdWords/v201309/init.php | 46 + examples/Adx/README.md | 12 + .../v201306/BasicOperations/AddAdGroups.php | 98 + .../v201306/BasicOperations/AddCampaigns.php | 146 + .../v201306/BasicOperations/AddPlacements.php | 107 + .../AddThirdPartyRedirectAds.php | 140 + .../BasicOperations/DeletePlacement.php | 90 + .../v201306/BasicOperations/GetPlacements.php | 96 + .../GetThirdPartyRedirectAds.php | 99 + .../v201306/BasicOperations/UpdateAdGroup.php | 91 + .../BasicOperations/UpdatePlacement.php | 94 + .../AddPlacementsInBulk.php | 203 + .../ErrorHandling/HandlePartialFailures.php | 114 + examples/Adx/v201306/init.php | 46 + examples/Common/ExampleUtils.php | 64 + examples/Common/HandleCaptcha.php | 90 + examples/Dfp/Auth/GetRefreshToken.php | 110 + examples/Dfp/README.md | 12 + .../GetAllAudienceSegmentsExample.php | 89 + .../CompanyService/CreateCompaniesExample.php | 86 + .../CompanyService/GetAllCompaniesExample.php | 89 + .../GetCompaniesByStatementExample.php | 88 + .../CompanyService/GetCompanyExample.php | 76 + .../CompanyService/UpdateCompaniesExample.php | 93 + .../ContentService/GetAllContentExample.php | 88 + .../GetContentByCategoryExample.php | 113 + .../AssociateCreativeSetToLineItemExample.php | 78 + .../CreateCreativeFromTemplateExample.php | 129 + .../CreateCreativesExample.php | 109 + .../CreateCustomCreativeExample.php | 103 + .../GetAllCreativesExample.php | 90 + .../CreativeService/GetCreativeExample.php | 76 + .../GetCreativesByStatementExample.php | 88 + .../UpdateCreativesExample.php | 95 + .../CreateCreativeSetExample.php | 85 + .../GetAllCreativesSetsExample.php | 88 + .../GetCreativeSetsByStatementExample.php | 90 + .../UpdateCreativeSetExample.php | 84 + .../GetAllCreativeTemplatesExample.php | 90 + .../GetCreativeTemplateExample.php | 77 + ...GetCreativeTemplatesByStatementExample.php | 84 + .../CreateCustomFieldOptions.php | 90 + .../CustomFieldService/CreateCustomFields.php | 89 + ...activateAllLineItemCustomFieldsExample.php | 123 + .../GetAllCustomFieldsExample.php | 87 + .../SetLineItemCustomFieldValue.php | 128 + .../UpdateCustomFieldExample.php | 91 + ...ateCustomTargetingKeysAndValuesExample.php | 152 + .../DeleteCustomTargetingKeysExample.php | 120 + .../DeleteCustomTargetingValuesExample.php | 120 + ...AllCustomTargetingKeysAndValuesExample.php | 137 + ...tCustomTargetingKeysByStatementExample.php | 85 + ...ustomTargetingValuesByStatementExample.php | 91 + .../UpdateCustomTargetingKeysExample.php | 100 + .../UpdateCustomTargetingValuesExample.php | 106 + .../GetForecastByIdExample.php | 80 + .../ForecastService/GetForecastExample.php | 112 + .../InventoryService/CreateAdUnitsExample.php | 105 + .../CreateMobileAdUnitExample.php | 97 + .../CreateVideoAdUnitExample.php | 111 + .../DeactivateAdUnitsExample.php | 113 + .../InventoryService/GetAdUnitExample.php | 76 + .../GetAdUnitSizesExample.php | 81 + .../GetAdUnitsByStatementExample.php | 92 + .../InventoryService/GetAllAdUnitsExample.php | 89 + .../GetInventoryTreeExample.php | 206 + .../InventoryService/UpdateAdUnitsExample.php | 94 + .../LabelService/CreateLabelsExample.php | 85 + .../LabelService/DeactivateLabelsExample.php | 111 + .../LabelService/GetAllLabelsExample.php | 88 + .../v201208/LabelService/GetLabelExample.php | 75 + .../GetLabelsByStatementExample.php | 86 + .../LabelService/UpdateLabelsExample.php | 95 + .../LicaService/CreateLicasExample.php | 94 + .../LicaService/DeactivateLicasExample.php | 127 + .../LicaService/GetAllLicasExample.php | 97 + .../v201208/LicaService/GetLicaExample.php | 82 + .../GetLicasByStatementExample.php | 93 + .../LicaService/UpdateLicasExample.php | 96 + .../ActivateLineItemsExample.php | 132 + .../CreateLineItemsExample.php | 186 + .../CreateMobileLineItemExample.php | 160 + .../CreateVideoLineItemExample.php | 163 + .../GetAllLineItemsExample.php | 90 + .../LineItemService/GetLineItemExample.php | 77 + .../GetLineItemsByStatementExample.php | 94 + .../GetRecentlyUpdatedLineItems.php | 103 + .../TargetCustomCriteriaExample.php | 119 + .../UpdateLineItemsExample.php | 104 + .../NetworkService/GetAllNetworksExample.php | 77 + .../GetCurrentNetworkExample.php | 65 + .../NetworkService/MakeTestNetworkExample.php | 78 + .../OrderService/ApproveOrdersExample.php | 128 + .../OrderService/CreateOrdersExample.php | 94 + .../OrderService/GetAllOrdersExample.php | 90 + .../v201208/OrderService/GetOrderExample.php | 77 + .../GetOrdersByStatementExample.php | 92 + .../OrderService/UpdateOrdersExample.php | 99 + .../CreatePlacementsExample.php | 137 + .../DeactivatePlacementsExample.php | 115 + .../GetAllPlacementsExample.php | 89 + .../PlacementService/GetPlacementExample.php | 76 + .../GetPlacementsByStatementExample.php | 85 + .../UpdatePlacementsExample.php | 102 + .../GetAllCitiesExample.php | 92 + .../ReportService/DownloadReportExample.php | 81 + .../RunDeliveryReportExample.php | 108 + .../RunInventoryReportExample.php | 93 + .../RunMergedDeliveryReportExample.php | 93 + .../RunReportWithCustomFields.php | 133 + .../ReportService/RunSalesReportExample.php | 90 + .../ApproveSuggestedAdUnitsExample.php | 106 + .../GetAllSuggestedAdUnitsExample.php | 91 + .../GetSuggestedAdUnitExample.php | 79 + .../GetSuggestedAdUnitsByStatementExample.php | 88 + .../TeamService/CreateTeamsExample.php | 85 + .../TeamService/GetAllTeamsExample.php | 88 + .../v201208/TeamService/GetTeamExample.php | 75 + .../GetTeamsByStatementExample.php | 83 + .../TeamService/UpdateTeamsExample.php | 106 + .../ArchiveThirdPartySlotsExample.php | 126 + .../CreateThirdPartySlotExample.php | 96 + .../GetAllThirdPartySlotsExample.php | 89 + .../GetThirdPartySlotsByStatementExample.php | 83 + .../UpdateThirdPartySlotExample.php | 90 + .../UserService/CreateUsersExample.php | 97 + .../UserService/DeactivateUserExample.php | 121 + .../UserService/GetAllRolesExample.php | 72 + .../UserService/GetAllUsersExample.php | 87 + .../UserService/GetCurrentUserExample.php | 65 + .../v201208/UserService/GetUserExample.php | 76 + .../GetUsersByStatementExample.php | 81 + .../UserService/UpdateUsersExample.php | 94 + .../CreateUserTeamAssociationsExample.php | 92 + .../DeleteUserTeamAssociationsExample.php | 120 + .../GetAllUserTeamAssociationsExample.php | 91 + .../GetUserTeamAssociationExample.php | 79 + ...UserTeamAssociationsByStatementExample.php | 94 + .../UpdateUserTeamAssociationsExample.php | 102 + .../GetAllAudienceSegmentsExample.php | 89 + .../CompanyService/CreateCompaniesExample.php | 86 + .../CompanyService/GetAllCompaniesExample.php | 89 + .../GetCompaniesByStatementExample.php | 88 + .../CompanyService/GetCompanyExample.php | 76 + .../CompanyService/UpdateCompaniesExample.php | 93 + .../ContentService/GetAllContentExample.php | 88 + .../GetContentByCategoryExample.php | 113 + .../AssociateCreativeSetToLineItemExample.php | 78 + .../CreateCreativeFromTemplateExample.php | 129 + .../CreateCreativesExample.php | 109 + .../CreateCustomCreativeExample.php | 103 + .../GetAllCreativesExample.php | 90 + .../CreativeService/GetCreativeExample.php | 76 + .../GetCreativesByStatementExample.php | 88 + .../UpdateCreativesExample.php | 95 + .../CreateCreativeSetExample.php | 85 + .../GetAllCreativesSetsExample.php | 88 + .../GetCreativeSetsByStatementExample.php | 90 + .../UpdateCreativeSetExample.php | 84 + .../GetAllCreativeTemplatesExample.php | 90 + .../GetCreativeTemplateExample.php | 77 + ...GetCreativeTemplatesByStatementExample.php | 84 + .../CreateCreativeWrappersExample.php | 88 + .../DeactivateCreativeWrapperExample.php | 97 + .../GetActiveCreativeWrappersExample.php | 81 + .../GetAllCreativeWrappersExample.php | 76 + .../UpdateCreativeWrappersExample.php | 90 + .../CreateCustomFieldOptions.php | 90 + .../CustomFieldService/CreateCustomFields.php | 89 + ...activateAllLineItemCustomFieldsExample.php | 123 + .../GetAllCustomFieldsExample.php | 87 + .../SetLineItemCustomFieldValue.php | 128 + .../UpdateCustomFieldExample.php | 91 + ...ateCustomTargetingKeysAndValuesExample.php | 152 + .../DeleteCustomTargetingKeysExample.php | 120 + .../DeleteCustomTargetingValuesExample.php | 120 + ...AllCustomTargetingKeysAndValuesExample.php | 137 + ...tCustomTargetingKeysByStatementExample.php | 85 + ...ustomTargetingValuesByStatementExample.php | 91 + .../UpdateCustomTargetingKeysExample.php | 100 + .../UpdateCustomTargetingValuesExample.php | 106 + .../GetForecastByIdExample.php | 80 + .../ForecastService/GetForecastExample.php | 112 + .../InventoryService/CreateAdUnitsExample.php | 105 + .../CreateMobileAdUnitExample.php | 97 + .../CreateVideoAdUnitExample.php | 111 + .../DeactivateAdUnitsExample.php | 113 + .../InventoryService/GetAdUnitExample.php | 76 + .../GetAdUnitSizesExample.php | 81 + .../GetAdUnitsByStatementExample.php | 92 + .../InventoryService/GetAllAdUnitsExample.php | 89 + .../GetInventoryTreeExample.php | 206 + .../InventoryService/UpdateAdUnitsExample.php | 94 + .../LabelService/CreateLabelsExample.php | 85 + .../LabelService/DeactivateLabelsExample.php | 111 + .../LabelService/GetAllLabelsExample.php | 88 + .../v201211/LabelService/GetLabelExample.php | 75 + .../GetLabelsByStatementExample.php | 86 + .../LabelService/UpdateLabelsExample.php | 95 + .../LicaService/CreateLicasExample.php | 94 + .../LicaService/DeactivateLicasExample.php | 127 + .../LicaService/GetAllLicasExample.php | 97 + .../v201211/LicaService/GetLicaExample.php | 82 + .../GetLicasByStatementExample.php | 93 + .../LicaService/UpdateLicasExample.php | 96 + .../ActivateLineItemsExample.php | 132 + .../AuditLineItemsGeoTargetingExample.php | 213 + .../CreateLineItemsExample.php | 186 + .../CreateMobileLineItemExample.php | 160 + .../CreateVideoLineItemExample.php | 163 + .../GetAllLineItemsExample.php | 90 + .../LineItemService/GetLineItemExample.php | 77 + .../GetLineItemsByStatementExample.php | 94 + .../GetRecentlyUpdatedLineItems.php | 103 + .../TargetCustomCriteriaExample.php | 119 + .../UpdateLineItemsExample.php | 104 + .../NetworkService/GetAllNetworksExample.php | 77 + .../GetCurrentNetworkExample.php | 65 + .../NetworkService/MakeTestNetworkExample.php | 78 + .../OrderService/ApproveOrdersExample.php | 128 + .../OrderService/CreateOrdersExample.php | 94 + .../OrderService/GetAllOrdersExample.php | 90 + .../v201211/OrderService/GetOrderExample.php | 77 + .../GetOrdersByStatementExample.php | 92 + .../OrderService/UpdateOrdersExample.php | 99 + .../CreatePlacementsExample.php | 137 + .../DeactivatePlacementsExample.php | 115 + .../GetAllPlacementsExample.php | 89 + .../PlacementService/GetPlacementExample.php | 76 + .../GetPlacementsByStatementExample.php | 85 + .../UpdatePlacementsExample.php | 102 + .../GetAllCitiesExample.php | 119 + .../ReportService/DownloadReportExample.php | 81 + .../RunDeliveryReportExample.php | 108 + .../RunInventoryReportExample.php | 93 + .../RunMergedDeliveryReportExample.php | 93 + .../RunReportWithCustomFields.php | 133 + .../ReportService/RunSalesReportExample.php | 90 + .../ApproveSuggestedAdUnitsExample.php | 106 + .../GetAllSuggestedAdUnitsExample.php | 91 + .../GetSuggestedAdUnitExample.php | 79 + .../GetSuggestedAdUnitsByStatementExample.php | 88 + .../TeamService/CreateTeamsExample.php | 85 + .../TeamService/GetAllTeamsExample.php | 88 + .../v201211/TeamService/GetTeamExample.php | 75 + .../GetTeamsByStatementExample.php | 83 + .../TeamService/UpdateTeamsExample.php | 106 + .../ArchiveThirdPartySlotsExample.php | 126 + .../CreateThirdPartySlotExample.php | 96 + .../GetAllThirdPartySlotsExample.php | 89 + .../GetThirdPartySlotsByStatementExample.php | 83 + .../UpdateThirdPartySlotExample.php | 90 + .../UserService/CreateUsersExample.php | 97 + .../UserService/DeactivateUserExample.php | 121 + .../UserService/GetAllRolesExample.php | 72 + .../UserService/GetAllUsersExample.php | 87 + .../UserService/GetCurrentUserExample.php | 65 + .../v201211/UserService/GetUserExample.php | 76 + .../GetUsersByStatementExample.php | 81 + .../UserService/UpdateUsersExample.php | 94 + .../CreateUserTeamAssociationsExample.php | 92 + .../DeleteUserTeamAssociationsExample.php | 120 + .../GetAllUserTeamAssociationsExample.php | 91 + .../GetUserTeamAssociationExample.php | 79 + ...UserTeamAssociationsByStatementExample.php | 94 + .../UpdateUserTeamAssociationsExample.php | 102 + .../CreateActivityGroups.php | 94 + .../GetActiveActivityGroups.php | 90 + .../GetAllActivityGroups.php | 86 + .../UpdateActivityGroups.php | 84 + .../ActivityService/CreateActivities.php | 89 + .../ActivityService/GetActiveActivities.php | 96 + .../ActivityService/GetAllActivities.php | 136 + .../ActivityService/UpdateActivities.php | 83 + .../GetAllAudienceSegmentsExample.php | 89 + .../CompanyService/CreateCompaniesExample.php | 86 + .../CompanyService/GetAllCompaniesExample.php | 88 + .../GetCompaniesByStatementExample.php | 88 + .../CompanyService/GetCompanyExample.php | 76 + .../CompanyService/UpdateCompaniesExample.php | 93 + .../v201302/ContactService/CreateContacts.php | 92 + .../v201302/ContactService/GetAllContacts.php | 85 + .../ContactService/GetUninvitedContacts.php | 89 + .../v201302/ContactService/UpdateContacts.php | 84 + .../ContentService/GetAllContentExample.php | 88 + .../GetContentByCategoryExample.php | 113 + .../AssociateCreativeSetToLineItemExample.php | 78 + .../CreateCreativeFromTemplateExample.php | 129 + .../CreateCreativesExample.php | 119 + .../CreateCustomCreativeExample.php | 103 + .../GetAllCreativesExample.php | 90 + .../CreativeService/GetCreativeExample.php | 76 + .../GetCreativesByStatementExample.php | 88 + .../UpdateCreativesExample.php | 95 + .../CreateCreativeSetExample.php | 85 + .../GetAllCreativesSetsExample.php | 88 + .../GetCreativeSetsByStatementExample.php | 90 + .../UpdateCreativeSetExample.php | 84 + .../GetAllCreativeTemplatesExample.php | 90 + .../GetCreativeTemplateExample.php | 77 + ...GetCreativeTemplatesByStatementExample.php | 84 + .../CreateCreativeWrappersExample.php | 88 + .../DeactivateCreativeWrapperExample.php | 97 + .../GetActiveCreativeWrappersExample.php | 81 + .../GetAllCreativeWrappersExample.php | 76 + .../UpdateCreativeWrappersExample.php | 90 + .../CreateCustomFieldOptions.php | 90 + .../CustomFieldService/CreateCustomFields.php | 89 + ...activateAllLineItemCustomFieldsExample.php | 123 + .../GetAllCustomFieldsExample.php | 87 + .../SetLineItemCustomFieldValue.php | 128 + .../UpdateCustomFieldExample.php | 91 + ...ateCustomTargetingKeysAndValuesExample.php | 152 + .../DeleteCustomTargetingKeysExample.php | 120 + .../DeleteCustomTargetingValuesExample.php | 120 + ...AllCustomTargetingKeysAndValuesExample.php | 137 + ...tCustomTargetingKeysByStatementExample.php | 85 + ...ustomTargetingValuesByStatementExample.php | 91 + .../UpdateCustomTargetingKeysExample.php | 100 + .../UpdateCustomTargetingValuesExample.php | 106 + .../GetForecastByIdExample.php | 80 + .../ForecastService/GetForecastExample.php | 112 + .../InventoryService/CreateAdUnitsExample.php | 105 + .../CreateMobileAdUnitExample.php | 97 + .../CreateVideoAdUnitExample.php | 111 + .../DeactivateAdUnitsExample.php | 113 + .../InventoryService/GetAdUnitExample.php | 76 + .../GetAdUnitSizesExample.php | 81 + .../GetAdUnitsByStatementExample.php | 92 + .../InventoryService/GetAllAdUnitsExample.php | 89 + .../GetInventoryTreeExample.php | 206 + .../InventoryService/UpdateAdUnitsExample.php | 94 + .../LabelService/CreateLabelsExample.php | 85 + .../LabelService/DeactivateLabelsExample.php | 111 + .../LabelService/GetAllLabelsExample.php | 88 + .../v201302/LabelService/GetLabelExample.php | 75 + .../GetLabelsByStatementExample.php | 86 + .../LabelService/UpdateLabelsExample.php | 95 + .../LicaService/CreateLicasExample.php | 94 + .../LicaService/DeactivateLicasExample.php | 127 + .../LicaService/GetAllLicasExample.php | 97 + .../v201302/LicaService/GetLicaExample.php | 82 + .../GetLicasByStatementExample.php | 93 + .../LicaService/UpdateLicasExample.php | 96 + .../ActivateLineItemsExample.php | 132 + .../AuditLineItemsGeoTargetingExample.php | 213 + .../CreateLineItemsExample.php | 186 + .../CreateMobileLineItemExample.php | 160 + .../CreateVideoLineItemExample.php | 168 + .../GetAllLineItemsExample.php | 90 + .../LineItemService/GetLineItemExample.php | 77 + .../GetLineItemsByStatementExample.php | 94 + .../GetRecentlyUpdatedLineItems.php | 103 + .../TargetCustomCriteriaExample.php | 119 + .../UpdateLineItemsExample.php | 104 + .../NetworkService/GetAllNetworksExample.php | 77 + .../GetCurrentNetworkExample.php | 65 + .../NetworkService/MakeTestNetworkExample.php | 78 + .../OrderService/ApproveOrdersExample.php | 128 + .../OrderService/CreateOrdersExample.php | 94 + .../OrderService/GetAllOrdersExample.php | 90 + .../v201302/OrderService/GetOrderExample.php | 77 + .../GetOrdersByStatementExample.php | 92 + .../OrderService/UpdateOrdersExample.php | 99 + .../CreatePlacementsExample.php | 137 + .../DeactivatePlacementsExample.php | 115 + .../GetAllPlacementsExample.php | 89 + .../PlacementService/GetPlacementExample.php | 76 + .../GetPlacementsByStatementExample.php | 85 + .../UpdatePlacementsExample.php | 102 + .../GetAllCitiesExample.php | 119 + .../ReportService/DisplayReportExample.php | 78 + .../ReportService/DownloadReportExample.php | 81 + .../RunDeliveryReportExample.php | 108 + .../RunInventoryReportExample.php | 93 + .../RunMergedDeliveryReportExample.php | 94 + .../ReportService/RunReachReportExample.php | 90 + .../RunReportWithCustomFields.php | 133 + .../ReportService/RunSalesReportExample.php | 90 + .../ApproveSuggestedAdUnitsExample.php | 106 + .../GetAllSuggestedAdUnitsExample.php | 91 + .../GetSuggestedAdUnitExample.php | 79 + .../GetSuggestedAdUnitsByStatementExample.php | 88 + .../TeamService/CreateTeamsExample.php | 85 + .../TeamService/GetAllTeamsExample.php | 88 + .../v201302/TeamService/GetTeamExample.php | 75 + .../GetTeamsByStatementExample.php | 83 + .../TeamService/UpdateTeamsExample.php | 106 + .../ArchiveThirdPartySlotsExample.php | 126 + .../CreateThirdPartySlotExample.php | 96 + .../GetAllThirdPartySlotsExample.php | 89 + .../GetThirdPartySlotsByStatementExample.php | 83 + .../UpdateThirdPartySlotExample.php | 90 + .../UserService/CreateUsersExample.php | 97 + .../UserService/DeactivateUserExample.php | 121 + .../UserService/GetAllRolesExample.php | 72 + .../UserService/GetAllUsersExample.php | 87 + .../UserService/GetCurrentUserExample.php | 65 + .../v201302/UserService/GetUserExample.php | 76 + .../GetUsersByStatementExample.php | 81 + .../UserService/UpdateUsersExample.php | 94 + .../CreateUserTeamAssociationsExample.php | 92 + .../DeleteUserTeamAssociationsExample.php | 120 + .../GetAllUserTeamAssociationsExample.php | 91 + .../GetUserTeamAssociationExample.php | 79 + ...UserTeamAssociationsByStatementExample.php | 94 + .../UpdateUserTeamAssociationsExample.php | 102 + .../CreateActivityGroups.php | 94 + .../GetActiveActivityGroups.php | 90 + .../GetAllActivityGroups.php | 86 + .../UpdateActivityGroups.php | 84 + .../ActivityService/CreateActivities.php | 89 + .../ActivityService/GetActiveActivities.php | 96 + .../ActivityService/GetAllActivities.php | 136 + .../ActivityService/UpdateActivities.php | 83 + .../GetAllAudienceSegmentsExample.php | 89 + .../CompanyService/CreateCompaniesExample.php | 86 + .../CompanyService/GetAllCompaniesExample.php | 88 + .../GetCompaniesByStatementExample.php | 88 + .../CompanyService/GetCompanyExample.php | 76 + .../CompanyService/UpdateCompaniesExample.php | 93 + .../v201306/ContactService/CreateContacts.php | 92 + .../v201306/ContactService/GetAllContacts.php | 85 + .../ContactService/GetUninvitedContacts.php | 89 + .../v201306/ContactService/UpdateContacts.php | 84 + .../ContentService/GetAllContentExample.php | 88 + .../GetContentByCategoryExample.php | 113 + .../AssociateCreativeSetToLineItemExample.php | 78 + .../CreateCreativeFromTemplateExample.php | 129 + .../CreateCreativesExample.php | 119 + .../CreateCustomCreativeExample.php | 103 + .../GetAllCreativesExample.php | 90 + .../CreativeService/GetCreativeExample.php | 76 + .../GetCreativesByStatementExample.php | 88 + .../UpdateCreativesExample.php | 95 + .../CreateCreativeSetExample.php | 85 + .../GetAllCreativesSetsExample.php | 88 + .../GetCreativeSetsByStatementExample.php | 90 + .../UpdateCreativeSetExample.php | 84 + .../GetAllCreativeTemplatesExample.php | 90 + .../GetCreativeTemplateExample.php | 77 + ...GetCreativeTemplatesByStatementExample.php | 84 + .../CreateCreativeWrappersExample.php | 88 + .../DeactivateCreativeWrapperExample.php | 97 + .../GetActiveCreativeWrappersExample.php | 81 + .../GetAllCreativeWrappersExample.php | 76 + .../UpdateCreativeWrappersExample.php | 90 + .../CreateCustomFieldOptions.php | 90 + .../CustomFieldService/CreateCustomFields.php | 89 + ...activateAllLineItemCustomFieldsExample.php | 123 + .../GetAllCustomFieldsExample.php | 87 + .../SetLineItemCustomFieldValue.php | 128 + .../UpdateCustomFieldExample.php | 91 + ...ateCustomTargetingKeysAndValuesExample.php | 152 + .../DeleteCustomTargetingKeysExample.php | 120 + .../DeleteCustomTargetingValuesExample.php | 120 + ...AllCustomTargetingKeysAndValuesExample.php | 137 + ...tCustomTargetingKeysByStatementExample.php | 85 + ...ustomTargetingValuesByStatementExample.php | 91 + .../UpdateCustomTargetingKeysExample.php | 100 + .../UpdateCustomTargetingValuesExample.php | 106 + .../GetForecastByIdExample.php | 80 + .../ForecastService/GetForecastExample.php | 112 + .../InventoryService/CreateAdUnitsExample.php | 105 + .../CreateMobileAdUnitExample.php | 97 + .../CreateVideoAdUnitExample.php | 111 + .../DeactivateAdUnitsExample.php | 113 + .../InventoryService/GetAdUnitExample.php | 76 + .../GetAdUnitSizesExample.php | 81 + .../GetAdUnitsByStatementExample.php | 92 + .../InventoryService/GetAllAdUnitsExample.php | 89 + .../GetInventoryTreeExample.php | 206 + .../InventoryService/UpdateAdUnitsExample.php | 94 + .../LabelService/CreateLabelsExample.php | 85 + .../LabelService/DeactivateLabelsExample.php | 111 + .../LabelService/GetAllLabelsExample.php | 88 + .../v201306/LabelService/GetLabelExample.php | 75 + .../GetLabelsByStatementExample.php | 86 + .../LabelService/UpdateLabelsExample.php | 95 + .../LicaService/CreateLicasExample.php | 94 + .../LicaService/DeactivateLicasExample.php | 127 + .../LicaService/GetAllLicasExample.php | 97 + .../v201306/LicaService/GetLicaExample.php | 82 + .../GetLicasByStatementExample.php | 93 + .../LicaService/UpdateLicasExample.php | 96 + .../ActivateLineItemsExample.php | 132 + .../AuditLineItemsGeoTargetingExample.php | 213 + .../CreateLineItemsExample.php | 186 + .../CreateMobileLineItemExample.php | 160 + .../CreateVideoLineItemExample.php | 168 + .../GetAllLineItemsExample.php | 90 + .../LineItemService/GetLineItemExample.php | 77 + .../GetLineItemsByStatementExample.php | 94 + .../GetRecentlyUpdatedLineItems.php | 103 + .../TargetCustomCriteriaExample.php | 119 + .../UpdateLineItemsExample.php | 104 + .../NetworkService/GetAllNetworksExample.php | 77 + .../GetCurrentNetworkExample.php | 65 + .../NetworkService/MakeTestNetworkExample.php | 78 + .../OrderService/ApproveOrdersExample.php | 128 + .../OrderService/CreateOrdersExample.php | 94 + .../OrderService/GetAllOrdersExample.php | 90 + .../v201306/OrderService/GetOrderExample.php | 77 + .../GetOrdersByStatementExample.php | 92 + .../OrderService/UpdateOrdersExample.php | 99 + .../CreatePlacementsExample.php | 137 + .../DeactivatePlacementsExample.php | 115 + .../GetAllPlacementsExample.php | 89 + .../PlacementService/GetPlacementExample.php | 76 + .../GetPlacementsByStatementExample.php | 85 + .../UpdatePlacementsExample.php | 102 + .../GetAllCitiesExample.php | 119 + .../ReportService/DisplayReportExample.php | 78 + .../ReportService/DownloadReportExample.php | 81 + .../RunDeliveryReportExample.php | 108 + .../RunInventoryReportExample.php | 93 + .../RunMergedDeliveryReportExample.php | 94 + .../ReportService/RunReachReportExample.php | 90 + .../RunReportWithCustomFields.php | 133 + .../ReportService/RunSalesReportExample.php | 90 + .../ApproveSuggestedAdUnitsExample.php | 106 + .../GetAllSuggestedAdUnitsExample.php | 91 + .../GetSuggestedAdUnitExample.php | 79 + .../GetSuggestedAdUnitsByStatementExample.php | 88 + .../TeamService/CreateTeamsExample.php | 85 + .../TeamService/GetAllTeamsExample.php | 88 + .../v201306/TeamService/GetTeamExample.php | 75 + .../GetTeamsByStatementExample.php | 83 + .../TeamService/UpdateTeamsExample.php | 106 + .../UserService/CreateUsersExample.php | 97 + .../UserService/DeactivateUserExample.php | 121 + .../UserService/GetAllRolesExample.php | 72 + .../UserService/GetAllUsersExample.php | 87 + .../UserService/GetCurrentUserExample.php | 65 + .../v201306/UserService/GetUserExample.php | 76 + .../GetUsersByStatementExample.php | 81 + .../UserService/UpdateUsersExample.php | 94 + .../CreateUserTeamAssociationsExample.php | 92 + .../DeleteUserTeamAssociationsExample.php | 120 + .../GetAllUserTeamAssociationsExample.php | 91 + .../GetUserTeamAssociationExample.php | 79 + ...UserTeamAssociationsByStatementExample.php | 94 + .../UpdateUserTeamAssociationsExample.php | 102 + .../CreateActivityGroups.php | 94 + .../GetActiveActivityGroups.php | 90 + .../GetAllActivityGroups.php | 86 + .../UpdateActivityGroups.php | 84 + .../ActivityService/CreateActivities.php | 89 + .../ActivityService/GetActiveActivities.php | 96 + .../ActivityService/GetAllActivities.php | 136 + .../ActivityService/UpdateActivities.php | 83 + .../CreateAudienceSegments.php | 118 + .../GetAllAudienceSegments.php | 87 + .../GetFirstPartyAudienceSegments.php | 94 + .../PopulateFirstPartyAudienceSegments.php | 125 + .../UpdateAudienceSegments.php | 94 + .../CompanyService/CreateCompaniesExample.php | 86 + .../CompanyService/GetAllCompaniesExample.php | 88 + .../GetCompaniesByStatementExample.php | 88 + .../CompanyService/GetCompanyExample.php | 76 + .../CompanyService/UpdateCompaniesExample.php | 93 + .../v201308/ContactService/CreateContacts.php | 92 + .../v201308/ContactService/GetAllContacts.php | 85 + .../ContactService/GetUninvitedContacts.php | 89 + .../v201308/ContactService/UpdateContacts.php | 84 + .../ContentService/GetAllContentExample.php | 88 + .../GetContentByCategoryExample.php | 113 + .../AssociateCreativeSetToLineItemExample.php | 78 + .../CreateCreativeFromTemplateExample.php | 129 + .../CreateCreativesExample.php | 119 + .../CreateCustomCreativeExample.php | 103 + .../GetAllCreativesExample.php | 90 + .../CreativeService/GetCreativeExample.php | 76 + .../GetCreativesByStatementExample.php | 88 + .../UpdateCreativesExample.php | 95 + .../CreateCreativeSetExample.php | 85 + .../GetAllCreativesSetsExample.php | 88 + .../GetCreativeSetsByStatementExample.php | 90 + .../UpdateCreativeSetExample.php | 84 + .../GetAllCreativeTemplatesExample.php | 90 + .../GetCreativeTemplateExample.php | 77 + ...GetCreativeTemplatesByStatementExample.php | 84 + .../CreateCreativeWrappersExample.php | 88 + .../DeactivateCreativeWrapperExample.php | 97 + .../GetActiveCreativeWrappersExample.php | 81 + .../GetAllCreativeWrappersExample.php | 76 + .../UpdateCreativeWrappersExample.php | 90 + .../CreateCustomFieldOptions.php | 90 + .../CustomFieldService/CreateCustomFields.php | 89 + ...activateAllLineItemCustomFieldsExample.php | 123 + .../GetAllCustomFieldsExample.php | 87 + .../SetLineItemCustomFieldValue.php | 128 + .../UpdateCustomFieldExample.php | 91 + ...ateCustomTargetingKeysAndValuesExample.php | 152 + .../DeleteCustomTargetingKeysExample.php | 120 + .../DeleteCustomTargetingValuesExample.php | 120 + ...AllCustomTargetingKeysAndValuesExample.php | 137 + ...tCustomTargetingKeysByStatementExample.php | 85 + ...ustomTargetingValuesByStatementExample.php | 91 + .../UpdateCustomTargetingKeysExample.php | 100 + .../UpdateCustomTargetingValuesExample.php | 106 + .../GetForecastByIdExample.php | 83 + .../ForecastService/GetForecastExample.php | 115 + .../InventoryService/CreateAdUnitsExample.php | 105 + .../CreateMobileAdUnitExample.php | 97 + .../CreateVideoAdUnitExample.php | 111 + .../DeactivateAdUnitsExample.php | 113 + .../InventoryService/GetAdUnitExample.php | 76 + .../GetAdUnitSizesExample.php | 81 + .../GetAdUnitsByStatementExample.php | 92 + .../InventoryService/GetAllAdUnitsExample.php | 89 + .../GetInventoryTreeExample.php | 206 + .../InventoryService/UpdateAdUnitsExample.php | 94 + .../LabelService/CreateLabelsExample.php | 85 + .../LabelService/DeactivateLabelsExample.php | 111 + .../LabelService/GetAllLabelsExample.php | 88 + .../v201308/LabelService/GetLabelExample.php | 75 + .../GetLabelsByStatementExample.php | 86 + .../LabelService/UpdateLabelsExample.php | 95 + .../LicaService/CreateLicasExample.php | 94 + .../LicaService/DeactivateLicasExample.php | 127 + .../LicaService/GetAllLicasExample.php | 97 + .../v201308/LicaService/GetLicaExample.php | 82 + .../GetLicasByStatementExample.php | 93 + .../LicaService/UpdateLicasExample.php | 96 + .../ActivateLineItemsExample.php | 132 + .../AuditLineItemsGeoTargetingExample.php | 213 + .../CreateLineItemsExample.php | 186 + .../CreateMobileLineItemExample.php | 160 + .../CreateVideoLineItemExample.php | 168 + .../GetAllLineItemsExample.php | 90 + .../LineItemService/GetLineItemExample.php | 77 + .../GetLineItemsByStatementExample.php | 94 + .../GetRecentlyUpdatedLineItems.php | 103 + .../TargetCustomCriteriaExample.php | 119 + .../UpdateLineItemsExample.php | 104 + .../NetworkService/GetAllNetworksExample.php | 77 + .../GetCurrentNetworkExample.php | 65 + .../NetworkService/MakeTestNetworkExample.php | 78 + .../OrderService/ApproveOrdersExample.php | 128 + .../OrderService/CreateOrdersExample.php | 94 + .../OrderService/GetAllOrdersExample.php | 90 + .../v201308/OrderService/GetOrderExample.php | 77 + .../GetOrdersByStatementExample.php | 92 + .../OrderService/UpdateOrdersExample.php | 99 + .../CreatePlacementsExample.php | 137 + .../DeactivatePlacementsExample.php | 115 + .../GetAllPlacementsExample.php | 89 + .../PlacementService/GetPlacementExample.php | 76 + .../GetPlacementsByStatementExample.php | 85 + .../UpdatePlacementsExample.php | 102 + .../GetAllLineItems.php | 105 + .../GetGeoTargets.php | 116 + .../GetLineItemsNamedLike.php | 104 + .../ReportService/DisplayReportExample.php | 78 + .../ReportService/DownloadReportExample.php | 81 + .../RunDeliveryReportExample.php | 108 + .../RunInventoryReportExample.php | 93 + .../RunMergedDeliveryReportExample.php | 94 + .../ReportService/RunReachReportExample.php | 90 + .../RunReportWithCustomFields.php | 133 + .../ReportService/RunSalesReportExample.php | 90 + .../ApproveSuggestedAdUnitsExample.php | 106 + .../GetAllSuggestedAdUnitsExample.php | 91 + .../GetSuggestedAdUnitExample.php | 79 + .../GetSuggestedAdUnitsByStatementExample.php | 88 + .../TeamService/CreateTeamsExample.php | 85 + .../TeamService/GetAllTeamsExample.php | 88 + .../v201308/TeamService/GetTeamExample.php | 75 + .../GetTeamsByStatementExample.php | 83 + .../TeamService/UpdateTeamsExample.php | 106 + .../UserService/CreateUsersExample.php | 97 + .../UserService/DeactivateUserExample.php | 121 + .../UserService/GetAllRolesExample.php | 72 + .../UserService/GetAllUsersExample.php | 87 + .../UserService/GetCurrentUserExample.php | 65 + .../v201308/UserService/GetUserExample.php | 76 + .../GetUsersByStatementExample.php | 81 + .../UserService/UpdateUsersExample.php | 94 + .../CreateUserTeamAssociationsExample.php | 92 + .../DeleteUserTeamAssociationsExample.php | 120 + .../GetAllUserTeamAssociationsExample.php | 91 + .../GetUserTeamAssociationExample.php | 79 + ...UserTeamAssociationsByStatementExample.php | 94 + .../UpdateUserTeamAssociationsExample.php | 102 + .../CreateActivityGroups.php | 94 + .../GetActiveActivityGroups.php | 90 + .../GetAllActivityGroups.php | 86 + .../UpdateActivityGroups.php | 84 + .../ActivityService/CreateActivities.php | 89 + .../ActivityService/GetActiveActivities.php | 91 + .../ActivityService/GetAllActivities.php | 88 + .../ActivityService/UpdateActivities.php | 83 + .../CreateAudienceSegments.php | 118 + .../GetAllAudienceSegments.php | 88 + .../GetFirstPartyAudienceSegments.php | 95 + .../PopulateFirstPartyAudienceSegments.php | 125 + .../UpdateAudienceSegments.php | 94 + .../CompanyService/CreateCompaniesExample.php | 86 + .../CompanyService/GetAllCompaniesExample.php | 88 + .../GetCompaniesByStatementExample.php | 88 + .../CompanyService/GetCompanyExample.php | 76 + .../CompanyService/UpdateCompaniesExample.php | 93 + .../v201311/ContactService/CreateContacts.php | 92 + .../v201311/ContactService/GetAllContacts.php | 85 + .../ContactService/GetUninvitedContacts.php | 89 + .../v201311/ContactService/UpdateContacts.php | 84 + .../ContentService/GetAllContentExample.php | 88 + .../GetContentByCategoryExample.php | 113 + .../AssociateCreativeSetToLineItemExample.php | 78 + .../CreateCreativeFromTemplateExample.php | 129 + .../CreateCreativesExample.php | 119 + .../CreateCustomCreativeExample.php | 103 + .../GetAllCreativesExample.php | 90 + .../CreativeService/GetCreativeExample.php | 76 + .../GetCreativesByStatementExample.php | 88 + .../UpdateCreativesExample.php | 95 + .../CreateCreativeSetExample.php | 85 + .../GetAllCreativesSetsExample.php | 88 + .../GetCreativeSetsByStatementExample.php | 90 + .../UpdateCreativeSetExample.php | 84 + .../GetAllCreativeTemplatesExample.php | 90 + .../GetCreativeTemplateExample.php | 77 + ...GetCreativeTemplatesByStatementExample.php | 84 + .../CreateCreativeWrappersExample.php | 88 + .../DeactivateCreativeWrapperExample.php | 97 + .../GetActiveCreativeWrappersExample.php | 81 + .../GetAllCreativeWrappersExample.php | 76 + .../UpdateCreativeWrappersExample.php | 90 + .../CreateCustomFieldOptions.php | 90 + .../CustomFieldService/CreateCustomFields.php | 89 + ...activateAllLineItemCustomFieldsExample.php | 123 + .../GetAllCustomFieldsExample.php | 87 + .../SetLineItemCustomFieldValue.php | 128 + .../UpdateCustomFieldExample.php | 91 + ...ateCustomTargetingKeysAndValuesExample.php | 152 + .../DeleteCustomTargetingKeysExample.php | 120 + .../DeleteCustomTargetingValuesExample.php | 120 + ...AllCustomTargetingKeysAndValuesExample.php | 137 + ...tCustomTargetingKeysByStatementExample.php | 85 + ...ustomTargetingValuesByStatementExample.php | 91 + .../UpdateCustomTargetingKeysExample.php | 100 + .../UpdateCustomTargetingValuesExample.php | 106 + .../GetForecastByIdExample.php | 83 + .../ForecastService/GetForecastExample.php | 115 + .../InventoryService/CreateAdUnitsExample.php | 105 + .../CreateMobileAdUnitExample.php | 97 + .../CreateVideoAdUnitExample.php | 111 + .../DeactivateAdUnitsExample.php | 113 + .../InventoryService/GetAdUnitExample.php | 76 + .../GetAdUnitSizesExample.php | 81 + .../GetAdUnitsByStatementExample.php | 92 + .../InventoryService/GetAllAdUnitsExample.php | 89 + .../GetInventoryTreeExample.php | 206 + .../InventoryService/UpdateAdUnitsExample.php | 94 + .../LabelService/CreateLabelsExample.php | 85 + .../LabelService/DeactivateLabelsExample.php | 111 + .../LabelService/GetAllLabelsExample.php | 88 + .../v201311/LabelService/GetLabelExample.php | 75 + .../GetLabelsByStatementExample.php | 86 + .../LabelService/UpdateLabelsExample.php | 95 + .../LicaService/CreateLicasExample.php | 94 + .../LicaService/DeactivateLicasExample.php | 127 + .../LicaService/GetAllLicasExample.php | 97 + .../v201311/LicaService/GetLicaExample.php | 82 + .../GetLicasByStatementExample.php | 93 + .../LicaService/UpdateLicasExample.php | 96 + .../ActivateLineItemsExample.php | 132 + .../AuditLineItemsGeoTargetingExample.php | 213 + .../CreateLineItemsExample.php | 186 + .../CreateMobileLineItemExample.php | 160 + .../CreateVideoLineItemExample.php | 168 + .../GetAllLineItemsExample.php | 90 + .../LineItemService/GetLineItemExample.php | 77 + .../GetLineItemsByStatementExample.php | 94 + .../GetRecentlyUpdatedLineItems.php | 103 + .../TargetCustomCriteriaExample.php | 119 + .../UpdateLineItemsExample.php | 104 + .../NetworkService/GetAllNetworksExample.php | 77 + .../GetCurrentNetworkExample.php | 65 + .../NetworkService/MakeTestNetworkExample.php | 78 + .../OrderService/ApproveOrdersExample.php | 128 + .../OrderService/CreateOrdersExample.php | 94 + .../OrderService/GetAllOrdersExample.php | 90 + .../v201311/OrderService/GetOrderExample.php | 77 + .../GetOrdersByStatementExample.php | 92 + .../OrderService/UpdateOrdersExample.php | 99 + .../CreatePlacementsExample.php | 137 + .../DeactivatePlacementsExample.php | 115 + .../GetAllPlacementsExample.php | 89 + .../PlacementService/GetPlacementExample.php | 76 + .../GetPlacementsByStatementExample.php | 85 + .../UpdatePlacementsExample.php | 102 + .../FetchMatchTables.php | 116 + .../GetGeoTargets.php | 116 + .../GetLineItemsNamedLike.php | 104 + .../ReportService/DisplayReportExample.php | 78 + .../ReportService/DownloadReportExample.php | 81 + .../RunDeliveryReportExample.php | 108 + .../RunInventoryReportExample.php | 113 + .../RunMergedDeliveryReportExample.php | 94 + .../ReportService/RunReachReportExample.php | 90 + .../RunReportWithCustomFields.php | 133 + .../ReportService/RunSalesReportExample.php | 90 + .../ApproveSuggestedAdUnitsExample.php | 106 + .../GetAllSuggestedAdUnitsExample.php | 91 + .../GetSuggestedAdUnitExample.php | 79 + .../GetSuggestedAdUnitsByStatementExample.php | 88 + .../TeamService/CreateTeamsExample.php | 85 + .../TeamService/GetAllTeamsExample.php | 88 + .../v201311/TeamService/GetTeamExample.php | 75 + .../GetTeamsByStatementExample.php | 83 + .../TeamService/UpdateTeamsExample.php | 106 + .../UserService/CreateUsersExample.php | 97 + .../UserService/DeactivateUserExample.php | 121 + .../UserService/GetAllRolesExample.php | 72 + .../UserService/GetAllUsersExample.php | 87 + .../UserService/GetCurrentUserExample.php | 65 + .../v201311/UserService/GetUserExample.php | 76 + .../GetUsersByStatementExample.php | 81 + .../UserService/UpdateUsersExample.php | 94 + .../CreateUserTeamAssociationsExample.php | 92 + .../DeleteUserTeamAssociationsExample.php | 120 + .../GetAllUserTeamAssociationsExample.php | 91 + .../GetUserTeamAssociationExample.php | 79 + ...UserTeamAssociationsByStatementExample.php | 94 + .../UpdateUserTeamAssociationsExample.php | 102 + .../CreateActivityGroups.php | 94 + .../GetActiveActivityGroups.php | 90 + .../GetAllActivityGroups.php | 86 + .../UpdateActivityGroups.php | 88 + .../ActivityService/CreateActivities.php | 89 + .../ActivityService/GetActiveActivities.php | 91 + .../ActivityService/GetAllActivities.php | 88 + .../ActivityService/UpdateActivities.php | 85 + .../CreateAudienceSegments.php | 118 + .../GetAllAudienceSegments.php | 88 + .../GetFirstPartyAudienceSegments.php | 95 + .../PopulateFirstPartyAudienceSegments.php | 125 + .../UpdateAudienceSegments.php | 94 + .../CompanyService/CreateCompaniesExample.php | 86 + .../CompanyService/GetAllCompaniesExample.php | 88 + .../GetCompaniesByStatementExample.php | 88 + .../CompanyService/UpdateCompaniesExample.php | 93 + .../v201403/ContactService/CreateContacts.php | 92 + .../v201403/ContactService/GetAllContacts.php | 85 + .../ContactService/GetUninvitedContacts.php | 89 + .../v201403/ContactService/UpdateContacts.php | 86 + ...teContentMetadataKeyHierarchiesExample.php | 92 + ...teContentMetadataKeyHierarchiesExample.php | 90 + ...llContentMetadataKeyHierarchiesExample.php | 90 + ...teContentMetadataKeyHierarchiesExample.php | 99 + .../ContentService/GetAllContentExample.php | 88 + .../GetContentByCategoryExample.php | 113 + .../AssociateCreativeSetToLineItemExample.php | 78 + .../CreateCreativeFromTemplateExample.php | 127 + .../CreateCreativesExample.php | 119 + .../CreateCustomCreativeExample.php | 100 + .../GetAllCreativesExample.php | 90 + .../GetCreativesByStatementExample.php | 88 + .../UpdateCreativesExample.php | 95 + .../CreateCreativeSetsExample.php | 82 + .../GetAllCreativesSetsExample.php | 88 + .../GetCreativeSetsByStatementExample.php | 90 + .../UpdateCreativeSetsExample.php | 89 + .../GetAllCreativeTemplatesExample.php | 90 + ...GetCreativeTemplatesByStatementExample.php | 84 + .../CreateCreativeWrappersExample.php | 88 + .../DeactivateCreativeWrapperExample.php | 97 + .../GetActiveCreativeWrappersExample.php | 81 + .../GetAllCreativeWrappersExample.php | 76 + .../UpdateCreativeWrappersExample.php | 88 + .../CreateCustomFieldOptions.php | 90 + .../CustomFieldService/CreateCustomFields.php | 89 + ...activateAllLineItemCustomFieldsExample.php | 123 + .../GetAllCustomFieldsExample.php | 87 + .../SetLineItemCustomFieldValue.php | 126 + .../UpdateCustomFieldExample.php | 86 + ...ateCustomTargetingKeysAndValuesExample.php | 152 + .../DeleteCustomTargetingKeysExample.php | 120 + .../DeleteCustomTargetingValuesExample.php | 120 + ...AllCustomTargetingKeysAndValuesExample.php | 137 + ...tCustomTargetingKeysByStatementExample.php | 85 + ...ustomTargetingValuesByStatementExample.php | 91 + .../UpdateCustomTargetingKeysExample.php | 100 + .../UpdateCustomTargetingValuesExample.php | 106 + .../GetForecastByIdExample.php | 83 + .../ForecastService/GetForecastExample.php | 115 + .../InventoryService/CreateAdUnitsExample.php | 105 + .../CreateMobileAdUnitExample.php | 94 + .../CreateVideoAdUnitExample.php | 108 + .../DeactivateAdUnitsExample.php | 113 + .../GetAdUnitSizesExample.php | 81 + .../GetAdUnitsByStatementExample.php | 92 + .../InventoryService/GetAllAdUnitsExample.php | 89 + .../GetInventoryTreeExample.php | 205 + .../InventoryService/UpdateAdUnitsExample.php | 94 + .../LabelService/CreateLabelsExample.php | 85 + .../LabelService/DeactivateLabelsExample.php | 111 + .../LabelService/GetAllLabelsExample.php | 88 + .../GetLabelsByStatementExample.php | 86 + .../LabelService/UpdateLabelsExample.php | 95 + .../LicaService/CreateLicasExample.php | 94 + .../LicaService/DeactivateLicasExample.php | 127 + .../LicaService/GetAllLicasExample.php | 97 + .../GetLicasByStatementExample.php | 93 + .../LicaService/UpdateLicasExample.php | 96 + .../ActivateLineItemsExample.php | 132 + .../AuditLineItemsGeoTargetingExample.php | 213 + .../CreateLineItemsExample.php | 186 + .../CreateMobileLineItemExample.php | 157 + .../CreateVideoLineItemExample.php | 168 + .../GetAllLineItemsExample.php | 90 + .../GetLineItemsByStatementExample.php | 94 + .../GetRecentlyUpdatedLineItems.php | 103 + .../TargetCustomCriteriaExample.php | 122 + .../UpdateLineItemsExample.php | 104 + .../NetworkService/GetAllNetworksExample.php | 77 + .../GetCurrentNetworkExample.php | 65 + .../NetworkService/MakeTestNetworkExample.php | 78 + .../OrderService/ApproveOrdersExample.php | 128 + .../OrderService/CreateOrdersExample.php | 94 + .../OrderService/GetAllOrdersExample.php | 90 + .../GetOrdersByStatementExample.php | 92 + .../OrderService/UpdateOrdersExample.php | 99 + .../CreatePlacementsExample.php | 137 + .../DeactivatePlacementsExample.php | 115 + .../GetAllPlacementsExample.php | 89 + .../GetPlacementsByStatementExample.php | 85 + .../UpdatePlacementsExample.php | 102 + .../FetchMatchTables.php | 116 + .../GetGeoTargets.php | 116 + .../GetLineItemsNamedLike.php | 104 + .../ReportService/DisplayReportExample.php | 78 + .../ReportService/DownloadReportExample.php | 81 + .../RunDeliveryReportExample.php | 108 + .../RunInventoryReportExample.php | 113 + .../RunMergedDeliveryReportExample.php | 94 + .../ReportService/RunReachReportExample.php | 90 + .../RunReportWithCustomFields.php | 133 + .../ReportService/RunSalesReportExample.php | 90 + .../ApproveSuggestedAdUnitsExample.php | 106 + .../GetAllSuggestedAdUnitsExample.php | 91 + .../GetSuggestedAdUnitsByStatementExample.php | 88 + .../TeamService/CreateTeamsExample.php | 85 + .../TeamService/GetAllTeamsExample.php | 88 + .../GetTeamsByStatementExample.php | 83 + .../TeamService/UpdateTeamsExample.php | 106 + .../UserService/CreateUsersExample.php | 97 + .../UserService/DeactivateUserExample.php | 121 + .../UserService/GetAllRolesExample.php | 72 + .../UserService/GetAllUsersExample.php | 87 + .../UserService/GetCurrentUserExample.php | 65 + .../v201403/UserService/GetUserExample.php | 76 + .../GetUsersByStatementExample.php | 81 + .../UserService/UpdateUsersExample.php | 94 + .../CreateUserTeamAssociationsExample.php | 92 + .../DeleteUserTeamAssociationsExample.php | 120 + .../GetAllUserTeamAssociationsExample.php | 91 + ...UserTeamAssociationsByStatementExample.php | 94 + .../UpdateUserTeamAssociationsExample.php | 102 + .../Api/Ads/AdWords/Lib/AdWordsConstants.php | 55 + .../Api/Ads/AdWords/Lib/AdWordsSoapClient.php | 217 + .../AdWords/Lib/AdWordsSoapClientFactory.php | 73 + .../Api/Ads/AdWords/Lib/AdWordsUser.php | 498 + src/Google/Api/Ads/AdWords/Lib/api.properties | 104 + src/Google/Api/Ads/AdWords/Lib/build.ini | 2 + .../Api/Ads/AdWords/Util/ReportUtils.php | 855 + src/Google/Api/Ads/AdWords/auth.ini | 29 + src/Google/Api/Ads/AdWords/settings.ini | 57 + .../v201306/AdExtensionOverrideService.php | 4004 ++++ .../Ads/AdWords/v201306/AdGroupAdService.php | 6604 ++++++ .../v201306/AdGroupBidModifierService.php | 2895 +++ .../v201306/AdGroupCriterionService.php | 7398 +++++++ .../AdWords/v201306/AdGroupFeedService.php | 3623 ++++ .../Ads/AdWords/v201306/AdGroupService.php | 5973 ++++++ .../Ads/AdWords/v201306/AdParamService.php | 2975 +++ .../v201306/AdwordsUserListService.php | 3650 ++++ .../Api/Ads/AdWords/v201306/AlertService.php | 2457 +++ .../v201306/BiddingStrategyService.php | 4113 ++++ .../AdWords/v201306/BudgetOrderService.php | 4362 ++++ .../Api/Ads/AdWords/v201306/BudgetService.php | 3468 ++++ .../v201306/CampaignAdExtensionService.php | 4706 +++++ .../v201306/CampaignCriterionService.php | 5630 +++++ .../AdWords/v201306/CampaignFeedService.php | 3555 ++++ .../Ads/AdWords/v201306/CampaignService.php | 6504 ++++++ .../v201306/CampaignSharedSetService.php | 3434 ++++ .../AdWords/v201306/ConstantDataService.php | 3934 ++++ .../v201306/ConversionTrackerService.php | 3572 ++++ .../Ads/AdWords/v201306/CustomerService.php | 2119 ++ .../AdWords/v201306/CustomerSyncService.php | 2340 +++ .../Api/Ads/AdWords/v201306/DataService.php | 3273 +++ .../Ads/AdWords/v201306/ExperimentService.php | 3485 ++++ .../Ads/AdWords/v201306/FeedItemService.php | 3585 ++++ .../AdWords/v201306/FeedMappingService.php | 2961 +++ .../Api/Ads/AdWords/v201306/FeedService.php | 3187 +++ .../AdWords/v201306/GeoLocationService.php | 2165 ++ .../v201306/LocationCriterionService.php | 3551 ++++ .../v201306/ManagedCustomerService.php | 3775 ++++ .../Api/Ads/AdWords/v201306/MediaService.php | 3201 +++ .../Ads/AdWords/v201306/MutateJobService.php | 17061 ++++++++++++++++ .../v201306/ReportDefinitionService.php | 2345 +++ .../v201306/SharedCriterionService.php | 3842 ++++ .../Ads/AdWords/v201306/SharedSetService.php | 3296 +++ .../AdWords/v201306/TargetingIdeaService.php | 8266 ++++++++ .../v201306/TrafficEstimatorService.php | 4856 +++++ .../Ads/AdWords/v201309/AdGroupAdService.php | 6111 ++++++ .../v201309/AdGroupBidModifierService.php | 3035 +++ .../v201309/AdGroupCriterionService.php | 7201 +++++++ .../AdWords/v201309/AdGroupFeedService.php | 3622 ++++ .../Ads/AdWords/v201309/AdGroupService.php | 5814 ++++++ .../Ads/AdWords/v201309/AdParamService.php | 2978 +++ .../v201309/AdwordsUserListService.php | 3616 ++++ .../Api/Ads/AdWords/v201309/AlertService.php | 2460 +++ .../v201309/BiddingStrategyService.php | 4111 ++++ .../AdWords/v201309/BudgetOrderService.php | 4365 ++++ .../Api/Ads/AdWords/v201309/BudgetService.php | 3469 ++++ .../v201309/CampaignAdExtensionService.php | 4265 ++++ .../v201309/CampaignCriterionService.php | 5632 +++++ .../AdWords/v201309/CampaignFeedService.php | 3554 ++++ .../Ads/AdWords/v201309/CampaignService.php | 6258 ++++++ .../v201309/CampaignSharedSetService.php | 3437 ++++ .../AdWords/v201309/ConstantDataService.php | 3936 ++++ .../v201309/ConversionTrackerService.php | 3639 ++++ .../Ads/AdWords/v201309/CustomerService.php | 2122 ++ .../AdWords/v201309/CustomerSyncService.php | 2343 +++ .../Api/Ads/AdWords/v201309/DataService.php | 3276 +++ .../Ads/AdWords/v201309/ExperimentService.php | 3488 ++++ .../v201309/ExpressBusinessService.php | 3432 ++++ .../Ads/AdWords/v201309/FeedItemService.php | 3587 ++++ .../AdWords/v201309/FeedMappingService.php | 2963 +++ .../Api/Ads/AdWords/v201309/FeedService.php | 3189 +++ .../AdWords/v201309/GeoLocationService.php | 2168 ++ .../v201309/LocationCriterionService.php | 3553 ++++ .../v201309/ManagedCustomerService.php | 3778 ++++ .../Api/Ads/AdWords/v201309/MediaService.php | 3204 +++ .../Ads/AdWords/v201309/MutateJobService.php | 16670 +++++++++++++++ .../v201309/OfflineConversionFeedService.php | 2926 +++ .../Ads/AdWords/v201309/PromotionService.php | 5097 +++++ .../v201309/ReportDefinitionService.php | 2348 +++ .../v201309/SharedCriterionService.php | 3844 ++++ .../Ads/AdWords/v201309/SharedSetService.php | 3299 +++ .../AdWords/v201309/TargetingIdeaService.php | 8224 ++++++++ .../v201309/TrafficEstimatorService.php | 4858 +++++ .../Api/Ads/Common/Lib/AdsSoapClient.php | 607 + src/Google/Api/Ads/Common/Lib/AdsUser.php | 506 + .../Api/Ads/Common/Lib/ServiceException.php | 47 + .../Api/Ads/Common/Lib/SoapClientFactory.php | 231 + .../Ads/Common/Lib/ValidationException.php | 68 + src/Google/Api/Ads/Common/Lib/build.ini | 3 + .../Ads/Common/Util/ApiPropertiesUtils.php | 43 + src/Google/Api/Ads/Common/Util/AuthToken.php | 181 + .../Ads/Common/Util/AuthTokenException.php | 92 + .../Api/Ads/Common/Util/ChoiceUtils.php | 62 + src/Google/Api/Ads/Common/Util/CurlUtils.php | 142 + .../Api/Ads/Common/Util/DeprecationUtils.php | 100 + src/Google/Api/Ads/Common/Util/ErrorUtils.php | 91 + src/Google/Api/Ads/Common/Util/Logger.php | 242 + src/Google/Api/Ads/Common/Util/MapUtils.php | 113 + src/Google/Api/Ads/Common/Util/MediaUtils.php | 65 + .../Api/Ads/Common/Util/OAuth2Handler.php | 282 + src/Google/Api/Ads/Common/Util/OgnlUtils.php | 107 + .../Ads/Common/Util/SimpleOAuth2Handler.php | 125 + .../Ads/Common/Util/SoapRequestXmlFixer.php | 234 + src/Google/Api/Ads/Common/Util/UrlUtils.php | 79 + src/Google/Api/Ads/Common/Util/XmlUtils.php | 241 + src/Google/Api/Ads/Dfp/Lib/DfpSoapClient.php | 136 + .../Api/Ads/Dfp/Lib/DfpSoapClientFactory.php | 62 + src/Google/Api/Ads/Dfp/Lib/DfpUser.php | 368 + src/Google/Api/Ads/Dfp/Lib/api.properties | 285 + src/Google/Api/Ads/Dfp/Lib/build.ini | 2 + src/Google/Api/Ads/Dfp/Util/DateTimeUtils.php | 183 + src/Google/Api/Ads/Dfp/Util/Pql.php | 117 + src/Google/Api/Ads/Dfp/Util/ReportUtils.php | 90 + src/Google/Api/Ads/Dfp/Util/ServiceUtils.php | 135 + src/Google/Api/Ads/Dfp/auth.ini | 32 + src/Google/Api/Ads/Dfp/settings.ini | 58 + .../Dfp/v201208/AudienceSegmentService.php | 2453 +++ .../Api/Ads/Dfp/v201208/CompanyService.php | 3634 ++++ .../Api/Ads/Dfp/v201208/ContentService.php | 3008 +++ .../Api/Ads/Dfp/v201208/CreativeService.php | 8353 ++++++++ .../Ads/Dfp/v201208/CreativeSetService.php | 4129 ++++ .../Dfp/v201208/CreativeTemplateService.php | 3519 ++++ .../Ads/Dfp/v201208/CustomFieldService.php | 4233 ++++ .../Dfp/v201208/CustomTargetingService.php | 3896 ++++ .../Api/Ads/Dfp/v201208/ForecastService.php | 9388 +++++++++ .../Api/Ads/Dfp/v201208/InventoryService.php | 5678 +++++ .../Api/Ads/Dfp/v201208/LabelService.php | 3613 ++++ .../LineItemCreativeAssociationService.php | 5498 +++++ .../Api/Ads/Dfp/v201208/LineItemService.php | 10191 +++++++++ .../Api/Ads/Dfp/v201208/NetworkService.php | 2427 +++ .../Api/Ads/Dfp/v201208/OrderService.php | 5468 +++++ .../Api/Ads/Dfp/v201208/PlacementService.php | 3992 ++++ .../v201208/PublisherQueryLanguageService.php | 4021 ++++ .../Api/Ads/Dfp/v201208/ReportService.php | 3137 +++ .../Dfp/v201208/SuggestedAdUnitService.php | 3164 +++ .../Api/Ads/Dfp/v201208/TeamService.php | 3102 +++ .../Ads/Dfp/v201208/ThirdPartySlotService.php | 3023 +++ .../Api/Ads/Dfp/v201208/UserService.php | 3850 ++++ .../v201208/UserTeamAssociationService.php | 3172 +++ .../Dfp/v201211/AudienceSegmentService.php | 2453 +++ .../Api/Ads/Dfp/v201211/CompanyService.php | 3634 ++++ .../Api/Ads/Dfp/v201211/ContentService.php | 3048 +++ .../Api/Ads/Dfp/v201211/CreativeService.php | 8360 ++++++++ .../Ads/Dfp/v201211/CreativeSetService.php | 4136 ++++ .../Dfp/v201211/CreativeTemplateService.php | 3519 ++++ .../Dfp/v201211/CreativeWrapperService.php | 3727 ++++ .../Ads/Dfp/v201211/CustomFieldService.php | 4233 ++++ .../Dfp/v201211/CustomTargetingService.php | 3896 ++++ .../Api/Ads/Dfp/v201211/ForecastService.php | 9388 +++++++++ .../Api/Ads/Dfp/v201211/InventoryService.php | 5741 ++++++ .../Api/Ads/Dfp/v201211/LabelService.php | 3613 ++++ .../LineItemCreativeAssociationService.php | 5553 +++++ .../Api/Ads/Dfp/v201211/LineItemService.php | 10191 +++++++++ .../Api/Ads/Dfp/v201211/NetworkService.php | 2427 +++ .../Api/Ads/Dfp/v201211/OrderService.php | 5468 +++++ .../Api/Ads/Dfp/v201211/PlacementService.php | 3992 ++++ .../v201211/PublisherQueryLanguageService.php | 4021 ++++ .../Api/Ads/Dfp/v201211/ReportService.php | 3137 +++ .../Dfp/v201211/SuggestedAdUnitService.php | 3218 +++ .../Api/Ads/Dfp/v201211/TeamService.php | 3102 +++ .../Ads/Dfp/v201211/ThirdPartySlotService.php | 3023 +++ .../Api/Ads/Dfp/v201211/UserService.php | 3850 ++++ .../v201211/UserTeamAssociationService.php | 3172 +++ .../Ads/Dfp/v201302/ActivityGroupService.php | 3120 +++ .../Api/Ads/Dfp/v201302/ActivityService.php | 3158 +++ .../Api/Ads/Dfp/v201302/AdRuleService.php | 7229 +++++++ .../Dfp/v201302/AudienceSegmentService.php | 2453 +++ .../Api/Ads/Dfp/v201302/CompanyService.php | 3641 ++++ .../Api/Ads/Dfp/v201302/ContactService.php | 3286 +++ .../Ads/Dfp/v201302/ContentBundleService.php | 3324 +++ .../Api/Ads/Dfp/v201302/ContentService.php | 2956 +++ .../Api/Ads/Dfp/v201302/CreativeService.php | 8389 ++++++++ .../Ads/Dfp/v201302/CreativeSetService.php | 4136 ++++ .../Dfp/v201302/CreativeTemplateService.php | 3519 ++++ .../Dfp/v201302/CreativeWrapperService.php | 3727 ++++ .../Ads/Dfp/v201302/CustomFieldService.php | 4233 ++++ .../Dfp/v201302/CustomTargetingService.php | 3896 ++++ .../Api/Ads/Dfp/v201302/ForecastService.php | 9568 +++++++++ .../Api/Ads/Dfp/v201302/InventoryService.php | 5791 ++++++ .../Api/Ads/Dfp/v201302/LabelService.php | 3613 ++++ .../LineItemCreativeAssociationService.php | 5553 +++++ .../Api/Ads/Dfp/v201302/LineItemService.php | 10371 ++++++++++ .../Api/Ads/Dfp/v201302/NetworkService.php | 2427 +++ .../Api/Ads/Dfp/v201302/OrderService.php | 5482 +++++ .../Api/Ads/Dfp/v201302/PlacementService.php | 3992 ++++ .../v201302/PublisherQueryLanguageService.php | 4021 ++++ .../Api/Ads/Dfp/v201302/ReportService.php | 3137 +++ .../Dfp/v201302/SuggestedAdUnitService.php | 3218 +++ .../Api/Ads/Dfp/v201302/TeamService.php | 3102 +++ .../Ads/Dfp/v201302/ThirdPartySlotService.php | 3023 +++ .../Api/Ads/Dfp/v201302/UserService.php | 4024 ++++ .../v201302/UserTeamAssociationService.php | 3172 +++ .../Ads/Dfp/v201306/ActivityGroupService.php | 3162 +++ .../Api/Ads/Dfp/v201306/ActivityService.php | 3200 +++ .../Api/Ads/Dfp/v201306/AdRuleService.php | 7326 +++++++ .../Dfp/v201306/AudienceSegmentService.php | 2495 +++ .../Api/Ads/Dfp/v201306/BaseRateService.php | 3666 ++++ .../Api/Ads/Dfp/v201306/CompanyService.php | 3683 ++++ .../Api/Ads/Dfp/v201306/ContactService.php | 3328 +++ .../Ads/Dfp/v201306/ContentBundleService.php | 3366 +++ .../Api/Ads/Dfp/v201306/ContentService.php | 3019 +++ .../Api/Ads/Dfp/v201306/CreativeService.php | 8101 ++++++++ .../Ads/Dfp/v201306/CreativeSetService.php | 4256 ++++ .../Dfp/v201306/CreativeTemplateService.php | 3561 ++++ .../Dfp/v201306/CreativeWrapperService.php | 3769 ++++ .../Ads/Dfp/v201306/CustomFieldService.php | 4275 ++++ .../Dfp/v201306/CustomTargetingService.php | 3938 ++++ .../Api/Ads/Dfp/v201306/ForecastService.php | 9634 +++++++++ .../Api/Ads/Dfp/v201306/InventoryService.php | 5873 ++++++ .../Api/Ads/Dfp/v201306/LabelService.php | 3655 ++++ .../LineItemCreativeAssociationService.php | 5673 +++++ .../Api/Ads/Dfp/v201306/LineItemService.php | 10453 ++++++++++ .../Dfp/v201306/LineItemTemplateService.php | 5118 +++++ .../Api/Ads/Dfp/v201306/NetworkService.php | 2512 +++ .../Api/Ads/Dfp/v201306/OrderService.php | 5548 +++++ .../Api/Ads/Dfp/v201306/PlacementService.php | 4034 ++++ .../Api/Ads/Dfp/v201306/ProductService.php | 6033 ++++++ .../Dfp/v201306/ProductTemplateService.php | 6826 +++++++ .../Dfp/v201306/ProposalLineItemService.php | 8937 ++++++++ .../Api/Ads/Dfp/v201306/ProposalService.php | 5525 +++++ .../v201306/PublisherQueryLanguageService.php | 4063 ++++ .../v201306/RateCardCustomizationService.php | 3964 ++++ .../Api/Ads/Dfp/v201306/RateCardService.php | 4096 ++++ .../ReconciliationOrderReportService.php | 3097 +++ .../ReconciliationReportRowService.php | 3170 +++ .../v201306/ReconciliationReportService.php | 2987 +++ .../Api/Ads/Dfp/v201306/ReportService.php | 3186 +++ .../Dfp/v201306/SuggestedAdUnitService.php | 3260 +++ .../Api/Ads/Dfp/v201306/TeamService.php | 3144 +++ .../Api/Ads/Dfp/v201306/UserService.php | 4073 ++++ .../v201306/UserTeamAssociationService.php | 3214 +++ .../Ads/Dfp/v201306/WorkflowActionService.php | 2402 +++ .../Ads/Dfp/v201308/ActivityGroupService.php | 3162 +++ .../Api/Ads/Dfp/v201308/ActivityService.php | 3200 +++ .../Api/Ads/Dfp/v201308/AdRuleService.php | 7326 +++++++ .../Dfp/v201308/AudienceSegmentService.php | 4135 ++++ .../Api/Ads/Dfp/v201308/BaseRateService.php | 3666 ++++ .../Api/Ads/Dfp/v201308/CompanyService.php | 3683 ++++ .../Api/Ads/Dfp/v201308/ContactService.php | 3328 +++ .../Ads/Dfp/v201308/ContentBundleService.php | 3366 +++ .../Api/Ads/Dfp/v201308/ContentService.php | 3019 +++ .../Api/Ads/Dfp/v201308/CreativeService.php | 8108 ++++++++ .../Ads/Dfp/v201308/CreativeSetService.php | 4256 ++++ .../Dfp/v201308/CreativeTemplateService.php | 3561 ++++ .../Dfp/v201308/CreativeWrapperService.php | 3769 ++++ .../Ads/Dfp/v201308/CustomFieldService.php | 4275 ++++ .../Dfp/v201308/CustomTargetingService.php | 3938 ++++ .../Api/Ads/Dfp/v201308/ForecastService.php | 9702 +++++++++ .../Api/Ads/Dfp/v201308/InventoryService.php | 5873 ++++++ .../Api/Ads/Dfp/v201308/LabelService.php | 3655 ++++ .../LineItemCreativeAssociationService.php | 5687 ++++++ .../Api/Ads/Dfp/v201308/LineItemService.php | 10467 ++++++++++ .../Dfp/v201308/LineItemTemplateService.php | 5118 +++++ .../Api/Ads/Dfp/v201308/NetworkService.php | 2512 +++ .../Api/Ads/Dfp/v201308/OrderService.php | 5548 +++++ .../Api/Ads/Dfp/v201308/PlacementService.php | 4034 ++++ .../Api/Ads/Dfp/v201308/ProductService.php | 6033 ++++++ .../Dfp/v201308/ProductTemplateService.php | 6826 +++++++ .../Dfp/v201308/ProposalLineItemService.php | 8913 ++++++++ .../Api/Ads/Dfp/v201308/ProposalService.php | 5509 +++++ .../v201308/PublisherQueryLanguageService.php | 4063 ++++ .../v201308/RateCardCustomizationService.php | 3964 ++++ .../Api/Ads/Dfp/v201308/RateCardService.php | 4096 ++++ .../ReconciliationOrderReportService.php | 3097 +++ .../ReconciliationReportRowService.php | 3170 +++ .../v201308/ReconciliationReportService.php | 2987 +++ .../Api/Ads/Dfp/v201308/ReportService.php | 3186 +++ .../Dfp/v201308/SuggestedAdUnitService.php | 3260 +++ .../Api/Ads/Dfp/v201308/TeamService.php | 3144 +++ .../Api/Ads/Dfp/v201308/UserService.php | 4073 ++++ .../v201308/UserTeamAssociationService.php | 3214 +++ .../Ads/Dfp/v201308/WorkflowActionService.php | 2402 +++ .../Ads/Dfp/v201311/ActivityGroupService.php | 3204 +++ .../Api/Ads/Dfp/v201311/ActivityService.php | 3242 +++ .../Api/Ads/Dfp/v201311/AdRuleService.php | 7269 +++++++ .../Dfp/v201311/AudienceSegmentService.php | 4177 ++++ .../Api/Ads/Dfp/v201311/BaseRateService.php | 3708 ++++ .../Api/Ads/Dfp/v201311/CompanyService.php | 3725 ++++ .../Api/Ads/Dfp/v201311/ContactService.php | 3370 +++ .../Ads/Dfp/v201311/ContentBundleService.php | 3408 +++ .../ContentMetadataKeyHierarchyService.php | 2800 +++ .../Api/Ads/Dfp/v201311/ContentService.php | 3068 +++ .../Api/Ads/Dfp/v201311/CreativeService.php | 8198 ++++++++ .../Ads/Dfp/v201311/CreativeSetService.php | 4298 ++++ .../Dfp/v201311/CreativeTemplateService.php | 3610 ++++ .../Dfp/v201311/CreativeWrapperService.php | 3811 ++++ .../Ads/Dfp/v201311/CustomFieldService.php | 4317 ++++ .../Dfp/v201311/CustomTargetingService.php | 3980 ++++ .../Ads/Dfp/v201311/ExchangeRateService.php | 3212 +++ .../Api/Ads/Dfp/v201311/ForecastService.php | 9661 +++++++++ .../Api/Ads/Dfp/v201311/InventoryService.php | 5922 ++++++ .../Api/Ads/Dfp/v201311/LabelService.php | 3697 ++++ .../LineItemCreativeAssociationService.php | 5729 ++++++ .../Api/Ads/Dfp/v201311/LineItemService.php | 10426 ++++++++++ .../Dfp/v201311/LineItemTemplateService.php | 5238 +++++ .../Api/Ads/Dfp/v201311/NetworkService.php | 2590 +++ .../Api/Ads/Dfp/v201311/OrderService.php | 5590 +++++ .../Api/Ads/Dfp/v201311/PlacementService.php | 4076 ++++ .../Api/Ads/Dfp/v201311/ProductService.php | 5829 ++++++ .../Dfp/v201311/ProductTemplateService.php | 6622 ++++++ .../Dfp/v201311/ProposalLineItemService.php | 8817 ++++++++ .../Api/Ads/Dfp/v201311/ProposalService.php | 5530 +++++ .../v201311/PublisherQueryLanguageService.php | 4183 ++++ .../v201311/RateCardCustomizationService.php | 3998 ++++ .../Api/Ads/Dfp/v201311/RateCardService.php | 4152 ++++ .../ReconciliationOrderReportService.php | 3139 +++ .../ReconciliationReportRowService.php | 3212 +++ .../v201311/ReconciliationReportService.php | 3029 +++ .../Api/Ads/Dfp/v201311/ReportService.php | 3228 +++ .../Dfp/v201311/SuggestedAdUnitService.php | 3309 +++ .../Api/Ads/Dfp/v201311/TeamService.php | 3186 +++ .../Api/Ads/Dfp/v201311/UserService.php | 4115 ++++ .../v201311/UserTeamAssociationService.php | 3256 +++ .../Dfp/v201311/WorkflowRequestService.php | 2935 +++ .../Ads/Dfp/v201403/ActivityGroupService.php | 2878 +++ .../Api/Ads/Dfp/v201403/ActivityService.php | 2916 +++ .../Api/Ads/Dfp/v201403/AdRuleService.php | 6909 +++++++ .../Dfp/v201403/AudienceSegmentService.php | 4133 ++++ .../Api/Ads/Dfp/v201403/BaseRateService.php | 3423 ++++ .../Api/Ads/Dfp/v201403/CompanyService.php | 3387 +++ .../Api/Ads/Dfp/v201403/ContactService.php | 3032 +++ .../Ads/Dfp/v201403/ContentBundleService.php | 3068 +++ .../ContentMetadataKeyHierarchyService.php | 3289 +++ .../Api/Ads/Dfp/v201403/ContentService.php | 3024 +++ .../Api/Ads/Dfp/v201403/CreativeService.php | 7856 +++++++ .../Ads/Dfp/v201403/CreativeSetService.php | 4160 ++++ .../Dfp/v201403/CreativeTemplateService.php | 3479 ++++ .../Dfp/v201403/CreativeWrapperService.php | 3459 ++++ .../Ads/Dfp/v201403/CustomFieldService.php | 3775 ++++ .../Dfp/v201403/CustomTargetingService.php | 3936 ++++ .../Ads/Dfp/v201403/ExchangeRateService.php | 3072 +++ .../Api/Ads/Dfp/v201403/ForecastService.php | 9617 +++++++++ .../Api/Ads/Dfp/v201403/InventoryService.php | 5584 +++++ .../Api/Ads/Dfp/v201403/LabelService.php | 3359 +++ .../LineItemCreativeAssociationService.php | 5374 +++++ .../Api/Ads/Dfp/v201403/LineItemService.php | 10072 +++++++++ .../Dfp/v201403/LineItemTemplateService.php | 5194 +++++ .../Dfp/v201403/LiveStreamEventService.php | 3192 +++ .../Api/Ads/Dfp/v201403/NetworkService.php | 2546 +++ .../Api/Ads/Dfp/v201403/OrderService.php | 5250 +++++ .../Api/Ads/Dfp/v201403/PlacementService.php | 3731 ++++ .../Api/Ads/Dfp/v201403/ProductService.php | 5970 ++++++ .../Dfp/v201403/ProductTemplateService.php | 6646 ++++++ .../Dfp/v201403/ProposalLineItemService.php | 8447 ++++++++ .../Api/Ads/Dfp/v201403/ProposalService.php | 5215 +++++ .../v201403/PublisherQueryLanguageService.php | 4139 ++++ .../RateCardCustomizationGroupService.php | 3130 +++ .../v201403/RateCardCustomizationService.php | 3668 ++++ .../Api/Ads/Dfp/v201403/RateCardService.php | 3591 ++++ .../ReconciliationOrderReportService.php | 2999 +++ .../ReconciliationReportRowService.php | 3113 +++ .../v201403/ReconciliationReportService.php | 2797 +++ .../Api/Ads/Dfp/v201403/ReportService.php | 3191 +++ .../Dfp/v201403/SuggestedAdUnitService.php | 3173 +++ .../Api/Ads/Dfp/v201403/TeamService.php | 2850 +++ .../Api/Ads/Dfp/v201403/UserService.php | 3777 ++++ .../v201403/UserTeamAssociationService.php | 2905 +++ .../Dfp/v201403/WorkflowRequestService.php | 2891 +++ src/README.md | 3 + .../Ads/AdWords/AdWordsIntegrationTest.php | 238 + .../Ads/AdWords/CampaignService-response.xml | 1 + .../Api/Ads/AdWords/Lib/AdWordsUserTest.php | 125 + tests/Google/Api/Ads/AdWords/auth.ini | 9 + .../Api/Ads/Common/Lib/AdsSoapClientTest.php | 112 + .../Google/Api/Ads/Common/Lib/AdsUserTest.php | 441 + .../Api/Ads/Common/Testing/AssetHelper.php | 100 + .../Api/Ads/Common/Util/AuthTokenTest.php | 110 + .../Api/Ads/Common/Util/ChoiceUtilsTest.php | 66 + .../Ads/Common/Util/DeprecationUtilsTest.php | 103 + .../Api/Ads/Common/Util/ErrorUtilsTest.php | 125 + .../Api/Ads/Common/Util/MapUtilsTest.php | 184 + .../Api/Ads/Common/Util/OAuth2HandlerTest.php | 365 + .../Api/Ads/Common/Util/OgnlUtilsTest.php | 131 + .../Common/Util/SimpleOAuth2HandlerTest.php | 218 + .../Common/Util/SoapRequestXmlFixerTest.php | 195 + .../Api/Ads/Common/Util/UrlUtilsTest.php | 133 + .../Api/Ads/Common/Util/XmlUtilsTest.php | 254 + .../Api/Ads/Dfp/Util/DateTimeUtilsTest.php | 217 + tests/Google/Api/Ads/Dfp/Util/PqlTest.php | 166 + .../Api/Ads/Dfp/Util/ReportUtilsTest.php | 62 + 1486 files changed, 1522677 insertions(+) create mode 100755 ChangeLog.md create mode 100755 LICENSE create mode 100755 README.md create mode 100755 build_lib/WSDLInterpreter/TemplateHelper.php create mode 100755 build_lib/WSDLInterpreter/WSDLInterpreter.php create mode 100755 build_lib/WSDLInterpreter/WsdlElement/Class.php create mode 100755 build_lib/WSDLInterpreter/WsdlElement/Factory.php create mode 100755 build_lib/WSDLInterpreter/WsdlElement/Function.php create mode 100755 build_lib/WSDLInterpreter/WsdlElement/Named.php create mode 100755 build_lib/WSDLInterpreter/WsdlElement/NamedClass.php create mode 100755 build_lib/WSDLInterpreter/WsdlElement/Property.php create mode 100755 build_lib/WSDLInterpreter/WsdlElement/Service.php create mode 100755 build_lib/WSDLInterpreter/WsdlElement/Utils.php create mode 100755 build_lib/WSDLInterpreter/file_header.tmpl create mode 100755 build_lib/WSDLInterpreter/templates/file_header.phpt create mode 100755 build_lib/WSDLInterpreter/wsdl2php.xsl create mode 100755 build_lib/Wsdl2PhpTask.php create mode 100755 build_lib/build.xml create mode 100755 examples/AdWords/Auth/GetRefreshToken.php create mode 100755 examples/AdWords/Auth/init.php create mode 100755 examples/AdWords/README.md create mode 100755 examples/AdWords/v201306/AccountManagement/CreateAccount.php create mode 100755 examples/AdWords/v201306/AccountManagement/GetAccountAlerts.php create mode 100755 examples/AdWords/v201306/AccountManagement/GetAccountChanges.php create mode 100755 examples/AdWords/v201306/AccountManagement/GetAccountHierarchy.php create mode 100755 examples/AdWords/v201306/AdvancedOperations/AddAdGroupBidModifier.php create mode 100755 examples/AdWords/v201306/AdvancedOperations/AddClickToDownloadAd.php create mode 100755 examples/AdWords/v201306/AdvancedOperations/AddSitelinks.php create mode 100755 examples/AdWords/v201306/AdvancedOperations/CreateAndAttachSharedKeywordSet.php create mode 100755 examples/AdWords/v201306/AdvancedOperations/FindAndRemoveCriteriaFromSharedSet.php create mode 100755 examples/AdWords/v201306/AdvancedOperations/GetAdGroupBidModifiers.php create mode 100755 examples/AdWords/v201306/BasicOperations/AddAdGroupDemographicCriteria.php create mode 100755 examples/AdWords/v201306/BasicOperations/AddAdGroups.php create mode 100755 examples/AdWords/v201306/BasicOperations/AddCampaigns.php create mode 100755 examples/AdWords/v201306/BasicOperations/AddKeywords.php create mode 100755 examples/AdWords/v201306/BasicOperations/AddTextAds.php create mode 100755 examples/AdWords/v201306/BasicOperations/DeleteAd.php create mode 100755 examples/AdWords/v201306/BasicOperations/DeleteAdGroup.php create mode 100755 examples/AdWords/v201306/BasicOperations/DeleteCampaign.php create mode 100755 examples/AdWords/v201306/BasicOperations/DeleteKeyword.php create mode 100755 examples/AdWords/v201306/BasicOperations/GetAdGroups.php create mode 100755 examples/AdWords/v201306/BasicOperations/GetCampaigns.php create mode 100755 examples/AdWords/v201306/BasicOperations/GetCampaignsWithAwql.php create mode 100755 examples/AdWords/v201306/BasicOperations/GetKeywords.php create mode 100755 examples/AdWords/v201306/BasicOperations/GetTextAds.php create mode 100755 examples/AdWords/v201306/BasicOperations/PauseAd.php create mode 100755 examples/AdWords/v201306/BasicOperations/UpdateAdGroup.php create mode 100755 examples/AdWords/v201306/BasicOperations/UpdateCampaign.php create mode 100755 examples/AdWords/v201306/BasicOperations/UpdateKeyword.php create mode 100755 examples/AdWords/v201306/CampaignManagement/AddExperiment.php create mode 100755 examples/AdWords/v201306/CampaignManagement/AddKeywordsInBulk.php create mode 100755 examples/AdWords/v201306/CampaignManagement/AddLocationExtension.php create mode 100755 examples/AdWords/v201306/CampaignManagement/AddLocationExtensionOverride.php create mode 100755 examples/AdWords/v201306/CampaignManagement/GetAllDisapprovedAds.php create mode 100755 examples/AdWords/v201306/CampaignManagement/GetAllDisapprovedAdsWithAwql.php create mode 100755 examples/AdWords/v201306/CampaignManagement/PromoteExperiment.php create mode 100755 examples/AdWords/v201306/CampaignManagement/SetAdParameters.php create mode 100755 examples/AdWords/v201306/CampaignManagement/SetBidModifier.php create mode 100755 examples/AdWords/v201306/CampaignManagement/ValidateTextAd.php create mode 100755 examples/AdWords/v201306/ErrorHandling/HandlePartialFailures.php create mode 100755 examples/AdWords/v201306/ErrorHandling/HandlePolicyViolationError.php create mode 100755 examples/AdWords/v201306/ErrorHandling/HandleTwoFactorAuthorizationError.php create mode 100755 examples/AdWords/v201306/Migration/SetCampaignEnhanced.php create mode 100755 examples/AdWords/v201306/Migration/UpgradeLegacySitelinks.php create mode 100755 examples/AdWords/v201306/Misc/GetAllImagesAndVideos.php create mode 100755 examples/AdWords/v201306/Misc/UploadImage.php create mode 100755 examples/AdWords/v201306/Optimization/EstimateKeywordTraffic.php create mode 100755 examples/AdWords/v201306/Optimization/GetKeywordBidSimulations.php create mode 100755 examples/AdWords/v201306/Optimization/GetKeywordIdeas.php create mode 100755 examples/AdWords/v201306/Optimization/GetPlacementIdeas.php create mode 100755 examples/AdWords/v201306/Remarketing/AddAudience.php create mode 100755 examples/AdWords/v201306/Remarketing/AddConversionTracker.php create mode 100755 examples/AdWords/v201306/Reporting/DownloadCriteriaReport.php create mode 100755 examples/AdWords/v201306/Reporting/DownloadCriteriaReportWithAwql.php create mode 100755 examples/AdWords/v201306/Reporting/GetCampaignStats.php create mode 100755 examples/AdWords/v201306/Reporting/GetReportFields.php create mode 100755 examples/AdWords/v201306/Targeting/AddCampaignTargetingCriteria.php create mode 100755 examples/AdWords/v201306/Targeting/GetCampaignTargetingCriteria.php create mode 100755 examples/AdWords/v201306/Targeting/GetTargetableLanguagesAndCarriers.php create mode 100755 examples/AdWords/v201306/Targeting/LookupLocation.php create mode 100755 examples/AdWords/v201306/init.php create mode 100755 examples/AdWords/v201309/AccountManagement/CreateAccount.php create mode 100755 examples/AdWords/v201309/AccountManagement/GetAccountAlerts.php create mode 100755 examples/AdWords/v201309/AccountManagement/GetAccountChanges.php create mode 100755 examples/AdWords/v201309/AccountManagement/GetAccountHierarchy.php create mode 100755 examples/AdWords/v201309/AdvancedOperations/AddAdGroupBidModifier.php create mode 100755 examples/AdWords/v201309/AdvancedOperations/AddClickToDownloadAd.php create mode 100755 examples/AdWords/v201309/AdvancedOperations/AddSitelinks.php create mode 100755 examples/AdWords/v201309/AdvancedOperations/CreateAndAttachSharedKeywordSet.php create mode 100755 examples/AdWords/v201309/AdvancedOperations/FindAndRemoveCriteriaFromSharedSet.php create mode 100755 examples/AdWords/v201309/AdvancedOperations/GetAdGroupBidModifiers.php create mode 100755 examples/AdWords/v201309/AdvancedOperations/UpdateSitelinks.php create mode 100755 examples/AdWords/v201309/AdvancedOperations/UploadOfflineConversions.php create mode 100755 examples/AdWords/v201309/AdvancedOperations/UseSharedBiddingStrategy.php create mode 100755 examples/AdWords/v201309/BasicOperations/AddAdGroupDemographicCriteria.php create mode 100755 examples/AdWords/v201309/BasicOperations/AddAdGroups.php create mode 100755 examples/AdWords/v201309/BasicOperations/AddCampaigns.php create mode 100755 examples/AdWords/v201309/BasicOperations/AddKeywords.php create mode 100755 examples/AdWords/v201309/BasicOperations/AddTextAds.php create mode 100755 examples/AdWords/v201309/BasicOperations/DeleteAd.php create mode 100755 examples/AdWords/v201309/BasicOperations/DeleteAdGroup.php create mode 100755 examples/AdWords/v201309/BasicOperations/DeleteCampaign.php create mode 100755 examples/AdWords/v201309/BasicOperations/DeleteKeyword.php create mode 100755 examples/AdWords/v201309/BasicOperations/GetAdGroups.php create mode 100755 examples/AdWords/v201309/BasicOperations/GetCampaigns.php create mode 100755 examples/AdWords/v201309/BasicOperations/GetCampaignsWithAwql.php create mode 100755 examples/AdWords/v201309/BasicOperations/GetKeywords.php create mode 100755 examples/AdWords/v201309/BasicOperations/GetTextAds.php create mode 100755 examples/AdWords/v201309/BasicOperations/PauseAd.php create mode 100755 examples/AdWords/v201309/BasicOperations/UpdateAdGroup.php create mode 100755 examples/AdWords/v201309/BasicOperations/UpdateCampaign.php create mode 100755 examples/AdWords/v201309/BasicOperations/UpdateKeyword.php create mode 100755 examples/AdWords/v201309/CampaignManagement/AddExperiment.php create mode 100755 examples/AdWords/v201309/CampaignManagement/AddKeywordsInBulk.php create mode 100755 examples/AdWords/v201309/CampaignManagement/AddLocationExtension.php create mode 100755 examples/AdWords/v201309/CampaignManagement/GetAllDisapprovedAds.php create mode 100755 examples/AdWords/v201309/CampaignManagement/GetAllDisapprovedAdsWithAwql.php create mode 100755 examples/AdWords/v201309/CampaignManagement/PromoteExperiment.php create mode 100755 examples/AdWords/v201309/CampaignManagement/SetAdParameters.php create mode 100755 examples/AdWords/v201309/CampaignManagement/SetBidModifier.php create mode 100755 examples/AdWords/v201309/CampaignManagement/ValidateTextAd.php create mode 100755 examples/AdWords/v201309/ErrorHandling/HandlePartialFailures.php create mode 100755 examples/AdWords/v201309/ErrorHandling/HandlePolicyViolationError.php create mode 100755 examples/AdWords/v201309/ErrorHandling/HandleTwoFactorAuthorizationError.php create mode 100755 examples/AdWords/v201309/Express/AddExpressBusinesses.php create mode 100755 examples/AdWords/v201309/Express/AddPromotion.php create mode 100755 examples/AdWords/v201309/Express/GetExpressBusinesses.php create mode 100755 examples/AdWords/v201309/Express/GetPromotions.php create mode 100755 examples/AdWords/v201309/Express/UpdateExpressBusiness.php create mode 100755 examples/AdWords/v201309/Express/UpdatePromotion.php create mode 100755 examples/AdWords/v201309/Misc/GetAllImagesAndVideos.php create mode 100755 examples/AdWords/v201309/Misc/UploadImage.php create mode 100755 examples/AdWords/v201309/Optimization/EstimateKeywordTraffic.php create mode 100755 examples/AdWords/v201309/Optimization/GetKeywordBidSimulations.php create mode 100755 examples/AdWords/v201309/Optimization/GetKeywordIdeas.php create mode 100755 examples/AdWords/v201309/Optimization/GetPlacementIdeas.php create mode 100755 examples/AdWords/v201309/Remarketing/AddAudience.php create mode 100755 examples/AdWords/v201309/Remarketing/AddConversionTracker.php create mode 100755 examples/AdWords/v201309/Reporting/DownloadCriteriaReport.php create mode 100755 examples/AdWords/v201309/Reporting/DownloadCriteriaReportWithAwql.php create mode 100755 examples/AdWords/v201309/Reporting/GetReportFields.php create mode 100755 examples/AdWords/v201309/Targeting/AddCampaignTargetingCriteria.php create mode 100755 examples/AdWords/v201309/Targeting/GetCampaignTargetingCriteria.php create mode 100755 examples/AdWords/v201309/Targeting/GetTargetableLanguagesAndCarriers.php create mode 100755 examples/AdWords/v201309/Targeting/LookupLocation.php create mode 100755 examples/AdWords/v201309/init.php create mode 100755 examples/Adx/README.md create mode 100755 examples/Adx/v201306/BasicOperations/AddAdGroups.php create mode 100755 examples/Adx/v201306/BasicOperations/AddCampaigns.php create mode 100755 examples/Adx/v201306/BasicOperations/AddPlacements.php create mode 100755 examples/Adx/v201306/BasicOperations/AddThirdPartyRedirectAds.php create mode 100755 examples/Adx/v201306/BasicOperations/DeletePlacement.php create mode 100755 examples/Adx/v201306/BasicOperations/GetPlacements.php create mode 100755 examples/Adx/v201306/BasicOperations/GetThirdPartyRedirectAds.php create mode 100755 examples/Adx/v201306/BasicOperations/UpdateAdGroup.php create mode 100755 examples/Adx/v201306/BasicOperations/UpdatePlacement.php create mode 100755 examples/Adx/v201306/CampaignManagement/AddPlacementsInBulk.php create mode 100755 examples/Adx/v201306/ErrorHandling/HandlePartialFailures.php create mode 100755 examples/Adx/v201306/init.php create mode 100755 examples/Common/ExampleUtils.php create mode 100755 examples/Common/HandleCaptcha.php create mode 100755 examples/Dfp/Auth/GetRefreshToken.php create mode 100755 examples/Dfp/README.md create mode 100755 examples/Dfp/v201208/AudienceSegmentService/GetAllAudienceSegmentsExample.php create mode 100755 examples/Dfp/v201208/CompanyService/CreateCompaniesExample.php create mode 100755 examples/Dfp/v201208/CompanyService/GetAllCompaniesExample.php create mode 100755 examples/Dfp/v201208/CompanyService/GetCompaniesByStatementExample.php create mode 100755 examples/Dfp/v201208/CompanyService/GetCompanyExample.php create mode 100755 examples/Dfp/v201208/CompanyService/UpdateCompaniesExample.php create mode 100755 examples/Dfp/v201208/ContentService/GetAllContentExample.php create mode 100755 examples/Dfp/v201208/ContentService/GetContentByCategoryExample.php create mode 100755 examples/Dfp/v201208/CreativeService/AssociateCreativeSetToLineItemExample.php create mode 100755 examples/Dfp/v201208/CreativeService/CreateCreativeFromTemplateExample.php create mode 100755 examples/Dfp/v201208/CreativeService/CreateCreativesExample.php create mode 100755 examples/Dfp/v201208/CreativeService/CreateCustomCreativeExample.php create mode 100755 examples/Dfp/v201208/CreativeService/GetAllCreativesExample.php create mode 100755 examples/Dfp/v201208/CreativeService/GetCreativeExample.php create mode 100755 examples/Dfp/v201208/CreativeService/GetCreativesByStatementExample.php create mode 100755 examples/Dfp/v201208/CreativeService/UpdateCreativesExample.php create mode 100755 examples/Dfp/v201208/CreativeSetService/CreateCreativeSetExample.php create mode 100755 examples/Dfp/v201208/CreativeSetService/GetAllCreativesSetsExample.php create mode 100755 examples/Dfp/v201208/CreativeSetService/GetCreativeSetsByStatementExample.php create mode 100755 examples/Dfp/v201208/CreativeSetService/UpdateCreativeSetExample.php create mode 100755 examples/Dfp/v201208/CreativeTemplateService/GetAllCreativeTemplatesExample.php create mode 100755 examples/Dfp/v201208/CreativeTemplateService/GetCreativeTemplateExample.php create mode 100755 examples/Dfp/v201208/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php create mode 100755 examples/Dfp/v201208/CustomFieldService/CreateCustomFieldOptions.php create mode 100755 examples/Dfp/v201208/CustomFieldService/CreateCustomFields.php create mode 100755 examples/Dfp/v201208/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php create mode 100755 examples/Dfp/v201208/CustomFieldService/GetAllCustomFieldsExample.php create mode 100755 examples/Dfp/v201208/CustomFieldService/SetLineItemCustomFieldValue.php create mode 100755 examples/Dfp/v201208/CustomFieldService/UpdateCustomFieldExample.php create mode 100755 examples/Dfp/v201208/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php create mode 100755 examples/Dfp/v201208/CustomTargetingService/DeleteCustomTargetingKeysExample.php create mode 100755 examples/Dfp/v201208/CustomTargetingService/DeleteCustomTargetingValuesExample.php create mode 100755 examples/Dfp/v201208/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php create mode 100755 examples/Dfp/v201208/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php create mode 100755 examples/Dfp/v201208/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php create mode 100755 examples/Dfp/v201208/CustomTargetingService/UpdateCustomTargetingKeysExample.php create mode 100755 examples/Dfp/v201208/CustomTargetingService/UpdateCustomTargetingValuesExample.php create mode 100755 examples/Dfp/v201208/ForecastService/GetForecastByIdExample.php create mode 100755 examples/Dfp/v201208/ForecastService/GetForecastExample.php create mode 100755 examples/Dfp/v201208/InventoryService/CreateAdUnitsExample.php create mode 100755 examples/Dfp/v201208/InventoryService/CreateMobileAdUnitExample.php create mode 100755 examples/Dfp/v201208/InventoryService/CreateVideoAdUnitExample.php create mode 100755 examples/Dfp/v201208/InventoryService/DeactivateAdUnitsExample.php create mode 100755 examples/Dfp/v201208/InventoryService/GetAdUnitExample.php create mode 100755 examples/Dfp/v201208/InventoryService/GetAdUnitSizesExample.php create mode 100755 examples/Dfp/v201208/InventoryService/GetAdUnitsByStatementExample.php create mode 100755 examples/Dfp/v201208/InventoryService/GetAllAdUnitsExample.php create mode 100755 examples/Dfp/v201208/InventoryService/GetInventoryTreeExample.php create mode 100755 examples/Dfp/v201208/InventoryService/UpdateAdUnitsExample.php create mode 100755 examples/Dfp/v201208/LabelService/CreateLabelsExample.php create mode 100755 examples/Dfp/v201208/LabelService/DeactivateLabelsExample.php create mode 100755 examples/Dfp/v201208/LabelService/GetAllLabelsExample.php create mode 100755 examples/Dfp/v201208/LabelService/GetLabelExample.php create mode 100755 examples/Dfp/v201208/LabelService/GetLabelsByStatementExample.php create mode 100755 examples/Dfp/v201208/LabelService/UpdateLabelsExample.php create mode 100755 examples/Dfp/v201208/LicaService/CreateLicasExample.php create mode 100755 examples/Dfp/v201208/LicaService/DeactivateLicasExample.php create mode 100755 examples/Dfp/v201208/LicaService/GetAllLicasExample.php create mode 100755 examples/Dfp/v201208/LicaService/GetLicaExample.php create mode 100755 examples/Dfp/v201208/LicaService/GetLicasByStatementExample.php create mode 100755 examples/Dfp/v201208/LicaService/UpdateLicasExample.php create mode 100755 examples/Dfp/v201208/LineItemService/ActivateLineItemsExample.php create mode 100755 examples/Dfp/v201208/LineItemService/CreateLineItemsExample.php create mode 100755 examples/Dfp/v201208/LineItemService/CreateMobileLineItemExample.php create mode 100755 examples/Dfp/v201208/LineItemService/CreateVideoLineItemExample.php create mode 100755 examples/Dfp/v201208/LineItemService/GetAllLineItemsExample.php create mode 100755 examples/Dfp/v201208/LineItemService/GetLineItemExample.php create mode 100755 examples/Dfp/v201208/LineItemService/GetLineItemsByStatementExample.php create mode 100755 examples/Dfp/v201208/LineItemService/GetRecentlyUpdatedLineItems.php create mode 100755 examples/Dfp/v201208/LineItemService/TargetCustomCriteriaExample.php create mode 100755 examples/Dfp/v201208/LineItemService/UpdateLineItemsExample.php create mode 100755 examples/Dfp/v201208/NetworkService/GetAllNetworksExample.php create mode 100755 examples/Dfp/v201208/NetworkService/GetCurrentNetworkExample.php create mode 100755 examples/Dfp/v201208/NetworkService/MakeTestNetworkExample.php create mode 100755 examples/Dfp/v201208/OrderService/ApproveOrdersExample.php create mode 100755 examples/Dfp/v201208/OrderService/CreateOrdersExample.php create mode 100755 examples/Dfp/v201208/OrderService/GetAllOrdersExample.php create mode 100755 examples/Dfp/v201208/OrderService/GetOrderExample.php create mode 100755 examples/Dfp/v201208/OrderService/GetOrdersByStatementExample.php create mode 100755 examples/Dfp/v201208/OrderService/UpdateOrdersExample.php create mode 100755 examples/Dfp/v201208/PlacementService/CreatePlacementsExample.php create mode 100755 examples/Dfp/v201208/PlacementService/DeactivatePlacementsExample.php create mode 100755 examples/Dfp/v201208/PlacementService/GetAllPlacementsExample.php create mode 100755 examples/Dfp/v201208/PlacementService/GetPlacementExample.php create mode 100755 examples/Dfp/v201208/PlacementService/GetPlacementsByStatementExample.php create mode 100755 examples/Dfp/v201208/PlacementService/UpdatePlacementsExample.php create mode 100755 examples/Dfp/v201208/PublisherQueryLanguageService/GetAllCitiesExample.php create mode 100755 examples/Dfp/v201208/ReportService/DownloadReportExample.php create mode 100755 examples/Dfp/v201208/ReportService/RunDeliveryReportExample.php create mode 100755 examples/Dfp/v201208/ReportService/RunInventoryReportExample.php create mode 100755 examples/Dfp/v201208/ReportService/RunMergedDeliveryReportExample.php create mode 100755 examples/Dfp/v201208/ReportService/RunReportWithCustomFields.php create mode 100755 examples/Dfp/v201208/ReportService/RunSalesReportExample.php create mode 100755 examples/Dfp/v201208/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php create mode 100755 examples/Dfp/v201208/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php create mode 100755 examples/Dfp/v201208/SuggestedAdUnitService/GetSuggestedAdUnitExample.php create mode 100755 examples/Dfp/v201208/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php create mode 100755 examples/Dfp/v201208/TeamService/CreateTeamsExample.php create mode 100755 examples/Dfp/v201208/TeamService/GetAllTeamsExample.php create mode 100755 examples/Dfp/v201208/TeamService/GetTeamExample.php create mode 100755 examples/Dfp/v201208/TeamService/GetTeamsByStatementExample.php create mode 100755 examples/Dfp/v201208/TeamService/UpdateTeamsExample.php create mode 100755 examples/Dfp/v201208/ThirdPartySlotService/ArchiveThirdPartySlotsExample.php create mode 100755 examples/Dfp/v201208/ThirdPartySlotService/CreateThirdPartySlotExample.php create mode 100755 examples/Dfp/v201208/ThirdPartySlotService/GetAllThirdPartySlotsExample.php create mode 100755 examples/Dfp/v201208/ThirdPartySlotService/GetThirdPartySlotsByStatementExample.php create mode 100755 examples/Dfp/v201208/ThirdPartySlotService/UpdateThirdPartySlotExample.php create mode 100755 examples/Dfp/v201208/UserService/CreateUsersExample.php create mode 100755 examples/Dfp/v201208/UserService/DeactivateUserExample.php create mode 100755 examples/Dfp/v201208/UserService/GetAllRolesExample.php create mode 100755 examples/Dfp/v201208/UserService/GetAllUsersExample.php create mode 100755 examples/Dfp/v201208/UserService/GetCurrentUserExample.php create mode 100755 examples/Dfp/v201208/UserService/GetUserExample.php create mode 100755 examples/Dfp/v201208/UserService/GetUsersByStatementExample.php create mode 100755 examples/Dfp/v201208/UserService/UpdateUsersExample.php create mode 100755 examples/Dfp/v201208/UserTeamAssociationService/CreateUserTeamAssociationsExample.php create mode 100755 examples/Dfp/v201208/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php create mode 100755 examples/Dfp/v201208/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php create mode 100755 examples/Dfp/v201208/UserTeamAssociationService/GetUserTeamAssociationExample.php create mode 100755 examples/Dfp/v201208/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php create mode 100755 examples/Dfp/v201208/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php create mode 100755 examples/Dfp/v201211/AudienceSegmentService/GetAllAudienceSegmentsExample.php create mode 100755 examples/Dfp/v201211/CompanyService/CreateCompaniesExample.php create mode 100755 examples/Dfp/v201211/CompanyService/GetAllCompaniesExample.php create mode 100755 examples/Dfp/v201211/CompanyService/GetCompaniesByStatementExample.php create mode 100755 examples/Dfp/v201211/CompanyService/GetCompanyExample.php create mode 100755 examples/Dfp/v201211/CompanyService/UpdateCompaniesExample.php create mode 100755 examples/Dfp/v201211/ContentService/GetAllContentExample.php create mode 100755 examples/Dfp/v201211/ContentService/GetContentByCategoryExample.php create mode 100755 examples/Dfp/v201211/CreativeService/AssociateCreativeSetToLineItemExample.php create mode 100755 examples/Dfp/v201211/CreativeService/CreateCreativeFromTemplateExample.php create mode 100755 examples/Dfp/v201211/CreativeService/CreateCreativesExample.php create mode 100755 examples/Dfp/v201211/CreativeService/CreateCustomCreativeExample.php create mode 100755 examples/Dfp/v201211/CreativeService/GetAllCreativesExample.php create mode 100755 examples/Dfp/v201211/CreativeService/GetCreativeExample.php create mode 100755 examples/Dfp/v201211/CreativeService/GetCreativesByStatementExample.php create mode 100755 examples/Dfp/v201211/CreativeService/UpdateCreativesExample.php create mode 100755 examples/Dfp/v201211/CreativeSetService/CreateCreativeSetExample.php create mode 100755 examples/Dfp/v201211/CreativeSetService/GetAllCreativesSetsExample.php create mode 100755 examples/Dfp/v201211/CreativeSetService/GetCreativeSetsByStatementExample.php create mode 100755 examples/Dfp/v201211/CreativeSetService/UpdateCreativeSetExample.php create mode 100755 examples/Dfp/v201211/CreativeTemplateService/GetAllCreativeTemplatesExample.php create mode 100755 examples/Dfp/v201211/CreativeTemplateService/GetCreativeTemplateExample.php create mode 100755 examples/Dfp/v201211/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php create mode 100755 examples/Dfp/v201211/CreativeWrapperService/CreateCreativeWrappersExample.php create mode 100755 examples/Dfp/v201211/CreativeWrapperService/DeactivateCreativeWrapperExample.php create mode 100755 examples/Dfp/v201211/CreativeWrapperService/GetActiveCreativeWrappersExample.php create mode 100755 examples/Dfp/v201211/CreativeWrapperService/GetAllCreativeWrappersExample.php create mode 100755 examples/Dfp/v201211/CreativeWrapperService/UpdateCreativeWrappersExample.php create mode 100755 examples/Dfp/v201211/CustomFieldService/CreateCustomFieldOptions.php create mode 100755 examples/Dfp/v201211/CustomFieldService/CreateCustomFields.php create mode 100755 examples/Dfp/v201211/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php create mode 100755 examples/Dfp/v201211/CustomFieldService/GetAllCustomFieldsExample.php create mode 100755 examples/Dfp/v201211/CustomFieldService/SetLineItemCustomFieldValue.php create mode 100755 examples/Dfp/v201211/CustomFieldService/UpdateCustomFieldExample.php create mode 100755 examples/Dfp/v201211/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php create mode 100755 examples/Dfp/v201211/CustomTargetingService/DeleteCustomTargetingKeysExample.php create mode 100755 examples/Dfp/v201211/CustomTargetingService/DeleteCustomTargetingValuesExample.php create mode 100755 examples/Dfp/v201211/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php create mode 100755 examples/Dfp/v201211/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php create mode 100755 examples/Dfp/v201211/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php create mode 100755 examples/Dfp/v201211/CustomTargetingService/UpdateCustomTargetingKeysExample.php create mode 100755 examples/Dfp/v201211/CustomTargetingService/UpdateCustomTargetingValuesExample.php create mode 100755 examples/Dfp/v201211/ForecastService/GetForecastByIdExample.php create mode 100755 examples/Dfp/v201211/ForecastService/GetForecastExample.php create mode 100755 examples/Dfp/v201211/InventoryService/CreateAdUnitsExample.php create mode 100755 examples/Dfp/v201211/InventoryService/CreateMobileAdUnitExample.php create mode 100755 examples/Dfp/v201211/InventoryService/CreateVideoAdUnitExample.php create mode 100755 examples/Dfp/v201211/InventoryService/DeactivateAdUnitsExample.php create mode 100755 examples/Dfp/v201211/InventoryService/GetAdUnitExample.php create mode 100755 examples/Dfp/v201211/InventoryService/GetAdUnitSizesExample.php create mode 100755 examples/Dfp/v201211/InventoryService/GetAdUnitsByStatementExample.php create mode 100755 examples/Dfp/v201211/InventoryService/GetAllAdUnitsExample.php create mode 100755 examples/Dfp/v201211/InventoryService/GetInventoryTreeExample.php create mode 100755 examples/Dfp/v201211/InventoryService/UpdateAdUnitsExample.php create mode 100755 examples/Dfp/v201211/LabelService/CreateLabelsExample.php create mode 100755 examples/Dfp/v201211/LabelService/DeactivateLabelsExample.php create mode 100755 examples/Dfp/v201211/LabelService/GetAllLabelsExample.php create mode 100755 examples/Dfp/v201211/LabelService/GetLabelExample.php create mode 100755 examples/Dfp/v201211/LabelService/GetLabelsByStatementExample.php create mode 100755 examples/Dfp/v201211/LabelService/UpdateLabelsExample.php create mode 100755 examples/Dfp/v201211/LicaService/CreateLicasExample.php create mode 100755 examples/Dfp/v201211/LicaService/DeactivateLicasExample.php create mode 100755 examples/Dfp/v201211/LicaService/GetAllLicasExample.php create mode 100755 examples/Dfp/v201211/LicaService/GetLicaExample.php create mode 100755 examples/Dfp/v201211/LicaService/GetLicasByStatementExample.php create mode 100755 examples/Dfp/v201211/LicaService/UpdateLicasExample.php create mode 100755 examples/Dfp/v201211/LineItemService/ActivateLineItemsExample.php create mode 100755 examples/Dfp/v201211/LineItemService/AuditLineItemsGeoTargetingExample.php create mode 100755 examples/Dfp/v201211/LineItemService/CreateLineItemsExample.php create mode 100755 examples/Dfp/v201211/LineItemService/CreateMobileLineItemExample.php create mode 100755 examples/Dfp/v201211/LineItemService/CreateVideoLineItemExample.php create mode 100755 examples/Dfp/v201211/LineItemService/GetAllLineItemsExample.php create mode 100755 examples/Dfp/v201211/LineItemService/GetLineItemExample.php create mode 100755 examples/Dfp/v201211/LineItemService/GetLineItemsByStatementExample.php create mode 100755 examples/Dfp/v201211/LineItemService/GetRecentlyUpdatedLineItems.php create mode 100755 examples/Dfp/v201211/LineItemService/TargetCustomCriteriaExample.php create mode 100755 examples/Dfp/v201211/LineItemService/UpdateLineItemsExample.php create mode 100755 examples/Dfp/v201211/NetworkService/GetAllNetworksExample.php create mode 100755 examples/Dfp/v201211/NetworkService/GetCurrentNetworkExample.php create mode 100755 examples/Dfp/v201211/NetworkService/MakeTestNetworkExample.php create mode 100755 examples/Dfp/v201211/OrderService/ApproveOrdersExample.php create mode 100755 examples/Dfp/v201211/OrderService/CreateOrdersExample.php create mode 100755 examples/Dfp/v201211/OrderService/GetAllOrdersExample.php create mode 100755 examples/Dfp/v201211/OrderService/GetOrderExample.php create mode 100755 examples/Dfp/v201211/OrderService/GetOrdersByStatementExample.php create mode 100755 examples/Dfp/v201211/OrderService/UpdateOrdersExample.php create mode 100755 examples/Dfp/v201211/PlacementService/CreatePlacementsExample.php create mode 100755 examples/Dfp/v201211/PlacementService/DeactivatePlacementsExample.php create mode 100755 examples/Dfp/v201211/PlacementService/GetAllPlacementsExample.php create mode 100755 examples/Dfp/v201211/PlacementService/GetPlacementExample.php create mode 100755 examples/Dfp/v201211/PlacementService/GetPlacementsByStatementExample.php create mode 100755 examples/Dfp/v201211/PlacementService/UpdatePlacementsExample.php create mode 100755 examples/Dfp/v201211/PublisherQueryLanguageService/GetAllCitiesExample.php create mode 100755 examples/Dfp/v201211/ReportService/DownloadReportExample.php create mode 100755 examples/Dfp/v201211/ReportService/RunDeliveryReportExample.php create mode 100755 examples/Dfp/v201211/ReportService/RunInventoryReportExample.php create mode 100755 examples/Dfp/v201211/ReportService/RunMergedDeliveryReportExample.php create mode 100755 examples/Dfp/v201211/ReportService/RunReportWithCustomFields.php create mode 100755 examples/Dfp/v201211/ReportService/RunSalesReportExample.php create mode 100755 examples/Dfp/v201211/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php create mode 100755 examples/Dfp/v201211/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php create mode 100755 examples/Dfp/v201211/SuggestedAdUnitService/GetSuggestedAdUnitExample.php create mode 100755 examples/Dfp/v201211/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php create mode 100755 examples/Dfp/v201211/TeamService/CreateTeamsExample.php create mode 100755 examples/Dfp/v201211/TeamService/GetAllTeamsExample.php create mode 100755 examples/Dfp/v201211/TeamService/GetTeamExample.php create mode 100755 examples/Dfp/v201211/TeamService/GetTeamsByStatementExample.php create mode 100755 examples/Dfp/v201211/TeamService/UpdateTeamsExample.php create mode 100755 examples/Dfp/v201211/ThirdPartySlotService/ArchiveThirdPartySlotsExample.php create mode 100755 examples/Dfp/v201211/ThirdPartySlotService/CreateThirdPartySlotExample.php create mode 100755 examples/Dfp/v201211/ThirdPartySlotService/GetAllThirdPartySlotsExample.php create mode 100755 examples/Dfp/v201211/ThirdPartySlotService/GetThirdPartySlotsByStatementExample.php create mode 100755 examples/Dfp/v201211/ThirdPartySlotService/UpdateThirdPartySlotExample.php create mode 100755 examples/Dfp/v201211/UserService/CreateUsersExample.php create mode 100755 examples/Dfp/v201211/UserService/DeactivateUserExample.php create mode 100755 examples/Dfp/v201211/UserService/GetAllRolesExample.php create mode 100755 examples/Dfp/v201211/UserService/GetAllUsersExample.php create mode 100755 examples/Dfp/v201211/UserService/GetCurrentUserExample.php create mode 100755 examples/Dfp/v201211/UserService/GetUserExample.php create mode 100755 examples/Dfp/v201211/UserService/GetUsersByStatementExample.php create mode 100755 examples/Dfp/v201211/UserService/UpdateUsersExample.php create mode 100755 examples/Dfp/v201211/UserTeamAssociationService/CreateUserTeamAssociationsExample.php create mode 100755 examples/Dfp/v201211/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php create mode 100755 examples/Dfp/v201211/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php create mode 100755 examples/Dfp/v201211/UserTeamAssociationService/GetUserTeamAssociationExample.php create mode 100755 examples/Dfp/v201211/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php create mode 100755 examples/Dfp/v201211/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php create mode 100755 examples/Dfp/v201302/ActivityGroupService/CreateActivityGroups.php create mode 100755 examples/Dfp/v201302/ActivityGroupService/GetActiveActivityGroups.php create mode 100755 examples/Dfp/v201302/ActivityGroupService/GetAllActivityGroups.php create mode 100755 examples/Dfp/v201302/ActivityGroupService/UpdateActivityGroups.php create mode 100755 examples/Dfp/v201302/ActivityService/CreateActivities.php create mode 100755 examples/Dfp/v201302/ActivityService/GetActiveActivities.php create mode 100755 examples/Dfp/v201302/ActivityService/GetAllActivities.php create mode 100755 examples/Dfp/v201302/ActivityService/UpdateActivities.php create mode 100755 examples/Dfp/v201302/AudienceSegmentService/GetAllAudienceSegmentsExample.php create mode 100755 examples/Dfp/v201302/CompanyService/CreateCompaniesExample.php create mode 100755 examples/Dfp/v201302/CompanyService/GetAllCompaniesExample.php create mode 100755 examples/Dfp/v201302/CompanyService/GetCompaniesByStatementExample.php create mode 100755 examples/Dfp/v201302/CompanyService/GetCompanyExample.php create mode 100755 examples/Dfp/v201302/CompanyService/UpdateCompaniesExample.php create mode 100755 examples/Dfp/v201302/ContactService/CreateContacts.php create mode 100755 examples/Dfp/v201302/ContactService/GetAllContacts.php create mode 100755 examples/Dfp/v201302/ContactService/GetUninvitedContacts.php create mode 100755 examples/Dfp/v201302/ContactService/UpdateContacts.php create mode 100755 examples/Dfp/v201302/ContentService/GetAllContentExample.php create mode 100755 examples/Dfp/v201302/ContentService/GetContentByCategoryExample.php create mode 100755 examples/Dfp/v201302/CreativeService/AssociateCreativeSetToLineItemExample.php create mode 100755 examples/Dfp/v201302/CreativeService/CreateCreativeFromTemplateExample.php create mode 100755 examples/Dfp/v201302/CreativeService/CreateCreativesExample.php create mode 100755 examples/Dfp/v201302/CreativeService/CreateCustomCreativeExample.php create mode 100755 examples/Dfp/v201302/CreativeService/GetAllCreativesExample.php create mode 100755 examples/Dfp/v201302/CreativeService/GetCreativeExample.php create mode 100755 examples/Dfp/v201302/CreativeService/GetCreativesByStatementExample.php create mode 100755 examples/Dfp/v201302/CreativeService/UpdateCreativesExample.php create mode 100755 examples/Dfp/v201302/CreativeSetService/CreateCreativeSetExample.php create mode 100755 examples/Dfp/v201302/CreativeSetService/GetAllCreativesSetsExample.php create mode 100755 examples/Dfp/v201302/CreativeSetService/GetCreativeSetsByStatementExample.php create mode 100755 examples/Dfp/v201302/CreativeSetService/UpdateCreativeSetExample.php create mode 100755 examples/Dfp/v201302/CreativeTemplateService/GetAllCreativeTemplatesExample.php create mode 100755 examples/Dfp/v201302/CreativeTemplateService/GetCreativeTemplateExample.php create mode 100755 examples/Dfp/v201302/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php create mode 100755 examples/Dfp/v201302/CreativeWrapperService/CreateCreativeWrappersExample.php create mode 100755 examples/Dfp/v201302/CreativeWrapperService/DeactivateCreativeWrapperExample.php create mode 100755 examples/Dfp/v201302/CreativeWrapperService/GetActiveCreativeWrappersExample.php create mode 100755 examples/Dfp/v201302/CreativeWrapperService/GetAllCreativeWrappersExample.php create mode 100755 examples/Dfp/v201302/CreativeWrapperService/UpdateCreativeWrappersExample.php create mode 100755 examples/Dfp/v201302/CustomFieldService/CreateCustomFieldOptions.php create mode 100755 examples/Dfp/v201302/CustomFieldService/CreateCustomFields.php create mode 100755 examples/Dfp/v201302/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php create mode 100755 examples/Dfp/v201302/CustomFieldService/GetAllCustomFieldsExample.php create mode 100755 examples/Dfp/v201302/CustomFieldService/SetLineItemCustomFieldValue.php create mode 100755 examples/Dfp/v201302/CustomFieldService/UpdateCustomFieldExample.php create mode 100755 examples/Dfp/v201302/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php create mode 100755 examples/Dfp/v201302/CustomTargetingService/DeleteCustomTargetingKeysExample.php create mode 100755 examples/Dfp/v201302/CustomTargetingService/DeleteCustomTargetingValuesExample.php create mode 100755 examples/Dfp/v201302/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php create mode 100755 examples/Dfp/v201302/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php create mode 100755 examples/Dfp/v201302/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php create mode 100755 examples/Dfp/v201302/CustomTargetingService/UpdateCustomTargetingKeysExample.php create mode 100755 examples/Dfp/v201302/CustomTargetingService/UpdateCustomTargetingValuesExample.php create mode 100755 examples/Dfp/v201302/ForecastService/GetForecastByIdExample.php create mode 100755 examples/Dfp/v201302/ForecastService/GetForecastExample.php create mode 100755 examples/Dfp/v201302/InventoryService/CreateAdUnitsExample.php create mode 100755 examples/Dfp/v201302/InventoryService/CreateMobileAdUnitExample.php create mode 100755 examples/Dfp/v201302/InventoryService/CreateVideoAdUnitExample.php create mode 100755 examples/Dfp/v201302/InventoryService/DeactivateAdUnitsExample.php create mode 100755 examples/Dfp/v201302/InventoryService/GetAdUnitExample.php create mode 100755 examples/Dfp/v201302/InventoryService/GetAdUnitSizesExample.php create mode 100755 examples/Dfp/v201302/InventoryService/GetAdUnitsByStatementExample.php create mode 100755 examples/Dfp/v201302/InventoryService/GetAllAdUnitsExample.php create mode 100755 examples/Dfp/v201302/InventoryService/GetInventoryTreeExample.php create mode 100755 examples/Dfp/v201302/InventoryService/UpdateAdUnitsExample.php create mode 100755 examples/Dfp/v201302/LabelService/CreateLabelsExample.php create mode 100755 examples/Dfp/v201302/LabelService/DeactivateLabelsExample.php create mode 100755 examples/Dfp/v201302/LabelService/GetAllLabelsExample.php create mode 100755 examples/Dfp/v201302/LabelService/GetLabelExample.php create mode 100755 examples/Dfp/v201302/LabelService/GetLabelsByStatementExample.php create mode 100755 examples/Dfp/v201302/LabelService/UpdateLabelsExample.php create mode 100755 examples/Dfp/v201302/LicaService/CreateLicasExample.php create mode 100755 examples/Dfp/v201302/LicaService/DeactivateLicasExample.php create mode 100755 examples/Dfp/v201302/LicaService/GetAllLicasExample.php create mode 100755 examples/Dfp/v201302/LicaService/GetLicaExample.php create mode 100755 examples/Dfp/v201302/LicaService/GetLicasByStatementExample.php create mode 100755 examples/Dfp/v201302/LicaService/UpdateLicasExample.php create mode 100755 examples/Dfp/v201302/LineItemService/ActivateLineItemsExample.php create mode 100755 examples/Dfp/v201302/LineItemService/AuditLineItemsGeoTargetingExample.php create mode 100755 examples/Dfp/v201302/LineItemService/CreateLineItemsExample.php create mode 100755 examples/Dfp/v201302/LineItemService/CreateMobileLineItemExample.php create mode 100755 examples/Dfp/v201302/LineItemService/CreateVideoLineItemExample.php create mode 100755 examples/Dfp/v201302/LineItemService/GetAllLineItemsExample.php create mode 100755 examples/Dfp/v201302/LineItemService/GetLineItemExample.php create mode 100755 examples/Dfp/v201302/LineItemService/GetLineItemsByStatementExample.php create mode 100755 examples/Dfp/v201302/LineItemService/GetRecentlyUpdatedLineItems.php create mode 100755 examples/Dfp/v201302/LineItemService/TargetCustomCriteriaExample.php create mode 100755 examples/Dfp/v201302/LineItemService/UpdateLineItemsExample.php create mode 100755 examples/Dfp/v201302/NetworkService/GetAllNetworksExample.php create mode 100755 examples/Dfp/v201302/NetworkService/GetCurrentNetworkExample.php create mode 100755 examples/Dfp/v201302/NetworkService/MakeTestNetworkExample.php create mode 100755 examples/Dfp/v201302/OrderService/ApproveOrdersExample.php create mode 100755 examples/Dfp/v201302/OrderService/CreateOrdersExample.php create mode 100755 examples/Dfp/v201302/OrderService/GetAllOrdersExample.php create mode 100755 examples/Dfp/v201302/OrderService/GetOrderExample.php create mode 100755 examples/Dfp/v201302/OrderService/GetOrdersByStatementExample.php create mode 100755 examples/Dfp/v201302/OrderService/UpdateOrdersExample.php create mode 100755 examples/Dfp/v201302/PlacementService/CreatePlacementsExample.php create mode 100755 examples/Dfp/v201302/PlacementService/DeactivatePlacementsExample.php create mode 100755 examples/Dfp/v201302/PlacementService/GetAllPlacementsExample.php create mode 100755 examples/Dfp/v201302/PlacementService/GetPlacementExample.php create mode 100755 examples/Dfp/v201302/PlacementService/GetPlacementsByStatementExample.php create mode 100755 examples/Dfp/v201302/PlacementService/UpdatePlacementsExample.php create mode 100755 examples/Dfp/v201302/PublisherQueryLanguageService/GetAllCitiesExample.php create mode 100755 examples/Dfp/v201302/ReportService/DisplayReportExample.php create mode 100755 examples/Dfp/v201302/ReportService/DownloadReportExample.php create mode 100755 examples/Dfp/v201302/ReportService/RunDeliveryReportExample.php create mode 100755 examples/Dfp/v201302/ReportService/RunInventoryReportExample.php create mode 100755 examples/Dfp/v201302/ReportService/RunMergedDeliveryReportExample.php create mode 100755 examples/Dfp/v201302/ReportService/RunReachReportExample.php create mode 100755 examples/Dfp/v201302/ReportService/RunReportWithCustomFields.php create mode 100755 examples/Dfp/v201302/ReportService/RunSalesReportExample.php create mode 100755 examples/Dfp/v201302/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php create mode 100755 examples/Dfp/v201302/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php create mode 100755 examples/Dfp/v201302/SuggestedAdUnitService/GetSuggestedAdUnitExample.php create mode 100755 examples/Dfp/v201302/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php create mode 100755 examples/Dfp/v201302/TeamService/CreateTeamsExample.php create mode 100755 examples/Dfp/v201302/TeamService/GetAllTeamsExample.php create mode 100755 examples/Dfp/v201302/TeamService/GetTeamExample.php create mode 100755 examples/Dfp/v201302/TeamService/GetTeamsByStatementExample.php create mode 100755 examples/Dfp/v201302/TeamService/UpdateTeamsExample.php create mode 100755 examples/Dfp/v201302/ThirdPartySlotService/ArchiveThirdPartySlotsExample.php create mode 100755 examples/Dfp/v201302/ThirdPartySlotService/CreateThirdPartySlotExample.php create mode 100755 examples/Dfp/v201302/ThirdPartySlotService/GetAllThirdPartySlotsExample.php create mode 100755 examples/Dfp/v201302/ThirdPartySlotService/GetThirdPartySlotsByStatementExample.php create mode 100755 examples/Dfp/v201302/ThirdPartySlotService/UpdateThirdPartySlotExample.php create mode 100755 examples/Dfp/v201302/UserService/CreateUsersExample.php create mode 100755 examples/Dfp/v201302/UserService/DeactivateUserExample.php create mode 100755 examples/Dfp/v201302/UserService/GetAllRolesExample.php create mode 100755 examples/Dfp/v201302/UserService/GetAllUsersExample.php create mode 100755 examples/Dfp/v201302/UserService/GetCurrentUserExample.php create mode 100755 examples/Dfp/v201302/UserService/GetUserExample.php create mode 100755 examples/Dfp/v201302/UserService/GetUsersByStatementExample.php create mode 100755 examples/Dfp/v201302/UserService/UpdateUsersExample.php create mode 100755 examples/Dfp/v201302/UserTeamAssociationService/CreateUserTeamAssociationsExample.php create mode 100755 examples/Dfp/v201302/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php create mode 100755 examples/Dfp/v201302/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php create mode 100755 examples/Dfp/v201302/UserTeamAssociationService/GetUserTeamAssociationExample.php create mode 100755 examples/Dfp/v201302/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php create mode 100755 examples/Dfp/v201302/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php create mode 100755 examples/Dfp/v201306/ActivityGroupService/CreateActivityGroups.php create mode 100755 examples/Dfp/v201306/ActivityGroupService/GetActiveActivityGroups.php create mode 100755 examples/Dfp/v201306/ActivityGroupService/GetAllActivityGroups.php create mode 100755 examples/Dfp/v201306/ActivityGroupService/UpdateActivityGroups.php create mode 100755 examples/Dfp/v201306/ActivityService/CreateActivities.php create mode 100755 examples/Dfp/v201306/ActivityService/GetActiveActivities.php create mode 100755 examples/Dfp/v201306/ActivityService/GetAllActivities.php create mode 100755 examples/Dfp/v201306/ActivityService/UpdateActivities.php create mode 100755 examples/Dfp/v201306/AudienceSegmentService/GetAllAudienceSegmentsExample.php create mode 100755 examples/Dfp/v201306/CompanyService/CreateCompaniesExample.php create mode 100755 examples/Dfp/v201306/CompanyService/GetAllCompaniesExample.php create mode 100755 examples/Dfp/v201306/CompanyService/GetCompaniesByStatementExample.php create mode 100755 examples/Dfp/v201306/CompanyService/GetCompanyExample.php create mode 100755 examples/Dfp/v201306/CompanyService/UpdateCompaniesExample.php create mode 100755 examples/Dfp/v201306/ContactService/CreateContacts.php create mode 100755 examples/Dfp/v201306/ContactService/GetAllContacts.php create mode 100755 examples/Dfp/v201306/ContactService/GetUninvitedContacts.php create mode 100755 examples/Dfp/v201306/ContactService/UpdateContacts.php create mode 100755 examples/Dfp/v201306/ContentService/GetAllContentExample.php create mode 100755 examples/Dfp/v201306/ContentService/GetContentByCategoryExample.php create mode 100755 examples/Dfp/v201306/CreativeService/AssociateCreativeSetToLineItemExample.php create mode 100755 examples/Dfp/v201306/CreativeService/CreateCreativeFromTemplateExample.php create mode 100755 examples/Dfp/v201306/CreativeService/CreateCreativesExample.php create mode 100755 examples/Dfp/v201306/CreativeService/CreateCustomCreativeExample.php create mode 100755 examples/Dfp/v201306/CreativeService/GetAllCreativesExample.php create mode 100755 examples/Dfp/v201306/CreativeService/GetCreativeExample.php create mode 100755 examples/Dfp/v201306/CreativeService/GetCreativesByStatementExample.php create mode 100755 examples/Dfp/v201306/CreativeService/UpdateCreativesExample.php create mode 100755 examples/Dfp/v201306/CreativeSetService/CreateCreativeSetExample.php create mode 100755 examples/Dfp/v201306/CreativeSetService/GetAllCreativesSetsExample.php create mode 100755 examples/Dfp/v201306/CreativeSetService/GetCreativeSetsByStatementExample.php create mode 100755 examples/Dfp/v201306/CreativeSetService/UpdateCreativeSetExample.php create mode 100755 examples/Dfp/v201306/CreativeTemplateService/GetAllCreativeTemplatesExample.php create mode 100755 examples/Dfp/v201306/CreativeTemplateService/GetCreativeTemplateExample.php create mode 100755 examples/Dfp/v201306/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php create mode 100755 examples/Dfp/v201306/CreativeWrapperService/CreateCreativeWrappersExample.php create mode 100755 examples/Dfp/v201306/CreativeWrapperService/DeactivateCreativeWrapperExample.php create mode 100755 examples/Dfp/v201306/CreativeWrapperService/GetActiveCreativeWrappersExample.php create mode 100755 examples/Dfp/v201306/CreativeWrapperService/GetAllCreativeWrappersExample.php create mode 100755 examples/Dfp/v201306/CreativeWrapperService/UpdateCreativeWrappersExample.php create mode 100755 examples/Dfp/v201306/CustomFieldService/CreateCustomFieldOptions.php create mode 100755 examples/Dfp/v201306/CustomFieldService/CreateCustomFields.php create mode 100755 examples/Dfp/v201306/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php create mode 100755 examples/Dfp/v201306/CustomFieldService/GetAllCustomFieldsExample.php create mode 100755 examples/Dfp/v201306/CustomFieldService/SetLineItemCustomFieldValue.php create mode 100755 examples/Dfp/v201306/CustomFieldService/UpdateCustomFieldExample.php create mode 100755 examples/Dfp/v201306/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php create mode 100755 examples/Dfp/v201306/CustomTargetingService/DeleteCustomTargetingKeysExample.php create mode 100755 examples/Dfp/v201306/CustomTargetingService/DeleteCustomTargetingValuesExample.php create mode 100755 examples/Dfp/v201306/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php create mode 100755 examples/Dfp/v201306/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php create mode 100755 examples/Dfp/v201306/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php create mode 100755 examples/Dfp/v201306/CustomTargetingService/UpdateCustomTargetingKeysExample.php create mode 100755 examples/Dfp/v201306/CustomTargetingService/UpdateCustomTargetingValuesExample.php create mode 100755 examples/Dfp/v201306/ForecastService/GetForecastByIdExample.php create mode 100755 examples/Dfp/v201306/ForecastService/GetForecastExample.php create mode 100755 examples/Dfp/v201306/InventoryService/CreateAdUnitsExample.php create mode 100755 examples/Dfp/v201306/InventoryService/CreateMobileAdUnitExample.php create mode 100755 examples/Dfp/v201306/InventoryService/CreateVideoAdUnitExample.php create mode 100755 examples/Dfp/v201306/InventoryService/DeactivateAdUnitsExample.php create mode 100755 examples/Dfp/v201306/InventoryService/GetAdUnitExample.php create mode 100755 examples/Dfp/v201306/InventoryService/GetAdUnitSizesExample.php create mode 100755 examples/Dfp/v201306/InventoryService/GetAdUnitsByStatementExample.php create mode 100755 examples/Dfp/v201306/InventoryService/GetAllAdUnitsExample.php create mode 100755 examples/Dfp/v201306/InventoryService/GetInventoryTreeExample.php create mode 100755 examples/Dfp/v201306/InventoryService/UpdateAdUnitsExample.php create mode 100755 examples/Dfp/v201306/LabelService/CreateLabelsExample.php create mode 100755 examples/Dfp/v201306/LabelService/DeactivateLabelsExample.php create mode 100755 examples/Dfp/v201306/LabelService/GetAllLabelsExample.php create mode 100755 examples/Dfp/v201306/LabelService/GetLabelExample.php create mode 100755 examples/Dfp/v201306/LabelService/GetLabelsByStatementExample.php create mode 100755 examples/Dfp/v201306/LabelService/UpdateLabelsExample.php create mode 100755 examples/Dfp/v201306/LicaService/CreateLicasExample.php create mode 100755 examples/Dfp/v201306/LicaService/DeactivateLicasExample.php create mode 100755 examples/Dfp/v201306/LicaService/GetAllLicasExample.php create mode 100755 examples/Dfp/v201306/LicaService/GetLicaExample.php create mode 100755 examples/Dfp/v201306/LicaService/GetLicasByStatementExample.php create mode 100755 examples/Dfp/v201306/LicaService/UpdateLicasExample.php create mode 100755 examples/Dfp/v201306/LineItemService/ActivateLineItemsExample.php create mode 100755 examples/Dfp/v201306/LineItemService/AuditLineItemsGeoTargetingExample.php create mode 100755 examples/Dfp/v201306/LineItemService/CreateLineItemsExample.php create mode 100755 examples/Dfp/v201306/LineItemService/CreateMobileLineItemExample.php create mode 100755 examples/Dfp/v201306/LineItemService/CreateVideoLineItemExample.php create mode 100755 examples/Dfp/v201306/LineItemService/GetAllLineItemsExample.php create mode 100755 examples/Dfp/v201306/LineItemService/GetLineItemExample.php create mode 100755 examples/Dfp/v201306/LineItemService/GetLineItemsByStatementExample.php create mode 100755 examples/Dfp/v201306/LineItemService/GetRecentlyUpdatedLineItems.php create mode 100755 examples/Dfp/v201306/LineItemService/TargetCustomCriteriaExample.php create mode 100755 examples/Dfp/v201306/LineItemService/UpdateLineItemsExample.php create mode 100755 examples/Dfp/v201306/NetworkService/GetAllNetworksExample.php create mode 100755 examples/Dfp/v201306/NetworkService/GetCurrentNetworkExample.php create mode 100755 examples/Dfp/v201306/NetworkService/MakeTestNetworkExample.php create mode 100755 examples/Dfp/v201306/OrderService/ApproveOrdersExample.php create mode 100755 examples/Dfp/v201306/OrderService/CreateOrdersExample.php create mode 100755 examples/Dfp/v201306/OrderService/GetAllOrdersExample.php create mode 100755 examples/Dfp/v201306/OrderService/GetOrderExample.php create mode 100755 examples/Dfp/v201306/OrderService/GetOrdersByStatementExample.php create mode 100755 examples/Dfp/v201306/OrderService/UpdateOrdersExample.php create mode 100755 examples/Dfp/v201306/PlacementService/CreatePlacementsExample.php create mode 100755 examples/Dfp/v201306/PlacementService/DeactivatePlacementsExample.php create mode 100755 examples/Dfp/v201306/PlacementService/GetAllPlacementsExample.php create mode 100755 examples/Dfp/v201306/PlacementService/GetPlacementExample.php create mode 100755 examples/Dfp/v201306/PlacementService/GetPlacementsByStatementExample.php create mode 100755 examples/Dfp/v201306/PlacementService/UpdatePlacementsExample.php create mode 100755 examples/Dfp/v201306/PublisherQueryLanguageService/GetAllCitiesExample.php create mode 100755 examples/Dfp/v201306/ReportService/DisplayReportExample.php create mode 100755 examples/Dfp/v201306/ReportService/DownloadReportExample.php create mode 100755 examples/Dfp/v201306/ReportService/RunDeliveryReportExample.php create mode 100755 examples/Dfp/v201306/ReportService/RunInventoryReportExample.php create mode 100755 examples/Dfp/v201306/ReportService/RunMergedDeliveryReportExample.php create mode 100755 examples/Dfp/v201306/ReportService/RunReachReportExample.php create mode 100755 examples/Dfp/v201306/ReportService/RunReportWithCustomFields.php create mode 100755 examples/Dfp/v201306/ReportService/RunSalesReportExample.php create mode 100755 examples/Dfp/v201306/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php create mode 100755 examples/Dfp/v201306/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php create mode 100755 examples/Dfp/v201306/SuggestedAdUnitService/GetSuggestedAdUnitExample.php create mode 100755 examples/Dfp/v201306/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php create mode 100755 examples/Dfp/v201306/TeamService/CreateTeamsExample.php create mode 100755 examples/Dfp/v201306/TeamService/GetAllTeamsExample.php create mode 100755 examples/Dfp/v201306/TeamService/GetTeamExample.php create mode 100755 examples/Dfp/v201306/TeamService/GetTeamsByStatementExample.php create mode 100755 examples/Dfp/v201306/TeamService/UpdateTeamsExample.php create mode 100755 examples/Dfp/v201306/UserService/CreateUsersExample.php create mode 100755 examples/Dfp/v201306/UserService/DeactivateUserExample.php create mode 100755 examples/Dfp/v201306/UserService/GetAllRolesExample.php create mode 100755 examples/Dfp/v201306/UserService/GetAllUsersExample.php create mode 100755 examples/Dfp/v201306/UserService/GetCurrentUserExample.php create mode 100755 examples/Dfp/v201306/UserService/GetUserExample.php create mode 100755 examples/Dfp/v201306/UserService/GetUsersByStatementExample.php create mode 100755 examples/Dfp/v201306/UserService/UpdateUsersExample.php create mode 100755 examples/Dfp/v201306/UserTeamAssociationService/CreateUserTeamAssociationsExample.php create mode 100755 examples/Dfp/v201306/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php create mode 100755 examples/Dfp/v201306/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php create mode 100755 examples/Dfp/v201306/UserTeamAssociationService/GetUserTeamAssociationExample.php create mode 100755 examples/Dfp/v201306/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php create mode 100755 examples/Dfp/v201306/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php create mode 100755 examples/Dfp/v201308/ActivityGroupService/CreateActivityGroups.php create mode 100755 examples/Dfp/v201308/ActivityGroupService/GetActiveActivityGroups.php create mode 100755 examples/Dfp/v201308/ActivityGroupService/GetAllActivityGroups.php create mode 100755 examples/Dfp/v201308/ActivityGroupService/UpdateActivityGroups.php create mode 100755 examples/Dfp/v201308/ActivityService/CreateActivities.php create mode 100755 examples/Dfp/v201308/ActivityService/GetActiveActivities.php create mode 100755 examples/Dfp/v201308/ActivityService/GetAllActivities.php create mode 100755 examples/Dfp/v201308/ActivityService/UpdateActivities.php create mode 100755 examples/Dfp/v201308/AudienceSegmentService/CreateAudienceSegments.php create mode 100755 examples/Dfp/v201308/AudienceSegmentService/GetAllAudienceSegments.php create mode 100755 examples/Dfp/v201308/AudienceSegmentService/GetFirstPartyAudienceSegments.php create mode 100755 examples/Dfp/v201308/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php create mode 100755 examples/Dfp/v201308/AudienceSegmentService/UpdateAudienceSegments.php create mode 100755 examples/Dfp/v201308/CompanyService/CreateCompaniesExample.php create mode 100755 examples/Dfp/v201308/CompanyService/GetAllCompaniesExample.php create mode 100755 examples/Dfp/v201308/CompanyService/GetCompaniesByStatementExample.php create mode 100755 examples/Dfp/v201308/CompanyService/GetCompanyExample.php create mode 100755 examples/Dfp/v201308/CompanyService/UpdateCompaniesExample.php create mode 100755 examples/Dfp/v201308/ContactService/CreateContacts.php create mode 100755 examples/Dfp/v201308/ContactService/GetAllContacts.php create mode 100755 examples/Dfp/v201308/ContactService/GetUninvitedContacts.php create mode 100755 examples/Dfp/v201308/ContactService/UpdateContacts.php create mode 100755 examples/Dfp/v201308/ContentService/GetAllContentExample.php create mode 100755 examples/Dfp/v201308/ContentService/GetContentByCategoryExample.php create mode 100755 examples/Dfp/v201308/CreativeService/AssociateCreativeSetToLineItemExample.php create mode 100755 examples/Dfp/v201308/CreativeService/CreateCreativeFromTemplateExample.php create mode 100755 examples/Dfp/v201308/CreativeService/CreateCreativesExample.php create mode 100755 examples/Dfp/v201308/CreativeService/CreateCustomCreativeExample.php create mode 100755 examples/Dfp/v201308/CreativeService/GetAllCreativesExample.php create mode 100755 examples/Dfp/v201308/CreativeService/GetCreativeExample.php create mode 100755 examples/Dfp/v201308/CreativeService/GetCreativesByStatementExample.php create mode 100755 examples/Dfp/v201308/CreativeService/UpdateCreativesExample.php create mode 100755 examples/Dfp/v201308/CreativeSetService/CreateCreativeSetExample.php create mode 100755 examples/Dfp/v201308/CreativeSetService/GetAllCreativesSetsExample.php create mode 100755 examples/Dfp/v201308/CreativeSetService/GetCreativeSetsByStatementExample.php create mode 100755 examples/Dfp/v201308/CreativeSetService/UpdateCreativeSetExample.php create mode 100755 examples/Dfp/v201308/CreativeTemplateService/GetAllCreativeTemplatesExample.php create mode 100755 examples/Dfp/v201308/CreativeTemplateService/GetCreativeTemplateExample.php create mode 100755 examples/Dfp/v201308/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php create mode 100755 examples/Dfp/v201308/CreativeWrapperService/CreateCreativeWrappersExample.php create mode 100755 examples/Dfp/v201308/CreativeWrapperService/DeactivateCreativeWrapperExample.php create mode 100755 examples/Dfp/v201308/CreativeWrapperService/GetActiveCreativeWrappersExample.php create mode 100755 examples/Dfp/v201308/CreativeWrapperService/GetAllCreativeWrappersExample.php create mode 100755 examples/Dfp/v201308/CreativeWrapperService/UpdateCreativeWrappersExample.php create mode 100755 examples/Dfp/v201308/CustomFieldService/CreateCustomFieldOptions.php create mode 100755 examples/Dfp/v201308/CustomFieldService/CreateCustomFields.php create mode 100755 examples/Dfp/v201308/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php create mode 100755 examples/Dfp/v201308/CustomFieldService/GetAllCustomFieldsExample.php create mode 100755 examples/Dfp/v201308/CustomFieldService/SetLineItemCustomFieldValue.php create mode 100755 examples/Dfp/v201308/CustomFieldService/UpdateCustomFieldExample.php create mode 100755 examples/Dfp/v201308/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php create mode 100755 examples/Dfp/v201308/CustomTargetingService/DeleteCustomTargetingKeysExample.php create mode 100755 examples/Dfp/v201308/CustomTargetingService/DeleteCustomTargetingValuesExample.php create mode 100755 examples/Dfp/v201308/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php create mode 100755 examples/Dfp/v201308/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php create mode 100755 examples/Dfp/v201308/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php create mode 100755 examples/Dfp/v201308/CustomTargetingService/UpdateCustomTargetingKeysExample.php create mode 100755 examples/Dfp/v201308/CustomTargetingService/UpdateCustomTargetingValuesExample.php create mode 100755 examples/Dfp/v201308/ForecastService/GetForecastByIdExample.php create mode 100755 examples/Dfp/v201308/ForecastService/GetForecastExample.php create mode 100755 examples/Dfp/v201308/InventoryService/CreateAdUnitsExample.php create mode 100755 examples/Dfp/v201308/InventoryService/CreateMobileAdUnitExample.php create mode 100755 examples/Dfp/v201308/InventoryService/CreateVideoAdUnitExample.php create mode 100755 examples/Dfp/v201308/InventoryService/DeactivateAdUnitsExample.php create mode 100755 examples/Dfp/v201308/InventoryService/GetAdUnitExample.php create mode 100755 examples/Dfp/v201308/InventoryService/GetAdUnitSizesExample.php create mode 100755 examples/Dfp/v201308/InventoryService/GetAdUnitsByStatementExample.php create mode 100755 examples/Dfp/v201308/InventoryService/GetAllAdUnitsExample.php create mode 100755 examples/Dfp/v201308/InventoryService/GetInventoryTreeExample.php create mode 100755 examples/Dfp/v201308/InventoryService/UpdateAdUnitsExample.php create mode 100755 examples/Dfp/v201308/LabelService/CreateLabelsExample.php create mode 100755 examples/Dfp/v201308/LabelService/DeactivateLabelsExample.php create mode 100755 examples/Dfp/v201308/LabelService/GetAllLabelsExample.php create mode 100755 examples/Dfp/v201308/LabelService/GetLabelExample.php create mode 100755 examples/Dfp/v201308/LabelService/GetLabelsByStatementExample.php create mode 100755 examples/Dfp/v201308/LabelService/UpdateLabelsExample.php create mode 100755 examples/Dfp/v201308/LicaService/CreateLicasExample.php create mode 100755 examples/Dfp/v201308/LicaService/DeactivateLicasExample.php create mode 100755 examples/Dfp/v201308/LicaService/GetAllLicasExample.php create mode 100755 examples/Dfp/v201308/LicaService/GetLicaExample.php create mode 100755 examples/Dfp/v201308/LicaService/GetLicasByStatementExample.php create mode 100755 examples/Dfp/v201308/LicaService/UpdateLicasExample.php create mode 100755 examples/Dfp/v201308/LineItemService/ActivateLineItemsExample.php create mode 100755 examples/Dfp/v201308/LineItemService/AuditLineItemsGeoTargetingExample.php create mode 100755 examples/Dfp/v201308/LineItemService/CreateLineItemsExample.php create mode 100755 examples/Dfp/v201308/LineItemService/CreateMobileLineItemExample.php create mode 100755 examples/Dfp/v201308/LineItemService/CreateVideoLineItemExample.php create mode 100755 examples/Dfp/v201308/LineItemService/GetAllLineItemsExample.php create mode 100755 examples/Dfp/v201308/LineItemService/GetLineItemExample.php create mode 100755 examples/Dfp/v201308/LineItemService/GetLineItemsByStatementExample.php create mode 100755 examples/Dfp/v201308/LineItemService/GetRecentlyUpdatedLineItems.php create mode 100755 examples/Dfp/v201308/LineItemService/TargetCustomCriteriaExample.php create mode 100755 examples/Dfp/v201308/LineItemService/UpdateLineItemsExample.php create mode 100755 examples/Dfp/v201308/NetworkService/GetAllNetworksExample.php create mode 100755 examples/Dfp/v201308/NetworkService/GetCurrentNetworkExample.php create mode 100755 examples/Dfp/v201308/NetworkService/MakeTestNetworkExample.php create mode 100755 examples/Dfp/v201308/OrderService/ApproveOrdersExample.php create mode 100755 examples/Dfp/v201308/OrderService/CreateOrdersExample.php create mode 100755 examples/Dfp/v201308/OrderService/GetAllOrdersExample.php create mode 100755 examples/Dfp/v201308/OrderService/GetOrderExample.php create mode 100755 examples/Dfp/v201308/OrderService/GetOrdersByStatementExample.php create mode 100755 examples/Dfp/v201308/OrderService/UpdateOrdersExample.php create mode 100755 examples/Dfp/v201308/PlacementService/CreatePlacementsExample.php create mode 100755 examples/Dfp/v201308/PlacementService/DeactivatePlacementsExample.php create mode 100755 examples/Dfp/v201308/PlacementService/GetAllPlacementsExample.php create mode 100755 examples/Dfp/v201308/PlacementService/GetPlacementExample.php create mode 100755 examples/Dfp/v201308/PlacementService/GetPlacementsByStatementExample.php create mode 100755 examples/Dfp/v201308/PlacementService/UpdatePlacementsExample.php create mode 100755 examples/Dfp/v201308/PublisherQueryLanguageService/GetAllLineItems.php create mode 100755 examples/Dfp/v201308/PublisherQueryLanguageService/GetGeoTargets.php create mode 100755 examples/Dfp/v201308/PublisherQueryLanguageService/GetLineItemsNamedLike.php create mode 100755 examples/Dfp/v201308/ReportService/DisplayReportExample.php create mode 100755 examples/Dfp/v201308/ReportService/DownloadReportExample.php create mode 100755 examples/Dfp/v201308/ReportService/RunDeliveryReportExample.php create mode 100755 examples/Dfp/v201308/ReportService/RunInventoryReportExample.php create mode 100755 examples/Dfp/v201308/ReportService/RunMergedDeliveryReportExample.php create mode 100755 examples/Dfp/v201308/ReportService/RunReachReportExample.php create mode 100755 examples/Dfp/v201308/ReportService/RunReportWithCustomFields.php create mode 100755 examples/Dfp/v201308/ReportService/RunSalesReportExample.php create mode 100755 examples/Dfp/v201308/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php create mode 100755 examples/Dfp/v201308/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php create mode 100755 examples/Dfp/v201308/SuggestedAdUnitService/GetSuggestedAdUnitExample.php create mode 100755 examples/Dfp/v201308/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php create mode 100755 examples/Dfp/v201308/TeamService/CreateTeamsExample.php create mode 100755 examples/Dfp/v201308/TeamService/GetAllTeamsExample.php create mode 100755 examples/Dfp/v201308/TeamService/GetTeamExample.php create mode 100755 examples/Dfp/v201308/TeamService/GetTeamsByStatementExample.php create mode 100755 examples/Dfp/v201308/TeamService/UpdateTeamsExample.php create mode 100755 examples/Dfp/v201308/UserService/CreateUsersExample.php create mode 100755 examples/Dfp/v201308/UserService/DeactivateUserExample.php create mode 100755 examples/Dfp/v201308/UserService/GetAllRolesExample.php create mode 100755 examples/Dfp/v201308/UserService/GetAllUsersExample.php create mode 100755 examples/Dfp/v201308/UserService/GetCurrentUserExample.php create mode 100755 examples/Dfp/v201308/UserService/GetUserExample.php create mode 100755 examples/Dfp/v201308/UserService/GetUsersByStatementExample.php create mode 100755 examples/Dfp/v201308/UserService/UpdateUsersExample.php create mode 100755 examples/Dfp/v201308/UserTeamAssociationService/CreateUserTeamAssociationsExample.php create mode 100755 examples/Dfp/v201308/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php create mode 100755 examples/Dfp/v201308/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php create mode 100755 examples/Dfp/v201308/UserTeamAssociationService/GetUserTeamAssociationExample.php create mode 100755 examples/Dfp/v201308/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php create mode 100755 examples/Dfp/v201308/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php create mode 100755 examples/Dfp/v201311/ActivityGroupService/CreateActivityGroups.php create mode 100755 examples/Dfp/v201311/ActivityGroupService/GetActiveActivityGroups.php create mode 100755 examples/Dfp/v201311/ActivityGroupService/GetAllActivityGroups.php create mode 100755 examples/Dfp/v201311/ActivityGroupService/UpdateActivityGroups.php create mode 100755 examples/Dfp/v201311/ActivityService/CreateActivities.php create mode 100755 examples/Dfp/v201311/ActivityService/GetActiveActivities.php create mode 100755 examples/Dfp/v201311/ActivityService/GetAllActivities.php create mode 100755 examples/Dfp/v201311/ActivityService/UpdateActivities.php create mode 100755 examples/Dfp/v201311/AudienceSegmentService/CreateAudienceSegments.php create mode 100755 examples/Dfp/v201311/AudienceSegmentService/GetAllAudienceSegments.php create mode 100755 examples/Dfp/v201311/AudienceSegmentService/GetFirstPartyAudienceSegments.php create mode 100755 examples/Dfp/v201311/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php create mode 100755 examples/Dfp/v201311/AudienceSegmentService/UpdateAudienceSegments.php create mode 100755 examples/Dfp/v201311/CompanyService/CreateCompaniesExample.php create mode 100755 examples/Dfp/v201311/CompanyService/GetAllCompaniesExample.php create mode 100755 examples/Dfp/v201311/CompanyService/GetCompaniesByStatementExample.php create mode 100755 examples/Dfp/v201311/CompanyService/GetCompanyExample.php create mode 100755 examples/Dfp/v201311/CompanyService/UpdateCompaniesExample.php create mode 100755 examples/Dfp/v201311/ContactService/CreateContacts.php create mode 100755 examples/Dfp/v201311/ContactService/GetAllContacts.php create mode 100755 examples/Dfp/v201311/ContactService/GetUninvitedContacts.php create mode 100755 examples/Dfp/v201311/ContactService/UpdateContacts.php create mode 100755 examples/Dfp/v201311/ContentService/GetAllContentExample.php create mode 100755 examples/Dfp/v201311/ContentService/GetContentByCategoryExample.php create mode 100755 examples/Dfp/v201311/CreativeService/AssociateCreativeSetToLineItemExample.php create mode 100755 examples/Dfp/v201311/CreativeService/CreateCreativeFromTemplateExample.php create mode 100755 examples/Dfp/v201311/CreativeService/CreateCreativesExample.php create mode 100755 examples/Dfp/v201311/CreativeService/CreateCustomCreativeExample.php create mode 100755 examples/Dfp/v201311/CreativeService/GetAllCreativesExample.php create mode 100755 examples/Dfp/v201311/CreativeService/GetCreativeExample.php create mode 100755 examples/Dfp/v201311/CreativeService/GetCreativesByStatementExample.php create mode 100755 examples/Dfp/v201311/CreativeService/UpdateCreativesExample.php create mode 100755 examples/Dfp/v201311/CreativeSetService/CreateCreativeSetExample.php create mode 100755 examples/Dfp/v201311/CreativeSetService/GetAllCreativesSetsExample.php create mode 100755 examples/Dfp/v201311/CreativeSetService/GetCreativeSetsByStatementExample.php create mode 100755 examples/Dfp/v201311/CreativeSetService/UpdateCreativeSetExample.php create mode 100755 examples/Dfp/v201311/CreativeTemplateService/GetAllCreativeTemplatesExample.php create mode 100755 examples/Dfp/v201311/CreativeTemplateService/GetCreativeTemplateExample.php create mode 100755 examples/Dfp/v201311/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php create mode 100755 examples/Dfp/v201311/CreativeWrapperService/CreateCreativeWrappersExample.php create mode 100755 examples/Dfp/v201311/CreativeWrapperService/DeactivateCreativeWrapperExample.php create mode 100755 examples/Dfp/v201311/CreativeWrapperService/GetActiveCreativeWrappersExample.php create mode 100755 examples/Dfp/v201311/CreativeWrapperService/GetAllCreativeWrappersExample.php create mode 100755 examples/Dfp/v201311/CreativeWrapperService/UpdateCreativeWrappersExample.php create mode 100755 examples/Dfp/v201311/CustomFieldService/CreateCustomFieldOptions.php create mode 100755 examples/Dfp/v201311/CustomFieldService/CreateCustomFields.php create mode 100755 examples/Dfp/v201311/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php create mode 100755 examples/Dfp/v201311/CustomFieldService/GetAllCustomFieldsExample.php create mode 100755 examples/Dfp/v201311/CustomFieldService/SetLineItemCustomFieldValue.php create mode 100755 examples/Dfp/v201311/CustomFieldService/UpdateCustomFieldExample.php create mode 100755 examples/Dfp/v201311/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php create mode 100755 examples/Dfp/v201311/CustomTargetingService/DeleteCustomTargetingKeysExample.php create mode 100755 examples/Dfp/v201311/CustomTargetingService/DeleteCustomTargetingValuesExample.php create mode 100755 examples/Dfp/v201311/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php create mode 100755 examples/Dfp/v201311/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php create mode 100755 examples/Dfp/v201311/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php create mode 100755 examples/Dfp/v201311/CustomTargetingService/UpdateCustomTargetingKeysExample.php create mode 100755 examples/Dfp/v201311/CustomTargetingService/UpdateCustomTargetingValuesExample.php create mode 100755 examples/Dfp/v201311/ForecastService/GetForecastByIdExample.php create mode 100755 examples/Dfp/v201311/ForecastService/GetForecastExample.php create mode 100755 examples/Dfp/v201311/InventoryService/CreateAdUnitsExample.php create mode 100755 examples/Dfp/v201311/InventoryService/CreateMobileAdUnitExample.php create mode 100755 examples/Dfp/v201311/InventoryService/CreateVideoAdUnitExample.php create mode 100755 examples/Dfp/v201311/InventoryService/DeactivateAdUnitsExample.php create mode 100755 examples/Dfp/v201311/InventoryService/GetAdUnitExample.php create mode 100755 examples/Dfp/v201311/InventoryService/GetAdUnitSizesExample.php create mode 100755 examples/Dfp/v201311/InventoryService/GetAdUnitsByStatementExample.php create mode 100755 examples/Dfp/v201311/InventoryService/GetAllAdUnitsExample.php create mode 100755 examples/Dfp/v201311/InventoryService/GetInventoryTreeExample.php create mode 100755 examples/Dfp/v201311/InventoryService/UpdateAdUnitsExample.php create mode 100755 examples/Dfp/v201311/LabelService/CreateLabelsExample.php create mode 100755 examples/Dfp/v201311/LabelService/DeactivateLabelsExample.php create mode 100755 examples/Dfp/v201311/LabelService/GetAllLabelsExample.php create mode 100755 examples/Dfp/v201311/LabelService/GetLabelExample.php create mode 100755 examples/Dfp/v201311/LabelService/GetLabelsByStatementExample.php create mode 100755 examples/Dfp/v201311/LabelService/UpdateLabelsExample.php create mode 100755 examples/Dfp/v201311/LicaService/CreateLicasExample.php create mode 100755 examples/Dfp/v201311/LicaService/DeactivateLicasExample.php create mode 100755 examples/Dfp/v201311/LicaService/GetAllLicasExample.php create mode 100755 examples/Dfp/v201311/LicaService/GetLicaExample.php create mode 100755 examples/Dfp/v201311/LicaService/GetLicasByStatementExample.php create mode 100755 examples/Dfp/v201311/LicaService/UpdateLicasExample.php create mode 100755 examples/Dfp/v201311/LineItemService/ActivateLineItemsExample.php create mode 100755 examples/Dfp/v201311/LineItemService/AuditLineItemsGeoTargetingExample.php create mode 100755 examples/Dfp/v201311/LineItemService/CreateLineItemsExample.php create mode 100755 examples/Dfp/v201311/LineItemService/CreateMobileLineItemExample.php create mode 100755 examples/Dfp/v201311/LineItemService/CreateVideoLineItemExample.php create mode 100755 examples/Dfp/v201311/LineItemService/GetAllLineItemsExample.php create mode 100755 examples/Dfp/v201311/LineItemService/GetLineItemExample.php create mode 100755 examples/Dfp/v201311/LineItemService/GetLineItemsByStatementExample.php create mode 100755 examples/Dfp/v201311/LineItemService/GetRecentlyUpdatedLineItems.php create mode 100755 examples/Dfp/v201311/LineItemService/TargetCustomCriteriaExample.php create mode 100755 examples/Dfp/v201311/LineItemService/UpdateLineItemsExample.php create mode 100755 examples/Dfp/v201311/NetworkService/GetAllNetworksExample.php create mode 100755 examples/Dfp/v201311/NetworkService/GetCurrentNetworkExample.php create mode 100755 examples/Dfp/v201311/NetworkService/MakeTestNetworkExample.php create mode 100755 examples/Dfp/v201311/OrderService/ApproveOrdersExample.php create mode 100755 examples/Dfp/v201311/OrderService/CreateOrdersExample.php create mode 100755 examples/Dfp/v201311/OrderService/GetAllOrdersExample.php create mode 100755 examples/Dfp/v201311/OrderService/GetOrderExample.php create mode 100755 examples/Dfp/v201311/OrderService/GetOrdersByStatementExample.php create mode 100755 examples/Dfp/v201311/OrderService/UpdateOrdersExample.php create mode 100755 examples/Dfp/v201311/PlacementService/CreatePlacementsExample.php create mode 100755 examples/Dfp/v201311/PlacementService/DeactivatePlacementsExample.php create mode 100755 examples/Dfp/v201311/PlacementService/GetAllPlacementsExample.php create mode 100755 examples/Dfp/v201311/PlacementService/GetPlacementExample.php create mode 100755 examples/Dfp/v201311/PlacementService/GetPlacementsByStatementExample.php create mode 100755 examples/Dfp/v201311/PlacementService/UpdatePlacementsExample.php create mode 100755 examples/Dfp/v201311/PublisherQueryLanguageService/FetchMatchTables.php create mode 100755 examples/Dfp/v201311/PublisherQueryLanguageService/GetGeoTargets.php create mode 100755 examples/Dfp/v201311/PublisherQueryLanguageService/GetLineItemsNamedLike.php create mode 100755 examples/Dfp/v201311/ReportService/DisplayReportExample.php create mode 100755 examples/Dfp/v201311/ReportService/DownloadReportExample.php create mode 100755 examples/Dfp/v201311/ReportService/RunDeliveryReportExample.php create mode 100755 examples/Dfp/v201311/ReportService/RunInventoryReportExample.php create mode 100755 examples/Dfp/v201311/ReportService/RunMergedDeliveryReportExample.php create mode 100755 examples/Dfp/v201311/ReportService/RunReachReportExample.php create mode 100755 examples/Dfp/v201311/ReportService/RunReportWithCustomFields.php create mode 100755 examples/Dfp/v201311/ReportService/RunSalesReportExample.php create mode 100755 examples/Dfp/v201311/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php create mode 100755 examples/Dfp/v201311/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php create mode 100755 examples/Dfp/v201311/SuggestedAdUnitService/GetSuggestedAdUnitExample.php create mode 100755 examples/Dfp/v201311/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php create mode 100755 examples/Dfp/v201311/TeamService/CreateTeamsExample.php create mode 100755 examples/Dfp/v201311/TeamService/GetAllTeamsExample.php create mode 100755 examples/Dfp/v201311/TeamService/GetTeamExample.php create mode 100755 examples/Dfp/v201311/TeamService/GetTeamsByStatementExample.php create mode 100755 examples/Dfp/v201311/TeamService/UpdateTeamsExample.php create mode 100755 examples/Dfp/v201311/UserService/CreateUsersExample.php create mode 100755 examples/Dfp/v201311/UserService/DeactivateUserExample.php create mode 100755 examples/Dfp/v201311/UserService/GetAllRolesExample.php create mode 100755 examples/Dfp/v201311/UserService/GetAllUsersExample.php create mode 100755 examples/Dfp/v201311/UserService/GetCurrentUserExample.php create mode 100755 examples/Dfp/v201311/UserService/GetUserExample.php create mode 100755 examples/Dfp/v201311/UserService/GetUsersByStatementExample.php create mode 100755 examples/Dfp/v201311/UserService/UpdateUsersExample.php create mode 100755 examples/Dfp/v201311/UserTeamAssociationService/CreateUserTeamAssociationsExample.php create mode 100755 examples/Dfp/v201311/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php create mode 100755 examples/Dfp/v201311/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php create mode 100755 examples/Dfp/v201311/UserTeamAssociationService/GetUserTeamAssociationExample.php create mode 100755 examples/Dfp/v201311/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php create mode 100755 examples/Dfp/v201311/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php create mode 100755 examples/Dfp/v201403/ActivityGroupService/CreateActivityGroups.php create mode 100755 examples/Dfp/v201403/ActivityGroupService/GetActiveActivityGroups.php create mode 100755 examples/Dfp/v201403/ActivityGroupService/GetAllActivityGroups.php create mode 100755 examples/Dfp/v201403/ActivityGroupService/UpdateActivityGroups.php create mode 100755 examples/Dfp/v201403/ActivityService/CreateActivities.php create mode 100755 examples/Dfp/v201403/ActivityService/GetActiveActivities.php create mode 100755 examples/Dfp/v201403/ActivityService/GetAllActivities.php create mode 100755 examples/Dfp/v201403/ActivityService/UpdateActivities.php create mode 100755 examples/Dfp/v201403/AudienceSegmentService/CreateAudienceSegments.php create mode 100755 examples/Dfp/v201403/AudienceSegmentService/GetAllAudienceSegments.php create mode 100755 examples/Dfp/v201403/AudienceSegmentService/GetFirstPartyAudienceSegments.php create mode 100755 examples/Dfp/v201403/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php create mode 100755 examples/Dfp/v201403/AudienceSegmentService/UpdateAudienceSegments.php create mode 100755 examples/Dfp/v201403/CompanyService/CreateCompaniesExample.php create mode 100755 examples/Dfp/v201403/CompanyService/GetAllCompaniesExample.php create mode 100755 examples/Dfp/v201403/CompanyService/GetCompaniesByStatementExample.php create mode 100755 examples/Dfp/v201403/CompanyService/UpdateCompaniesExample.php create mode 100755 examples/Dfp/v201403/ContactService/CreateContacts.php create mode 100755 examples/Dfp/v201403/ContactService/GetAllContacts.php create mode 100755 examples/Dfp/v201403/ContactService/GetUninvitedContacts.php create mode 100755 examples/Dfp/v201403/ContactService/UpdateContacts.php create mode 100755 examples/Dfp/v201403/ContentMetadataKeyHierarchyService/CreateContentMetadataKeyHierarchiesExample.php create mode 100755 examples/Dfp/v201403/ContentMetadataKeyHierarchyService/DeleteContentMetadataKeyHierarchiesExample.php create mode 100755 examples/Dfp/v201403/ContentMetadataKeyHierarchyService/GetAllContentMetadataKeyHierarchiesExample.php create mode 100755 examples/Dfp/v201403/ContentMetadataKeyHierarchyService/UpdateContentMetadataKeyHierarchiesExample.php create mode 100755 examples/Dfp/v201403/ContentService/GetAllContentExample.php create mode 100755 examples/Dfp/v201403/ContentService/GetContentByCategoryExample.php create mode 100755 examples/Dfp/v201403/CreativeService/AssociateCreativeSetToLineItemExample.php create mode 100755 examples/Dfp/v201403/CreativeService/CreateCreativeFromTemplateExample.php create mode 100755 examples/Dfp/v201403/CreativeService/CreateCreativesExample.php create mode 100755 examples/Dfp/v201403/CreativeService/CreateCustomCreativeExample.php create mode 100755 examples/Dfp/v201403/CreativeService/GetAllCreativesExample.php create mode 100755 examples/Dfp/v201403/CreativeService/GetCreativesByStatementExample.php create mode 100755 examples/Dfp/v201403/CreativeService/UpdateCreativesExample.php create mode 100755 examples/Dfp/v201403/CreativeSetService/CreateCreativeSetsExample.php create mode 100755 examples/Dfp/v201403/CreativeSetService/GetAllCreativesSetsExample.php create mode 100755 examples/Dfp/v201403/CreativeSetService/GetCreativeSetsByStatementExample.php create mode 100755 examples/Dfp/v201403/CreativeSetService/UpdateCreativeSetsExample.php create mode 100755 examples/Dfp/v201403/CreativeTemplateService/GetAllCreativeTemplatesExample.php create mode 100755 examples/Dfp/v201403/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php create mode 100755 examples/Dfp/v201403/CreativeWrapperService/CreateCreativeWrappersExample.php create mode 100755 examples/Dfp/v201403/CreativeWrapperService/DeactivateCreativeWrapperExample.php create mode 100755 examples/Dfp/v201403/CreativeWrapperService/GetActiveCreativeWrappersExample.php create mode 100755 examples/Dfp/v201403/CreativeWrapperService/GetAllCreativeWrappersExample.php create mode 100755 examples/Dfp/v201403/CreativeWrapperService/UpdateCreativeWrappersExample.php create mode 100755 examples/Dfp/v201403/CustomFieldService/CreateCustomFieldOptions.php create mode 100755 examples/Dfp/v201403/CustomFieldService/CreateCustomFields.php create mode 100755 examples/Dfp/v201403/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php create mode 100755 examples/Dfp/v201403/CustomFieldService/GetAllCustomFieldsExample.php create mode 100755 examples/Dfp/v201403/CustomFieldService/SetLineItemCustomFieldValue.php create mode 100755 examples/Dfp/v201403/CustomFieldService/UpdateCustomFieldExample.php create mode 100755 examples/Dfp/v201403/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php create mode 100755 examples/Dfp/v201403/CustomTargetingService/DeleteCustomTargetingKeysExample.php create mode 100755 examples/Dfp/v201403/CustomTargetingService/DeleteCustomTargetingValuesExample.php create mode 100755 examples/Dfp/v201403/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php create mode 100755 examples/Dfp/v201403/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php create mode 100755 examples/Dfp/v201403/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php create mode 100755 examples/Dfp/v201403/CustomTargetingService/UpdateCustomTargetingKeysExample.php create mode 100755 examples/Dfp/v201403/CustomTargetingService/UpdateCustomTargetingValuesExample.php create mode 100755 examples/Dfp/v201403/ForecastService/GetForecastByIdExample.php create mode 100755 examples/Dfp/v201403/ForecastService/GetForecastExample.php create mode 100755 examples/Dfp/v201403/InventoryService/CreateAdUnitsExample.php create mode 100755 examples/Dfp/v201403/InventoryService/CreateMobileAdUnitExample.php create mode 100755 examples/Dfp/v201403/InventoryService/CreateVideoAdUnitExample.php create mode 100755 examples/Dfp/v201403/InventoryService/DeactivateAdUnitsExample.php create mode 100755 examples/Dfp/v201403/InventoryService/GetAdUnitSizesExample.php create mode 100755 examples/Dfp/v201403/InventoryService/GetAdUnitsByStatementExample.php create mode 100755 examples/Dfp/v201403/InventoryService/GetAllAdUnitsExample.php create mode 100755 examples/Dfp/v201403/InventoryService/GetInventoryTreeExample.php create mode 100755 examples/Dfp/v201403/InventoryService/UpdateAdUnitsExample.php create mode 100755 examples/Dfp/v201403/LabelService/CreateLabelsExample.php create mode 100755 examples/Dfp/v201403/LabelService/DeactivateLabelsExample.php create mode 100755 examples/Dfp/v201403/LabelService/GetAllLabelsExample.php create mode 100755 examples/Dfp/v201403/LabelService/GetLabelsByStatementExample.php create mode 100755 examples/Dfp/v201403/LabelService/UpdateLabelsExample.php create mode 100755 examples/Dfp/v201403/LicaService/CreateLicasExample.php create mode 100755 examples/Dfp/v201403/LicaService/DeactivateLicasExample.php create mode 100755 examples/Dfp/v201403/LicaService/GetAllLicasExample.php create mode 100755 examples/Dfp/v201403/LicaService/GetLicasByStatementExample.php create mode 100755 examples/Dfp/v201403/LicaService/UpdateLicasExample.php create mode 100755 examples/Dfp/v201403/LineItemService/ActivateLineItemsExample.php create mode 100755 examples/Dfp/v201403/LineItemService/AuditLineItemsGeoTargetingExample.php create mode 100755 examples/Dfp/v201403/LineItemService/CreateLineItemsExample.php create mode 100755 examples/Dfp/v201403/LineItemService/CreateMobileLineItemExample.php create mode 100755 examples/Dfp/v201403/LineItemService/CreateVideoLineItemExample.php create mode 100755 examples/Dfp/v201403/LineItemService/GetAllLineItemsExample.php create mode 100755 examples/Dfp/v201403/LineItemService/GetLineItemsByStatementExample.php create mode 100755 examples/Dfp/v201403/LineItemService/GetRecentlyUpdatedLineItems.php create mode 100755 examples/Dfp/v201403/LineItemService/TargetCustomCriteriaExample.php create mode 100755 examples/Dfp/v201403/LineItemService/UpdateLineItemsExample.php create mode 100755 examples/Dfp/v201403/NetworkService/GetAllNetworksExample.php create mode 100755 examples/Dfp/v201403/NetworkService/GetCurrentNetworkExample.php create mode 100755 examples/Dfp/v201403/NetworkService/MakeTestNetworkExample.php create mode 100755 examples/Dfp/v201403/OrderService/ApproveOrdersExample.php create mode 100755 examples/Dfp/v201403/OrderService/CreateOrdersExample.php create mode 100755 examples/Dfp/v201403/OrderService/GetAllOrdersExample.php create mode 100755 examples/Dfp/v201403/OrderService/GetOrdersByStatementExample.php create mode 100755 examples/Dfp/v201403/OrderService/UpdateOrdersExample.php create mode 100755 examples/Dfp/v201403/PlacementService/CreatePlacementsExample.php create mode 100755 examples/Dfp/v201403/PlacementService/DeactivatePlacementsExample.php create mode 100755 examples/Dfp/v201403/PlacementService/GetAllPlacementsExample.php create mode 100755 examples/Dfp/v201403/PlacementService/GetPlacementsByStatementExample.php create mode 100755 examples/Dfp/v201403/PlacementService/UpdatePlacementsExample.php create mode 100755 examples/Dfp/v201403/PublisherQueryLanguageService/FetchMatchTables.php create mode 100755 examples/Dfp/v201403/PublisherQueryLanguageService/GetGeoTargets.php create mode 100755 examples/Dfp/v201403/PublisherQueryLanguageService/GetLineItemsNamedLike.php create mode 100755 examples/Dfp/v201403/ReportService/DisplayReportExample.php create mode 100755 examples/Dfp/v201403/ReportService/DownloadReportExample.php create mode 100755 examples/Dfp/v201403/ReportService/RunDeliveryReportExample.php create mode 100755 examples/Dfp/v201403/ReportService/RunInventoryReportExample.php create mode 100755 examples/Dfp/v201403/ReportService/RunMergedDeliveryReportExample.php create mode 100755 examples/Dfp/v201403/ReportService/RunReachReportExample.php create mode 100755 examples/Dfp/v201403/ReportService/RunReportWithCustomFields.php create mode 100755 examples/Dfp/v201403/ReportService/RunSalesReportExample.php create mode 100755 examples/Dfp/v201403/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php create mode 100755 examples/Dfp/v201403/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php create mode 100755 examples/Dfp/v201403/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php create mode 100755 examples/Dfp/v201403/TeamService/CreateTeamsExample.php create mode 100755 examples/Dfp/v201403/TeamService/GetAllTeamsExample.php create mode 100755 examples/Dfp/v201403/TeamService/GetTeamsByStatementExample.php create mode 100755 examples/Dfp/v201403/TeamService/UpdateTeamsExample.php create mode 100755 examples/Dfp/v201403/UserService/CreateUsersExample.php create mode 100755 examples/Dfp/v201403/UserService/DeactivateUserExample.php create mode 100755 examples/Dfp/v201403/UserService/GetAllRolesExample.php create mode 100755 examples/Dfp/v201403/UserService/GetAllUsersExample.php create mode 100755 examples/Dfp/v201403/UserService/GetCurrentUserExample.php create mode 100755 examples/Dfp/v201403/UserService/GetUserExample.php create mode 100755 examples/Dfp/v201403/UserService/GetUsersByStatementExample.php create mode 100755 examples/Dfp/v201403/UserService/UpdateUsersExample.php create mode 100755 examples/Dfp/v201403/UserTeamAssociationService/CreateUserTeamAssociationsExample.php create mode 100755 examples/Dfp/v201403/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php create mode 100755 examples/Dfp/v201403/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php create mode 100755 examples/Dfp/v201403/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php create mode 100755 examples/Dfp/v201403/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php create mode 100755 src/Google/Api/Ads/AdWords/Lib/AdWordsConstants.php create mode 100755 src/Google/Api/Ads/AdWords/Lib/AdWordsSoapClient.php create mode 100755 src/Google/Api/Ads/AdWords/Lib/AdWordsSoapClientFactory.php create mode 100755 src/Google/Api/Ads/AdWords/Lib/AdWordsUser.php create mode 100755 src/Google/Api/Ads/AdWords/Lib/api.properties create mode 100755 src/Google/Api/Ads/AdWords/Lib/build.ini create mode 100755 src/Google/Api/Ads/AdWords/Util/ReportUtils.php create mode 100755 src/Google/Api/Ads/AdWords/auth.ini create mode 100755 src/Google/Api/Ads/AdWords/settings.ini create mode 100755 src/Google/Api/Ads/AdWords/v201306/AdExtensionOverrideService.php create mode 100755 src/Google/Api/Ads/AdWords/v201306/AdGroupAdService.php create mode 100755 src/Google/Api/Ads/AdWords/v201306/AdGroupBidModifierService.php create mode 100755 src/Google/Api/Ads/AdWords/v201306/AdGroupCriterionService.php create mode 100755 src/Google/Api/Ads/AdWords/v201306/AdGroupFeedService.php create mode 100755 src/Google/Api/Ads/AdWords/v201306/AdGroupService.php create mode 100755 src/Google/Api/Ads/AdWords/v201306/AdParamService.php create mode 100755 src/Google/Api/Ads/AdWords/v201306/AdwordsUserListService.php create mode 100755 src/Google/Api/Ads/AdWords/v201306/AlertService.php create mode 100755 src/Google/Api/Ads/AdWords/v201306/BiddingStrategyService.php create mode 100755 src/Google/Api/Ads/AdWords/v201306/BudgetOrderService.php create mode 100755 src/Google/Api/Ads/AdWords/v201306/BudgetService.php create mode 100755 src/Google/Api/Ads/AdWords/v201306/CampaignAdExtensionService.php create mode 100755 src/Google/Api/Ads/AdWords/v201306/CampaignCriterionService.php create mode 100755 src/Google/Api/Ads/AdWords/v201306/CampaignFeedService.php create mode 100755 src/Google/Api/Ads/AdWords/v201306/CampaignService.php create mode 100755 src/Google/Api/Ads/AdWords/v201306/CampaignSharedSetService.php create mode 100755 src/Google/Api/Ads/AdWords/v201306/ConstantDataService.php create mode 100755 src/Google/Api/Ads/AdWords/v201306/ConversionTrackerService.php create mode 100755 src/Google/Api/Ads/AdWords/v201306/CustomerService.php create mode 100755 src/Google/Api/Ads/AdWords/v201306/CustomerSyncService.php create mode 100755 src/Google/Api/Ads/AdWords/v201306/DataService.php create mode 100755 src/Google/Api/Ads/AdWords/v201306/ExperimentService.php create mode 100755 src/Google/Api/Ads/AdWords/v201306/FeedItemService.php create mode 100755 src/Google/Api/Ads/AdWords/v201306/FeedMappingService.php create mode 100755 src/Google/Api/Ads/AdWords/v201306/FeedService.php create mode 100755 src/Google/Api/Ads/AdWords/v201306/GeoLocationService.php create mode 100755 src/Google/Api/Ads/AdWords/v201306/LocationCriterionService.php create mode 100755 src/Google/Api/Ads/AdWords/v201306/ManagedCustomerService.php create mode 100755 src/Google/Api/Ads/AdWords/v201306/MediaService.php create mode 100755 src/Google/Api/Ads/AdWords/v201306/MutateJobService.php create mode 100755 src/Google/Api/Ads/AdWords/v201306/ReportDefinitionService.php create mode 100755 src/Google/Api/Ads/AdWords/v201306/SharedCriterionService.php create mode 100755 src/Google/Api/Ads/AdWords/v201306/SharedSetService.php create mode 100755 src/Google/Api/Ads/AdWords/v201306/TargetingIdeaService.php create mode 100755 src/Google/Api/Ads/AdWords/v201306/TrafficEstimatorService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/AdGroupAdService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/AdGroupBidModifierService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/AdGroupCriterionService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/AdGroupFeedService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/AdGroupService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/AdParamService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/AdwordsUserListService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/AlertService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/BiddingStrategyService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/BudgetOrderService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/BudgetService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/CampaignAdExtensionService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/CampaignCriterionService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/CampaignFeedService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/CampaignService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/CampaignSharedSetService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/ConstantDataService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/ConversionTrackerService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/CustomerService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/CustomerSyncService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/DataService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/ExperimentService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/ExpressBusinessService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/FeedItemService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/FeedMappingService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/FeedService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/GeoLocationService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/LocationCriterionService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/ManagedCustomerService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/MediaService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/MutateJobService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/OfflineConversionFeedService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/PromotionService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/ReportDefinitionService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/SharedCriterionService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/SharedSetService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/TargetingIdeaService.php create mode 100755 src/Google/Api/Ads/AdWords/v201309/TrafficEstimatorService.php create mode 100755 src/Google/Api/Ads/Common/Lib/AdsSoapClient.php create mode 100755 src/Google/Api/Ads/Common/Lib/AdsUser.php create mode 100755 src/Google/Api/Ads/Common/Lib/ServiceException.php create mode 100755 src/Google/Api/Ads/Common/Lib/SoapClientFactory.php create mode 100755 src/Google/Api/Ads/Common/Lib/ValidationException.php create mode 100755 src/Google/Api/Ads/Common/Lib/build.ini create mode 100755 src/Google/Api/Ads/Common/Util/ApiPropertiesUtils.php create mode 100755 src/Google/Api/Ads/Common/Util/AuthToken.php create mode 100755 src/Google/Api/Ads/Common/Util/AuthTokenException.php create mode 100755 src/Google/Api/Ads/Common/Util/ChoiceUtils.php create mode 100755 src/Google/Api/Ads/Common/Util/CurlUtils.php create mode 100755 src/Google/Api/Ads/Common/Util/DeprecationUtils.php create mode 100755 src/Google/Api/Ads/Common/Util/ErrorUtils.php create mode 100755 src/Google/Api/Ads/Common/Util/Logger.php create mode 100755 src/Google/Api/Ads/Common/Util/MapUtils.php create mode 100755 src/Google/Api/Ads/Common/Util/MediaUtils.php create mode 100755 src/Google/Api/Ads/Common/Util/OAuth2Handler.php create mode 100755 src/Google/Api/Ads/Common/Util/OgnlUtils.php create mode 100755 src/Google/Api/Ads/Common/Util/SimpleOAuth2Handler.php create mode 100755 src/Google/Api/Ads/Common/Util/SoapRequestXmlFixer.php create mode 100755 src/Google/Api/Ads/Common/Util/UrlUtils.php create mode 100755 src/Google/Api/Ads/Common/Util/XmlUtils.php create mode 100755 src/Google/Api/Ads/Dfp/Lib/DfpSoapClient.php create mode 100755 src/Google/Api/Ads/Dfp/Lib/DfpSoapClientFactory.php create mode 100755 src/Google/Api/Ads/Dfp/Lib/DfpUser.php create mode 100755 src/Google/Api/Ads/Dfp/Lib/api.properties create mode 100755 src/Google/Api/Ads/Dfp/Lib/build.ini create mode 100755 src/Google/Api/Ads/Dfp/Util/DateTimeUtils.php create mode 100755 src/Google/Api/Ads/Dfp/Util/Pql.php create mode 100755 src/Google/Api/Ads/Dfp/Util/ReportUtils.php create mode 100755 src/Google/Api/Ads/Dfp/Util/ServiceUtils.php create mode 100755 src/Google/Api/Ads/Dfp/auth.ini create mode 100755 src/Google/Api/Ads/Dfp/settings.ini create mode 100755 src/Google/Api/Ads/Dfp/v201208/AudienceSegmentService.php create mode 100755 src/Google/Api/Ads/Dfp/v201208/CompanyService.php create mode 100755 src/Google/Api/Ads/Dfp/v201208/ContentService.php create mode 100755 src/Google/Api/Ads/Dfp/v201208/CreativeService.php create mode 100755 src/Google/Api/Ads/Dfp/v201208/CreativeSetService.php create mode 100755 src/Google/Api/Ads/Dfp/v201208/CreativeTemplateService.php create mode 100755 src/Google/Api/Ads/Dfp/v201208/CustomFieldService.php create mode 100755 src/Google/Api/Ads/Dfp/v201208/CustomTargetingService.php create mode 100755 src/Google/Api/Ads/Dfp/v201208/ForecastService.php create mode 100755 src/Google/Api/Ads/Dfp/v201208/InventoryService.php create mode 100755 src/Google/Api/Ads/Dfp/v201208/LabelService.php create mode 100755 src/Google/Api/Ads/Dfp/v201208/LineItemCreativeAssociationService.php create mode 100755 src/Google/Api/Ads/Dfp/v201208/LineItemService.php create mode 100755 src/Google/Api/Ads/Dfp/v201208/NetworkService.php create mode 100755 src/Google/Api/Ads/Dfp/v201208/OrderService.php create mode 100755 src/Google/Api/Ads/Dfp/v201208/PlacementService.php create mode 100755 src/Google/Api/Ads/Dfp/v201208/PublisherQueryLanguageService.php create mode 100755 src/Google/Api/Ads/Dfp/v201208/ReportService.php create mode 100755 src/Google/Api/Ads/Dfp/v201208/SuggestedAdUnitService.php create mode 100755 src/Google/Api/Ads/Dfp/v201208/TeamService.php create mode 100755 src/Google/Api/Ads/Dfp/v201208/ThirdPartySlotService.php create mode 100755 src/Google/Api/Ads/Dfp/v201208/UserService.php create mode 100755 src/Google/Api/Ads/Dfp/v201208/UserTeamAssociationService.php create mode 100755 src/Google/Api/Ads/Dfp/v201211/AudienceSegmentService.php create mode 100755 src/Google/Api/Ads/Dfp/v201211/CompanyService.php create mode 100755 src/Google/Api/Ads/Dfp/v201211/ContentService.php create mode 100755 src/Google/Api/Ads/Dfp/v201211/CreativeService.php create mode 100755 src/Google/Api/Ads/Dfp/v201211/CreativeSetService.php create mode 100755 src/Google/Api/Ads/Dfp/v201211/CreativeTemplateService.php create mode 100755 src/Google/Api/Ads/Dfp/v201211/CreativeWrapperService.php create mode 100755 src/Google/Api/Ads/Dfp/v201211/CustomFieldService.php create mode 100755 src/Google/Api/Ads/Dfp/v201211/CustomTargetingService.php create mode 100755 src/Google/Api/Ads/Dfp/v201211/ForecastService.php create mode 100755 src/Google/Api/Ads/Dfp/v201211/InventoryService.php create mode 100755 src/Google/Api/Ads/Dfp/v201211/LabelService.php create mode 100755 src/Google/Api/Ads/Dfp/v201211/LineItemCreativeAssociationService.php create mode 100755 src/Google/Api/Ads/Dfp/v201211/LineItemService.php create mode 100755 src/Google/Api/Ads/Dfp/v201211/NetworkService.php create mode 100755 src/Google/Api/Ads/Dfp/v201211/OrderService.php create mode 100755 src/Google/Api/Ads/Dfp/v201211/PlacementService.php create mode 100755 src/Google/Api/Ads/Dfp/v201211/PublisherQueryLanguageService.php create mode 100755 src/Google/Api/Ads/Dfp/v201211/ReportService.php create mode 100755 src/Google/Api/Ads/Dfp/v201211/SuggestedAdUnitService.php create mode 100755 src/Google/Api/Ads/Dfp/v201211/TeamService.php create mode 100755 src/Google/Api/Ads/Dfp/v201211/ThirdPartySlotService.php create mode 100755 src/Google/Api/Ads/Dfp/v201211/UserService.php create mode 100755 src/Google/Api/Ads/Dfp/v201211/UserTeamAssociationService.php create mode 100755 src/Google/Api/Ads/Dfp/v201302/ActivityGroupService.php create mode 100755 src/Google/Api/Ads/Dfp/v201302/ActivityService.php create mode 100755 src/Google/Api/Ads/Dfp/v201302/AdRuleService.php create mode 100755 src/Google/Api/Ads/Dfp/v201302/AudienceSegmentService.php create mode 100755 src/Google/Api/Ads/Dfp/v201302/CompanyService.php create mode 100755 src/Google/Api/Ads/Dfp/v201302/ContactService.php create mode 100755 src/Google/Api/Ads/Dfp/v201302/ContentBundleService.php create mode 100755 src/Google/Api/Ads/Dfp/v201302/ContentService.php create mode 100755 src/Google/Api/Ads/Dfp/v201302/CreativeService.php create mode 100755 src/Google/Api/Ads/Dfp/v201302/CreativeSetService.php create mode 100755 src/Google/Api/Ads/Dfp/v201302/CreativeTemplateService.php create mode 100755 src/Google/Api/Ads/Dfp/v201302/CreativeWrapperService.php create mode 100755 src/Google/Api/Ads/Dfp/v201302/CustomFieldService.php create mode 100755 src/Google/Api/Ads/Dfp/v201302/CustomTargetingService.php create mode 100755 src/Google/Api/Ads/Dfp/v201302/ForecastService.php create mode 100755 src/Google/Api/Ads/Dfp/v201302/InventoryService.php create mode 100755 src/Google/Api/Ads/Dfp/v201302/LabelService.php create mode 100755 src/Google/Api/Ads/Dfp/v201302/LineItemCreativeAssociationService.php create mode 100755 src/Google/Api/Ads/Dfp/v201302/LineItemService.php create mode 100755 src/Google/Api/Ads/Dfp/v201302/NetworkService.php create mode 100755 src/Google/Api/Ads/Dfp/v201302/OrderService.php create mode 100755 src/Google/Api/Ads/Dfp/v201302/PlacementService.php create mode 100755 src/Google/Api/Ads/Dfp/v201302/PublisherQueryLanguageService.php create mode 100755 src/Google/Api/Ads/Dfp/v201302/ReportService.php create mode 100755 src/Google/Api/Ads/Dfp/v201302/SuggestedAdUnitService.php create mode 100755 src/Google/Api/Ads/Dfp/v201302/TeamService.php create mode 100755 src/Google/Api/Ads/Dfp/v201302/ThirdPartySlotService.php create mode 100755 src/Google/Api/Ads/Dfp/v201302/UserService.php create mode 100755 src/Google/Api/Ads/Dfp/v201302/UserTeamAssociationService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/ActivityGroupService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/ActivityService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/AdRuleService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/AudienceSegmentService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/BaseRateService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/CompanyService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/ContactService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/ContentBundleService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/ContentService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/CreativeService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/CreativeSetService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/CreativeTemplateService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/CreativeWrapperService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/CustomFieldService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/CustomTargetingService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/ForecastService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/InventoryService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/LabelService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/LineItemCreativeAssociationService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/LineItemService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/LineItemTemplateService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/NetworkService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/OrderService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/PlacementService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/ProductService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/ProductTemplateService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/ProposalLineItemService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/ProposalService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/PublisherQueryLanguageService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/RateCardCustomizationService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/RateCardService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/ReconciliationOrderReportService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/ReconciliationReportRowService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/ReconciliationReportService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/ReportService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/SuggestedAdUnitService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/TeamService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/UserService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/UserTeamAssociationService.php create mode 100755 src/Google/Api/Ads/Dfp/v201306/WorkflowActionService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/ActivityGroupService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/ActivityService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/AdRuleService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/AudienceSegmentService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/BaseRateService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/CompanyService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/ContactService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/ContentBundleService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/ContentService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/CreativeService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/CreativeSetService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/CreativeTemplateService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/CreativeWrapperService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/CustomFieldService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/CustomTargetingService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/ForecastService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/InventoryService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/LabelService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/LineItemCreativeAssociationService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/LineItemService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/LineItemTemplateService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/NetworkService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/OrderService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/PlacementService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/ProductService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/ProductTemplateService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/ProposalLineItemService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/ProposalService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/PublisherQueryLanguageService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/RateCardCustomizationService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/RateCardService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/ReconciliationOrderReportService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/ReconciliationReportRowService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/ReconciliationReportService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/ReportService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/SuggestedAdUnitService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/TeamService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/UserService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/UserTeamAssociationService.php create mode 100755 src/Google/Api/Ads/Dfp/v201308/WorkflowActionService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/ActivityGroupService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/ActivityService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/AdRuleService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/AudienceSegmentService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/BaseRateService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/CompanyService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/ContactService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/ContentBundleService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/ContentMetadataKeyHierarchyService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/ContentService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/CreativeService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/CreativeSetService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/CreativeTemplateService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/CreativeWrapperService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/CustomFieldService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/CustomTargetingService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/ExchangeRateService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/ForecastService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/InventoryService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/LabelService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/LineItemCreativeAssociationService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/LineItemService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/LineItemTemplateService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/NetworkService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/OrderService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/PlacementService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/ProductService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/ProductTemplateService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/ProposalLineItemService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/ProposalService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/PublisherQueryLanguageService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/RateCardCustomizationService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/RateCardService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/ReconciliationOrderReportService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/ReconciliationReportRowService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/ReconciliationReportService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/ReportService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/SuggestedAdUnitService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/TeamService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/UserService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/UserTeamAssociationService.php create mode 100755 src/Google/Api/Ads/Dfp/v201311/WorkflowRequestService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/ActivityGroupService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/ActivityService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/AdRuleService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/AudienceSegmentService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/BaseRateService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/CompanyService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/ContactService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/ContentBundleService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/ContentMetadataKeyHierarchyService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/ContentService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/CreativeService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/CreativeSetService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/CreativeTemplateService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/CreativeWrapperService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/CustomFieldService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/CustomTargetingService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/ExchangeRateService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/ForecastService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/InventoryService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/LabelService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/LineItemCreativeAssociationService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/LineItemService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/LineItemTemplateService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/LiveStreamEventService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/NetworkService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/OrderService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/PlacementService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/ProductService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/ProductTemplateService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/ProposalLineItemService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/ProposalService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/PublisherQueryLanguageService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/RateCardCustomizationGroupService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/RateCardCustomizationService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/RateCardService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/ReconciliationOrderReportService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/ReconciliationReportRowService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/ReconciliationReportService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/ReportService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/SuggestedAdUnitService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/TeamService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/UserService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/UserTeamAssociationService.php create mode 100755 src/Google/Api/Ads/Dfp/v201403/WorkflowRequestService.php create mode 100755 src/README.md create mode 100755 tests/Google/Api/Ads/AdWords/AdWordsIntegrationTest.php create mode 100755 tests/Google/Api/Ads/AdWords/CampaignService-response.xml create mode 100755 tests/Google/Api/Ads/AdWords/Lib/AdWordsUserTest.php create mode 100755 tests/Google/Api/Ads/AdWords/auth.ini create mode 100755 tests/Google/Api/Ads/Common/Lib/AdsSoapClientTest.php create mode 100755 tests/Google/Api/Ads/Common/Lib/AdsUserTest.php create mode 100755 tests/Google/Api/Ads/Common/Testing/AssetHelper.php create mode 100755 tests/Google/Api/Ads/Common/Util/AuthTokenTest.php create mode 100755 tests/Google/Api/Ads/Common/Util/ChoiceUtilsTest.php create mode 100755 tests/Google/Api/Ads/Common/Util/DeprecationUtilsTest.php create mode 100755 tests/Google/Api/Ads/Common/Util/ErrorUtilsTest.php create mode 100755 tests/Google/Api/Ads/Common/Util/MapUtilsTest.php create mode 100755 tests/Google/Api/Ads/Common/Util/OAuth2HandlerTest.php create mode 100755 tests/Google/Api/Ads/Common/Util/OgnlUtilsTest.php create mode 100755 tests/Google/Api/Ads/Common/Util/SimpleOAuth2HandlerTest.php create mode 100755 tests/Google/Api/Ads/Common/Util/SoapRequestXmlFixerTest.php create mode 100755 tests/Google/Api/Ads/Common/Util/UrlUtilsTest.php create mode 100755 tests/Google/Api/Ads/Common/Util/XmlUtilsTest.php create mode 100755 tests/Google/Api/Ads/Dfp/Util/DateTimeUtilsTest.php create mode 100755 tests/Google/Api/Ads/Dfp/Util/PqlTest.php create mode 100755 tests/Google/Api/Ads/Dfp/Util/ReportUtilsTest.php diff --git a/ChangeLog.md b/ChangeLog.md new file mode 100755 index 000000000..303b09104 --- /dev/null +++ b/ChangeLog.md @@ -0,0 +1,527 @@ +### 5.2.0 + +AdWords: + - No changes. + +DFP: + - Added support for v201403. + - Added exception being thrown if a service is requested with ClientLogin as + the authentication mechanism for an unsupported version. + - Refactored all examples to use non-bulk service methods. + - Added examples for ContentMetadataKeyHierarchyService. + +Common: + - No changes. + +### 5.1.0 + +AdWords: + - Fixing [issue #9](https://github.com/googleads/googleads-php-lib/issues/9 "googleads-php-lib issues #9") - removing unused criteria object in example. + - Added support for AdWords Express for v201309 (invite-only feature). + +DFP: + - No changes. + +Common: + - No changes. + +### 5.0.0 + +AdWords: + - No changes. + +DFP: + - No changes. + +Common: + - Library is now hosted on GitHub in a single project for all ads products. + Each release will still have separate downloadable tarballs for each + product. + - Bumped library version to a common version. + +--- + +### Previous change logs by product. + +#### AdWords + +4.7.0: +- Fixed bug #115. +- Removed support for v201302. +- Added UpdateSiteLinks example. + +4.6.1: +- Fixed bug #112 + +4.6.0: +- Added support and examples for v201309. + +4.5.1: +- Reintroduced WSDL Interpreter for generating PHP stubs from WSDLS. + +4.5.0: +- AdWords for Video API v201302 examples (beta feature). +- Fixed Feed Function naming to FeedFunction (Issue #101). +- Removed support for v201209. + +4.4.0: +- Added support and examples for v201306. + +4.3.0: +- Removed support for OAuth 1. Use OAuth 2 instead. +- OAuth 2 is now the preferred authentication method as ClientLogin is + deprecated. Warnings will be logged if ClientLogin is used. +- The OAuth 2 example has been renamed to GetRefreshToken.php (previously + UseOAuth2.php) and will read OAuth 2 client ID and secret credentials from + the auth.ini file. +- Access tokens are now automatically refreshed when they are close to + expiring (within 60 seconds) if a refreshable token has been provided. This + allows PHP scripts to be long lived without issues. +- The authentication key "clientId" in auth.ini has been renamed to + "clientCustomerId". +- Examples now capture OAuth2 errors and inform users how best to resolve + them. +- Added support for AdWords for Video v201302. + +4.2.5: +- Added example for upgrading legacy sitelinks. +- Moved the SetCampaignEnhanced example to the Migration directory. + +4.2.4: +- Added support and examples for AdGroupBidModifierService. + +4.2.3: +- AdWords for Video API support and examples (beta feature). + +4.2.2: +- Bug fix for PHP < 5.3.0 undefined function parse_ini_string (Issue #91). + +4.2.1: +- Fixed "cvc-elt" error with resolving Selector. +- Removed v201206 src. +- Removed v201206 AdWords and Adx examples. +- Improved examples dependency include (init.php). + +4.2.0: +- Removed AndySmithOAuthHandler. Use PECL OAuth extension instead for OAuth 1. + +4.1.1: +- Improved support of reporting for v201302. + +4.1.0: +- Added support and examples for v201302. + +4.0.1: +- Added example for Setting a campaign to enhanced. +- Added example for Setting a bid modifier. + +4.0.0: +- Correcting user agent. + +3.3.0: +- Removing support for sunset Sandbox environment + +3.2.3: +- Bug fix for PHP 5.4.0 to 5.4.4 SOAP flag name change (Issue #81). + +3.2.0: +- Added support and examples for v201209. +- Added support in ReportUtils for apiMode error messages. + +3.1.1: +- Fixed call to missing method in OAuthHandler (Issue #74). +- Added support and examples for v201206. + +3.1.0: +- Added support, examples, and tests for v201109_1. +- Added support for OAuth2. + +3.0.3: +- Fixed issue with improper loading of settings and added tests. (Issue #68) +- Fixed invalid date range issue with GetClientCustomerId example. (Issue #74) +- Small updates and enhancements to tests. + +3.0.2: +- Added support for the whitelist-only BudgetOrderService. + +3.0.1: +- Removed support and examples for the sunset BulkOpportunityService. +- Regenerated service stub classes. +- Added validation tests for the example code. +- Updated examples to include optional fields and multiple items. +- Added an example demonstrating how to get stats. +- Updated and refactored the AdX-specific tests. + +3.0.0: +- Removed support, examples, and tests for API versions v200909, v201003, + v201008, and v201101. +- Reorganized and updated the v201109 examples. +- Added support for SSL host verification and added SSL verification to OAuth + flow. +- Updated auth files to remove application token and client email. +- Fix for issue #67. Ensuring the request wrapper object has a unique name + per-service, even though other class renaming rules should be ignored, + when psuedo-namespaces are enabled. +- Fixed WSDL interpretter to handle missing class map correctly. +- Fixed include path in AdWordsTestSuite.php. + +2.7.2: +- Added support and example for CreateAccountService. +- Fixed issue with incorrect exception variable name. +- Fixed issue with GetAccountHeirarchy.php when used in the sandbox. +- Fixed issue with lingering "id" attribute after reference replacement. Added + tests for SoapXmlFixer. + +2.7.1: +- Added developer token to report download requests and updated error handling. + +2.7.0: +- Added support and examples for v201109. +- Added support and example for downloading ad hoc reports. +- Deprecated support for clientEmail in v201109. +- Added operation index parsing for OGNL expressions. +- Improved type handling during XML serialization and deserialization. +- Added option for HTTP method to OAuth handlers. + +2.6.4: +- Fixed long type conversion issue with 32-bit machines. (Issue #55) +- Fixed 1.0a support in AndySmithOAuthHandler. +- Replaced AdWordsUser Get*Service() methods with a single GetService() method. + Backwards compatability maintained using __call(). All examples and tests + updated to use the new method. +- Fixed capitalization of TRUE and FALSE in various files. +- Added support for pseudo-namespaces on generated classes. (Issue #4) +- Changed WSDL2PHP to ignore classmap when pseudonamespaces are enabled. +- Moved header generation to API-specific SOAP client classes. +- Made AdWordsUser->__call() method case insensitive when matching for + Get*Service() method calls. +- Added logic to pass ID values as strings to avoid any precision issues. + (Issue #62) +- Fixed long field conversion code and added tests. +- Fixed issue with missing xsi namespace declaration when adding xsi types. +- Removed option to redeclare namespace definitions, as the API was updated to + no longer require this. +- Improved error handling when DOM fails to load. +- Enabled gzip compression of inbound non-SOAP HTTP requests. +- Added XML serializtion functionality to XmlUtils, and various cleanup. +- Fixed build file, specifing class map as JSON. + +2.6.3: +- Updated OAuth implementation to allow for alternative OAuth libraries, + including the bundled Andy Smith library. Updated to use OAuth version 1.0a. +- Updated the logging functionality to support filtering for levels. Changed the + default logging behavior to only log SOAP XML if an error occurred. Added new + methods to AdWordsUser for additional logging configuration. +- Fixed issue with cross-client report download. (Issue #59) +- Updated and added functional tests for v201008 and v201101. + +2.6.2: +- Made v201101 the default version. +- Small documentation fixes. +- Fixed issue with small reports being interpretted incorrectly. [Issue #58] + +2.6.1: +- Fixed build script to include build.properties for source distributions. + +2.6.0: +- Added support for asyncronous (cross-client) report downloads. +- Merged with the Ad Exchange Buyer client library. +- Refactored build system to use properties file. +- All generated service for a version are now stored in the same folder. + +2.5.1: +- Added support for the ConversionTrackerService and BulkOpportunityService, + including examples. +- Updated the AddUserList.php example to include retrieving the conversion + tracker snippet. + +2.5.0: +- Added support for v201101, including examples. +- Fixed bug where constants were being redefined. +- Added support for SSL peer validation. +- Removed name field from image upload examples. +- Added example for CAPTCHA handling in auth token errors. +- Prevent whole file from being read in when checking for errors in report + download (Issue #51). +- Enhanced auth token error handling to support 2-step errors. +- Fixed bug in SoapRequestXmlFixer that lead to duplicate xsi:types in some + environments (Issue #50). +- Added new tests for v201003 and updated some v200909 tests. +- Updated examples to ensure proper string formatting for long types. + +2.4.1: +- Added support for the returnMoneyInMicros header in ReportUtils. +- Added an example for handling partial failures. +- Fixed small typo in GetAccountHierarchy example. + +2.4.0: +- Added support and examples for additional v201008 services. +- Made v201008 the default version. +- Updated OAuth parameter to use standard method. +- Updated conversion optimizer example to use new campaign field. +- Added additional BulkMutateJobService examples. +- Added new utility to work with choice classes. +- Fixed GetAllAdGroups examples (Issue #44). +- Removed CSV and other data files. + +2.3.0: +- Added support for v201008, with examples. +- Changed error handling in examples to avoid authTokens and developer tokens + appearing in stack traces. +- Added AuthToken unit test. +- Added XSI type fix for OSX. +- Ensured correct argument separator for ClientLogin requests. +- Added ability to download reports to memory. +- Updated ReportUtils error regex. +- Added OAuth support. +- Added ability to reuse authToken without first creating new one. +- Added new test framework and utils. +- Added and updated v200909 tests. +- Added the ability to load authToken or OAuth info from the auth.ini file. + +2.2.0: +- Added support for v201003, with examples and tests. +- Removed API dependency from ErrorUtils. +- Added MapUtils for converting between maps and map entry arrays. +- Updated TargetingIdeaService examples to use MapUtils. +- Updated AddAds examples to include video template ad. +- Added ReportUtils for downloading reports. +- Improved error handling for AuthToken requests. +- Added proxy support to wsdl2php library. + +2.1.0: +- Corrected typo in settings file. +- Addition to README, unicode characters and escaping. +- Added PHP 5.3 support. +- HTTP proxy and WSDL caching settings. +- Changed copyright date to 2010. +- Casting ids to floats in examples. +- Updated CSV data files. +- Added utility classes for working with Errors and Ognl paths. +- Added new examples for deleting items and handling policy violation errors. + +2.0.1: +- Bug fix for custom class loaders (Issue #15). +- Bug fix for XML validation in PHP 5.2.6 and below (Issue #16). +- Updated user agent format. + +2.0.0: +- Removed support for v200906, which has been sunset. +- Made application tokens optional. +- Added support for gzip compression of SOAP requests and responses (Issue #14). + +1.2.2: +- Added namespace declaration workaround for bug in server side XML validation. +- Changed tests to pull server from test_settings.ini. +- Removed usage of deprecated split() method (Issue #6). +- Prevented multiple appenders from being added for the same file (Issue #9). +- Prevented autoloading of AdWords API classes (Issue #11). + +1.2.1: +- Added new examples and rewrote existing ones for consistency. +- Fixed incorrect method and service name for GetAdExtensionOverrideService in + class AdWordsUser. + +1.2.0: +- Added support AdParamService. +- Added support for validateOnly header. +- Added new examples. + +1.1.0: +- Added support for all v5.2.x versions of PHP. + +1.0.0: +- Initial release of library. + +--- + +#### DFP + +2.19.0: +- Added support for v201311. +- A valid application name is now required and must not be the default. Set it + in your auth.ini file using the applicationName key. + +2.18.0: +- Added support for v201308. +- Removed deprecated versions v201203, v201204, and v201206. +- Added ToString and ToStringWithTimeZone functions in date utils to stringify + DfpDateTimes. +- Pql utilities will now convert DfpDateTime and Date values into machine + readable strings. DfpDateTimes will be in ISO-8061 format, while Dates will be + in yyyy-MM-dd format. +- Added result set combiner function in Pql utilities to easily combine result + sets from paged statements. + +2.17.1: +- Reintroduced WSDL Interpreter for generating PHP stubs from WSDLS. + +2.17.0: +- Added support for v201306. +- Removed support for OAuth 1. Use OAuth 2 instead. +- OAuth 2 is now the preferred authentication method as ClientLogin is + deprecated. Warnings will be logged if ClientLogin is used. +- The OAuth 2 example has been renamed to GetRefreshToken.php (previously + UseOAuth2.php) and will read OAuth 2 client ID and secret credentials from + the auth.ini file. +- Access tokens are now automatically refreshed when they are close to + expiring (within 60 seconds) if a refreshable token has been provided. This + allows PHP scripts to be long lived without issues. +- Examples now capture OAuth2 errors and inform users how best to resolve + them. + +2.16.0: +- Added support for v201302. +- Removed AndySmithOAuthHandler. Use PECL OAuth extension instead for OAuth 1. +- Removed standalone playground web app sample, please use the hosted version at + https://dfp-playground.appspot.com instead. + +2.15.0: +- Added support for v201211. +- Updated existing generated code for UnsupportedCreative and UNKNOWN enum + choices. +- Removed support for v201108, v201111, and v201201. + +2.14.1: +- Added link to the DFP developer site in auth.ini that explains property + values. +- Updated comments for example for MakeTestNetworkExample.php. +- Updated GetAdUnitSizesExample.php, CreateMobileAdUnitExample.php, and + GetAllLicasExample.php. +- Added new examples AssociateCreativeSetToLineItemExample.php and + RunReportWithCustomFields.php. + +2.14.0: +- Added support for v201208. + +2.13.1: +- Changed formatting of client library user agent. +- Fixed unit tests that were previously not working. +- Refactored some unit tests to use mocks and not contact the actual DFP + service. +- Refactored CurlUtils.php so that it can be tested. +- Fixed Issue #44 + +2.13.0: +- Added support for v201206. +- Added examples for CreativeSetService. +- Added support and samples for OAuth2.0. + +2.12.1: +- Bug fix for DfpUser abstract method not implemented exception (Issue #37). + +2.12.0: +- Added support for v201204. +- Added examples for TeamUserAssociationService. +- Added examples for CustomFieldService. +- Updated examples for TeamService and PlacementService. + +2.11.0: +- Removed support for deprecated versions v201103, v201104, and v201107. +- Added support for v201203. +- Library will no longer default to the sandbox environment. + +2.10.0: +- Added support for v201201. +- Added examples for TeamService. +- Adjusted some examples for new v201201 features. +- Removed non-essential PQL examples. + +2.9.1: +- Added examples for the ThirdPartySlotService. +- Added support for CreativeTemplates in the sample web application. +- Updated pseudo-namespace functionality to handle conflicts better. + +2.9.0: +- Added support and examples for v201111. +- Fixed issue with lingering "id" attribute after reference replacement. Added + tests for SoapXmlFixer. +- Fixed bug with wrong exception name (Issue #27). +- Added support for general PQL Service in webapp. +- Updated to using new DfpUser->GetService() method in webapp. +- Added local storage to save filter text in webapp. +- Bug fix for snippet not being escaped in webapp (Issue #25). +- Bug fix for out of memory exception when there were too many results in webapp + (Issue #23). + +2.8.1: +- Added and updated examples to support postal codes. +- Added operation index parsing for OGNL expressions. +- Added option for HTTP method to OAuth handlers. +- Improved type handling during XML serialization and deserialization. +- Added the ability to ignore duplicate class names when generating classes + from the WSDL. + +2.8.0: +- Added support, tests, and examples for v201108. +- Added support for Date conversions in DateTimeUtils. +- Made DfpDateTime conversions timezone aware. +- Fixed tests so that they work correctly against production. + +2.7.0: +- Added support, tests, and examples for v201107. +- Replaced Get*Servce() methods with a single GetService() method. Maintained + backwards compatibility using the magic method __call. +- Updated the logging functionality to support filtering for levels. Changed the + default logging behavior to only log SOAP XML if an error occurred. Added new + methods to DfpUser for additional logging configuration. +- Updated OAuth mechanism, allowing for different OAuth libraries to be used. +- Updated OAuth implementation to version 1.0a. +- Moved WSDL2PHP settings into build.properties. +- Added pseudo-namespace support for generated classes. +- Added better support for long value serialization and deserialization. +- Added features and fixed bugs for the sample webapp. Fixes for issues #9, #10, + #11, and #13. + +2.6.0: +- Added support, examples, and tests for v201104. +- Updated build system and endpoint URL handling. + +2.5.1: +- Fixed xsi:types in headers for some versions of PHP. Issue #7. + +2.5.0: +- Added support for v201103, including examples and tests. +- Fixed bug in webapp that resulted in duplicate HTML ids. +- Updated code generation script for better documentation. +- Changed documentation format to use frames. + +2.4.0: +- Added support for version v201101, including examples and tests. +- Added support for SSL peer validation. +- Updated auth token and report utilities to use common cURL utility. +- Fixed problem of duplicate xsi:type attributes in some environments. + +2.3.0: +- Added support for version v201010, including examples and tests. +- Updated CreateLineItemsExample.php to include geographical targeting. +- Removed v201004 dependency from DateTimeUtils.php. + +2.2.0: +- Added support for the NetworkService, with examples. +- Added tests for ForecastService, NetworkService, and ReportService. +- Updated tests and examples for compatiblity with DFP Small Business. + +2.1.0: +- Added support for ForecastService and ReportService, with examples. +- Removed API dependency from ErrorUtils. +- Added MapUtils for converting between maps and map entry arrays. +- Added ReportUtils for downloading reports. +- Improved error handling for AuthToken requests. +- Added proxy support to wsdl2php library. + +2.0.0: +- Add support for v201004 + - Filter replaced by Statement +- Removed support for v201002 +- Added utility classes for working with Errors and OGNL paths. + +1.1.0: +- Addition to README, unicode characters and escaping. +- Added PHP 5.3 support. +- HTTP proxy and WSDL caching settings. +- Bug fix for custom class loaders. +- Casting ids to floats in examples. + +1.0.0: +- Initial release of library. diff --git a/LICENSE b/LICENSE new file mode 100755 index 000000000..261eeb9e9 --- /dev/null +++ b/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/README.md b/README.md new file mode 100755 index 000000000..795e13bd6 --- /dev/null +++ b/README.md @@ -0,0 +1,177 @@ +## The Google Ads APIs PHP Client Library + +This project hosts the PHP client library for the various SOAP-based Ads APIs +(AdWords, AdExchange Buyer, and DFP) at Google. + + +### Features + +* Provides easy SOAP logging of API calls. +* Automatic handling of SOAP headers. +* Easy management of credentials, authentication, and session information. +* Examples to that show how to access API services. + + +### Requirements + +PHP + - [PHP 5.2.x - 5.4.x](http://php.net) + - Required PHP extensions: + - [SoapClient](http://us3.php.net/manual/en/book.soap.php) (--enable-soap) + - [OpenSSL](http://php.net/manual/en/book.openssl.php) (--with-ssl) + - [cURL](http://php.net/manual/en/book.curl.php) (--with-curl) + +Build environment + - [PHPUnit](http://www.phpunit.de) + - [Phing](http://phing.info) + - Modified wsdl2php-interpreter (included in this project) + - Original: http://code.google.com/p/wsdl2php-interpreter + - Required PHP extensions: + - [XSLTProcessor](http://php.net/manual/en/class.xsltprocessor.php) + (--with-xsl) + + +### Announcements and updates + +For API and client library updates and news, please follow our [Google+ Ads +Developers page](https://plus.google.com/+GoogleAdsDevelopers/posts) and our +[Google Ads Developers blog](http://googleadsdeveloper.blogspot.com). + + +### Getting started + +1\. Register an OAuth 2 application. + +You will need to register an OAuth2 application to get a valid client ID and +secret. See the [Using OAuth 2 wiki page] +(https://github.com/googleads/googleads-php-lib/wiki/Using-OAuth-2.0) for more information. + +2\. Download the client library. + +The client library source can be found with the example distributions in the +[releases section](https://github.com/googleads/googleads-php-lib/releases) of +this GitHub project. Download the examples for the product you are working with +and untar it. + +3\. Enter your OAuth 2 and account credentials. + +In the distribution you will find a lib folder. Under +lib/Google/Api/Ads/[PRODUCT]/ you will find an auth.ini file. Open the auth.ini +file and enter your OAuth 2 client ID and secret that you generated in step 1. +Also enter the required product specific credentials, such as network code for +DFP and developer token for AdWords. + +> It is recommended that during development of your library, you use a test +> network/account. For DFP, you can follow instructions for how to obtain a +> test network here: +> https://developers.google.com/doubleclick-publishers/docs/start +> For AdWords, you can follow instructions here: +> https://developers.google.com/adwords/api/docs/test-accounts + +Now in your distribution, navigate to examples/[PRODUCT]/Auth and run the +GetRefreshToken.php example. Copy the refresh token the example produces into +the auth.ini file mentioned above. + +4\. Run an example. + +To ensure you have setup credentials properly, run the GetAllCompanies.php +example located in examples/Dfp/v201311/CompanyService/ if you're using DFP. + +If you're using AdWords, run the GetCampaigns.php example located in +examples/AdWords/v201309/BasicOperations/. + +5\. Install the client library. + +To install the client library, either copy the lib/ folder into where you store +your PHP source files that is on your PHP include path, or add the current +directory path of the lib/ folder to your PHP include path. + + +### Basic usage + +The following example is for AdWords, but the general code applies to all +products. + + +```php + +// Set the include path and the require the folowing PHP file. +// +// You can set the include path to src directory or reference +// AdWordsUser.php directly via require_once. +// $path = '/path/to/pda_api_php_lib/src'; +$path = dirname(__FILE__) . '/../../../src'; +set_include_path(get_include_path() . PATH_SEPARATOR . $path); +require_once 'Google/Api/Ads/AdWordsUser/Lib/AdWordsUser.php'; + +// Create an AdWordsUser instance using the default constructor, which will load +// information from the auth.ini file as described above. +$user = new AdWordsUser(); + +// Optionally, enable logging to capture the content of SOAP requests and +// responses. +$user->LogDefaults(); + +// Instantiate the desired service class by calling the get***Service method on +// the AdWordsUser instance. +$campaignService = $user->GetService('CampaignService', 'v201309') + +// Create data objects and invoke methods on the service class instance. The +// data objects and methods map directly to the data objects and requests for +// the corresponding web service. + +// Create new campaign structure. +$campaign = new Campaign(); +$campaign->name = 'Campaign #' . time(); +$campaign->status = 'ACTIVE'; +$campaign->biddingStrategyConfiguration = new BiddingStrategyConfiguration(); +$campaign->biddingStrategyConfiguration->biddingStrategyType = 'MANUAL_CPC'; +$campaign->budget = new Budget('DAILY', new Money(50000000), 'STANDARD'); + +$operation = new CampaignOperation(); +$operation->operand = $campaign; +$operation->operator = 'ADD'; +$operations[] = $operation; + +// Add campaign. +$campaignReturnValue = $campaignService->mutate($operations); +``` + + +### How do I enable logging? + +The client library uses a custom class for all logging purposes and is exposed +through the Logger.php file. There are two loggers within this class described +below. + + - REQUEST_INFO_LOG: Logs all requests from the client library along + with information such as the timestamp, email, service, method, + request Id, response time and which server was used. The default + behavior is to log this information to "logs/request_info.log" relative to + your project's home directory. + + - SOAP_XML_LOG: Logs all incoming and outgoing SOAP requests/responses. The + default behavior is to log this information to "logs/soap_xml.log" relative + to your project's home directory. Sensitive information, such as + authentication tokens, will be stripped. + +Logging can be enabled using the following methods. + + - $user->LogDefaults(): Logs request information for all requests, but only + logs SOAP XML for requests that resulted in an error. + + - $user->LogErrors(): Only logs request information and SOAP XML for requests + that resulted in an error. + + - $user->LogAll(): Logs request information and SOAP XML for all requests. + +You can use the methods of the Logger class directly for even more control over +how requests are logged. + + +### Where do I submit client library bug reports, feature requests, and patches? + +All of these can be submitted through the +[issue tracker](https://github.com/googleads/googleads-php-lib/issues) in this +GitHub project. + diff --git a/build_lib/WSDLInterpreter/TemplateHelper.php b/build_lib/WSDLInterpreter/TemplateHelper.php new file mode 100755 index 000000000..f4b12c7e8 --- /dev/null +++ b/build_lib/WSDLInterpreter/TemplateHelper.php @@ -0,0 +1,116 @@ +dir = $templateDir; + } + + /** + * Generate a template. + * + * Passing template variables to be created into the method + * + * @param string $templateName is the raw template name without extension + * @param array $templateVars template variables name => value to use + * @return string the rendered template + */ + public function generate($templateName, $templateVars = array()) { + // Create template vars + extract($templateVars); + + // Get template path + $templatePath = $this->getTemplatePath($templateName); + + // Generate the content + ob_start(); + require $templatePath; + $templateValue = ob_get_contents(); + ob_end_clean(); + return $templateValue; + } + + /** + * Function to print a line within a template. + * + * Usage: + * $this->outLn('content'); + * + * @param string $content to be rendered + * @return TemplateHelper for chaining calls + */ + public function outLn($content) { + return $this->out($content, true); + } + + /** + * Function to print content within a template. + * + * Usage: + * $this->out('content'); + * + * @param string $content to be rendered + * @param boolean $crlf true to print a new line, otherwise false + * @return TemplateHelper for chaining calls + */ + public function out($content, $crlf = false) { + $fmt = $crlf ? "%s\n" : "%s"; + echo sprintf($fmt, $content); + return $this; + } + + /** + * Get the template path. + * + * @param string $templateName the name of the template to print + * @return string the template path + */ + protected function getTemplatePath($templateName) { + return sprintf('%s/%s.phpt', $this->dir, $templateName); + } +} diff --git a/build_lib/WSDLInterpreter/WSDLInterpreter.php b/build_lib/WSDLInterpreter/WSDLInterpreter.php new file mode 100755 index 000000000..09753b3fd --- /dev/null +++ b/build_lib/WSDLInterpreter/WSDLInterpreter.php @@ -0,0 +1,834 @@ + + * require_once 'WSDLInterpreter.php'; + * $wsdlUri = 'https://adwords.google.com/api/adwords/' + * . 'cm/v201309/CampaignService?wsdl'; + * $wsdlInterpreter = new WSDLInterpreter($wsdlUri, "AdWordsSoapClient", + * null, null, "CampaignService", "v201309", "Ads_Google", + * "../adsapi/src/Google/Api/Ads/AdWords/Lib/AdWordsSoapClient.php", + * null, true, null); + * $wsdlInterpreter->savePHP('/tmp/test.php'); + * + * + * @category WebServices + * @package WSDLInterpreter + */ +class WSDLInterpreter +{ + /** + * The WSDL document's URI + * @var string + * @access private + */ + private $wsdlUri = null; + + /** + * The WSDL document's XPath handle + * @var DOMXPath + * @access private + */ + private $xpath = null; + + /** + * The soap client classname + * @var string + * @access private + */ + private $soapClientClassName = null; + + /** + * DOM document representation of the wsdl and its translation + * @var DOMDocument + * @access private + */ + private $dom = null; + + /** + * Array of classes and members representing the WSDL message types + * @var array + * @access private + */ + private $classmap = array(); + + /** + * Array of types that shouldn't be checked for class name uniqueness + * @var array + * @access private + */ + private $skipClassNameCheckTypes = array(); + + /** + * Array of sources for WSDL message classes + * @var array + * @access private + */ + private $classPHPSources = array(); + + /** + * Array of sources for WSDL services + * @var array + * @access private + */ + private $servicePHPSources = array(); + + /** + * Class names. + * @var array + * @access private + */ + private $classes = array(); + + /** + * Function names. + * @var array + * @access private + */ + private $functions = array(); + + /** + * The service name. + * @var string + * @access private + */ + private $serviceName = null; + + /** + * The service namespace. + * @var string + * @access private + */ + private $serviceNamespace = null; + + /** + * The service version. + * @var string + * @access private + */ + private $version = null; + + /** + * The service package. + * @var string + * @access private + */ + private $package = null; + + /** + * Whether or not to enable psuedo namespaces in the generated class names. + * @var string + * @access private + */ + private $enablePseudoNamespaces = null; + + /** + * The class path of the SOAP client to require in the PHP file. + * @var string + * @access private + */ + private $soapClientClassPath = null; + + /** + * Map of complexType name to namespace + */ + private $namespaceMap = null; + + /** + * The wsdl object factory + */ + private $factory; + + /** + * The utils class + */ + private $utils; + + /** + * The created wsdl class objects + */ + private $wsdlClasses = array(); + + /** + * The created wsdl functon objects + */ + private $wsdlFunctions = array(); + + /** + * The created wsdl service objects + */ + private $wsdlServices = array(); + + /** + * Parses the target wsdl and loads the interpretation into object members + * + * Steps involved: + * 1) Configure the wsdl interpreter + * 2) Get the wsdl (download) + * 3) Load any imports in the wsdl + * 4) Load namespaces + * 5) Apply the xsl transform + * 6) Load and configure the utils & factories + * 7) Load all elements from the wsdl + * 8) Generate the source code and store for writing + * + * @param string $wsdlUri the URI of the wsdl to interpret + * @param string $soapClientClassName the class name which the generated + * client will extend + * @param array $classmap the class map to use when generating classes + * @param array $conflictClassmap the class name to compatible name map + * @param string $serviceName the name of the service being worked on + * @param string $version the version of the service + * @param string $package the package to be placed in the file header + * @param string $soapClientClassPath the class path to require for the + * SOAP client + * @param string $proxy the proxy URL to use when downloading WSDLs + * @param boolean $enablePseudoNamespaces to enable the namespaces + * @param array $skipClassNameCheckTypes ignore class name checking list + * @throws WSDLInterpreterException container for all WSDL interpretation + * problems + */ + public function __construct($wsdlUri, $soapClientClassName, $classmap, + $conflictClassmap, $serviceName, $version, $package, $soapClientClassPath, + $proxy, $enablePseudoNamespaces, $skipClassNameCheckTypes) + { + // Configure the interpreter + $this->wsdlUri = $wsdlUri; + $this->soapClientClassName = $soapClientClassName; + + $this->serviceName = $serviceName; + $this->version = $version; + $this->package = $package; + $this->classmap = $classmap ?: $this->classmap; + $this->enablePseudoNamespaces = $enablePseudoNamespaces ?: false; + + $conflictClassmap = $conflictClassmap ?: array(); + $this->classmap = array_merge($this->classmap, $conflictClassmap); + + if ($skipClassNameCheckTypes) { + $this->skipClassNameCheckTypes = $skipClassNameCheckTypes; + } + + $this->soapClientClassPath = $soapClientClassPath; + + // Start loading and processing the wsdl + try { + $this->loadWsdl($this->wsdlUri, $proxy); + $this->loadWsdlXpath(); + + // Modify the wsdl dom + $this->loadWsdlImports($this->wsdlUri); + $this->loadNamespaces(); + } catch (Exception $e) { + throw new WSDLInterpreterException(sprintf("Error loading WSDL document " + . "(%s)", $e->getMessage())); + } + // Apply the XSL transform + $this->transformWsdl(dirname(__FILE__) . "/wsdl2php.xsl"); + + // Load the helpers + $this->utils = new WsdlElement_Utils(); + $this->factory = new WsdlElement_Factory($this->utils); + $this->template = new TemplateHelper('templates'); + + // Prepare wsdl utility with the loaded settings + $this->utils->setRenameClassMap($this->classmap); + $this->utils->setSkipClassNameCheck($this->skipClassNameCheckTypes); + if ($this->enablePseudoNamespaces) { + $this->utils->setPhpNamespace($this->package); + } + $this->utils->setWsdlNamespaceMap($this->namespaceMap); + + // Load the elements from the wsdl + $this->loadWsdlElements($this->factory, $this->dom); + + // Generate the sources + $this->generateSources($this->factory->getDependencyOrderedClasses(), + $this->factory->getServices()); + } + + /** + * Get the number of loaded classes. + * + * @return int the number of loaded classes + */ + public function getLoadedClassesCount() { + return count($this->wsdlClasses); + } + + /** + * Get the number of loaded services. + * + * @return int the number of loaded classes + */ + public function getLoadedServicesCount() { + return count($this->wsdlServices); + } + + /** + * Get the number of loaded functions. + * + * @return int the number of loaded classes + */ + public function getLoadedFunctionsCount() { + return count($this->wsdlFunctions); + } + + /** + * Get the wsdl (download it). + * + * @param string $wsdlUri the wsdl URL + * @param null|string $proxy the proxy string if required, null otherwise + */ + protected function loadWsdl($wsdlUri, $proxy = null) { + // Set proxy. + if ($proxy) { + $opts = array( + 'http' => array( + 'proxy' => $proxy, + 'request_fulluri' => TRUE + ) + ); + $context = stream_context_get_default($opts); + libxml_set_streams_context($context); + } + + $this->dom = new DOMDocument(); + $this->dom->load($wsdlUri, + LIBXML_DTDLOAD|LIBXML_DTDATTR|LIBXML_NOENT|LIBXML_XINCLUDE); + + $this->serviceNamespace = + $this->dom->documentElement->getAttribute('targetNamespace'); + } + + /** + * Load the DOMXPath object for the Wsdl. + */ + protected function loadWsdlXpath() { + $this->xpath = new DOMXPath($this->dom); + $this->xpath->registerNamespace('wsdl', + 'http://schemas.xmlsoap.org/wsdl/'); + $this->xpath->registerNamespace('xmlns', + 'http://www.w3.org/2001/XMLSchema'); + } + + /** + * Load any imports including external WSDL and external Schema definitions. + * + * @param string $wsdlUri the wsdl location + */ + protected function loadWsdlImports($wsdlUri) { + $importQueryFormat = "//*[local-name()='import' and namespace-uri()='%s']"; + $wsdlImportQuery = sprintf($importQueryFormat, + 'http://schemas.xmlsoap.org/wsdl/'); + $xmlImportQuery = sprintf($importQueryFormat, + 'http://www.w3.org/2001/XMLSchema'); + $wsdlRoot = dirname($wsdlUri); + + // Loads WSDL Imports. + foreach ($this->xpath->query($wsdlImportQuery) as $entry) { + $parent = $entry->parentNode; + $wsdlDoc = new DOMDocument(); + $wsdlDoc->load($entry->getAttribute("location"), + LIBXML_DTDLOAD|LIBXML_DTDATTR|LIBXML_NOENT|LIBXML_XINCLUDE); + foreach ($wsdlDoc->documentElement->childNodes as $node) { + $newNode = $this->dom->importNode($node, true); + $parent->insertBefore($newNode, $entry); + } + $parent->removeChild($entry); + } + + // Loads Schema Imports. + foreach ($this->xpath->query($xmlImportQuery) as $entry) { + $parent = $entry->parentNode; + $xsd = new DOMDocument(); + $result = @$xsd->load( + sprintf("%s/%s", $wsdlRoot, $entry->getAttribute("schemaLocation")), + LIBXML_DTDLOAD|LIBXML_DTDATTR|LIBXML_NOENT|LIBXML_XINCLUDE); + if ($result) { + foreach ($xsd->documentElement->childNodes as $node) { + $newNode = $this->dom->importNode($node, true); + $parent->insertBefore($newNode, $entry); + } + $parent->removeChild($entry); + } + } + } + + /** + * Loads a map of complexType to namespace. + */ + protected function loadNamespaces() { + $schemas = $this->xpath->document->getElementsByTagName('schema'); + $i = 1; + foreach ($schemas as $schema) { + $namespace = $schema->getAttribute('targetNamespace'); + $query = sprintf('//wsdl:definitions/wsdl:types/xmlns:schema[%1$d]' . + '//xmlns:complexType | //wsdl:definitions/wsdl:types' . + '/xmlns:schema[%1$d]//xmlns:simpleType', $i); + foreach ($this->xpath->query($query) as $type) { + $typeName = ($type->getAttribute('name') + ? $type->getAttribute('name') + : $type->parentNode->getAttribute('name')); + $this->namespaceMap[$typeName] = $namespace; + } + $i++; + } + } + + /** + * Load all the elements from the wsdl. + * + * @param WsdlElement_Factory the elements factory + * @param DOMDocument $dom the dom + */ + protected function loadWsdlElements(WsdlElement_Factory $factory) { + $this->wsdlClasses = $factory->createClasses($this->dom); + $this->wsdlFunctions = $factory->createFunctions($this->dom); + $this->wsdlServices = $factory->createServices($this->dom); + } + + /** + * Transform the wsdl document using XSL. + * + * The result is a DOMDocument containing transformed WSDL elements for + * generating class files. + * + * @param DOMNode $dom the dom document + * @param string $xslFilePath the file path of the xsl to apply + * @param string|null $saveOutputTo the output file to save the result to + */ + protected function transformWsdl($xslFilePath, $saveOutputTo = null) { + $transformedDom = null; + $xsl = new XSLTProcessor(); + $xslDom = new DOMDocument(); + try { + $xslDom->load($xslFilePath); + $xsl->registerPHPFunctions(); + $xsl->importStyleSheet($xslDom); + $transformedDom = $xsl->transformToDoc($this->dom); + + if ($saveOutputTo) { + $transformedDom->formatOutput = true; + $transformedDom->save($saveOutputTo); + } + } catch (Exception $e) { + throw new WSDLInterpreterException(sprintf("Error interpreting WSDL " + . "document (%s)", $e->getMessage())); + } + $this->dom = $transformedDom; + } + + /** + * Generate the php source code for the classes and services + * + * @param array $wsdlClasses containing the ordered WsdlClasses to be + * generated + * @param array $wsdlServices containing the ordered WsdlServices to be + * generated + */ + protected function generateSources($wsdlClasses, $wsdlServices) { + $this->classPHPSources = array(); + $this->servicePHPSources = array(); + + foreach ($wsdlClasses as $wsdlClass) { + $this->classPHPSources[$wsdlClass->getRawName()] = + $this->generateClassPHP($wsdlClass); + } + + foreach ($wsdlServices as $wsdlService) { + $this->servicePHPSources[$wsdlService->getRawName()] = + $this->generateServicePHP($wsdlService); + } + } + + /** + * Generates the PHP code for a WSDL message type class representation + * + * This gets a little bit fancy as the magic methods __get and __set in + * the generated classes are used for properties that are not named + * according to PHP naming conventions (e.g., "MY-VARIABLE"). These + * variables are set directly by SoapClient within the target class, + * and could normally be retrieved by $myClass->{"MY-VARIABLE"}. For + * convenience, however, this will be available as $myClass->MYVARIABLE. + * + * @param WsdlElement_Class $class the wsdl class representing the class + * @return string the php source code for the message type class + */ + private function generateClassPHP(WsdlElement_Class $class) { + $paddedDocs = implode("\n", $this->utils->padDocs($class->getDocs(), 0)); + $extends = ""; + $ext = $class->getExtends(); + if ($extendsClass = $class->getExtends()) { + $extends = sprintf(' extends %s', $extendsClass->getName()); + } + $properties = $this->generatePropertiesPHP($class->getProperties()); + + $constructor = $this->generateConstructorPHP($class); + + return <<getName()}", FALSE)) { +/** +{$paddedDocs} + * @package {$this->package} + * @subpackage {$this->version} + */ +class {$class->getName()}{$extends} { + + const WSDL_NAMESPACE = "{$class->getWsdlNamespace()}"; + const XSI_TYPE = "{$class->getXsiTypeName()}"; +{$properties} + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + +{$constructor} +}} +EOF; + } + + /** + * Generate the code for the php properties. + * + * @param array $properties is the array of WsdlElement_Property objects + * @return string the constructed code + */ + private function generatePropertiesPHP($properties) { + $return = ""; + foreach ($properties as $property) { + $return .= $this->generatePropertyPHP($property); + } + + $changedProperties = array(); + foreach ($properties as $property) { + if ($property->hasChangedName()) { + $changedProperties[] = $property; + } + } + if (!count($changedProperties)) { + return $return; + } + $return .= " private \$_parameterMap = array(\n"; + foreach ($changedProperties as $property) { + $return .= sprintf(" \"%s\" => \"%s\",\n", $property->getRawName(), + $property->getName()); + } + return $return . <<{\$this->_parameterMap[\$var]} = \$value; + } + + /** + * Provided for getting non-php-standard named variables + * @param \$var Variable name to get + * @return mixed Variable value + */ + public function __get(\$var) { + if (!isset(\$this->_parameterMap[\$var])) { + return null; + } + return \$this->{\$this->_parameterMap[\$var]}; + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return \$this->_parameterMap; + } + +EOF; + } + + /** + * Generate the class constructor code + * + * @param WsdlElement_Class $class the wsdl class + * @return string the generated code + */ + private function generateConstructorPHP(WsdlElement_Class $class) { + $allProperties = $class->getAllProperties(); + + $argNames = array(); + foreach ($allProperties as $property) { + $argNames[] = "{$property->getVarName()} = null"; + } + $args = implode(", ", $argNames); + $constructor = " public function __construct($args) {\n"; + + if ($class->hasParent()) { + $constructor .= " parent::__construct();\n"; + } + foreach ($class->getAllProperties() as $property) { + $constructor .= " \$this->{$property->getName()} = " + . "{$property->getVarName()};\n"; + } + return $constructor . " }\n"; + } + + /** + * Generate the php property + * + * @param WsdlElement_Property $property the property to describe. + * @return string the generated code + */ + private function generatePropertyPHP(WsdlElement_Property $property) { + return <<getType()} + */ + public {$property->getVarName()}; + +EOF; + } + + /** + * Generates the PHP code for a WSDL service class representation + * + * This method, in combination with generateServiceFunctionPHP, create a PHP + * class representation capable of handling overloaded methods with strict + * parameter type checking. + * + * @param WsdlElement_Service $service the service description + * @return string the php source code for the service class + */ + private function generateServicePHP(WsdlElement_Service $service) { + $return = <<getName()}", FALSE)) { +/** + * {$service->getName()} + * @package {$this->package} + * @subpackage {$this->version} + */ +class {$service->getName()} extends {$this->soapClientClassName} { + + const SERVICE_NAME = "{$service->getRawName()}"; + const WSDL_NAMESPACE = "{$this->serviceNamespace}"; + const ENDPOINT = "{$service->getEndpoint()}"; + + /** + * The endpoint of the service + * @var string + */ + public static \$endpoint = "{$service->getEndpoint()}"; + +EOF; + $return .= $this->generateServiceClassmapPHP($service); + + $return .= <<getFunctions() as $wsdlFunction) { + $return .= $this->generateServiceFunctionPHP($wsdlFunction); + } + $return .= "}}"; + return $return; + } + + /** + * Generate the service classmap. + * + * @param WsdlElement_Service $service the service + * @return string the generated code. + */ + private function generateServiceClassmapPHP(WsdlElement_Service $service) { + $return = ""; + if (!$this->wsdlClasses) { + return $return; + } + $return .= <<php + * @access private + * @var array + */ + public static \$classmap = array( + +EOF; + foreach ($this->wsdlClasses as $wsdlClass) { + $return .= sprintf(" \"%s\" => \"%s\",\n", $wsdlClass->getRawName(), + $wsdlClass->getName()); + } + $return .= " );\n\n"; + + return $return; + } + + /** + * Generates the PHP code for a WSDL service operation function representation + * + * The function code that is generated examines the arguments that are passed + * and performs strict type checking against valid argument combinations for + * the given function name, to allow for overloading. + * + * @param WsdlElement_Function $wsdlFunction the function + * @return string the php source code for the function + */ + private function generateServiceFunctionPHP( + WsdlElement_Function $wsdlFunction) { + $funcDocs = implode("\n", $this->utils->padDocs( + $wsdlFunction->getDocs(), 2)); + + $functionArgs = array(); + foreach ($wsdlFunction->getProperties() as $property) { + $functionArgs[] = $property->getVarName(); + } + $functionArgString = implode(', ', $functionArgs); + + $rawName = $wsdlFunction->getRawName(); + return <<getName()}({$functionArgString}); + \$result = \$this->__soapCall("{$rawName}", array(\$args)); + return \$result->rval; + } + +EOF; + } + + /** + * Saves the PHP source code that has been loaded to a target directory. + * + * Services will be saved by their validated name, and classes will be + * included with each service file so that they can be utilized independently. + * + * @param string $outputDirectory the destination directory for the source + * code + * @return array array of source code files that were written out + * @throws WSDLInterpreterException problem in writing out service sources + */ + public function savePHP($outputDirectory) + { + if (!count($this->servicePHPSources)) { + throw new WSDLInterpreterException("No services loaded"); + } + $require = sprintf( + "/** Required classes. **/\nrequire_once \"%s\";\n\n", + $this->soapClientClassPath + ); + $classSource = join("\n\n", $this->classPHPSources); + $outputFiles = array(); + foreach ($this->servicePHPSources as $serviceName => $serviceCode) { + $filename = sprintf('%s/%s.php', $outputDirectory, $serviceName); + $success = file_put_contents($filename, sprintf( + "getFileHeader(), $require, $classSource, $serviceCode + )); + if ($success) { + $outputFiles[] = $filename; + } + } + if (!count($outputFiles)) { + throw new WSDLInterpreterException("Error writing PHP source files."); + } + return $outputFiles; + } + + /** + * Gets the file header to put at the top of each PHP file. + * + * @return string the file header to put at the top of each PHP file + */ + private function getFileHeader() { + return $this->template->generate('file_header', array( + 'package' => $this->package, + 'version' => $this->version, + 'serviceName' => $this->serviceName, + )); + } +} diff --git a/build_lib/WSDLInterpreter/WsdlElement/Class.php b/build_lib/WSDLInterpreter/WsdlElement/Class.php new file mode 100755 index 000000000..1833524fb --- /dev/null +++ b/build_lib/WSDLInterpreter/WsdlElement/Class.php @@ -0,0 +1,170 @@ +initExtendsName() + ->initProperties() + ->initWsdlNamespace(); + } + + /** + * Get the parent class. + * + * @return WsdlElement_Class|null the parent class or null if none specified + */ + public function getExtends() { + if (!$this->extends && $this->extendsName) { + $this->extends = $this->factory->getClass($this->extendsName); + } + return $this->extends; + } + + /** + * Test if this class has a parent. + * + * @return boolean true if it has a parent + */ + public function hasParent() { + return (boolean) $this->getExtends(); + } + + /** + * Get the properties used in the class. + * + * @return array containing WsdlProperties + */ + public function getProperties() { + return $this->properties; + } + + /** + * Get all properties including inherited properties from the parent class + * if it has one. + * + * @return array containing WsdlProperties + */ + public function getAllProperties() { + $properties = $this->getProperties(); + if ($extends = $this->getExtends()) { + $properties = array_merge($properties, $extends->getProperties()); + } + return $properties; + } + + /** + * Get the XsiType for the class. + * + * @return string the XsiType + */ + public function getXsiTypeName() { + return $this->src->getAttribute('xsiTypeName'); + } + + /** + * Get the namespace of the class within the wsdl. + * + * @return string the namespace + */ + public function getWsdlNamespace() { + return $this->wsdlNamespace; + } + + /** + * Set the parent name. + * + * @return WsdlElement_Class this object for chaining. + */ + private function initExtendsName() { + $extends = $this->src->getElementsByTagName("extends"); + if ($extends->length) { + $this->extendsName = $extends->item(0)->nodeValue; + } + return $this; + } + + /** + * Set the properties. + * + * @return WsdlElement_Class this object for chaining. + */ + private function initProperties() { + $this->properties = array(); + foreach ($this->src->getElementsByTagName("entry") as $entity) { + $wsdlProperty = $this->factory->createProperty($entity); + $this->properties[$wsdlProperty->getRawName()] = $wsdlProperty; + } + return $this; + } + + /** + * Set the wsdl namespace. + */ + private function initWsdlNamespace() { + $this->wsdlNamespace = $this->utils->getWsdlNamespace($this->getRawName()); + } +} diff --git a/build_lib/WSDLInterpreter/WsdlElement/Factory.php b/build_lib/WSDLInterpreter/WsdlElement/Factory.php new file mode 100755 index 000000000..72ceff398 --- /dev/null +++ b/build_lib/WSDLInterpreter/WsdlElement/Factory.php @@ -0,0 +1,265 @@ +classCache = array(); + $this->functionCache = array(); + $this->serviceCache = array(); + $this->propertyCache = array(); + $this->utils = $utils; + } + + /** + * Create all classes from the wsdl doc. + * + * @param DOMDocument $dom + * @return array containing all the WsdlElement_Class objects + */ + public function createClasses($dom) { + $wsdlClasses = array(); + foreach ($dom->getElementsByTagName("class") as $element) { + $wsdlClass = self::createClass($element); + $wsdlClasses[$wsdlClass->getRawName()] = $wsdlClass; + } + return $wsdlClasses; + } + + /** + * Create all functions from the wsdl doc. + * + * @param DOMDocument $dom + * @return array containing all the WsdlElement_Function objects + */ + public function createFunctions($dom) { + $wsdlFunctions = array(); + foreach ($dom->getElementsByTagName("function") as $element) { + $wsdlFunction = self::createFunction($element); + $wsdlFunctions[$wsdlFunction->getRawName()] = $wsdlFunction; + } + return $wsdlFunctions; + } + + /** + * Create all services from the wsdl doc. + * + * @param DOMDocument $dom + * @return array containing all the WsdlElement_Service objects + */ + public function createServices($dom) { + $wsdlServices = array(); + foreach ($services = $dom->getElementsByTagName("service") as $element) { + $wsdlService = self::createService($element); + $wsdlServices[$wsdlService->getRawName()] = $wsdlService; + } + return $wsdlServices; + } + + /** + * Create a class representation. + * + * @param DOMElement $src the element to represent + * @return WsdlElement_Class the representation + */ + public function createClass(DOMElement $src) { + $key = $this->getKey($src); + if (!isset($this->classCache[$key])) { + $this->classCache[$key] = new WsdlElement_Class($this, $this->utils, + $src); + } + return $this->classCache[$key]; + } + + /** + * Create a function representation. + * + * @param DOMElement $src the element to represent + * @return WsdlElement_Function the representation + */ + public function createFunction(DOMElement $src) { + $key = $this->getKey($src); + if (!isset($this->functionCache[$key])) { + $this->functionCache[$key] = new WsdlElement_Function($this, $this->utils, + $src); + } + return $this->functionCache[$key]; + } + + /** + * Create a service representation. + * + * @param DOMElement $src the element to represent + * @return WsdlElement_Service the representation + */ + public function createService(DOMElement $src) { + $key = $this->getKey($src); + if (!isset($this->serviceCache[$key])) { + $this->serviceCache[$key] = new WsdlElement_Service($this, $this->utils, + $src); + } + return $this->serviceCache[$key]; + } + + /** + * Create a property representation. + * + * @param DOMElement $src the element to represent + * @return WsdlElement_Property the representation + */ + public function createProperty(DOMElement $src) { + $key = $this->getKey($src); + if (!isset($this->propertyCache[$key])) { + $this->propertyCache[$key] = new WsdlElement_Property($this, $this->utils, + $src); + } + return $this->propertyCache[$key]; + } + + /** + * Get a created class. + * + * @param string $rawName the unfiltered name of the class + * @return WsdlElement_Class|null the WsdlElement_Class or null + */ + public function getClass($rawName) { + if (isset($this->classCache[$rawName])) { + return $this->classCache[$rawName]; + } + return null; + } + + /** + * Get all created services. + * + * @return array the created WsdlElement_Service objects. + */ + public function getServices() { + return $this->serviceCache; + } + + /** + * Get all classes in a order suitable for instantiation. + * + * Example: + * Class A extends B + * Class B extends C + * Order added: + * C, B, A + * + * @param array|null $wsdlClasses the classes to reorder or null for all + * @param array $orderedClasses the existing ordered classes + * @return array the ordered list of WsdlClasses + */ + public function getDependencyOrderedClasses() { + $unorderedClasses = $this->classCache; + + $orderedClasses = array(); + while(count($unorderedClasses)) { + $loaded = 0; + foreach ($unorderedClasses as $name => $wsdlClass) { + $extendsClass = $wsdlClass->getExtends(); + $extendsName = $extendsClass ? $extendsClass->getRawName() : null; + // If $wsdlClass has no parent or the parent is already added: + if (!$extendsName || isset($orderedClasses[$extendsName])) { + // Add the $wsdlClass to $orderedClasses + // and remove it from the unsorted classes. + $orderedClasses[$name] = $wsdlClass; + unset($unorderedClasses[$name]); + $loaded++; + } + } + + // If we've got ourselves into a circular dependency loop: + // I.e. we're not loading the items that are left + if (!$loaded && count($unorderedClasses)) { + // Throw an error + throw new WSDLInterpreterException(sprintf( + 'Error loading classes: %s', implode(", ", + array_keys($unorderedClasses)))); + } + } + + return $orderedClasses; + } + + /** + * Get the key for a DOMElement. + * + * @param DOMElement $src the element to generate a key for + */ + protected function getKey(DOMElement $src) { + $key = $src->getAttribute('name'); + if ($src->hasAttribute('type')) { + $key .= "-{$src->getAttribute('type')}"; + } + return $key; + } +} diff --git a/build_lib/WSDLInterpreter/WsdlElement/Function.php b/build_lib/WSDLInterpreter/WsdlElement/Function.php new file mode 100755 index 000000000..b2292d6bc --- /dev/null +++ b/build_lib/WSDLInterpreter/WsdlElement/Function.php @@ -0,0 +1,147 @@ +initProperties() + ->initDocs(); + } + + /** + * Get the function filtered name. + * + * Use getRawName() for the unfiltered name + * + * @return string the name + */ + public function getName() { + if (!$this->name) { + $this->initName(); + } + return $this->name; + } + + /** + * Get the properties of the function. + * + * @return array containing WsdlElement_Property objects + */ + public function getProperties() { + return $this->properties; + } + + /** + * Get the docs for the function. + * + * @return array containing strings, the lines of doc + */ + public function getDocs() { + return $this->docs; + } + + /** + * Process the name of the class. + * + * @return WsdlElement_Function this object for chaining. + */ + private function initName() { + if ($functionClass = $this->getFunctionClass()) { + $this->name = $functionClass->getName(); + } + return $this; + } + + /** + * Set the properties of the function. + * + * @return WsdlElement_Function this object for chaining. + */ + private function initProperties() { + $this->properties = array(); + if ($functionClass = $this->getFunctionClass()) { + $this->properties = $functionClass->getProperties(); + } + return $this; + } + + /** + * Set the docs for the function. + * + * @return WsdlElement_Function this object for chaining. + */ + private function initDocs() { + $this->docs = array(); + if ($functionClass = $this->getFunctionClass()) { + $this->docs = $functionClass->getDocs(); + } + return $this; + } + + /** + * Get the class representing the function. + * + * @return WsdlElement_Class|null the class representation of the function + */ + private function getFunctionClass() { + return $this->factory->getClass($this->getRawName()); + } +} diff --git a/build_lib/WSDLInterpreter/WsdlElement/Named.php b/build_lib/WSDLInterpreter/WsdlElement/Named.php new file mode 100755 index 000000000..fa696710a --- /dev/null +++ b/build_lib/WSDLInterpreter/WsdlElement/Named.php @@ -0,0 +1,88 @@ +src = $src; + $this->factory = $factory; + $this->utils = $utils; + } + + /** + * A method for getting the unfiltered name of the wsdl element. + * + * @return string the name of the element + */ + public function getRawName() { + return $this->src->getAttribute('name'); + } + + /** + * Provides a default hook to the raw name. + * + * @return string the name of the element + */ + public function getName() { + return $this->getRawName(); + } +} diff --git a/build_lib/WSDLInterpreter/WsdlElement/NamedClass.php b/build_lib/WSDLInterpreter/WsdlElement/NamedClass.php new file mode 100755 index 000000000..1d7e5d9d3 --- /dev/null +++ b/build_lib/WSDLInterpreter/WsdlElement/NamedClass.php @@ -0,0 +1,110 @@ + initName() + ->initDocs(); + } + + /** + * Overrides the default name getter to use the processed name. + * + * @return string the name of the element + */ + public function getName() { + return $this->name; + } + + /** + * Get the array of doc lines. + * + * @return array the doc lines + */ + public function getDocs() { + return $this->docs; + } + + /** + * Set the processed name. + * + * Used to do some processing once the name is set. + * + * @return WsdlElement_NamedClass this object for chaining. + */ + protected function initName() { + $name = $this->getRawName(); + $this->name = $this->utils->filterClassName($name); + + return $this; + } + + /** + * Set the processed docs. + * + * Used to do some processing on creation. + * + * @return WsdlElement_NamedClass this object for chaining. + */ + protected function initDocs() { + $docElements = $this->src->getElementsByTagName("documentation"); + $docs = $docElements->item(0)->nodeValue; + $docLines = explode("\n", trim($docs)); + $this->docs = array_map( + array($this->utils, 'filterDocLine'), $docLines); + return $this; + } +} diff --git a/build_lib/WSDLInterpreter/WsdlElement/Property.php b/build_lib/WSDLInterpreter/WsdlElement/Property.php new file mode 100755 index 000000000..7baa1b419 --- /dev/null +++ b/build_lib/WSDLInterpreter/WsdlElement/Property.php @@ -0,0 +1,117 @@ +initType($src) + ->initName(); + } + + /** + * Get the filtered name. + * + * Use getRawName() for the unfiltered name + * + * @return string the filtered name + */ + public function getName() { + return $this->name; + } + + /** + * Get the property type. + * + * @return string the type + */ + public function getType() { + return $this->type; + } + + /** + * Get the name for a variable. + * + * @return string the var name + */ + public function getVarName() { + return sprintf("$%s", $this->getName()); + } + + /** + * Test if the object has changed name through filtering. + * + * @return boolean true if the name has changed + */ + public function hasChangedName() { + return ($this->getName() !== $this->getRawName()); + } + + /** + * Process the name. + * + * @return WsdlElement_Property this object for chaining. + */ + protected function initName() { + $this->name = $this->utils->getSafePhpName($this->getRawName()); + return $this; + } + + /** + * Process the type. + * + * @param DOMElement $src the element to represent + * @return WsdlElement_Property this object for chaining. + */ + protected function initType($src) { + $this->type = $this->utils->getSafePhpType($src->getAttribute("type")); + return $this; + } +} diff --git a/build_lib/WSDLInterpreter/WsdlElement/Service.php b/build_lib/WSDLInterpreter/WsdlElement/Service.php new file mode 100755 index 000000000..8f910f858 --- /dev/null +++ b/build_lib/WSDLInterpreter/WsdlElement/Service.php @@ -0,0 +1,89 @@ +initFunctions(); + } + + /** + * Get the service functions. + * + * @return array containing WsdlElement_Function object + */ + public function getFunctions() { + return $this->wsdlFunctions; + } + + /** + * Get the endpoint for the service. + * + * @return string the service endpoint. + */ + public function getEndpoint() { + return $this->src->getAttribute('endpoint'); + } + + /** + * Configure the functions for the service. + * + * @return WsdlElement_Service this object for chaining. + */ + private function initFunctions() { + $this->wsdlFunctions = array(); + foreach ($this->src->getElementsByTagName("function") as $entity) { + $wsdlFunction = $this->factory->createFunction($entity); + $this->wsdlFunctions[$wsdlFunction->getRawName()] = $wsdlFunction; + } + return $this; + } +} diff --git a/build_lib/WSDLInterpreter/WsdlElement/Utils.php b/build_lib/WSDLInterpreter/WsdlElement/Utils.php new file mode 100755 index 000000000..a1e0ec719 --- /dev/null +++ b/build_lib/WSDLInterpreter/WsdlElement/Utils.php @@ -0,0 +1,241 @@ +' => '', + * ... + * ); + */ + private $renameMap; + + /** + * The namespace to use if any + */ + private $namespace; + + /** + * The classes to skip checking name + */ + private $skipClassList; + + /** + * The namespaces for the classes indexed by the unfiltered name + */ + protected $namespaceMap; + + /** + * The constructor to setup the object. + */ + public function __construct() { + $this->renameMap = array(); + $this->skipClassList = array(); + } + + /** + * Set the rename class map. + * + * Structure: + * array( + * '' => '', + * ... + * ); + * + * @param array $map structure as defined before + */ + public function setRenameClassMap($map) { + $this->renameMap = $map; + } + + /** + * Set the list of unfiltered class names to skip checking names. + * + * @param array of names of unfiltered classes + */ + public function setSkipClassNameCheck($nameList) { + $this->skipClassList = $nameList; + } + + /** + * Set the namespace to use for renaming classes. + * + * @param string the namespace + */ + public function setPhpNamespace($namespace) { + $this->namespace = $namespace; + } + + /** + * Set the wsdl namespace map. + * + * Mapping the unfiltered name to the namespace to use. + * + * @param array $namespaceMap the name => namespace map + */ + public function setWsdlNamespaceMap($namespaceMap) { + $this->namespaceMap = $namespaceMap; + } + + /** + * Filter a class name. + * + * Adds namespaces, uses rename map and checks the name won't collide. + * + * @param string $name the original name of the class + * @return string the filtered name + */ + public function filterClassName($name) { + $filteredName = $name; + if (isset($this->renameMap[$name])) { + $filteredName = $this->renameMap[$name]; + } + $filteredName = ucfirst($this->getSafePhpName($filteredName)); + $filteredName = $this->namespaceName($filteredName); + + if (!in_array($filteredName, $this->skipClassList) + && class_exists($filteredName, false)) { + throw new Exception("Class $filteredName already defined.". + " Cannot redefine class with class loaded."); + } + return $filteredName; + } + + /** + * Get the namespaced version of a name, if a namespace is configured. + * + * @param string the name + * @return string the namespaced name + */ + public function namespaceName($name) { + if ($this->namespace) { + return sprintf('%s_%s', $this->namespace, $name); + } + return $name; + } + + public function getWsdlNamespace($name) { + return isset($this->namespaceMap[$name]) ? $this->namespaceMap[$name] : + null; + } + + /** + * Converts the name to conform to PHP naming conventions. + * + * Example: + * AdXError.Reason => AdXErrorReason + * String_StringMapEntry => String_StringMapEntry + * 12Foo3.4Bar5 => Foo34Bar5 + * + * @param string $name the name to convert + * @return string the PHP safe version of the submitted name + */ + public function getSafePhpName($name) + { + return preg_replace('#[^a-zA-Z0-9_\x7f-\xff]*#', '', + preg_replace('#^[^a-zA-Z_\x7f-\xff]*#', '', $name)); + } + + /** + * Converts a wsdl type against known PHP primitive types, or otherwise + * converts the namespace of conform to PHP type naming conventions. + * + * @param string $type the type to test + * @return string the PHP safe version of the submitted type + */ + public function getSafePhpType($type) + { + $array = false; + if (substr($type, -2) == "[]") { + $array = true; + $type = substr($type, 0, -2); + } + switch (strtolower($type)) { + case "int": + case "integer": + case "long": + case "byte": + case "short": + case "negativeInteger": + case "nonNegativeInteger": + case "nonPositiveInteger": + case "positiveInteger": + case "unsignedByte": + case "unsignevnt": + case "unsignedLong": + case "unsignedShort": + $validType = "integer"; + break; + case "float": + case "long": + case "double": + case "decimal": + $validType = "double"; + break; + case "string": + case "token": + case "normalizedString": + case "hexBinary": + $validType = "string"; + break; + default: + $validType = $this->getSafePhpName($type); + break; + } + if ($array) { + $validType .= "[]"; + } + return $validType; + } + + public function filterDocLine($line) { + return sprintf(" * %s", trim($line)); + } + + public function padDocs($docs, $pad = 2) { + $paddedDocs = array(); + foreach ($docs as $line) { + $paddedDocs[] = str_pad('', $pad) . $line; + } + return $paddedDocs; + } +} diff --git a/build_lib/WSDLInterpreter/file_header.tmpl b/build_lib/WSDLInterpreter/file_header.tmpl new file mode 100755 index 000000000..7a2bffc3c --- /dev/null +++ b/build_lib/WSDLInterpreter/file_header.tmpl @@ -0,0 +1,27 @@ +/** + * Contains all client objects for the _serviceName service. + * + * PHP version 5 + * + * Copyright 2013, Google Inc. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * @package _package + * @subpackage _version + * @category WebServices + * @copyright 2013, Google Inc. All Rights Reserved. + * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, + * Version 2.0 + * @author _author + */ diff --git a/build_lib/WSDLInterpreter/templates/file_header.phpt b/build_lib/WSDLInterpreter/templates/file_header.phpt new file mode 100755 index 000000000..d5cc03092 --- /dev/null +++ b/build_lib/WSDLInterpreter/templates/file_header.phpt @@ -0,0 +1,27 @@ +/** + * Contains all client objects for the outLn($serviceName); ?> + * service. + * + * PHP version 5 + * + * Copyright 2014, Google Inc. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * @package outLn($package); ?> + * @subpackage outLn($version); ?> + * @category WebServices + * @copyright 2014, Google Inc. All Rights Reserved. + * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, + * Version 2.0 + */ diff --git a/build_lib/WSDLInterpreter/wsdl2php.xsl b/build_lib/WSDLInterpreter/wsdl2php.xsl new file mode 100755 index 000000000..cfb9e9256 --- /dev/null +++ b/build_lib/WSDLInterpreter/wsdl2php.xsl @@ -0,0 +1,334 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/build_lib/Wsdl2PhpTask.php b/build_lib/Wsdl2PhpTask.php new file mode 100755 index 000000000..503348a4a --- /dev/null +++ b/build_lib/Wsdl2PhpTask.php @@ -0,0 +1,270 @@ + PHP Class' for the WSDL. + * @var array the classmap for the WSDL type to PHP class + * @access private + */ + private $classmap = NULL; + + /** + * A classmap of 'Wsdl Type => PHP Class' for the WSDL, to be used + * to avoid class name conflicts when pseudo namespaces are not enabled. + * @var array the classmap for the WSDL type to PHP class + * @access private + */ + private $conflictClassmap = NULL; + + /** + * The WSDL types that shouldn't have their class names checked for + * uniqueness. This option will be ignored when pseudo namespaces are enabled. + * @var array the WSDL types that shouldn't have their class names checked for + * uniqueness. + * @access private + */ + private $skipClassNameCheckTypes = NULL; + + /** + * The name of the service being worked on. + * @var string the name of the service being worked on + * @access private + */ + private $serviceName = NULL; + + /** + * The version of the service being worked on + * @var string the version of the service being worked + * @access private + */ + private $version = NULL; + + /** + * The package name to be included in the file header. + * @var string the package name to be included in the file header + * @access private + */ + private $package = NULL; + + /** + * The proxy URL to use when downloading WSDLs. + * @var string the proxy URL to use when downloading WSDLs + * @access private + */ + private $proxy = NULL; + + /** + * Whether or not to enable pseudo namespaces in the generated class names. + * @var boolean whether or not to enable pseudo namespaces in the generated + * class names + * @access private + */ + private $enablePseudoNamespaces = FALSE; + + /** + * The setter for the attribute $url. + * @param string $url the URL of the WSDL file + */ + public function setUrl($url) { + $this->url = $url; + } + + /** + * The setter for the attribute $soapClientClassName. + * @param string $soapClientClassName the soap client classname to extend for + * each soap client + */ + public function setSoapClientClassName($soapClientClassName) { + $this->soapClientClassName = $soapClientClassName; + } + + /** + * The setter for the attribute $soapClientClassPath. + * @param string $soapClientClassPath the soap client class path to require + * in each service class file + */ + public function setSoapClientClassPath($soapClientClassPath) { + $this->soapClientClassPath = $soapClientClassPath; + } + + /** + * The setter for the attribute $outputDir. + * @param string $path the output directory where the generated PHP + * file will be placed + */ + public function setOutputDir($outputDir) { + $this->outputDir = $outputDir; + } + + /** + * The setter for the attribute $classmap. + * @param string $classmap JSON representation of the classmap, as a mapping + * from WSDL type to PHP class name + */ + public function setClassmap($classmap) { + $this->classmap = json_decode($classmap, true); + if (!isset($this->classmap) && !empty($classmap)) { + trigger_error('Unable to parse classmap as JSON.', E_USER_ERROR); + die; + } + } + + /** + * The setter for the attribute $conflictClassmap. + * @param string $conflictClassmap JSON representation of a classmap, as a + * mapping from WSDL type to PHP class name, to be used to avoid name + * conflicts when pseudo namespaces aren't enabled + */ + public function setConflictClassmap($conflictClassmap) { + $this->conflictClassmap = json_decode($conflictClassmap, true); + if (!isset($this->conflictClassmap) && !empty($conflictClassmap)) { + trigger_error('Unable to parse the conflict classmap as JSON.', + E_USER_ERROR); + die; + } + } + + /** + * The setter for the attribute $skipClassNameCheckTypes. + * @param string $skipClassNameCheckTypes comma separated list of the type + * names + */ + public function setSkipClassNameCheckTypes($skipClassNameCheckTypes) { + if (!empty($skipClassNameCheckTypes)) { + $this->skipClassNameCheckTypes = array_map('trim', + explode(',', $skipClassNameCheckTypes)); + } + } + + /** + * The setter for the attribute $version. + * @param string $version the version of the API for the generated service + */ + public function SetVersion($version) { + $this->version = $version; + } + + /** + * The setter for the attribute $package. + * @param string $package the pacakge to be inserted into the file header + */ + public function SetPackage($package) { + $this->package = $package; + } + + /** + * The setter for the attribute $proxy. + * @param string $proxy the proxy URL to use when downloading WSDLs + */ + public function SetProxy($proxy) { + $this->proxy = $proxy; + } + + /** + * The setter for the attribute $enablePseudoNamespaces. + * @param boolean $enablePseudoNamespaces whether or not to enable pseudo + * namespaces in the generated class names. + */ + public function SetEnablePseudoNamespaces($enablePseudoNamespaces) { + $this->enablePseudoNamespaces = $enablePseudoNamespaces; + } + + /** + * The setter of the attribute $serviceName. + * @param string $serviceName the name of the generated service + */ + public function SetServiceName($serviceName) { + $this->serviceName = $serviceName; + } + + /** + * Nothing to initilize for the task. + */ + public function init() {} + + /** + * The main entry point method for the task. + */ + public function main() { + $this->log(sprintf("Starting: %s to %s", $this->url, $this->outputDir), + Project::MSG_INFO); + + $wsdlInterpreter = + new WSDLInterpreter($this->url, $this->soapClientClassName, + $this->classmap, $this->conflictClassmap, $this->serviceName, + $this->version, $this->package, $this->soapClientClassPath, + $this->proxy, $this->enablePseudoNamespaces, + $this->skipClassNameCheckTypes); + $wsdlInterpreter->savePHP($this->outputDir); + + $loadedClasses = $wsdlInterpreter->getLoadedClassesCount(); + $loadedServices = $wsdlInterpreter->getLoadedServicesCount(); + $this->log(sprintf("[objects created: %d][url: %s]", + $loadedClasses + $loadedServices, $this->url), Project::MSG_INFO); + + $this->log(sprintf("Created: [classes: %d][services: %d][functions: %d]", + $loadedClasses, $loadedServices, + $wsdlInterpreter->getLoadedFunctionsCount()), Project::MSG_VERBOSE); + } +} + diff --git a/build_lib/build.xml b/build_lib/build.xml new file mode 100755 index 000000000..50e6054f8 --- /dev/null +++ b/build_lib/build.xml @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/AdWords/Auth/GetRefreshToken.php b/examples/AdWords/Auth/GetRefreshToken.php new file mode 100755 index 000000000..bf766e2fe --- /dev/null +++ b/examples/AdWords/Auth/GetRefreshToken.php @@ -0,0 +1,102 @@ +GetOAuth2Handler(); + $authorizationUrl = $OAuth2Handler->GetAuthorizationUrl( + $user->GetOAuth2Info(), $redirectUri, $offline); + + // In a web application you would redirect the user to the authorization URL + // and after approving the token they would be redirected back to the + // redirect URL, with the URL parameter "code" added. For desktop + // or server applications, spawn a browser to the URL and then have the user + // enter the authorization code that is displayed. + printf("Log in to your AdWords account and open the following URL:\n%s\n\n", + $authorizationUrl); + print "After approving the token enter the authorization code here: "; + $stdin = fopen('php://stdin', 'r'); + $code = trim(fgets($stdin)); + fclose($stdin); + print "\n"; + + // Get the access token using the authorization code. Ensure you use the same + // redirect URL used when requesting authorization. + $user->SetOAuth2Info( + $OAuth2Handler->GetAccessToken( + $user->GetOAuth2Info(), $code, $redirectUri)); + + + // The access token expires but the refresh token obtained for offline use + // doesn't, and should be stored for later use. + return $user->GetOAuth2Info(); +} + +// Don't run the example if the file is being included. +if (__FILE__ != realpath($_SERVER['PHP_SELF'])) { + return; +} + +try { + // Get the client ID and secret from the auth.ini file. If you do not have a + // client ID or secret, please create one of type "installed application" in + // the Google API console: https://code.google.com/apis/console#access + // and set it in the auth.ini file. + $user = new AdWordsUser(); + $user->LogAll(); + + // Get the OAuth2 credential. + $oauth2Info = GetOAuth2Credential($user); + + // Enter the refresh token into your auth.ini file. + printf("Your refresh token is: %s\n\n", $oauth2Info['refresh_token']); + printf("In your auth.ini file, edit the refresh_token line to be:\n" + . "refresh_token = \"%s\"\n", $oauth2Info['refresh_token']); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} + diff --git a/examples/AdWords/Auth/init.php b/examples/AdWords/Auth/init.php new file mode 100755 index 000000000..03f593615 --- /dev/null +++ b/examples/AdWords/Auth/init.php @@ -0,0 +1,43 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function CreateAccountExample(AdWordsUser $user) { + // Get the service, which loads the required classes. + $managedCustomerService = + $user->GetService('ManagedCustomerService', ADWORDS_VERSION); + + // Create customer. + $customer = new ManagedCustomer(); + $customer->name = 'Account #' . uniqid(); + $customer->currencyCode = 'EUR'; + $customer->dateTimeZone = 'Europe/London'; + + // Create operation. + $operation = new ManagedCustomerOperation(); + $operation->operator = 'ADD'; + $operation->operand = $customer; + + $operations = array($operation); + + // Make the mutate request. + $result = $managedCustomerService->mutate($operations); + + // Display result. + $customer = $result->value[0]; + printf("Account with customer ID '%s' was created.\n", + $customer->customerId); +} + +// 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. + CreateAccountExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/AccountManagement/GetAccountAlerts.php b/examples/AdWords/v201306/AccountManagement/GetAccountAlerts.php new file mode 100755 index 000000000..1b7a41717 --- /dev/null +++ b/examples/AdWords/v201306/AccountManagement/GetAccountAlerts.php @@ -0,0 +1,103 @@ +GetService('AlertService', ADWORDS_VERSION); + + // Create alert query. + $alertQuery = new AlertQuery(); + $alertQuery->clientSpec = 'ALL'; + $alertQuery->filterSpec = 'ALL'; + $alertQuery->types = array('ACCOUNT_BUDGET_BURN_RATE','ACCOUNT_BUDGET_ENDING', + 'ACCOUNT_ON_TARGET','CAMPAIGN_ENDED','CAMPAIGN_ENDING', + 'CREDIT_CARD_EXPIRING','DECLINED_PAYMENT', + 'MANAGER_LINK_PENDING','MISSING_BANK_REFERENCE_NUMBER', + 'PAYMENT_NOT_ENTERED','TV_ACCOUNT_BUDGET_ENDING','TV_ACCOUNT_ON_TARGET', + 'TV_ZERO_DAILY_SPENDING_LIMIT','USER_INVITE_ACCEPTED', + 'USER_INVITE_PENDING','ZERO_DAILY_SPENDING_LIMIT'); + $alertQuery->severities = array('GREEN', 'YELLOW', 'RED'); + $alertQuery->triggerTimeSpec = 'ALL_TIME'; + + // Create selector. + $selector = new AlertSelector(); + $selector->query = $alertQuery; + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $alertService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $alert) { + printf("Alert of type '%s' and severity '%s' for account '%d' was " + . "found.\n", $alert->alertType, $alert->alertSeverity, + $alert->clientCustomerId); + } + } else { + print "No alerts were found.\n"; + } + + // Advance the paging index. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); +} + +// 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. + GetAccountAlertsExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/AccountManagement/GetAccountChanges.php b/examples/AdWords/v201306/AccountManagement/GetAccountChanges.php new file mode 100755 index 000000000..8eb22a0bb --- /dev/null +++ b/examples/AdWords/v201306/AccountManagement/GetAccountChanges.php @@ -0,0 +1,148 @@ +GetService('CampaignService', ADWORDS_VERSION); + $customerSyncService = $user->GetService('CustomerSyncService', ADWORDS_VERSION); + + // Get an array of all campaign ids. + $campaignIds = array(); + $selector = new Selector(); + $selector->fields = array('Id'); + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + do { + $page = $campaignService->get($selector); + if (isset($page->entries)) { + foreach ($page->entries as $campaign) { + $campaignIds[] = $campaign->id; + } + } + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); + + // Set the date time range, from 24 hours ago until now. + $dateTimeRange = new DateTimeRange(); + $dateTimeRange->min = date('Ymd his', strtotime('-1 day')); + $dateTimeRange->max = date('Ymd his'); + + // Create selector. + $selector = new CustomerSyncSelector(); + $selector->dateTimeRange = $dateTimeRange; + $selector->campaignIds = $campaignIds; + + // Make the get request. + $accountChanges = $customerSyncService->get($selector); + + // Display results. + if (isset($accountChanges)) { + printf("Most recent change: %s\n", $accountChanges->lastChangeTimestamp); + if (isset($accountChanges->changedCampaigns)) { + foreach ($accountChanges->changedCampaigns as $campaignChangeData) { + printf("Campaign with id '%.0f' has change status '%s'.\n", + $campaignChangeData->campaignId, + $campaignChangeData->campaignChangeStatus); + if ($campaignChangeData->campaignChangeStatus != 'NEW') { + printf("\tAdded ad extensions: %s\n", + ArrayToString($campaignChangeData->addedAdExtensions)); + printf("\tDeleted ad extensions: %s\n", + ArrayToString($campaignChangeData->deletedAdExtensions)); + printf("\tAdded campaign criteria: %s\n", + ArrayToString($campaignChangeData->addedCampaignCriteria)); + printf("\tDeleted campaign criteria: %s\n", + ArrayToString($campaignChangeData->deletedCampaignCriteria)); + printf("\tCampaign targeting changed: %s\n", + $campaignChangeData->campaignTargetingChanged ? 'true' + : 'false'); + if (isset($campaignChangeData->changedAdGroups)) { + foreach($campaignChangeData->changedAdGroups as + $adGroupChangeData) { + printf("\tAd Group with id '%.0f' has change status '%s'.\n", + $adGroupChangeData->adGroupId, + $adGroupChangeData->adGroupChangeStatus); + if ($adGroupChangeData->adGroupChangeStatus != 'NEW') { + printf("\t\tChanged ads: %s\n", + ArrayToString($adGroupChangeData->changedAds)); + printf("\t\tChanged criteria: %s\n", + ArrayToString($adGroupChangeData->changedCriteria)); + printf("\t\tDeleted criteria: %s\n", + ArrayToString($adGroupChangeData->deletedCriteria)); + } + } + } + } + } + } + } else { + print "No changes were found.\n"; + } +} + +/** + * Converts an array of values to a comma-separated string. + * @param array $array an array of values that can be converted to a string + * @return string a comma-separated string of the values + */ +function ArrayToString($array) { + if (!isset($array)) { + return ''; + } else { + return implode(', ', $array); + } +} + +// 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. + GetAccountChangesExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/AccountManagement/GetAccountHierarchy.php b/examples/AdWords/v201306/AccountManagement/GetAccountHierarchy.php new file mode 100755 index 000000000..4e3baf097 --- /dev/null +++ b/examples/AdWords/v201306/AccountManagement/GetAccountHierarchy.php @@ -0,0 +1,127 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function GetAccountHierarchyExample(AdWordsUser $user) { + // Get the service, which loads the required classes. + $managedCustomerService = + $user->GetService('ManagedCustomerService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + // Specify the fields to retrieve. + $selector->fields = array('Login', 'CustomerId', 'Name'); + + // Make the get request. + $graph = $managedCustomerService->get($selector); + + // Display serviced account graph. + if (isset($graph->entries)) { + // Create map from customerId to parent and child links. + $childLinks = array(); + $parentLinks = array(); + if (isset($graph->links)) { + foreach ($graph->links as $link) { + $childLinks[$link->managerCustomerId][] = $link; + $parentLinks[$link->clientCustomerId][] = $link; + } + } + // Create map from customerID to account, and find root account. + $accounts = array(); + $rootAccount = NULL; + foreach ($graph->entries as $account) { + $accounts[$account->customerId] = $account; + if (!array_key_exists($account->customerId, $parentLinks)) { + $rootAccount = $account; + } + } + // The root account may not be returned in the sandbox. + if (!isset($rootAccount)) { + $rootAccount = new Account(); + $rootAccount->customerId = 0; + $rootAccount->login = $user->GetEmail(); + } + // Display account tree. + print "(Customer Id, Account Name/Login)\n"; + DisplayAccountTree($rootAccount, NULL, $accounts, $childLinks, 0); + } else { + print "No serviced accounts were found.\n"; + } +} + +/** + * Displays an account tree, starting at the account and link provided, and + * recursing to all child accounts. + * @param Account $account the account to display + * @param Link $link the link used to reach this account + * @param array $accounts a map from customerId to account + * @param array $links a map from customerId to child links + * @param int $depth the depth of the current account in the tree + */ +function DisplayAccountTree($account, $link, $accounts, $links, $depth) { + print str_repeat('-', $depth * 2); + printf("%s, %s\n", $account->customerId, + !empty($link->descriptiveName) ? $link->descriptiveName :$account->login); + if (array_key_exists($account->customerId, $links)) { + foreach ($links[$account->customerId] as $childLink) { + $childAccount = $accounts[$childLink->clientCustomerId]; + DisplayAccountTree($childAccount, $childLink, $accounts, $links, + $depth +1); + } + } +} + +// 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. + GetAccountHierarchyExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/AdvancedOperations/AddAdGroupBidModifier.php b/examples/AdWords/v201306/AdvancedOperations/AddAdGroupBidModifier.php new file mode 100755 index 000000000..e06620dfd --- /dev/null +++ b/examples/AdWords/v201306/AdvancedOperations/AddAdGroupBidModifier.php @@ -0,0 +1,101 @@ +GetService('AdGroupBidModifierService', + ADWORDS_VERSION); + + // Mobile criterion ID. + $criterionId = 30001; + + // Prepare to add an ad group level override. + $agBidModifier = new AdGroupBidModifier(); + $agBidModifier->adGroupId = $adGroupId; + $agBidModifier->criterion = new Platform(); + $agBidModifier->criterion->id = $criterionId; + $agBidModifier->bidModifier = $bidModifier; + + $operation = new AdGroupBidModifierOperation(); + + // Use 'ADD' to add a new modifier and 'SET' to update an existing one. A + // modifier can be removed with the 'REMOVE' operator. + $operation->operator = 'ADD'; + $operation->operand = $agBidModifier; + + $response = $bidModifierService->mutate(array($operation)); + + foreach ($response->value as $modifier) { + $value = 'none'; + if (!empty($modifier->bidModifier)) { + $value = $modifier->bidModifier; + } + printf( + 'AdGroup ID %d, Criterion ID %d was updated with ' . + "ad group level modifier: %s\n", + $modifier->adGroupId, + $modifier->criterion->id, + $value + ); + } +} + +// 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. + AddAdGroupBidModifierExample($user, $adGroupId, $bidModifier); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/AdvancedOperations/AddClickToDownloadAd.php b/examples/AdWords/v201306/AdvancedOperations/AddClickToDownloadAd.php new file mode 100755 index 000000000..a04c116aa --- /dev/null +++ b/examples/AdWords/v201306/AdvancedOperations/AddClickToDownloadAd.php @@ -0,0 +1,133 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$adGroupId = 'INSERT_ADGROUP_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $adGroupId the ID of the ad group to add the ad to + */ +function AddClickToDownloadAd(AdWordsUser $user, $adGroupId) { + // Get the AdGroupAdService, which loads the required classes. + $adGroupAdService = $user->GetService('AdGroupAdService', ADWORDS_VERSION); + + // Create the template ad. + $clickToDownloadAppAd = new TemplateAd(); + + $clickToDownloadAppAd->name = 'Ad for demo game'; + $clickToDownloadAppAd->templateId = 353; + $clickToDownloadAppAd->url = + 'http://play.google.com/store/apps/details?id=com.example.demogame'; + $clickToDownloadAppAd->displayUrl = 'play.google.com'; + + // Create the template elements for the ad. You can refer to + // https://developers.google.com/adwords/api/docs/appendix/templateads + // for the list of avaliable template fields. + $headline = new TemplateElementField(); + $headline->name = 'headline'; + $headline->fieldText = 'Enjoy your drive in Mars'; + $headline->type = 'TEXT'; + + $description1 = new TemplateElementField(); + $description1->name = 'description1'; + $description1->fieldText = 'Realistic physics simulation'; + $description1->type = 'TEXT'; + + $description2 = new TemplateElementField(); + $description2->name = 'description2'; + $description2->fieldText = 'Race against players online'; + $description2->type = 'TEXT'; + + $appId = new TemplateElementField(); + $appId->name = 'appId'; + $appId->fieldText = 'com.example.demogame'; + $appId->type = 'TEXT'; + + $appStore = new TemplateElementField(); + $appStore->name = 'appStore'; + $appStore->fieldText = '2'; + $appStore->type = 'ENUM'; + + $adData = new TemplateElement(); + $adData->uniqueName = 'adData'; + $adData->fields = + array($headline, $description1, $description2, $appId, $appStore); + + $clickToDownloadAppAd->templateElements = array($adData); + + // Create the adgroupad. + $clickToDownloadAppAdGroupAd = new AdGroupAd(); + $clickToDownloadAppAdGroupAd->adGroupId = $adGroupId; + $clickToDownloadAppAdGroupAd->ad = $clickToDownloadAppAd; + + // Optional: Set the status. + $clickToDownloadAppAdGroupAd->status = 'PAUSED'; + + // Create the operation. + $operation = new AdGroupAdOperation(); + $operation->operator = 'ADD'; + $operation->operand = $clickToDownloadAppAdGroupAd; + + $operations = array($operation); + + // Create the ads. + $result = $adGroupAdService->mutate($operations); + + 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); + } +} + +// 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. + AddClickToDownloadAd($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/AdvancedOperations/AddSitelinks.php b/examples/AdWords/v201306/AdvancedOperations/AddSitelinks.php new file mode 100755 index 000000000..43f7b6b19 --- /dev/null +++ b/examples/AdWords/v201306/AdvancedOperations/AddSitelinks.php @@ -0,0 +1,337 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$campaignId = 'INSERT_CAMPAIGN_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $campaignId the ID of the campaign to add the sitelinks to + */ +function AddSitelinksExample(AdWordsUser $user, $campaignId) { + $sitelinksData = CreateSiteLinksFeed($user); + $sitelinksData = CreateSiteLinksFeedItems($user, $sitelinksData); + CreateSiteLinksFeedMapping($user, $sitelinksData); + CreateSiteLinksCampaignFeed($user, $sitelinksData, $campaignId); +} + +/** + * Creates the feed that holds the sitelinks data. + * @param AdWordsUser $user the user to run the example with + */ +function CreateSiteLinksFeed(AdWordsUser $user) { + // Map that holds IDs associated to the feeds metadata. + $sitelinksData = array(); + + // Get the FeedService, which loads the required classes. + $feedService = $user->GetService('FeedService', ADWORDS_VERSION); + + // Create attributes. + $textAttribute = new FeedAttribute(); + $textAttribute->type = 'STRING'; + $textAttribute->name = 'Link Text'; + $urlAttribute = new FeedAttribute(); + $urlAttribute->type = 'URL'; + $urlAttribute->name = 'Link URL'; + $line1Attribute = new FeedAttribute(); + $line1Attribute->type = 'STRING'; + $line1Attribute->name = 'Line 1 Description'; + $line2Attribute = new FeedAttribute(); + $line2Attribute->type = 'STRING'; + $line2Attribute->name = 'Line 2 Description'; + + // Create the feed. + $sitelinksFeed = new Feed(); + $sitelinksFeed->name = 'Feed For Site Links'; + $sitelinksFeed->attributes = array($textAttribute, $urlAttribute, + $line1Attribute, $line2Attribute); + $sitelinksFeed->origin = 'USER'; + + // Create operation. + $operation = new FeedOperation(); + $operation->operator = 'ADD'; + $operation->operand = $sitelinksFeed; + + $operations = array($operation); + + // Add the feed. + $result = $feedService->mutate($operations); + + $savedFeed = $result->value[0]; + $sitelinksData['sitelinksFeedId'] = $savedFeed->id; + $savedAttributes = $savedFeed->attributes; + $sitelinksData['linkTextFeedAttributeId'] = $savedAttributes[0]->id; + $sitelinksData['linkUrlFeedAttributeId'] = $savedAttributes[1]->id; + $sitelinksData['line1FeedAttribute'] = $savedAttributes[2]->id; + $sitelinksData['line2FeedAttribute'] = $savedAttributes[3]->id; + + printf('Feed with name "%s" and ID %d with linkTextAttributeId %d' + . ", linkUrlAttributeId %d, line1Attribute %d and line2Attribute %d " + . "were created.\n", + $savedFeed->name, + $savedFeed->id, + $savedAttributes[0]->id, + $savedAttributes[1]->id, + $savedAttributes[2]->id, + $savedAttributes[3]->id); + + return $sitelinksData; +} + +/** + * Adds sitelinks items to the feed. + * @param AdWordsUser $user the user to run the example with + * @param map $sitelinksData IDs associated to created sitelinks feed metadata + */ +function CreateSiteLinksFeedItems(AdWordsUser $user, $sitelinksData) { + // Get the FeedItemService, which loads the required classes. + $feedItemService = $user->GetService('FeedItemService', ADWORDS_VERSION); + + // Create operations to add FeedItems. + $home = NewSiteLinkFeedItemAddOperation($sitelinksData, 'Home', + 'http://www.example.com', 'Home line 1', 'Home line 2'); + $stores = NewSiteLinkFeedItemAddOperation($sitelinksData, 'Stores', + 'http://www.example.com/stores', 'Stores line 1', 'Stores line 2'); + $onSale = NewSiteLinkFeedItemAddOperation($sitelinksData, 'On Sale', + 'http://www.example.com/sale', 'On Sale line 1', 'On Sale line 2'); + $support = NewSiteLinkFeedItemAddOperation($sitelinksData, 'Support', + 'http://www.example.com/support', 'Support line 1', 'Support line 2'); + $products = NewSiteLinkFeedItemAddOperation($sitelinksData, 'Products', + 'http://www.example.com/products', 'Products line 1', 'Products line 2'); + $aboutUs = NewSiteLinkFeedItemAddOperation($sitelinksData, 'About Us', + 'http://www.example.com/about', 'About Us line 1', 'About Us line 2'); + + $operations = array($home, $stores, $onSale, $support, $products, $aboutUs); + + $result = $feedItemService->mutate($operations); + $sitelinksData['siteLinkFeedItemIds'] = array(); + + foreach ($result->value as $feedItem) { + printf("FeedItem with feedItemId %d was added.\n", $feedItem->feedItemId); + $sitelinksData['siteLinkFeedItemIds'][] = $feedItem->feedItemId; + } + + return $sitelinksData; +} + +// See the Placeholder reference page for a list of all the placeholder types and fields. +// https://developers.google.com/adwords/api/docs/appendix/placeholders.html +define('PLACEHOLDER_SITELINKS', 1); +define('PLACEHOLDER_FIELD_SITELINK_LINK_TEXT', 1); +define('PLACEHOLDER_FIELD_SITELINK_URL', 2); +define('PLACEHOLDER_FIELD_LINE_1_TEXT', 3); +define('PLACEHOLDER_FIELD_LINE_2_TEXT', 4); + +/** + * Maps the feed attributes to the sitelink placeholders. + * @param AdWordsUser $user the user to run the example with + * @param map $sitelinksData IDs associated to created sitelinks feed metadata + */ +function CreateSiteLinksFeedMapping(AdWordsUser $user, $sitelinksData) { + // Get the FeedMappingService, which loads the required classes. + $feedMappingService = $user->GetService('FeedMappingService', + ADWORDS_VERSION); + + // Map the FeedAttributeIds to the fieldId constants. + $linkTextFieldMapping = new AttributeFieldMapping(); + $linkTextFieldMapping->feedAttributeId = + $sitelinksData['linkTextFeedAttributeId']; + $linkTextFieldMapping->fieldId = PLACEHOLDER_FIELD_SITELINK_LINK_TEXT; + $linkUrlFieldMapping = new AttributeFieldMapping(); + $linkUrlFieldMapping->feedAttributeId = + $sitelinksData['linkUrlFeedAttributeId']; + $linkUrlFieldMapping->fieldId = PLACEHOLDER_FIELD_SITELINK_URL; + $line1FieldMapping = new AttributeFieldMapping(); + $line1FieldMapping->feedAttributeId = $sitelinksData['line1FeedAttribute']; + $line1FieldMapping->fieldId = PLACEHOLDER_FIELD_LINE_1_TEXT; + $line2FieldMapping = new AttributeFieldMapping(); + $line2FieldMapping->feedAttributeId = $sitelinksData['line2FeedAttribute']; + $line2FieldMapping->fieldId = PLACEHOLDER_FIELD_LINE_2_TEXT; + + // Create the FieldMapping and operation. + $feedMapping = new FeedMapping(); + $feedMapping->placeholderType = PLACEHOLDER_SITELINKS; + $feedMapping->feedId = $sitelinksData['sitelinksFeedId']; + $feedMapping->attributeFieldMappings = + array($linkTextFieldMapping, $linkUrlFieldMapping, $line1FieldMapping, + $line2FieldMapping); + $operation = new FeedMappingOperation(); + $operation->operand = $feedMapping; + $operation->operator = 'ADD'; + + $operations = array($operation); + + // Save the field mapping. + $result = $feedMappingService->mutate($operations); + foreach ($result->value as $feedMapping) { + printf('Feed mapping with ID %d and placeholderType %d was saved for ' . + "feed with ID %d.\n", + $feedMapping->feedMappingId, + $feedMapping->placeholderType, + $feedMapping->feedId); + } +} + +/** + * Creates the CampaignFeed associated to the feed data already populated. + * @param AdWordsUser $user the user to run the example with + * @param map $sitelinksData IDs associated to created sitelinks feed metadata + * @param string $campaignId the ID of the campaign to add the sitelinks to + */ +function CreateSiteLinksCampaignFeed(AdWordsUser $user, $sitelinksData, + $campaignId) { + // Get the CampaignFeedService, which loads the required classes. + $campaignFeedService = $user->GetService('CampaignFeedService', + ADWORDS_VERSION); + + $feedFunctionRequestContextOperand = new RequestContextOperand(); + $feedFunctionRequestContextOperand->contextType = 'FEED_ITEM_ID'; + + $feedItemFunction = new FeedFunction(); + $feedItemFunction->lhsOperand = array($feedFunctionRequestContextOperand); + $feedItemFunction->operator = 'IN'; + + $operands = array(); + foreach ($sitelinksData['siteLinkFeedItemIds'] as $feedItemId) { + $constantOperand = new ConstantOperand(); + $constantOperand->longValue = $feedItemId; + $constantOperand->type = 'LONG'; + $operands[] = $constantOperand; + } + $feedItemFunction->rhsOperand = $operands; + + # Optional: to target to a platform, define a function and 'AND' it with the + # feed item ID link: + $platformRequestContextOperand = new RequestContextOperand(); + $platformRequestContextOperand->contextType = 'DEVICE_PLATFORM'; + + $platformOperand = new ConstantOperand(); + $platformOperand->type = 'STRING'; + $platformOperand->stringValue = 'Mobile'; + + $platformFunction = new FeedFunction(); + $platformFunction->operator = 'EQUALS'; + $platformFunction->lhsOperand = array($platformRequestContextOperand); + $platformFunction->rhsOperand = array($platformOperand); + + $feedItemFunctionOperand = new FunctionOperand(); + $feedItemFunctionOperand->value = $feedItemFunction; + + $platformFunctionOperand = new FunctionOperand(); + $platformFunctionOperand->value = $platformFunction; + + $combinedFunction = new FeedFunction(); + $combinedFunction->operator = 'AND'; + $combinedFunction->lhsOperand = array($feedItemFunctionOperand, + $platformFunctionOperand); + + $campaignFeed = new CampaignFeed(); + $campaignFeed->feedId = $sitelinksData['sitelinksFeedId']; + $campaignFeed->campaignId = $campaignId; + $campaignFeed->matchingFunction = $combinedFunction; + // Specifying placeholder types on the CampaignFeed allows the same feed + // to be used for different placeholders in different Campaigns. + $campaignFeed->placeholderTypes = array(PLACEHOLDER_SITELINKS); + + $operation = new CampaignFeedOperation(); + $operation->operand = $campaignFeed; + $operation->operator = 'ADD'; + + $operations = array($operation); + + $result = $campaignFeedService->mutate($operations); + foreach ($result->value as $savedCampaignFeed) { + printf("Campaign with ID %d was associated with feed with ID %d.\n", + $savedCampaignFeed->campaignId, + $savedCampaignFeed->feedId); + } +} + +/** + * Creates a SitelinkFeedItem and wraps it in an ADD operation. + * @param map $sitelinksData IDs associated to created sitelinks feed metadata + * @param string $text text of the sitelink + * @param string $url URL of the sitelink + */ +function NewSiteLinkFeedItemAddOperation($sitelinksData, $text, $url, $line1, + $line2) { + // Create the FeedItemAttributeValues for our text values. + $linkTextAttributeValue = new FeedItemAttributeValue(); + $linkTextAttributeValue->feedAttributeId = + $sitelinksData['linkTextFeedAttributeId']; + $linkTextAttributeValue->stringValue = $text; + $linkUrlAttributeValue = new FeedItemAttributeValue(); + $linkUrlAttributeValue->feedAttributeId = + $sitelinksData['linkUrlFeedAttributeId']; + $linkUrlAttributeValue->stringValue = $url; + $line1AttributeValue = new FeedItemAttributeValue(); + $line1AttributeValue->feedAttributeId = $sitelinksData['line1FeedAttribute']; + $line1AttributeValue->stringValue = $line1; + $line2AttributeValue = new FeedItemAttributeValue(); + $line2AttributeValue->feedAttributeId = $sitelinksData['line2FeedAttribute']; + $line2AttributeValue->stringValue = $line2; + + + // Create the feed item and operation. + $item = new FeedItem(); + $item->feedId = $sitelinksData['sitelinksFeedId']; + $item->attributeValues = + array($linkTextAttributeValue, $linkUrlAttributeValue, + $line1AttributeValue, $line2AttributeValue); + $operation = new FeedItemOperation(); + $operation->operand = $item; + $operation->operator = 'ADD'; + return $operation; +} + +// 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. + AddSitelinksExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/AdvancedOperations/CreateAndAttachSharedKeywordSet.php b/examples/AdWords/v201306/AdvancedOperations/CreateAndAttachSharedKeywordSet.php new file mode 100755 index 000000000..fb9aa7b2f --- /dev/null +++ b/examples/AdWords/v201306/AdvancedOperations/CreateAndAttachSharedKeywordSet.php @@ -0,0 +1,153 @@ +GetService('SharedSetService'); + + $set = new SharedSet(); + $set->name = sprintf( + 'API Negative keyword list #%s', + uniqid() + ); + $set->type = 'NEGATIVE_KEYWORDS'; + + $operation = new SharedSetOperation(); + $operation->operator = 'ADD'; + $operation->operand = $set; + + $operations = array($operation); + + $result = $sharedSetService->mutate($operations); + + // Get the shared set ID and print it. + $set = $result->value[0]; + $sharedSetId = $set->sharedSetId; + printf( + "SharedSet '%s' has been created with ID '%s'\n", + $set->name, + $sharedSetId + ); + + // Add negative Keywords to SharedSet. + $sharedCriterionService = $user->GetService('SharedCriterionService'); + + $operations = array(); + foreach ($keywordTexts as $keywordText) { + $keyword = new Keyword(); + $keyword->text = $keywordText; + $keyword->matchType = 'BROAD'; + + $sharedCriterion = new SharedCriterion(); + $sharedCriterion->criterion = $keyword; + $sharedCriterion->negative = true; + $sharedCriterion->sharedSetId = $sharedSetId; + + $operation = new SharedCriterionOperation(); + $operation->operator = 'ADD'; + $operation->operand = $sharedCriterion; + + + $operations[] = $operation; + } + + $result = $sharedCriterionService->mutate($operations); + + // Print the shared negative keywords. + foreach ($result->value as $sharedCriterion) { + printf( + "Shared negative Keyword '%s' created, with ID '%s'\n", + $sharedCriterion->criterion->text, + $sharedCriterion->criterion->id + ); + } + + // Attach the articles to the campaign. + $campaignSharedSetService = $user->GetService('CampaignSharedSetService'); + + $campaignSet = new CampaignSharedSet(); + $campaignSet->campaignId = $campaignId; + $campaignSet->sharedSetId = $sharedSetId; + + $operator = new CampaignSharedSetOperation(); + $operator->operator = 'ADD'; + $operator->operand = $campaignSet; + + $operations = array($operator); + + $result = $campaignSharedSetService->mutate($operations); + + // Print the CampaignSharedSet and its relating IDs. + $campaignSet = $result->value[0]; + printf( + "Created CampaignSharedSet with campaign ID '%s' and shared set ID '%s'\n", + $campaignSet->campaignId, + $campaignSet->sharedSetId + ); +} + +// 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. + CreateAndAttachSharedKeywordSetExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/AdvancedOperations/FindAndRemoveCriteriaFromSharedSet.php b/examples/AdWords/v201306/AdvancedOperations/FindAndRemoveCriteriaFromSharedSet.php new file mode 100755 index 000000000..9be69553d --- /dev/null +++ b/examples/AdWords/v201306/AdvancedOperations/FindAndRemoveCriteriaFromSharedSet.php @@ -0,0 +1,208 @@ +GetService("CampaignSharedSetService"); + + // Create two predicates: + // Filter by campaign ID. + $campaignPredicate = new Predicate(); + $campaignPredicate->field = "CampaignId"; + $campaignPredicate->operator = "EQUALS"; + $campaignPredicate->values = array($campaignId); + + // Filter by shared set type. + $typePredicate = new Predicate(); + $typePredicate->field = "SharedSetType"; + $typePredicate->operator = "IN"; + $typePredicate->values = array("NEGATIVE_KEYWORDS", "NEGATIVE_PLACEMENTS"); + + $selector = new Selector(); + $selector->fields = array("SharedSetId", "CampaignId", "SharedSetName", + "SharedSetType", "Status"); + $selector->predicates = array($campaignPredicate, $typePredicate); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + $sharedSetIds = array(); + + do { + // Make the get request. + $page = $campaignSharedSetService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $campaignSharedSet) { + printf("A Campaign Shared Set with the shared set ID '%s', campaign " . + "ID '%s', name '%s', type '%s' and status '%s' was found.\n", + $campaignSharedSet->sharedSetId, $campaignSharedSet->campaignId, + $campaignSharedSet->sharedSetName, + $campaignSharedSet->sharedSetType, $campaignSharedSet->status); + + // Add the shared set ID to the response array. + $sharedSetIds[] = $campaignSharedSet->sharedSetId; + } + } + + // Configure the next page. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); + + if (empty($sharedSetIds)) { + throw new RuntimeException(sprintf( + "No shared sets for campaign ID \"%s\"", $campaignId)); + } + + return $sharedSetIds; +} + +function FindCriteriaForSharedSets(AdWordsUser $user, $sharedSetIds) { + $sharedCriterionService = $user->GetService("SharedCriterionService"); + + $predicate = new Predicate(); + $predicate->field = "SharedSetId"; + $predicate->operator = "IN"; + $predicate->values = $sharedSetIds; + + $selector = new Selector(); + $selector->fields = array("SharedSetId", "Id", "KeywordText", + "KeywordMatchType", "PlacementUrl"); + $selector->predicates = array($predicate); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + $sharedCriteriaPerSetId = array(); + do { + $page = $sharedCriterionService->get($selector); + + if (isset($page->entries)) { + foreach ($page->entries as $sharedCriterion) { + $sharedSetId = $sharedCriterion->sharedSetId; + printf("A SharedCriterion with the CriterionId \"%s\" was found " . + "for SharedSetId \"%s\".\n", + $sharedCriterion->criterion->id, $sharedSetId); + + // Add an array of shared set IDs mapping to a list of criterionIds + if (!isset($sharedCriteriaPerSetId[$sharedSetId])) { + $sharedCriteriaPerSetId[$sharedSetId] = array(); + } + + $sharedCriteriaPerSetId[$sharedSetId][] = + $sharedCriterion->criterion->id; + } + } + + // Configure the next page. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); + + if (empty($sharedCriteriaPerSetId)) { + throw new RuntimeException(sprintf( + "No shared criteria for sets: \"%s\"", + implode("\", \"", $sharedSetIds))); + } + + return $sharedCriteriaPerSetId; +} + +function RemoveCriteriaFromSharedSet(AdWordsUser $user, + $sharedSetsToCriterions) { + $sharedCriterionService = $user->GetService("SharedCriterionService"); + + $operations = array(); + foreach ($sharedSetsToCriterions as $sharedSetId => $criterionIds) { + foreach ($criterionIds as $criterionId) { + + $criterion = new Criterion(); + $criterion->id = $criterionId; + + $sharedCriterion = new SharedCriterion(); + $sharedCriterion->criterion = $criterion; + $sharedCriterion->sharedSetId = $sharedSetId; + + $operation = new SharedCriterionOperation(); + $operation->operator = "REMOVE"; + $operation->operand = $sharedCriterion; + $operations[] = $operation; + } + } + + $result = $sharedCriterionService->mutate($operations); + + // On nothing removed, raise an exception. + if (empty($result->value)) { + throw new RuntimeException("Unable to remove SharedCriterion."); + } + + foreach ($result->value as $sharedCriterion) { + printf("Deleted SharedCriterion with shared set ID \"%s\" and " . + "criterion ID \"%s\"\n", + $sharedCriterion->sharedSetId, + $sharedCriterion->criterion->id); + } +} + + +// 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. + FindAndRemoveCriteriaFromSharedSetExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/AdvancedOperations/GetAdGroupBidModifiers.php b/examples/AdWords/v201306/AdvancedOperations/GetAdGroupBidModifiers.php new file mode 100755 index 000000000..05505cdd4 --- /dev/null +++ b/examples/AdWords/v201306/AdvancedOperations/GetAdGroupBidModifiers.php @@ -0,0 +1,96 @@ +GetService('AdGroupBidModifierService', + ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('CampaignId', 'AdGroupId', 'BidModifier', 'Id'); + $selector->ordering[] = new OrderBy('CampaignId', 'ASCENDING'); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $bidModifierService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $modifier) { + $value = 'none'; + if (!empty($modifier->bidModifier)) { + $value = $modifier->bidModifier; + } + printf("Campaign ID %d, AdGroup ID %d, Criterion ID %d has ad group " . + "level modifier: %s\n", + $modifier->campaignId, + $modifier->adGroupId, + $modifier->criterion->id, + $value + ); + } + } else { + print "No bid modifiers were found.\n"; + } + + // Advance the paging index. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); +} + +// 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. + GetAdGroupBidModifiersExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/AddAdGroupDemographicCriteria.php b/examples/AdWords/v201306/BasicOperations/AddAdGroupDemographicCriteria.php new file mode 100755 index 000000000..6b0a08672 --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/AddAdGroupDemographicCriteria.php @@ -0,0 +1,110 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$adGroupId = 'INSERT_AD_GROUP_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function AddAdGroupDemographicCriteriaExample(AdWordsUser $user, $adGroupId) { + // Get the AdGroupCriterionService, which loads the required classes. + $adGroupCriterionService = $user->GetService('AdGroupCriterionService', + ADWORDS_VERSION); + + // Create biddable ad group criterion for gender + $genderTarget = new Gender(); + // Criterion Id for male. The IDs can be found here + // https://developers.google.com/adwords/api/docs/appendix/genders + $genderTarget->id = 10; + + $genderBiddableAdGroupCriterion = new BiddableAdGroupCriterion(); + $genderBiddableAdGroupCriterion->adGroupId = $adGroupId; + $genderBiddableAdGroupCriterion->criterion = $genderTarget; + + // Create negative ad group criterion for age range + $ageRangeNegative = new AgeRange(); + // Criterion Id for age 18 to 24. The IDs can be found here + // https://developers.google.com/adwords/api/docs/appendix/ages + + $ageRangeNegative->id = 503001; + $ageRangeNegativeAdGroupCriterion = new NegativeAdGroupCriterion(); + $ageRangeNegativeAdGroupCriterion->adGroupId = $adGroupId; + $ageRangeNegativeAdGroupCriterion->criterion = $ageRangeNegative; + + $operations = array(); + + // Create operations. + $genderBiddableAdGroupCriterionOperation = new AdGroupCriterionOperation(); + $genderBiddableAdGroupCriterionOperation->operand = + $genderBiddableAdGroupCriterion; + $genderBiddableAdGroupCriterionOperation->operator = 'ADD'; + $operations[] = $genderBiddableAdGroupCriterionOperation; + + $ageRangeNegativeAdGroupCriterionOperation = new AdGroupCriterionOperation(); + $ageRangeNegativeAdGroupCriterionOperation->operand = + $ageRangeNegativeAdGroupCriterion; + $ageRangeNegativeAdGroupCriterionOperation->operator = 'ADD'; + $operations[] = $ageRangeNegativeAdGroupCriterionOperation; + + // Make the mutate request. + $result = $adGroupCriterionService->mutate($operations); + + // Display results. + foreach ($result->value as $adGroupCriterion) { + printf("Ad group criterion with ad group ID '%s', criterion ID '%s' " . + "and type '%s' was added.\n", $adGroupCriterion->adGroupId, + $adGroupCriterion->criterion->id, + $adGroupCriterion->criterion->CriterionType); + } +} + +// 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. + AddAdGroupDemographicCriteriaExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/AddAdGroups.php b/examples/AdWords/v201306/BasicOperations/AddAdGroups.php new file mode 100755 index 000000000..a72760158 --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/AddAdGroups.php @@ -0,0 +1,111 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$campaignId = 'INSERT_CAMPAIGN_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $campaignId the ID of the campaign to add the ad group to + */ +function AddAdGroupsExample(AdWordsUser $user, $campaignId) { + // Get the service, which loads the required classes. + $adGroupService = $user->GetService('AdGroupService', ADWORDS_VERSION); + + $numAdGroups = 2; + $operations = array(); + for ($i = 0; $i < $numAdGroups; $i++) { + // Create ad group. + $adGroup = new AdGroup(); + $adGroup->campaignId = $campaignId; + $adGroup->name = 'Earth to Mars Cruise #' . uniqid(); + + // Set bids (required). + $bid = new CpcBid(); + $bid->bid = new Money(1000000); + $bid->contentBid = new Money(750000); + $biddingStrategyConfiguration = new BiddingStrategyConfiguration(); + $biddingStrategyConfiguration->bids[] = $bid; + $adGroup->biddingStrategyConfiguration = $biddingStrategyConfiguration; + + // Set additional settings (optional). + $adGroup->status = 'ENABLED'; + + // Targetting restriction settings - these setting only affect serving + // for the Display Network. + $targetingSetting = new TargetingSetting(); + // Restricting to serve ads that match your ad group placements. + $targetingSetting->details[] = + new TargetingSettingDetail('PLACEMENT', TRUE); + // Using your ad group verticals only for bidding. + $targetingSetting->details[] = + new TargetingSettingDetail('VERTICAL', FALSE); + $adGroup->settings[] = $targetingSetting; + + // Create operation. + $operation = new AdGroupOperation(); + $operation->operand = $adGroup; + $operation->operator = 'ADD'; + $operations[] = $operation; + } + + // Make the mutate request. + $result = $adGroupService->mutate($operations); + + // Display result. + $adGroups = $result->value; + foreach ($adGroups as $adGroup) { + printf("Ad group with name '%s' and ID '%s' was added.\n", $adGroup->name, + $adGroup->id); + } +} + +// 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. + AddAdGroupsExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/AddCampaigns.php b/examples/AdWords/v201306/BasicOperations/AddCampaigns.php new file mode 100755 index 000000000..90c11cc02 --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/AddCampaigns.php @@ -0,0 +1,151 @@ + + * @author Eric Koleda + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function AddCampaignsExample(AdWordsUser $user) { + // Get the BudgetService, which loads the required classes. + $budgetService = $user->GetService('BudgetService', ADWORDS_VERSION); + + // Create the shared budget (required). + $budget = new Budget(); + $budget->name = 'Interplanetary Cruise Budget #' . uniqid(); + $budget->period = 'DAILY'; + $budget->amount = new Money(50000000); + $budget->deliveryMethod = 'STANDARD'; + + $operations = array(); + + // Create operation. + $operation = new BudgetOperation(); + $operation->operand = $budget; + $operation->operator = 'ADD'; + $operations[] = $operation; + + // Make the mutate request. + $result = $budgetService->mutate($operations); + $budget = $result->value[0]; + + // Get the CampaignService, which loads the required classes. + $campaignService = $user->GetService('CampaignService', ADWORDS_VERSION); + + $numCampaigns = 2; + $operations = array(); + for ($i = 0; $i < $numCampaigns; $i++) { + // Create campaign. + $campaign = new Campaign(); + $campaign->name = 'Interplanetary Cruise #' . uniqid(); + + // Set shared budget (required). + $campaign->budget = new Budget(); + $campaign->budget->budgetId = $budget->budgetId; + + // Set bidding strategy (required). + $biddingStrategyConfiguration = new BiddingStrategyConfiguration(); + $biddingStrategyConfiguration->biddingStrategyType = 'MANUAL_CPC'; + + // You can optionally provide a bidding scheme in place of the type. + $biddingScheme = new ManualCpcBiddingScheme(); + $biddingScheme->enhancedCpcEnabled = FALSE; + $biddingStrategyConfiguration->biddingScheme = $biddingScheme; + + $campaign->biddingStrategyConfiguration = $biddingStrategyConfiguration; + + // Set keyword matching setting (required). + $keywordMatchSetting = new KeywordMatchSetting(); + $keywordMatchSetting->optIn = TRUE; + $campaign->settings[] = $keywordMatchSetting; + + // Set network targeting (recommended). + $networkSetting = new NetworkSetting(); + $networkSetting->targetGoogleSearch = TRUE; + $networkSetting->targetSearchNetwork = TRUE; + $networkSetting->targetContentNetwork = TRUE; + $campaign->networkSetting = $networkSetting; + + // Set additional settings (optional). + $campaign->status = 'PAUSED'; + $campaign->startDate = date('Ymd', strtotime('+1 day')); + $campaign->endDate = date('Ymd', strtotime('+1 month')); + $campaign->adServingOptimizationStatus = 'ROTATE'; + + // Set frequency cap (optional). + $frequencyCap = new FrequencyCap(); + $frequencyCap->impressions = 5; + $frequencyCap->timeUnit = 'DAY'; + $frequencyCap->level = 'ADGROUP'; + $campaign->frequencyCap = $frequencyCap; + + // Set advanced location targeting settings (optional). + $geoTargetTypeSetting = new GeoTargetTypeSetting(); + $geoTargetTypeSetting->positiveGeoTargetType = 'DONT_CARE'; + $geoTargetTypeSetting->negativeGeoTargetType = 'DONT_CARE'; + $campaign->settings[] = $geoTargetTypeSetting; + + // Create operation. + $operation = new CampaignOperation(); + $operation->operand = $campaign; + $operation->operator = 'ADD'; + $operations[] = $operation; + } + + // Make the mutate request. + $result = $campaignService->mutate($operations); + + // Display results. + foreach ($result->value as $campaign) { + printf("Campaign with name '%s' and ID '%s' was added.\n", $campaign->name, + $campaign->id); + } +} + +// 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. + AddCampaignsExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/AddKeywords.php b/examples/AdWords/v201306/BasicOperations/AddKeywords.php new file mode 100755 index 000000000..485975cee --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/AddKeywords.php @@ -0,0 +1,110 @@ +GetService('AdGroupCriterionService', ADWORDS_VERSION); + + $numKeywords = 5; + $operations = array(); + for ($i = 0; $i < $numKeywords; $i++) { + // Create keyword criterion. + $keyword = new Keyword(); + $keyword->text = 'mars cruise ' . uniqid(); + $keyword->matchType = 'BROAD'; + + // Create biddable ad group criterion. + $adGroupCriterion = new BiddableAdGroupCriterion(); + $adGroupCriterion->adGroupId = $adGroupId; + $adGroupCriterion->criterion = $keyword; + + // Set additional settings (optional). + $adGroupCriterion->userStatus = 'PAUSED'; + $adGroupCriterion->destinationUrl = '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; + + $adGroupCriteria[] = $adGroupCriterion; + + // Create operation. + $operation = new AdGroupCriterionOperation(); + $operation->operand = $adGroupCriterion; + $operation->operator = 'ADD'; + $operations[] = $operation; + } + + // Make the mutate request. + $result = $adGroupCriterionService->mutate($operations); + + // Display results. + foreach ($result->value as $adGroupCriterion) { + printf("Keyword with text '%s', match type '%s', and ID '%s' was added.\n", + $adGroupCriterion->criterion->text, + $adGroupCriterion->criterion->matchType, + $adGroupCriterion->criterion->id); + } +} + +// 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. + AddKeywordsExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/AddTextAds.php b/examples/AdWords/v201306/BasicOperations/AddTextAds.php new file mode 100755 index 000000000..2b4f3f3c7 --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/AddTextAds.php @@ -0,0 +1,102 @@ +GetService('AdGroupAdService', ADWORDS_VERSION); + + $numAds = 5; + $operations = array(); + for ($i = 0; $i < $numAds; $i++) { + // Create text ad. + $textAd = new TextAd(); + $textAd->headline = 'Cruise #' . uniqid(); + $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'; + + // Create ad group ad. + $adGroupAd = new AdGroupAd(); + $adGroupAd->adGroupId = $adGroupId; + $adGroupAd->ad = $textAd; + + // Set additional settings (optional). + $adGroupAd->status = 'PAUSED'; + + // Create operation. + $operation = new AdGroupAdOperation(); + $operation->operand = $adGroupAd; + $operation->operator = 'ADD'; + $operations[] = $operation; + } + + // Make the mutate request. + $result = $adGroupAdService->mutate($operations); + + // Display results. + foreach ($result->value as $adGroupAd) { + printf("Text ad with headline '%s' and ID '%s' was added.\n", + $adGroupAd->ad->headline, $adGroupAd->ad->id); + } +} + +// 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. + AddTextAdsExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/DeleteAd.php b/examples/AdWords/v201306/BasicOperations/DeleteAd.php new file mode 100755 index 000000000..b72046a4e --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/DeleteAd.php @@ -0,0 +1,88 @@ +GetService('AdGroupAdService', ADWORDS_VERSION); + + // Create base class ad to avoid setting type specific fields. + $ad = new Ad(); + $ad->id = $adId; + + // Create ad group ad. + $adGroupAd = new AdGroupAd(); + $adGroupAd->adGroupId = $adGroupId; + $adGroupAd->ad = $ad; + + // Create operation. + $operation = new AdGroupAdOperation(); + $operation->operand = $adGroupAd; + $operation->operator = 'REMOVE'; + + $operations = array($operation); + + // Make the mutate request. + $result = $adGroupAdService->mutate($operations); + + // Display result. + $adGroupAd = $result->value[0]; + printf("Ad with ID '%s' was deleted.\n", $adGroupAd->ad->id); +} + +// 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. + DeleteAdExample($user, $adGroupId, $adId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/DeleteAdGroup.php b/examples/AdWords/v201306/BasicOperations/DeleteAdGroup.php new file mode 100755 index 000000000..359b1446a --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/DeleteAdGroup.php @@ -0,0 +1,84 @@ +GetService('AdGroupService', ADWORDS_VERSION); + + // Create ad group with DELETED status. + $adGroup = new AdGroup(); + $adGroup->id = $adGroupId; + $adGroup->status = 'DELETED'; + // Rename the ad group as you delete it, to avoid future name conflicts. + $adGroup->name = 'Deleted ' . date('Ymd his'); + + // Create operations. + $operation = new AdGroupOperation(); + $operation->operand = $adGroup; + $operation->operator = 'SET'; + + $operations = array($operation); + + // Make the mutate request. + $result = $adGroupService->mutate($operations); + + // Display result. + $adGroup = $result->value[0]; + printf("Ad group with ID '%s' was deleted.\n", $adGroup->id); +} + +// 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. + DeleteAdGroupExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/DeleteCampaign.php b/examples/AdWords/v201306/BasicOperations/DeleteCampaign.php new file mode 100755 index 000000000..43113e513 --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/DeleteCampaign.php @@ -0,0 +1,85 @@ + + * @author Eric Koleda + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$campaignId = 'INSERT_CAMPAIGN_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $campaignId the id of the campaign to delete + */ +function DeleteCampaignExample(AdWordsUser $user, $campaignId) { + // Get the service, which loads the required classes. + $campaignService = $user->GetService('CampaignService', ADWORDS_VERSION); + + // Create campaign with DELETED status. + $campaign = new Campaign(); + $campaign->id = $campaignId; + $campaign->status = 'DELETED'; + // Rename the campaign as you delete it, to avoid future name conflicts. + $campaign->name = 'Deleted ' . date('Ymd his'); + + // Create operations. + $operation = new CampaignOperation(); + $operation->operand = $campaign; + $operation->operator = 'SET'; + + $operations = array($operation); + + // Make the mutate request. + $result = $campaignService->mutate($operations); + + // Display result. + $campaign = $result->value[0]; + printf("Campaign with ID '%s' was deleted.\n", $campaign->id); +} + +// 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. + DeleteCampaignExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/DeleteKeyword.php b/examples/AdWords/v201306/BasicOperations/DeleteKeyword.php new file mode 100755 index 000000000..a88669b93 --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/DeleteKeyword.php @@ -0,0 +1,92 @@ +GetService('AdGroupCriterionService', ADWORDS_VERSION); + + // Create criterion using an existing ID. Use the base class Criterion + // instead of Keyword to avoid having to set keyword-specific fields. + $criterion = new Criterion(); + $criterion->id = $criterionId; + + // Create ad group criterion. + $adGroupCriterion = new AdGroupCriterion(); + $adGroupCriterion->adGroupId = $adGroupId; + $adGroupCriterion->criterion = new Criterion($criterionId); + + // Create operation. + $operation = new AdGroupCriterionOperation(); + $operation->operand = $adGroupCriterion; + $operation->operator = 'REMOVE'; + + $operations = array($operation); + + // Make the mutate request. + $result = $adGroupCriterionService->mutate($operations); + + // Display result. + $adGroupCriterion = $result->value[0]; + printf("Keyword with ID '%s' was deleted.\n", + $adGroupCriterion->criterion->id); +} + +// 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. + DeleteKeywordExample($user, $adGroupId, $criterionId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/GetAdGroups.php b/examples/AdWords/v201306/BasicOperations/GetAdGroups.php new file mode 100755 index 000000000..12b1f39f2 --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/GetAdGroups.php @@ -0,0 +1,94 @@ +GetService('AdGroupService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('Id', 'Name'); + $selector->ordering[] = new OrderBy('Name', 'ASCENDING'); + + // Create predicates. + $selector->predicates[] = + new Predicate('CampaignId', 'IN', array($campaignId)); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $adGroupService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $adGroup) { + printf("Ad group with name '%s' and ID '%s' was found.\n", + $adGroup->name, $adGroup->id); + } + } else { + print "No ad groups were found.\n"; + } + + // Advance the paging index. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); +} + +// 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. + GetAdGroupsExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/GetCampaigns.php b/examples/AdWords/v201306/BasicOperations/GetCampaigns.php new file mode 100755 index 000000000..c89522f73 --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/GetCampaigns.php @@ -0,0 +1,87 @@ + + * @author Eric Koleda + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function GetCampaignsExample(AdWordsUser $user) { + // Get the service, which loads the required classes. + $campaignService = $user->GetService('CampaignService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('Id', 'Name'); + $selector->ordering[] = new OrderBy('Name', 'ASCENDING'); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $campaignService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $campaign) { + printf("Campaign with name '%s' and ID '%s' was found.\n", + $campaign->name, $campaign->id); + } + } else { + print "No campaigns were found.\n"; + } + + // Advance the paging index. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); +} + +// 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. + GetCampaignsExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/GetCampaignsWithAwql.php b/examples/AdWords/v201306/BasicOperations/GetCampaignsWithAwql.php new file mode 100755 index 000000000..511543834 --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/GetCampaignsWithAwql.php @@ -0,0 +1,86 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function GetCampaignsWithAwqlExample(AdWordsUser $user) { + // Get the service, which loads the required classes. + $campaignService = $user->GetService('CampaignService', ADWORDS_VERSION); + + // Create AWQL query. + $query = 'SELECT Id, Name, Status ORDER BY Name'; + + // Create paging controls. + $offset = 0; + + do { + $pageQuery = sprintf('%s LIMIT %d,%d', $query, $offset, + AdWordsConstants::RECOMMENDED_PAGE_SIZE); + // Make the query request. + $page = $campaignService->query($pageQuery); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $campaign) { + printf("Campaign with name '%s' and ID '%s' was found.\n", + $campaign->name, $campaign->id); + } + } else { + print "No campaigns were found.\n"; + } + + // Advance the paging offset. + $offset += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $offset); +} + +// 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. + GetCampaignsWithAwqlExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/GetKeywords.php b/examples/AdWords/v201306/BasicOperations/GetKeywords.php new file mode 100755 index 000000000..dcf1f7a87 --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/GetKeywords.php @@ -0,0 +1,99 @@ +GetService('AdGroupCriterionService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('KeywordText', 'KeywordMatchType', 'Id'); + $selector->ordering[] = new OrderBy('KeywordText', 'ASCENDING'); + + // Create predicates. + $selector->predicates[] = new Predicate('AdGroupId', 'IN', array($adGroupId)); + $selector->predicates[] = + new Predicate('CriteriaType', 'IN', array('KEYWORD')); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $adGroupCriterionService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $adGroupCriterion) { + printf("Keyword with text '%s', match type '%s', and ID '%s' was " + . "found.\n", $adGroupCriterion->criterion->text, + $adGroupCriterion->criterion->matchType, + $adGroupCriterion->criterion->id); + } + } else { + print "No keywords were found.\n"; + } + + // Advance the paging index. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); +} + +// 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. + GetKeywordsExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/GetTextAds.php b/examples/AdWords/v201306/BasicOperations/GetTextAds.php new file mode 100755 index 000000000..0ab6012bd --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/GetTextAds.php @@ -0,0 +1,99 @@ +GetService('AdGroupAdService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('Headline', 'Id'); + $selector->ordering[] = new OrderBy('Headline', 'ASCENDING'); + + // Create predicates. + $selector->predicates[] = new Predicate('AdGroupId', 'IN', array($adGroupId)); + $selector->predicates[] = new Predicate('AdType', 'IN', array('TEXT_AD')); + // By default disabled ads aren't returned by the selector. To return them + // include the DISABLED status in a predicate. + $selector->predicates[] = + new Predicate('Status', 'IN', array('ENABLED', 'PAUSED', 'DISABLED')); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $adGroupAdService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $adGroupAd) { + printf("Text ad with headline '%s' and ID '%s' was found.\n", + $adGroupAd->ad->headline, $adGroupAd->ad->id); + } + } else { + print "No text ads were found.\n"; + } + + // Advance the paging index. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); +} + +// 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. + GetTextAdsExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/PauseAd.php b/examples/AdWords/v201306/BasicOperations/PauseAd.php new file mode 100755 index 000000000..012ee7201 --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/PauseAd.php @@ -0,0 +1,93 @@ +GetService('AdGroupAdService', ADWORDS_VERSION); + + // Create ad using an existing ID. Use the base class Ad instead of TextAd to + // avoid having to set ad-specific fields. + $ad = new Ad(); + $ad->id = $adId; + + // Create ad group ad. + $adGroupAd = new AdGroupAd(); + $adGroupAd->adGroupId = $adGroupId; + $adGroupAd->ad = $ad; + + // Update the status. + $adGroupAd->status = 'PAUSED'; + + // Create operation. + $operation = new AdGroupAdOperation(); + $operation->operand = $adGroupAd; + $operation->operator = 'SET'; + + $operations = array($operation); + + // Make the mutate request. + $result = $adGroupAdService->mutate($operations); + + // Display result. + $adGroupAd = $result->value[0]; + printf("Ad of type '%s' with ID '%s' has updated status '%s'.\n", + $adGroupAd->ad->AdType, $adGroupAd->ad->id, $adGroupAd->status); +} + +// 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. + PauseAdExample($user, $adGroupId, $adId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/UpdateAdGroup.php b/examples/AdWords/v201306/BasicOperations/UpdateAdGroup.php new file mode 100755 index 000000000..6ff924f46 --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/UpdateAdGroup.php @@ -0,0 +1,92 @@ +GetService('AdGroupService', ADWORDS_VERSION); + + // Create ad group using an existing ID. + $adGroup = new AdGroup(); + $adGroup->id = $adGroupId; + + // Update the bid. + $bid = new CpcBid(); + $bid->bid = new Money(0.75 * AdWordsConstants::MICROS_PER_DOLLAR); + $biddingStrategyConfiguration = new BiddingStrategyConfiguration(); + $biddingStrategyConfiguration->bids[] = $bid; + $adGroup->biddingStrategyConfiguration = $biddingStrategyConfiguration; + + // Create operation. + $operation = new AdGroupOperation(); + $operation->operand = $adGroup; + $operation->operator = 'SET'; + + $operations = array($operation); + + // Make the mutate request. + $result = $adGroupService->mutate($operations); + + // Display result. + $adGroup = $result->value[0]; + printf("Ad group with ID '%s' has updated default bid '$%s'.\n", $adGroup->id, + $adGroup->biddingStrategyConfiguration->bids[0]->bid->microAmount / + AdWordsConstants::MICROS_PER_DOLLAR); + +} + +// 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. + UpdateAdGroupExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/UpdateCampaign.php b/examples/AdWords/v201306/BasicOperations/UpdateCampaign.php new file mode 100755 index 000000000..4acd97d78 --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/UpdateCampaign.php @@ -0,0 +1,84 @@ + + * @author Eric Koleda + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$campaignId = 'INSERT_CAMPAIGN_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $campaignId the ID of the campaign to update + */ +function UpdateCampaignExample(AdWordsUser $user, $campaignId) { + // Get the service, which loads the required classes. + $campaignService = $user->GetService('CampaignService', ADWORDS_VERSION); + + // Create campaign using an existing ID. + $campaign = new Campaign(); + $campaign->id = $campaignId; + $campaign->status = 'PAUSED'; + + // Create operation. + $operation = new CampaignOperation(); + $operation->operand = $campaign; + $operation->operator = 'SET'; + + $operations = array($operation); + + // Make the mutate request. + $result = $campaignService->mutate($operations); + + // Display result. + $campaign = $result->value[0]; + printf("Campaign with ID '%s' was paused.\n", $campaign->id); +} + +// 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. + UpdateCampaignExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/UpdateKeyword.php b/examples/AdWords/v201306/BasicOperations/UpdateKeyword.php new file mode 100755 index 000000000..3c7488388 --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/UpdateKeyword.php @@ -0,0 +1,93 @@ +GetService('AdGroupCriterionService', ADWORDS_VERSION); + + // Create ad group criterion. + $adGroupCriterion = new BiddableAdGroupCriterion(); + $adGroupCriterion->adGroupId = $adGroupId; + // Create criterion using an existing ID. Use the base class Criterion + // instead of Keyword to avoid having to set keyword-specific fields. + $adGroupCriterion->criterion = new Criterion($criterionId); + + // Update destination URL. + $adGroupCriterion->destinationUrl = 'http://www.example.com/new'; + + // Create operation. + $operation = new AdGroupCriterionOperation(); + $operation->operand = $adGroupCriterion; + $operation->operator = 'SET'; + + $operations = array($operation); + + // Make the mutate request. + $result = $adGroupCriterionService->mutate($operations); + + // Display result. + $adGroupCriterion = $result->value[0]; + printf("Keyword with ID '%s' has updated destination URL '%s'.\n", + $adGroupCriterion->criterion->id, $adGroupCriterion->destinationUrl); +} + +// 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. + UpdateKeywordExample($user, $adGroupId, $criterionId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/CampaignManagement/AddExperiment.php b/examples/AdWords/v201306/CampaignManagement/AddExperiment.php new file mode 100755 index 000000000..4b4059091 --- /dev/null +++ b/examples/AdWords/v201306/CampaignManagement/AddExperiment.php @@ -0,0 +1,163 @@ +GetService('ExperimentService', ADWORDS_VERSION); + $adGroupService = $user->GetService('AdGroupService', ADWORDS_VERSION); + $adGroupCriterionService = + $user->GetService('AdGroupCriterionService', ADWORDS_VERSION); + + // Create experiment. + $experiment = new Experiment(); + $experiment->campaignId = $campaignId; + $experiment->name = 'Interplanetary Experiment #' . uniqid(); + $experiment->queryPercentage = 10; + + // Set additional settings (optional). + $experiment->startDateTime = date('Ymd His', strtotime('+1 day')); + $experiment->endDateTime = date('Ymd His', strtotime('+1 month')); + + // Create operation. + $experimentOperation = new ExperimentOperation(); + $experimentOperation->operand = $experiment; + $experimentOperation->operator = 'ADD'; + + $experimentOperations = array($experimentOperation); + + // Make the mutate request. + $result = $experimentService->mutate($experimentOperations); + + // Display result. + $experiment = $result->value[0]; + printf ("Experiment with name '%s' and ID '%.0f' was added.\n", + $experiment->name, $experiment->id); + + // Create ad group bid multipliers to be used in the experiment. + $adGroupBidMultipliers = new ManualCPCAdGroupExperimentBidMultipliers(); + $adGroupBidMultipliers->maxCpcMultiplier = new BidMultiplier(1.5); + + // Create ad group experiment data. + $adGroupExperimentData = new AdGroupExperimentData(); + $adGroupExperimentData->experimentId = $experiment->id; + $adGroupExperimentData->experimentDeltaStatus = 'MODIFIED'; + $adGroupExperimentData->experimentBidMultipliers = $adGroupBidMultipliers; + + // Create updated ad group. + $adGroup = new AdGroup(); + $adGroup->id = $adGroupId; + $adGroup->experimentData = $adGroupExperimentData; + + // Create operation. + $adGroupOperation = new AdGroupOperation(); + $adGroupOperation->operand = $adGroup; + $adGroupOperation->operator = 'SET'; + + $adGroupOperations = array($adGroupOperation); + + // Make the mutate request. + $result = $adGroupService->mutate($adGroupOperations); + + // Display result. + $adGroup = $result->value[0]; + printf ("Ad group with name '%s' and ID '%.0f' was updated in the " + . "experiment.\n", $adGroup->name, $adGroup->id); + + // Create experiment data for a new experiment-only keyword. + $adGroupCriterionExperimentData = + new BiddableAdGroupCriterionExperimentData(); + $adGroupCriterionExperimentData->experimentId = $experiment->id; + $adGroupCriterionExperimentData->experimentDeltaStatus = 'EXPERIMENT_ONLY'; + + // Create keyword. + $keyword = new Keyword('mars tour', 'BROAD'); + + // Create ad group criterion. + $adGroupCriterion = new BiddableAdGroupCriterion(); + $adGroupCriterion->adGroupId = $adGroupId; + $adGroupCriterion->criterion = $keyword; + $adGroupCriterion->experimentData = $adGroupCriterionExperimentData; + + // Create operation. + $adGroupCriterionOperation = new AdGroupCriterionOperation(); + $adGroupCriterionOperation->operand = $adGroupCriterion; + $adGroupCriterionOperation->operator = 'ADD'; + + $adGroupCriterionOperations = array($adGroupCriterionOperation); + + // Make the mutate request. + $result = $adGroupCriterionService->mutate($adGroupCriterionOperations); + + // Display result. + $adGroupCriterion = $result->value[0]; + printf("Keyword with text '%s', match type '%s', and ID '%s' was added to " + . "the experiment.\n", + $adGroupCriterion->criterion->text, + $adGroupCriterion->criterion->matchType, + $adGroupCriterion->criterion->id); +} + +// 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. + AddExperimentExample($user, $campaignId, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/CampaignManagement/AddKeywordsInBulk.php b/examples/AdWords/v201306/CampaignManagement/AddKeywordsInBulk.php new file mode 100755 index 000000000..5fa493fa1 --- /dev/null +++ b/examples/AdWords/v201306/CampaignManagement/AddKeywordsInBulk.php @@ -0,0 +1,205 @@ +GetService('MutateJobService', ADWORDS_VERSION); + + // Generate operations. + $numKeywords = 100; + $operations = array(); + for ($i = 0; $i < $numKeywords; $i++) { + $keyword = new Keyword(); + // Randomly add invalid characters to keywords. + if (rand(0, 9) == 0) { + $keyword->text = 'keyword!!!' . uniqid(); + } else { + $keyword->text = 'keyword' . uniqid(); + } + $keyword->matchType = 'BROAD'; + + $adGroupCriterion = new BiddableAdGroupCriterion(); + $adGroupCriterion->adGroupId = $adGroupId; + $adGroupCriterion->criterion = $keyword; + + $operation = new AdGroupCriterionOperation(); + $operation->operator = 'ADD'; + $operation->operand = $adGroupCriterion; + $operations[] = $operation; + } + + // You can specify up to 3 job IDs that must successfully complete before + // this job can be processed. We won't set any in this example. + $policy = new BulkMutateJobPolicy(); + $policy->prerequisiteJobIds = array(); + + // Call mutate to create a new job. + printf("Creating job with %d operations.\n", sizeof($operations)); + $job = $mutateJobService->mutate($operations, $policy); + printf("Job with ID '%s' was created.\n", $job->id); + + // Create a selector for retrieving the job status and later its results. + $selector = new BulkMutateJobSelector(); + $selector->jobIds[] = $job->id; + $selector->includeStats = TRUE; + $selector->includeHistory = TRUE; + + $numRetries = 0; + $maxRetries = 100; + $retryInterval = 10; + do { + sleep($retryInterval); + $jobs = $mutateJobService->get($selector); + $job = $jobs[0]; + switch ($job->status) { + case 'PENDING': + printf("The job has been pending for approximately %s.\n", + strftime('%M:%S', time() - strtotime($job->history[0]->dateTime))); + break; + case 'PROCESSING': + printf("The job is processing and approximately %d%% complete.\n", + $job->stats->progressPercent); + break; + case 'COMPLETED': + printf("The job is complete and took approximately %d seconds to " + ."process.\n", $job->stats->processingTimeMillis / 100); + break; + case 'FAILED': + printf("The job failed with reason '%s'.\n", + ChoiceUtils::GetValue($job->failureReason)); + break; + } + $numRetries++; + } while (($job->status == 'PENDING' || $job->status == 'PROCESSING') && + $numRetries < $maxRetries); + + if ($job->status == 'COMPLETED') { + // Retrieve the results of the job. + $jobResult = ChoiceUtils::GetValue( + $mutateJobService->getResult($selector)); + + // Sort the keywords into groups based on the results. + $lost = array(); + $skipped = array(); + $failed = array(); + $errors = array(); + $genericErrors = array(); + + // Examines the errors to determine which keywords failed to be applied. + foreach ($jobResult->errors as $error) { + $index = OgnlUtils::GetOperationIndex($error->fieldPath); + if (isset($index)) { + $keywordText = $operations[$index]->operand->criterion->text; + switch ($error->reason) { + case 'LOST_RESULT': + $lost[] = $keywordText; + break; + case 'UNPROCESSED_RESULT': + case 'BATCH_FAILURE': + $skipped[] = $keywordText; + break; + default: + if (!in_array($keywordText, $failed)) { + $failed[] = $keywordText; + } + $errors[$keywordText][] = $error; + } + } else { + $genericErrors[] = $error; + } + } + + // Examine the results to determine which keywords were added successfully. + $succeeded = array(); + for ($i = 0; $i < sizeof($jobResult->results); $i++) { + $operation = $operations[$i]; + $result = ChoiceUtils::GetValue($jobResult->results[$i]); + if ($result instanceof AdGroupCriterion) { + $succeeded[] = $result->criterion->text; + } + } + + // Display the results of the job. + printf("%d keywords were added successfully: %s\n", sizeof($succeeded), + implode(', ', $succeeded)); + + printf("%d keywords were skipped and should be retried: %s\n", + sizeof($skipped), implode(', ', $skipped)); + + printf("%d keywords were not added due to errors:\n", sizeof($failed)); + foreach ($failed as $keywordText) { + $errorStrings = array(); + foreach ($errors[$keywordText] as $error) { + $errorStrings[] = $error->errorString; + } + printf("- %s: %s\n", $keywordText, implode(', ', $errorStrings)); + } + + printf("%d generic errors were encountered:\n", sizeof($genericErrors)); + foreach($genericErrors as $error) { + printf("- %s\n", $error->errorString); + } + } +} + +// 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. + AddKeywordsInBulkExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/CampaignManagement/AddLocationExtension.php b/examples/AdWords/v201306/CampaignManagement/AddLocationExtension.php new file mode 100755 index 000000000..6930e237e --- /dev/null +++ b/examples/AdWords/v201306/CampaignManagement/AddLocationExtension.php @@ -0,0 +1,130 @@ +GetService('GeoLocationService', ADWORDS_VERSION); + $campaignAdExtensionService = + $user->GetService('CampaignAdExtensionService', ADWORDS_VERSION); + + // Create address. + $address = new Address(); + $address->streetAddress = '1600 Amphitheatre Parkway'; + $address->cityName = 'Mountain View'; + $address->provinceCode = 'US-CA'; + $address->postalCode = '94043'; + $address->countryCode = 'US'; + + // Create geo location selector. + $selector = new GeoLocationSelector(); + $selector->addresses = array($address); + + // Make the get request. + $result = $geoLocationService->get($selector); + + // Display result. + $geoLocation = $result[0]; + if ($geoLocation->GeoLocationType != 'InvalidGeoLocation') { + $lat = $geoLocation->geoPoint->latitudeInMicroDegrees / + AdWordsConstants::MICRO_DEGREES_PER_DEGREE; + $long = $geoLocation->geoPoint->longitudeInMicroDegrees / + AdWordsConstants::MICRO_DEGREES_PER_DEGREE; + printf("Address with street '%s' and lat/long '%s/%s' was found.\n", + $geoLocation->address->streetAddress, $lat, $long); + } else { + printf("Address with street '%s' could not be found.\n", + $address->streetAddress); + exit; + } + + // Create location extension. + $locationExtension = new LocationExtension(); + $locationExtension->address = $geoLocation->address; + $locationExtension->geoPoint = $geoLocation->geoPoint; + $locationExtension->encodedLocation = $geoLocation->encodedLocation; + $locationExtension->source = 'ADWORDS_FRONTEND'; + + // Set additional settings (optional). + $locationExtension->companyName = 'ACME Inc.'; + $locationExtension->phoneNumber = '(650) 253-0000'; + + // Create campaign ad extension. + $campaignAdExtension = new CampaignAdExtension(); + $campaignAdExtension->campaignId = $campaignId; + $campaignAdExtension->adExtension = $locationExtension; + + // Create operation. + $operation = new CampaignAdExtensionOperation(); + $operation->operand = $campaignAdExtension; + $operation->operator = 'ADD'; + + $operations = array($operation); + + // Make the mutate request. + $result = $campaignAdExtensionService->mutate($operations); + + // Display result. + $campaignAdExtension = $result->value[0]; + printf("Location extension with street address '%s' and ID '%s' was added.\n", + $campaignAdExtension->adExtension->address->streetAddress, + $campaignAdExtension->adExtension->id); +} + +// 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. + AddLocationExtensionExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/CampaignManagement/AddLocationExtensionOverride.php b/examples/AdWords/v201306/CampaignManagement/AddLocationExtensionOverride.php new file mode 100755 index 000000000..8c6814f2c --- /dev/null +++ b/examples/AdWords/v201306/CampaignManagement/AddLocationExtensionOverride.php @@ -0,0 +1,110 @@ +GetService('AdExtensionOverrideService', ADWORDS_VERSION); + + // Create ad extenstion override. + $adExtensionOverride = new AdExtensionOverride(); + $adExtensionOverride->adId = $adId; + + // Create ad extension using existing id. + $adExtension = new AdExtension(); + $adExtension->id = $campaignAdExtensionId; + $adExtensionOverride->adExtension = $adExtension; + + // Set override info (optional). + $locationOverrideInfo = new LocationOverrideInfo(); + $locationOverrideInfo->radius = 5; + $locationOverrideInfo->radiusUnits = 'MILES'; + $overrideInfo = new OverrideInfo(); + $overrideInfo->LocationOverrideInfo = $locationOverrideInfo; + $adExtensionOverride->overrideInfo = $overrideInfo; + + // Create operations. + $operation = new AdExtensionOverrideOperation(); + $operation->operand = $adExtensionOverride; + $operation->operator = 'ADD'; + + $operations = array($operation); + + // Make the mutate request. + $result = $adExtensionOverrideService->mutate($operations); + + // Display results. + if (isset($result->value)) { + foreach ($result->value as $adExtensionOverride) { + print 'Ad extension override with ad ID "' . $adExtensionOverride->adId + . '", ad extension ID "' . $adExtensionOverride->adExtension->id + . '", and type "' . $adExtensionOverride->adExtension->AdExtensionType + . "\" was added.\n"; + } + } else { + print "No ad extension overrides were added.\n"; + } +} + +// 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. + AddLocationExtensionOverrideExample($user, $adId, $campaignAdExtensionId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/CampaignManagement/GetAllDisapprovedAds.php b/examples/AdWords/v201306/CampaignManagement/GetAllDisapprovedAds.php new file mode 100755 index 000000000..42c42f7bf --- /dev/null +++ b/examples/AdWords/v201306/CampaignManagement/GetAllDisapprovedAds.php @@ -0,0 +1,101 @@ +GetService('AdGroupAdService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('Id', 'DisapprovalReasons'); + $selector->ordering = array(new OrderBy('Id', 'ASCENDING')); + + // Create predicates. + $selector->predicates[] = new Predicate('AdGroupId', 'IN', array($adGroupId)); + $selector->predicates[] = + new Predicate('AdGroupCreativeApprovalStatus', 'IN', + array('DISAPPROVED')); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $adGroupAdService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $adGroupAd) { + printf("Ad with ID '%.0f', and type '%s' was disapproved for the " + . "following reasons:\n", $adGroupAd->ad->id, + $adGroupAd->ad->AdType); + foreach ($adGroupAd->ad->disapprovalReasons as $reason) { + printf("\t'%s'\n", $reason); + } + } + } else { + print "No disapproved ads were found.\n"; + } + + // Advance the paging index. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); +} + +// 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. + GetAllDisapprovedAdsExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/CampaignManagement/GetAllDisapprovedAdsWithAwql.php b/examples/AdWords/v201306/CampaignManagement/GetAllDisapprovedAdsWithAwql.php new file mode 100755 index 000000000..ea51f6608 --- /dev/null +++ b/examples/AdWords/v201306/CampaignManagement/GetAllDisapprovedAdsWithAwql.php @@ -0,0 +1,98 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$adGroupId = 'INSERT_AD_GROUP_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $adGroupId the parent ad group id of the ads to retrieve + */ +function GetAllDisapprovedAdsWithAwqlExample(AdWordsUser $user, $adGroupId) { + // Get the service, which loads the required classes. + $adGroupAdService = $user->GetService('AdGroupAdService', ADWORDS_VERSION); + + // Create a query. + $query = sprintf('SELECT Id, DisapprovalReasons WHERE AdGroupId = %d ' + . 'AND AdGroupCreativeApprovalStatus = DISAPPROVED ORDER BY Id', + $adGroupId); + + // Create paging controls. + $offset = 0; + + do { + $pageQuery = sprintf('%s LIMIT %d,%d', $query, $offset, + AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + // Make the query request. + $page = $adGroupAdService->query($pageQuery); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $adGroupAd) { + printf("Ad with ID '%.0f', and type '%s' was disapproved for the " + . "following reasons:\n", $adGroupAd->ad->id, + $adGroupAd->ad->AdType); + foreach ($adGroupAd->ad->disapprovalReasons as $reason) { + printf("\t'%s'\n", $reason); + } + } + } else { + print "No disapproved ads were found.\n"; + } + + // Advance the paging offset. + $offset += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $offset); +} + +// 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. + GetAllDisapprovedAdsWithAwqlExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/CampaignManagement/PromoteExperiment.php b/examples/AdWords/v201306/CampaignManagement/PromoteExperiment.php new file mode 100755 index 000000000..6572115d4 --- /dev/null +++ b/examples/AdWords/v201306/CampaignManagement/PromoteExperiment.php @@ -0,0 +1,86 @@ +GetService('ExperimentService', ADWORDS_VERSION); + + // Create experiment with PROMOTED status. + $experiment = new Experiment(); + $experiment->id = $experimentId; + $experiment->status = 'PROMOTED'; + + // Create operation. + $operation = new ExperimentOperation(); + $operation->operand = $experiment; + $operation->operator = 'SET'; + + $operations = array($operation); + + // Make the mutate request. + $result = $experimentService->mutate($operations); + + // Display result. + $experiment = $result->value[0]; + printf ("Experiment with name '%s' and ID '%s' was promoted.\n", + $experiment->name, $experiment->id); +} + +// 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. + PromoteExperimentExample($user, $experimentId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/CampaignManagement/SetAdParameters.php b/examples/AdWords/v201306/CampaignManagement/SetAdParameters.php new file mode 100755 index 000000000..3804ea8ea --- /dev/null +++ b/examples/AdWords/v201306/CampaignManagement/SetAdParameters.php @@ -0,0 +1,93 @@ +GetService('AdParamService', ADWORDS_VERSION); + + // Create ad parameters. + $adParam1 = new AdParam($adGroupId, $keywordId, '100', 1); + $adParam2 = new AdParam($adGroupId, $keywordId, '$40', 2); + + // Create operations. + $operations = array(); + + $adParamOperation1 = new AdParamOperation(); + $adParamOperation1->operand = $adParam1; + $adParamOperation1->operator = 'SET'; + $operations[] = $adParamOperation1; + + $adParamOperation2 = new AdParamOperation(); + $adParamOperation2->operand = $adParam2; + $adParamOperation2->operator = 'SET'; + $operations[] = $adParamOperation2; + + // Make the mutate request. + $adParams = $adParamService->mutate($operations); + + // Display results. + foreach ($adParams as $adParam) { + printf("Ad parameter with insertion text '%s' and parameter index '%s' " + . "was set.\n", $adParam->insertionText, $adParam->paramIndex); + } +} + +// 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. + SetAdParametersExample($user, $adGroupId, $keywordId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/CampaignManagement/SetBidModifier.php b/examples/AdWords/v201306/CampaignManagement/SetBidModifier.php new file mode 100755 index 000000000..b7d3d566e --- /dev/null +++ b/examples/AdWords/v201306/CampaignManagement/SetBidModifier.php @@ -0,0 +1,102 @@ +GetService("CampaignCriterionService", ADWORDS_VERSION); + + // Create Mobile Platform. The ID can be found in the documentation. + // https://developers.google.com/adwords/api/docs/appendix/platforms + $mobile = new Platform(); + $mobile->id = 30001; // HighEndMobile = 30001 + + // Create criterion with modified bid. + $criterion = new CampaignCriterion(); + $criterion->campaignId = $campaignId; + $criterion->criterion = $mobile; + $criterion->bidModifier = $bidModifier; + + // Create SET operation. + $operation = new CampaignCriterionOperation(); + $operation->operator = "SET"; + $operation->operand = $criterion; + + // Update campaign criteria. + $results = $campaignCriterionService->mutate(array($operation)); + + // Display campaign criteria. + if (count($results->value)) { + foreach ($results->value as $campaignCriterion) { + printf( + "Campaign criterion with campaign ID '%s', criterion ID '%s', " + . "and type '%s' was modified with bid %.2f.\n", + $campaignCriterion->campaignId, + $campaignCriterion->criterion->id, + $campaignCriterion->criterion->type, + $campaignCriterion->bidModifier); + } + + return true; + } + print "No campaign criterias were modified."; +} + +// 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. + SetBidModifierExample($user, $campaignId, $bidModifier); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/CampaignManagement/ValidateTextAd.php b/examples/AdWords/v201306/CampaignManagement/ValidateTextAd.php new file mode 100755 index 000000000..e52026208 --- /dev/null +++ b/examples/AdWords/v201306/CampaignManagement/ValidateTextAd.php @@ -0,0 +1,106 @@ +GetService('AdGroupAdService', ADWORDS_VERSION, NULL, NULL, TRUE); + + // Create invalid text ad. + $textAd = new TextAd(); + $textAd->headline = 'This headline is too long and will cause an error'; + $textAd->description1 = 'Description Line 1'; + $textAd->description2 = 'Description Line 2'; + $textAd->displayUrl = 'www.example.com'; + $textAd->url = 'http://www.example.com'; + + // Create ad group ad. + $adGroupAd = new AdGroupAd(); + $adGroupAd->adGroupId = $adGroupId; + $adGroupAd->ad = $textAd; + + // Create operation. + $operation = new AdGroupAdOperation(); + $operation->operand = $adGroupAd; + $operation->operator = 'ADD'; + + $operations = array($operation); + + // Make the mutate request. + try { + $result = $adGroupAdValidationService->mutate($operations); + printf("The text ad is valid.\n"); + } catch (SoapFault $e) { + $errors = ErrorUtils::GetApiErrors($e); + if (sizeof($errors) > 0) { + printf("The text ad is invalid for the following reasons:\n"); + foreach ($errors as $error) { + printf(" %s @ %s\n", $error->errorString, $error->fieldPath); + } + } else { + // Not an API error, so throw it up a level. + throw $e; + } + } +} + +// 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. + ValidateTextAdExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/ErrorHandling/HandlePartialFailures.php b/examples/AdWords/v201306/ErrorHandling/HandlePartialFailures.php new file mode 100755 index 000000000..8b764c3cc --- /dev/null +++ b/examples/AdWords/v201306/ErrorHandling/HandlePartialFailures.php @@ -0,0 +1,116 @@ +GetService('AdGroupCriterionService', + ADWORDS_VERSION, NULL, NULL, NULL, TRUE); + + // Create keywords. + $keywords = array(); + $keywords[] = new Keyword('mars cruise', 'BROAD'); + $keywords[] = new Keyword('inv@lid cruise', 'BROAD'); + $keywords[] = new Keyword('venus cruise', 'BROAD'); + $keywords[] = new Keyword('b(a)d keyword cruise', 'BROAD'); + + // Create ad group criteria and operations. + $operations = array(); + foreach ($keywords as $keyword) { + $adGroupCriterion = new BiddableAdGroupCriterion(); + $adGroupCriterion->adGroupId = $adGroupId; + $adGroupCriterion->criterion = $keyword; + + $operation = new AdGroupCriterionOperation(); + $operation->operand = $adGroupCriterion; + $operation->operator = 'ADD'; + + $operations[] = $operation; + } + + // Make the mutate request. + $result = $adGroupCriterionService->mutate($operations); + + // Display results. + foreach ($result->value as $adGroupCriterion) { + if ($adGroupCriterion->AdGroupCriterionType == 'BiddableAdGroupCriterion') { + printf("Keyword with text '%s', match type '%s', and ID '%s' was " + . "added.\n", $adGroupCriterion->criterion->text, + $adGroupCriterion->criterion->matchType, + $adGroupCriterion->criterion->id); + } + } + + // Check for partial failures. + if (isset($result->partialFailureErrors)) { + foreach ($result->partialFailureErrors as $error) { + $index = ErrorUtils::GetSourceOperationIndex($error); + if (isset($index)) { + $adGroupCriterion = $operations[$index]->operand; + printf("Keyword with text '%s' and match type '%s' failed with error " + . "'%s'.\n", $adGroupCriterion->criterion->text, + $adGroupCriterion->criterion->matchType, $error->errorString); + } else { + printf("Operations failed with error '%s'.\n", $error->errorString); + } + } + } +} + +// 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. + HandlePartialFailuresExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/ErrorHandling/HandlePolicyViolationError.php b/examples/AdWords/v201306/ErrorHandling/HandlePolicyViolationError.php new file mode 100755 index 000000000..143376e7a --- /dev/null +++ b/examples/AdWords/v201306/ErrorHandling/HandlePolicyViolationError.php @@ -0,0 +1,146 @@ +GetService('AdGroupAdService', ADWORDS_VERSION); + + // Get validateOnly version of the AdGroupAdService. + $adGroupAdValidationService = + $user->GetService('AdGroupAdService', ADWORDS_VERSION, NULL, NULL, TRUE); + + // Create text ad that violates an exemptable policy. This ad will only + // trigger an error in the production environment. + $textAd = new TextAd(); + $textAd->headline = 'Mars Cruise !!!'; + $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/'; + + // Create ad group ad. + $adGroupAd = new AdGroupAd(); + $adGroupAd->adGroupId = $adGroupId; + $adGroupAd->ad = $textAd; + + // Create operation. + $operation = new AdGroupAdOperation(); + $operation->operand = $adGroupAd; + $operation->operator = 'ADD'; + + $operations = array($operation); + + try { + // Make the mutate request. + $result = $adGroupAdValidationService->mutate($operations); + } catch (SoapFault $fault) { + $errors = ErrorUtils::GetApiErrors($fault); + if (sizeof($errors) == 0) { + // Not an API error, so throw fault. + throw $fault; + } + $operationIndicesToRemove = array(); + foreach ($errors as $error) { + if ($error->ApiErrorType == 'PolicyViolationError') { + $operationIndex = ErrorUtils::GetSourceOperationIndex($error); + $operation = $operations[$operationIndex]; + printf("Ad with headline '%s' violated %s policy '%s'.\n", + $operation->operand->ad->headline, + $error->isExemptable ? 'exemptable' : 'non-exemptable', + $error->externalPolicyName); + if ($error->isExemptable) { + // Add exemption request to the operation. + printf("Adding exemption request for policy name '%s' on text " + ."'%s'.\n", $error->key->policyName, $error->key->violatingText); + $operation->exemptionRequests[] = new ExemptionRequest($error->key); + } else { + // Remove non-exemptable operation. + print "Removing the operation from the request.\n"; + $operationIndicesToRemove[] = $operationIndex; + } + } else { + // Non-policy error returned, throw fault. + throw $fault; + } + } + $operationIndicesToRemove = array_unique($operationIndicesToRemove); + rsort($operationIndicesToRemove, SORT_NUMERIC); + if (sizeof($operationIndicesToRemove) > 0) { + foreach ($operationIndicesToRemove as $operationIndex) { + unset($operations[$operationIndex]); + } + } + } + + if (sizeof($operations) > 0) { + // Retry the mutate request. + $result = $adGroupAdService->mutate($operations); + + // Display results. + foreach ($result->value as $adGroupAd) { + printf("Text ad with headline '%s' and ID '%s' was added.\n", + $adGroupAd->ad->headline, $adGroupAd->ad->id); + } + } else { + print "All the operations were invalid with non-exemptable errors.\n"; + } +} + +// 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. + HandlePolicyViolationErrorExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/ErrorHandling/HandleTwoFactorAuthorizationError.php b/examples/AdWords/v201306/ErrorHandling/HandleTwoFactorAuthorizationError.php new file mode 100755 index 000000000..e6cf2e46d --- /dev/null +++ b/examples/AdWords/v201306/ErrorHandling/HandleTwoFactorAuthorizationError.php @@ -0,0 +1,65 @@ + + * @author Eric Koleda + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Runs the example. + */ +function HandleTwoFactorAuthorizationErrorExample() { + // Create an AdWordsUser using the credentials for a 2-step tester account. + $user = new AdWordsUser(NULL, '2steptester@gmail.com', 'testaccount'); + + try { + $authToken = $user->GetAuthToken(); + printf("Successfully retrieved auth token for the account '%s': '%s'\n", + $user->GetEmail(), $authToken); + } catch (AuthTokenException $e) { + if (strpos($e->GetError(), 'InvalidSecondFactor') !== FALSE) { + // See http://goo.gl/SHgXV for more details. + print "The account has 2-step verification enabled, so an " + . "application-specific password must be used instead.\n"; + } else { + print "Invalid email or password.\n"; + } + } +} + +// Don't run the example if the file is being included. +if (__FILE__ != realpath($_SERVER['PHP_SELF'])) { + return; +} + +try { + // Run the example. + HandleTwoFactorAuthorizationErrorExample(); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Migration/SetCampaignEnhanced.php b/examples/AdWords/v201306/Migration/SetCampaignEnhanced.php new file mode 100755 index 000000000..4a781f9c2 --- /dev/null +++ b/examples/AdWords/v201306/Migration/SetCampaignEnhanced.php @@ -0,0 +1,88 @@ +GetService("CampaignService", ADWORDS_VERSION); + + // Campaign to be updated with the enhanced value. + // Note: After Setting the enhanced value to true, + // setting it back to false will generate an ApiError. + $campaign = new Campaign(); + $campaign->id = $campaignId; + $campaign->enhanced = TRUE; + + // Create operation. + $operation = new CampaignOperation(); + $operation->operator = "SET"; + $operation->operand = $campaign; + + // Change campaign. + $result = $campaignService->mutate(array($operation)); + + if (count($result->value)) { + foreach ($result->value as $campaign) { + printf("Campaign with ID %d has been set enhanced to '%s'.\n", + $campaign->id, $campaign->enhanced); + } + + return true; + } + print "No campaign was changed."; +} + +// 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. + SetCampaignEnhancedExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Migration/UpgradeLegacySitelinks.php b/examples/AdWords/v201306/Migration/UpgradeLegacySitelinks.php new file mode 100755 index 000000000..206e7c3d6 --- /dev/null +++ b/examples/AdWords/v201306/Migration/UpgradeLegacySitelinks.php @@ -0,0 +1,425 @@ +getService('CampaignAdExtensionService', ADWORDS_VERSION); + $feedService = $user->getService('FeedService', ADWORDS_VERSION); + $feedItemService = $user->getService('FeedItemService', ADWORDS_VERSION); + $feedMappingService = + $user->getService('FeedMappingService', ADWORDS_VERSION); + $campaignFeedService = + $user->getService('CampaignFeedService', ADWORDS_VERSION); + + // Try to retrieve an existing feed that has been mapped for use with + // sitelinks. if multiple such feeds exist, the first matching feed is + // retrieved. You could modify this code example to retrieve all the feeds + // and pick the appropriate feed based on user input. + $siteLinksFeed = GetExistingFeed($feedMappingService); + + if (empty($siteLinksFeed)) { + // Create a feed for storing sitelinks. + $siteLinksFeed = CreateSiteLinksFeed($feedService); + + // Map the feed for using with sitelinks. + CreateSiteLinksFeedMapping($feedMappingService, $siteLinksFeed); + } + + foreach ($campaignIds as $campaignId) { + // Get legacy sitelinks for the campaign. + $extension = GetLegacySitelinksForCampaign($campaignAdExtensionService, + $campaignId); + + if (!empty($extension)) { + // Get the sitelinks. + $legacySiteLinks = $extension->adExtension->sitelinks; + + // Add the sitelinks to the feed. + $siteLinkFeedItemIds = CreateSiteLinkFeedItems( + $feedItemService, $siteLinksFeed, $legacySiteLinks); + + // Associate feeditems to the campaign. + AssociateSitelinkFeedItemsWithCampaign( + $campaignFeedService, $siteLinksFeed, $siteLinkFeedItemIds, + $campaignId); + + // Once the upgraded sitelinks are added to a campaign, the legacy + // sitelinks will stop serving. You can delete the legacy sitelinks + // once you have verified that the migration went fine. In case the + // migration didn't succeed, you can roll back the migration by deleting + // the CampaignFeed you created in the previous step. + DeleteLegacySitelinks($campaignAdExtensionService, $extension); + } + } +} + +/** + * Retrieve an existing feed that is mapped to hold sitelinks. + * + * The first active sitelinks feed is retrieved by this method. + * + * @param FeedMappingService $fmService The FeedMappingService instance. + * @return mixed represent a sitelinks feed if a feed was found, + * null otherwise. + */ +function GetExistingFeed(FeedMappingService $fmService) { + // Create selector. + $selector = new Selector(); + $selector->fields = array('FeedId', 'FeedMappingId', + 'AttributeFieldMappings'); + + // Create predicates. + $selector->predicates[] = new Predicate('Status', 'EQUALS', array('ACTIVE')); + $selector->predicates[] = + new Predicate('PlaceholderType', 'EQUALS', + array(PLACEHOLDER_SITELINKS)); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + // Make the get request. + $page = $fmService->get($selector); + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $mapping) { + $feedId = $mapping->feedId; + $textAttributeId = null; + $urlAttributeId = null; + foreach ($mapping->attributeFieldMappings as $attributeMapping) { + switch($attributeMapping->fieldId) { + case PLACEHOLDER_FIELD_SITELINK_LINK_TEXT: + $textAttributeId = $attributeMapping->feedAttributeId; + break; + case PLACEHOLDER_FIELD_SITELINK_LINK_URL: + $urlAttributeId = $attributeMapping->feedAttributeId; + break; + } + } + + if (!empty($textAttributeId) && !empty($urlAttributeId)) { + return array( + 'feedId' => $feedId, + 'textAttributeId' => $textAttributeId, + 'urlAttributeId' => $urlAttributeId, + ); + } + } + } + + return null; +} + +/** + * Create a feed for holding upgraded sitelinks. + * @param FeedService $feedService The FeedService instance. + * @return array the SiteLinksFeed info + */ +function CreateSiteLinksFeed(FeedService $feedService) { + // Create attributes. + $textAttribute = new FeedAttribute(); + $textAttribute->type = 'STRING'; + $textAttribute->name = 'Link Text'; + $urlAttribute = new FeedAttribute(); + $urlAttribute->type = 'URL'; + $urlAttribute->name = 'Link URL'; + + // Create the feed. + $sitelinksFeed = new Feed(); + $sitelinksFeed->name = 'Feed For Site Links'; + $sitelinksFeed->attributes = array($textAttribute, $urlAttribute); + $sitelinksFeed->origin = 'USER'; + + // Create operation. + $operation = new FeedOperation(); + $operation->operator = 'ADD'; + $operation->operand = $sitelinksFeed; + + $operations = array($operation); + + // Add the feed. + $result = $feedService->mutate($operations); + + $savedFeed = $result->value[0]; + $savedAttributes = $savedFeed->attributes; + + return array( + 'feedId' => $savedFeed->id, + 'textAttributeId' => $savedAttributes[0]->id, + 'urlAttributeId' => $savedAttributes[1]->id, + ); +} + +/** + * Map the feed for use with Sitelinks. + * @param FeedMappingService $fmService The FeedMappingService instance. + * @param array $sitelinksData IDs associated to created sitelinks + * feed metadata + */ +function CreateSiteLinksFeedMapping(FeedMappingService $fmService, + $sitelinksData) { + + // Map the FeedAttributeIds to the fieldId constants. + $linkTextFieldMapping = new AttributeFieldMapping(); + $linkTextFieldMapping->feedAttributeId = + $sitelinksData['textAttributeId']; + $linkTextFieldMapping->fieldId = PLACEHOLDER_FIELD_SITELINK_LINK_TEXT; + + $linkUrlFieldMapping = new AttributeFieldMapping(); + $linkUrlFieldMapping->feedAttributeId = + $sitelinksData['urlAttributeId']; + $linkUrlFieldMapping->fieldId = PLACEHOLDER_FIELD_SITELINK_LINK_URL; + + // Create the FieldMapping and operation. + $feedMapping = new FeedMapping(); + $feedMapping->placeholderType = PLACEHOLDER_SITELINKS; + $feedMapping->feedId = $sitelinksData['feedId']; + $feedMapping->attributeFieldMappings = + array($linkTextFieldMapping, $linkUrlFieldMapping); + $operation = new FeedMappingOperation(); + $operation->operand = $feedMapping; + $operation->operator = 'ADD'; + + $operations = array($operation); + + // Save the field mapping. + $fmService->mutate($operations); +} + +/** + * Get legacy sitelinks for a campaign. + * + * @param CampaignAdExtensionService $campaignAdExtensionService the service + * instance. + * @param string $campaignId the campaign ID to get legacy sitelinks for. + * @return CampaignAdExtension that contains the legacy sitelinks, or null + * if there are no legacy sitelinks in this campaign. + */ +function GetLegacySitelinksForCampaign( + CampaignAdExtensionService $campaignAdExtensionService, $campaignId) { + // Filter the results for specified campaign id. + $campaignPredicate = new Predicate(); + $campaignPredicate->operator = 'EQUALS'; + $campaignPredicate->field = 'CampaignId'; + $campaignPredicate->values = array($campaignId); + + // Filter the results for active campaign ad extensions. You may add + // additional filtering conditions here as required. + $statusPredicate = new Predicate(); + $statusPredicate->operator = 'EQUALS'; + $statusPredicate->field = 'Status'; + $statusPredicate->values = array('ACTIVE'); + + // Filter for sitelinks ad extension type. + $typePredicate = new Predicate(); + $typePredicate->operator = 'EQUALS'; + $typePredicate->field = 'AdExtensionType'; + $typePredicate->values = array('SITELINKS_EXTENSION'); + + // Create the selector. + $selector = new Selector(); + $selector->fields = array('AdExtensionId', 'DisplayText', 'DestinationUrl'); + $selector->predicates = array($campaignPredicate, $statusPredicate, + $typePredicate); + + $page = $campaignAdExtensionService->get($selector); + + if (!empty($page->entries)) { + return $page->entries[0]; + } + return null; +} + +/** + * Add legacy sitelinks to the sitelinks feed. + * + * @param FeedItemService $feedItemService The service instance. + * @param array $siteLinksFeed The feed for adding sitelinks. + * @param array $siteLinks legacySiteLinks the SiteLinksFeed info + * @return array The list of feed items that were added to the feed. + */ +function CreateSiteLinkFeedItems(FeedItemService $feedItemService, + $siteLinksFeed, $sitelinks) { + $siteLinkFeedItemIds = array(); + + // Create operation for adding each legacy sitelink to the sitelinks feed. + $operations = array(); + + foreach ($sitelinks as $siteLink) { + $operations[] = NewSiteLinkFeedItemAddOperation($siteLinksFeed, + $siteLink->displayText, $siteLink->destinationUrl); + } + $result = $feedItemService->mutate($operations); + + // Retrieve the feed item ids. + foreach ($result->value as $item) { + $siteLinkFeedItemIds[] = $item->feedItemId; + } + + return $siteLinkFeedItemIds; +} + +/** + * Creates a SitelinkFeedItem and wraps it in an ADD operation. + * @param array $sitelinksData IDs associated to created sitelinks + * feed metadata + * @param string $text text of the sitelink + * @param string $url URL of the sitelink + */ +function NewSiteLinkFeedItemAddOperation($sitelinksData, $text, $url) { + // Create the FeedItemAttributeValues for our text values. + $linkTextAttributeValue = new FeedItemAttributeValue(); + $linkTextAttributeValue->feedAttributeId = + $sitelinksData['textAttributeId']; + $linkTextAttributeValue->stringValue = $text; + $linkUrlAttributeValue = new FeedItemAttributeValue(); + $linkUrlAttributeValue->feedAttributeId = + $sitelinksData['urlAttributeId']; + $linkUrlAttributeValue->stringValue = $url; + + // Create the feed item and operation. + $item = new FeedItem(); + $item->feedId = $sitelinksData['feedId']; + $item->attributeValues = + array($linkTextAttributeValue, $linkUrlAttributeValue); + $operation = new FeedItemOperation(); + $operation->operand = $item; + $operation->operator = 'ADD'; + return $operation; +} + +/** + * Associates sitelink feed items with a campaign. + * + * @param CampaignFeedService $campaignFeedService the service instance. + * @param mixed $siteLinksFeed The feed for holding the sitelinks. + * @param array $siteLinkFeedItemIds The list of feed item IDs to be + * associated with a campaign as sitelinks. + * @param string $campaignId The campaign ID to which upgraded sitelinks + * are added. + */ +function AssociateSitelinkFeedItemsWithCampaign( + CampaignFeedService $campaignFeedService, $siteLinksFeed, + $siteLinkFeedItemIds, $campaignId) { + + // Create a custom matching function that matches the given feed items to + // the campaign. + $requestContextOperand = new RequestContextOperand(); + $requestContextOperand->contextType = 'FEED_ITEM_ID'; + + $operands = array(); + + foreach ($siteLinkFeedItemIds as $feedItemId) { + $constantOperand = new ConstantOperand(); + $constantOperand->longValue = $feedItemId; + $constantOperand->type = 'LONG'; + + $operands[] = $constantOperand; + } + + $func = new FeedFunction(); + $func->lhsOperand = array($requestContextOperand); + $func->rhsOperand = $operands; + $func->operator = 'IN'; + + // Create upgraded sitelinks for the campaign. Use the sitelinks feed we + // created, and restrict feed items by matching function. + $campaignFeed = new CampaignFeed(); + $campaignFeed->feedId = $siteLinksFeed['feedId']; + $campaignFeed->campaignId = $campaignId; + $campaignFeed->matchingFunction = $func; + $campaignFeed->placeholderTypes = array(PLACEHOLDER_SITELINKS); + + $operation = new CampaignFeedOperation(); + $operation->operand = $campaignFeed; + $operation->operator = 'ADD'; + + $campaignFeedService->mutate(array($operation)); +} + +/** + * Delete legacy sitelinks from a campaign. + * + * @param CampaignsAdExtensionService $campaignExtensionService the service + * instance. + * @param CampaignAdExtension $extensionToDelete The CampaignAdExtension that + * holds legacy sitelinks. + */ +function DeleteLegacySitelinks( + CampaignAdExtensionService $campaignExtensionService, $extensionToDelete) { + + $operation = new CampaignAdExtensionOperation(); + $operation->operator = 'REMOVE'; + $operation->operand = $extensionToDelete; + + $campaignExtensionService->mutate(array($operation)); +} + +// 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. + UpgradeLegacySitelinksExample($user, $campaignIds); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Misc/GetAllImagesAndVideos.php b/examples/AdWords/v201306/Misc/GetAllImagesAndVideos.php new file mode 100755 index 000000000..4adcd020a --- /dev/null +++ b/examples/AdWords/v201306/Misc/GetAllImagesAndVideos.php @@ -0,0 +1,100 @@ +GetService('MediaService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('MediaId', 'Width', 'Height', 'MimeType', 'Name'); + $selector->ordering = array(new OrderBy('MediaId', 'ASCENDING')); + + // Create predicates. + $selector->predicates[] = + new Predicate('Type', 'IN', array('IMAGE', 'VIDEO')); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $mediaService->get($selector); + + // Display images. + if (isset($page->entries)) { + foreach ($page->entries as $media) { + if ($media->MediaType == 'Image') { + $dimensions = MapUtils::GetMap($media->dimensions); + printf("Image with dimensions '%dx%d', MIME type '%s', and id '%s' " + . "was found.\n", $dimensions['FULL']->width, + $dimensions['FULL']->height, $media->mimeType, $media->mediaId); + } else if ($media->MediaType == 'Video') { + printf("Video with name '%s' and id '%s' was found.\n", $media->name, + $media->mediaId); + } + } + } else { + print "No images or videos were found.\n"; + } + + // Advance the paging index. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); +} + +// 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. + GetAllImagesAndVideosExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Misc/UploadImage.php b/examples/AdWords/v201306/Misc/UploadImage.php new file mode 100755 index 000000000..5b61e718e --- /dev/null +++ b/examples/AdWords/v201306/Misc/UploadImage.php @@ -0,0 +1,77 @@ +GetService('MediaService', ADWORDS_VERSION); + + // Create image. + $image = new Image(); + $image->data = MediaUtils::GetBase64Data('http://goo.gl/HJM3L'); + $image->type = 'IMAGE'; + + // Make the upload request. + $result = $mediaService->upload(array($image)); + + // Display result. + $image = $result[0]; + $dimensions = MapUtils::GetMap($image->dimensions); + printf("Image with dimensions '%dx%d', MIME type '%s', and id '%s' was " + . "uploaded.\n", $dimensions['FULL']->width, + $dimensions['FULL']->height, $image->mimeType, $image->mediaId); +} + +// 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. + UploadImageExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Optimization/EstimateKeywordTraffic.php b/examples/AdWords/v201306/Optimization/EstimateKeywordTraffic.php new file mode 100755 index 000000000..32c031e5b --- /dev/null +++ b/examples/AdWords/v201306/Optimization/EstimateKeywordTraffic.php @@ -0,0 +1,142 @@ +GetService('TrafficEstimatorService', ADWORDS_VERSION); + + // Create keywords. Up to 2000 keywords can be passed in a single request. + $keywords = array(); + $keywords[] = new Keyword('mars cruise', 'BROAD'); + $keywords[] = new Keyword('cheap cruise', 'PHRASE'); + $keywords[] = new Keyword('cruise', 'EXACT'); + + // Negative keywords don't return estimates, but adjust the estimates of the + // other keywords in the hypothetical ad group. + $negativeKeywords = array(); + $negativeKeywords[] = new Keyword('moon walk', 'BROAD'); + + // Create a keyword estimate request for each keyword. + $keywordEstimateRequests = array(); + foreach ($keywords as $keyword) { + $keywordEstimateRequest = new KeywordEstimateRequest(); + $keywordEstimateRequest->keyword = $keyword; + $keywordEstimateRequests[] = $keywordEstimateRequest; + } + + // Create a keyword estimate request for each negative keyword. + foreach ($negativeKeywords as $negativeKeyword) { + $keywordEstimateRequest = new KeywordEstimateRequest(); + $keywordEstimateRequest->keyword = $negativeKeyword; + $keywordEstimateRequest->isNegative = TRUE; + $keywordEstimateRequests[] = $keywordEstimateRequest; + } + + // Create ad group estimate requests. + $adGroupEstimateRequest = new AdGroupEstimateRequest(); + $adGroupEstimateRequest->keywordEstimateRequests = $keywordEstimateRequests; + $adGroupEstimateRequest->maxCpc = new Money(1000000); + + // Create campaign estimate requests. + $campaignEstimateRequest = new CampaignEstimateRequest(); + $campaignEstimateRequest->adGroupEstimateRequests[] = $adGroupEstimateRequest; + + // Set targeting criteria. Only locations and languages are supported. + $unitedStates = new Location(); + $unitedStates->id = 2840; + $campaignEstimateRequest->criteria[] = $unitedStates; + + $english = new Language(); + $english->id = 1000; + $campaignEstimateRequest->criteria[] = $english; + + // Create selector. + $selector = new TrafficEstimatorSelector(); + $selector->campaignEstimateRequests[] = $campaignEstimateRequest; + + // Make the get request. + $result = $trafficEstimatorService->get($selector); + + // Display results. + $keywordEstimates = + $result->campaignEstimates[0]->adGroupEstimates[0]->keywordEstimates; + for ($i = 0; $i < sizeof($keywordEstimates); $i++) { + $keywordEstimateRequest = $keywordEstimateRequests[$i]; + // Skip negative keywords, since they don't return estimates. + if (!$keywordEstimateRequest->isNegative) { + $keyword = $keywordEstimateRequest->keyword; + $keywordEstimate = $keywordEstimates[$i]; + + // Find the mean of the min and max values. + $meanAverageCpc = ($keywordEstimate->min->averageCpc->microAmount + + $keywordEstimate->max->averageCpc->microAmount) / 2; + $meanAveragePosition = ($keywordEstimate->min->averagePosition + + $keywordEstimate->max->averagePosition) / 2; + $meanClicks = ($keywordEstimate->min->clicksPerDay + + $keywordEstimate->max->clicksPerDay) / 2; + $meanTotalCost = ($keywordEstimate->min->totalCost->microAmount + + $keywordEstimate->max->totalCost->microAmount) / 2; + + printf("Results for the keyword with text '%s' and match type '%s':\n", + $keyword->text, $keyword->matchType); + printf(" Estimated average CPC in micros: %.0f\n", $meanAverageCpc); + printf(" Estimated ad position: %.2f \n", $meanAveragePosition); + printf(" Estimated daily clicks: %d\n", $meanClicks); + printf(" Estimated daily cost in micros: %.0f\n\n", $meanTotalCost); + } + } +} + +// 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. + EstimateKeywordTrafficExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Optimization/GetKeywordBidSimulations.php b/examples/AdWords/v201306/Optimization/GetKeywordBidSimulations.php new file mode 100755 index 000000000..24d8b4f4a --- /dev/null +++ b/examples/AdWords/v201306/Optimization/GetKeywordBidSimulations.php @@ -0,0 +1,106 @@ +GetService('DataService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('AdGroupId', 'CriterionId', 'StartDate', 'EndDate', + 'Bid', 'LocalClicks', 'LocalCost', 'MarginalCpc', 'LocalImpressions'); + + // Create predicates. + $selector->predicates[] = new Predicate('AdGroupId', 'IN', array($adGroupId)); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do{ + // Make the getCriterionBidLandscape request. + $page = $dataService->getCriterionBidLandscape($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $bidLandscape) { + printf("Found criterion bid landscape for keyword with id '%s', start " + . "date '%s', end date '%s', and landscape points:\n", + $bidLandscape->criterionId, $bidLandscape->startDate, + $bidLandscape->endDate); + foreach ($bidLandscape->landscapePoints as $bidLandscapePoint) { + printf(" bid: %.0f => clicks: %d, cost: %.0f, marginalCpc: %.0f, " + . "impressions: %d\n", + $bidLandscapePoint->bid->microAmount, $bidLandscapePoint->clicks, + $bidLandscapePoint->cost->microAmount, + $bidLandscapePoint->marginalCpc->microAmount, + $bidLandscapePoint->impressions); + } + print "\n"; + } + } else { + print "No criterion bid landscapes were found.\n"; + } + + // Advance the paging index. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); +} + +// 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. + GetKeywordBidSimulationsExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Optimization/GetKeywordIdeas.php b/examples/AdWords/v201306/Optimization/GetKeywordIdeas.php new file mode 100755 index 000000000..b82a90a52 --- /dev/null +++ b/examples/AdWords/v201306/Optimization/GetKeywordIdeas.php @@ -0,0 +1,116 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +require_once UTIL_PATH . '/MapUtils.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function GetKeywordIdeasExample(AdWordsUser $user) { + // Get the service, which loads the required classes. + $targetingIdeaService = + $user->GetService('TargetingIdeaService', ADWORDS_VERSION); + + // Create seed keyword. + $keyword = 'mars cruise'; + + // Create selector. + $selector = new TargetingIdeaSelector(); + $selector->requestType = 'IDEAS'; + $selector->ideaType = 'KEYWORD'; + $selector->requestedAttributeTypes = array('KEYWORD_TEXT', 'SEARCH_VOLUME', + 'CATEGORY_PRODUCTS_AND_SERVICES'); + + // Create language search parameter (optional). + // The ID can be found in the documentation: + // https://developers.google.com/adwords/api/docs/appendix/languagecodes + // Note: As of v201302, only a single language parameter is allowed. + $languageParameter = new LanguageSearchParameter(); + $english = new Language(); + $english->id = 1000; + $languageParameter->languages = array($english); + + // Create related to query search parameter. + $relatedToQuerySearchParameter = new RelatedToQuerySearchParameter(); + $relatedToQuerySearchParameter->queries = array($keyword); + $selector->searchParameters[] = $relatedToQuerySearchParameter; + $selector->searchParameters[] = $languageParameter; + + // Set selector paging (required by this service). + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $targetingIdeaService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $targetingIdea) { + $data = MapUtils::GetMap($targetingIdea->data); + $keyword = $data['KEYWORD_TEXT']->value; + $search_volume = isset($data['SEARCH_VOLUME']->value) + ? $data['SEARCH_VOLUME']->value : 0; + $categoryIds = + implode(', ', $data['CATEGORY_PRODUCTS_AND_SERVICES']->value); + printf("Keyword idea with text '%s', category IDs (%s) and average " + . "monthly search volume '%s' was found.\n", + $keyword, $categoryIds, $search_volume); + } + } else { + print "No keywords ideas were found.\n"; + } + + // Advance the paging index. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); +} + +// 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. + GetKeywordIdeasExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Optimization/GetPlacementIdeas.php b/examples/AdWords/v201306/Optimization/GetPlacementIdeas.php new file mode 100755 index 000000000..5897dda37 --- /dev/null +++ b/examples/AdWords/v201306/Optimization/GetPlacementIdeas.php @@ -0,0 +1,101 @@ +GetService('TargetingIdeaService', ADWORDS_VERSION); + + // Create seed url. + $url = 'mars.google.com'; + + // Create selector. + $selector = new TargetingIdeaSelector(); + $selector->requestType = 'IDEAS'; + $selector->ideaType = 'PLACEMENT'; + $selector->requestedAttributeTypes = array('CRITERION', 'PLACEMENT_TYPE'); + + // Create related to url search parameter. + $relatedToUrlSearchParameter = new RelatedToUrlSearchParameter(); + $relatedToUrlSearchParameter->urls = array($url); + $relatedToUrlSearchParameter->includeSubUrls = FALSE; + $selector->searchParameters[] = $relatedToUrlSearchParameter; + + // Set selector paging (required by this service). + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $targetingIdeaService->get($selector); + + // Display related placements. + if (isset($page->entries)) { + foreach ($page->entries as $targetingIdea) { + $data = MapUtils::GetMap($targetingIdea->data); + $placement = $data['CRITERION']->value; + $placementType = $data['PLACEMENT_TYPE']->value; + printf("Placement with url '%s' and type '%s' was found.\n", + $placement->url, $placementType); + } + } else { + print "No related placements were found.\n"; + } + + // Advance the paging index. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); +} + +// 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. + GetPlacementIdeasExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Remarketing/AddAudience.php b/examples/AdWords/v201306/Remarketing/AddAudience.php new file mode 100755 index 000000000..36285aa23 --- /dev/null +++ b/examples/AdWords/v201306/Remarketing/AddAudience.php @@ -0,0 +1,107 @@ +GetService('AdwordsUserListService', ADWORDS_VERSION); + $conversionTrackerService = + $user->GetService('ConversionTrackerService', ADWORDS_VERSION); + + // Create conversion type (tag). + $conversionType = new UserListConversionType(); + $conversionType->name = 'Mars cruise customers #' . uniqid(); + + // Create remarketing user list. + $userList = new BasicUserList(); + $userList->name = 'Mars cruise customers #' . uniqid(); + $userList->conversionTypes = array($conversionType); + + // Set additional settings (optional). + $userList->description = 'A list of mars cruise customers in the last year'; + $userList->status = 'OPEN'; + $userList->membershipLifeSpan = 365; + + // Create operation. + $operation = new UserListOperation(); + $operation->operand = $userList; + $operation->operator = 'ADD'; + + $operations = array($operation); + + // Make the mutate request. + $result = $userListService->mutate($operations); + $userList = $result->value[0]; + + // Wait a moment before retrieving the conversion snippet. + sleep(1); + + // Create the selector. + $selector = new Selector(); + $selector->fields = array('Id'); + $selector->predicates[] = + new Predicate('Id', 'IN', array($userList->conversionTypes[0]->id)); + + // Make the get request. + $page = $conversionTrackerService->get($selector); + $conversionTracker = $page->entries[0]; + + // Display result. + printf("Audience with name '%s' and ID '%.0f' was added.\n", $userList->name, + $userList->id); + printf("Tag code:\n%s\n", $conversionTracker->snippet); +} + +// 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. + AddAudienceExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Remarketing/AddConversionTracker.php b/examples/AdWords/v201306/Remarketing/AddConversionTracker.php new file mode 100755 index 000000000..35e3265b4 --- /dev/null +++ b/examples/AdWords/v201306/Remarketing/AddConversionTracker.php @@ -0,0 +1,96 @@ + + * @author Eric Koleda + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function AddConversionTrackerExample(AdWordsUser $user) { + // Get the service, which loads the required classes. + $conversionTrackerService = + $user->GetService('ConversionTrackerService', ADWORDS_VERSION); + + // Create conversion tracker. + $conversionTracker = new AdWordsConversionTracker(); + $conversionTracker->name = 'Interplanetary Cruise Conversion #' . uniqid(); + + // Set additional settings (optional). + $conversionTracker->status = 'ENABLED'; + $conversionTracker->category = 'DEFAULT'; + $conversionTracker->viewthroughLookbackWindow = 15; + $conversionTracker->viewthroughConversionDeDupSearch = TRUE; + $conversionTracker->isProductAdsChargeable = TRUE; + $conversionTracker->productAdsChargeableConversionWindow = 15; + $conversionTracker->markupLanguage = 'HTML'; + $conversionTracker->textFormat = 'HIDDEN'; + $conversionTracker->conversionPageLanguage = 'en'; + $conversionTracker->backgroundColor = '#0000FF'; + $conversionTracker->userRevenueValue = 'someJavascriptVariable'; + + // Create operation. + $operation = new ConversionTrackerOperation(); + $operation->operand = $conversionTracker; + $operation->operator = 'ADD'; + + $operations = array($operation); + + // Make the mutate request. + $result = $conversionTrackerService->mutate($operations); + + // Display result. + $conversionTracker = $result->value[0]; + printf("Conversion type with name '%s' and ID '%.0f' was added.\n", + $conversionTracker->name, $conversionTracker->id); + printf("Tag code:\n%s\n", $conversionTracker->snippet); +} + +// 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. + AddConversionTrackerExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Reporting/DownloadCriteriaReport.php b/examples/AdWords/v201306/Reporting/DownloadCriteriaReport.php new file mode 100755 index 000000000..95a6bd0c3 --- /dev/null +++ b/examples/AdWords/v201306/Reporting/DownloadCriteriaReport.php @@ -0,0 +1,91 @@ +LoadService('ReportDefinitionService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('CampaignId', 'AdGroupId', 'Id', 'Criteria', + 'CriteriaType', 'Impressions', 'Clicks', 'Cost'); + + // Filter out deleted criteria. + $selector->predicates[] = new Predicate('Status', 'NOT_IN', array('DELETED')); + + // Create report definition. + $reportDefinition = new ReportDefinition(); + $reportDefinition->selector = $selector; + $reportDefinition->reportName = 'Criteria performance report #' . uniqid(); + $reportDefinition->dateRangeType = 'LAST_7_DAYS'; + $reportDefinition->reportType = 'CRITERIA_PERFORMANCE_REPORT'; + $reportDefinition->downloadFormat = 'CSV'; + + // Exclude criteria that haven't recieved any impressions over the date range. + $reportDefinition->includeZeroImpressions = FALSE; + + // Set additional options. + $options = array('version' => ADWORDS_VERSION, 'returnMoneyInMicros' => TRUE); + + // Download report. + ReportUtils::DownloadReport($reportDefinition, $filePath, $user, $options); + + printf("Report with name '%s' was downloaded to '%s'.\n", + $reportDefinition->reportName, $filePath); +} + +// 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(); + + // Download the report to a file in the same directory as the example. + $filePath = dirname(__FILE__) . '/report.csv'; + + // Run the example. + DownloadCriteriaReportExample($user, $filePath); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Reporting/DownloadCriteriaReportWithAwql.php b/examples/AdWords/v201306/Reporting/DownloadCriteriaReportWithAwql.php new file mode 100755 index 000000000..426750712 --- /dev/null +++ b/examples/AdWords/v201306/Reporting/DownloadCriteriaReportWithAwql.php @@ -0,0 +1,82 @@ + + */ + +error_reporting(E_STRICT | E_ALL); + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +require_once ADWORDS_UTIL_PATH . '/ReportUtils.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $filePath the path of the file to download the report to + */ +function DownloadCriteriaReportWithAwqlExample(AdWordsUser $user, $filePath, + $reportFormat) { + // Prepare a date range for the last week. Instead you can use 'LAST_7_DAYS'. + $dateRange = sprintf('%d,%d', + date('Ymd', strtotime('-7 day')), date('Ymd', strtotime('-1 day'))); + + // Create report query. + $reportQuery = 'SELECT CampaignId, AdGroupId, Id, Criteria, CriteriaType, ' + . 'Impressions, Clicks, Cost FROM CRITERIA_PERFORMANCE_REPORT ' + . 'WHERE Status IN [ACTIVE, PAUSED] DURING ' . $dateRange; + + // Set additional options. + $options = array('version' => ADWORDS_VERSION); + + // Download report. + ReportUtils::DownloadReportWithAwql($reportQuery, $filePath, $user, + $reportFormat, $options); + + printf("Report was downloaded to '%s'.\n", $filePath); +} + +// 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(); + + // Download the report to a file in the same directory as the example. + $filePath = dirname(__FILE__) . '/report.csv'; + $reportFormat = 'CSV'; + + // Run the example. + DownloadCriteriaReportWithAwqlExample($user, $filePath, $reportFormat); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Reporting/GetCampaignStats.php b/examples/AdWords/v201306/Reporting/GetCampaignStats.php new file mode 100755 index 000000000..c645d0f42 --- /dev/null +++ b/examples/AdWords/v201306/Reporting/GetCampaignStats.php @@ -0,0 +1,100 @@ +GetService('CampaignService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = + array('Id', 'Name', 'Impressions', 'Clicks', 'Cost', 'Ctr'); + $selector->predicates[] = + new Predicate('Impressions', 'GREATER_THAN', array(0)); + + // Set date range to request stats for. + $dateRange = new DateRange(); + $dateRange->min = date('Ymd', strtotime('-1 week')); + $dateRange->max = date('Ymd', strtotime('-1 day')); + $selector->dateRange = $dateRange; + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $campaignService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $campaign) { + printf("Campaign with name '%s' and id '%s' had the following stats " + . "during the last week:\n", $campaign->name, $campaign->id); + printf(" Impressions: %d\n", $campaign->campaignStats->impressions); + printf(" Clicks: %d\n", $campaign->campaignStats->clicks); + printf(" Cost: $%.2f\n", $campaign->campaignStats->cost->microAmount + / AdWordsConstants::MICROS_PER_DOLLAR); + printf(" CTR: %.2f%%\n", $campaign->campaignStats->ctr * 100); + } + } else { + print "No matching campaigns were found.\n"; + } + + // Advance the paging index. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); +} + +// 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. + GetCampaignStatsExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Reporting/GetReportFields.php b/examples/AdWords/v201306/Reporting/GetReportFields.php new file mode 100755 index 000000000..c11f5b6b2 --- /dev/null +++ b/examples/AdWords/v201306/Reporting/GetReportFields.php @@ -0,0 +1,78 @@ +GetService('ReportDefinitionService', ADWORDS_VERSION); + + // The type of the report to get fields for. + $reportType = 'CAMPAIGN_PERFORMANCE_REPORT'; + + // Get report fields. + $reportDefinitionFields = + $reportDefinitionService->getReportFields($reportType); + + // Display results. + printf("The report type '%s' contains the following fields:\n", $reportType); + foreach ($reportDefinitionFields as $reportDefinitionField) { + printf(' %s (%s)', $reportDefinitionField->fieldName, + $reportDefinitionField->fieldType); + if (isset($reportDefinitionField->enumValues)) { + printf(' := [%s]', implode(', ', $reportDefinitionField->enumValues)); + } + print "\n"; + } +} + +// 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. + GetReportFieldsExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Targeting/AddCampaignTargetingCriteria.php b/examples/AdWords/v201306/Targeting/AddCampaignTargetingCriteria.php new file mode 100755 index 000000000..755b74a96 --- /dev/null +++ b/examples/AdWords/v201306/Targeting/AddCampaignTargetingCriteria.php @@ -0,0 +1,103 @@ +GetService('CampaignCriterionService', ADWORDS_VERSION); + + $campaignCriteria = array(); + + // Create locations. The IDs can be found in the documentation or retrieved + // with the LocationCriterionService. + $california = new Location(); + $california->id = 21137; + $campaignCriteria[] = new CampaignCriterion($campaignId, null, $california); + + $mexico = new Location(); + $mexico->id = 2484; + $campaignCriteria[] = new CampaignCriterion($campaignId, null, $mexico); + + // Create languages. The IDs can be found in the documentation or retrieved + // with the ConstantDataService. + $english = new Language(); + $english->id = 1000; + $campaignCriteria[] = new CampaignCriterion($campaignId, null, $english); + + $spanish = new Language(); + $spanish->id = 1003; + $campaignCriteria[] = new CampaignCriterion($campaignId, null, $spanish); + + // Create operations. + $operations = array(); + foreach ($campaignCriteria as $campaignCriterion) { + $operations[] = new CampaignCriterionOperation($campaignCriterion, 'ADD'); + } + + // Make the mutate request. + $result = $campaignCriterionService->mutate($operations); + + // Display results. + foreach ($result->value as $campaignCriterion) { + printf("Campaign targeting criterion with ID '%s' and type '%s' was " + . "added.\n", $campaignCriterion->criterion->id, + $campaignCriterion->criterion->CriterionType); + } +} + +// 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. + AddCampaignTargetingCriteriaExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Targeting/GetCampaignTargetingCriteria.php b/examples/AdWords/v201306/Targeting/GetCampaignTargetingCriteria.php new file mode 100755 index 000000000..c98e62899 --- /dev/null +++ b/examples/AdWords/v201306/Targeting/GetCampaignTargetingCriteria.php @@ -0,0 +1,101 @@ + + * @author Eric Koleda + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$campaignId = 'INSERT_CAMPAIGN_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $campaignId the ID of the campaign to get targeting criteria + * for + */ +function GetCampaignTargetingCriteriaExample(AdWordsUser $user, $campaignId) { + // Get the service, which loads the required classes. + $campaignCriterionService = + $user->GetService('CampaignCriterionService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('Id', 'CriteriaType'); + + // Create predicates. + $selector->predicates[] = + new Predicate('CampaignId', 'IN', array($campaignId)); + $selector->predicates[] = new Predicate('CriteriaType', 'IN', + array('LANGUAGE', 'LOCATION', 'AGE_RANGE', 'CARRIER', + 'OPERATING_SYSTEM_VERSION', 'GENDER', 'POLYGON', 'PROXIMITY', + 'PLATFORM')); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $campaignCriterionService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $campaignCriterion) { + printf("Campaign targeting criterion with ID '%s' and type '%s' was " + . "found.\n", $campaignCriterion->criterion->id, + $campaignCriterion->criterion->CriterionType); + } + } else { + print "No campaign targeting criteria were found.\n"; + } + + // Advance the paging index. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); +} + +// 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. + GetCampaignTargetingCriteriaExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Targeting/GetTargetableLanguagesAndCarriers.php b/examples/AdWords/v201306/Targeting/GetTargetableLanguagesAndCarriers.php new file mode 100755 index 000000000..150647c28 --- /dev/null +++ b/examples/AdWords/v201306/Targeting/GetTargetableLanguagesAndCarriers.php @@ -0,0 +1,77 @@ +GetService('ConstantDataService', ADWORDS_VERSION); + + // Make the getLanguageCriterion request. + $languages = $constantDataService->getLanguageCriterion(); + + foreach ($languages as $language) { + printf("Language with name '%s' and ID '%s' was found.\n", + $language->name, $language->id); + } + + print "\n"; + + // Make the getCarrierCriterion request. + $carriers = $constantDataService->getCarrierCriterion(); + + foreach ($carriers as $carrier) { + printf("Carrier with name '%s', country code '%s', and ID '%s' was " + . "found.\n", $carrier->name, $carrier->countryCode, $carrier->id); + } +} + +// 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. + GetTargetableLanguagesAndCarriersExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Targeting/LookupLocation.php b/examples/AdWords/v201306/Targeting/LookupLocation.php new file mode 100755 index 000000000..25c05a5ef --- /dev/null +++ b/examples/AdWords/v201306/Targeting/LookupLocation.php @@ -0,0 +1,109 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Gets a string representation for a location. + * @param Location $location the location + * @return string the string representation + */ +function GetLocationString($location) { + return sprintf('%s (%s)', $location->locationName, $location->displayType); +} + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function LookupLocationExample(AdWordsUser $user) { + // Get the service, which loads the required classes. + $locationCriterionService = + $user->GetService('LocationCriterionService', ADWORDS_VERSION); + + // Location names to look up. + $locationNames = array('Paris', 'Quebec', 'Spain', 'Deutschland'); + // Locale to retrieve location names in. + $locale = 'en'; + + $selector = new Selector(); + $selector->fields = array('Id', 'LocationName', 'CanonicalName', + 'DisplayType', 'ParentLocations', 'Reach', 'TargetingStatus'); + // Location names must match exactly, only EQUALS and IN are supported. + $selector->predicates[] = new Predicate('LocationName', 'IN', $locationNames); + // Only one locale can be used in a request. + $selector->predicates[] = new Predicate('Locale', 'EQUALS', $locale); + + // Make the get request. + $locationCriteria = $locationCriterionService->get($selector); + + // Display results. + if (isset($locationCriteria)) { + foreach ($locationCriteria as $locationCriterion) { + if (isset($locationCriterion->location->parentLocations)) { + $parentLocations = implode(', ', + array_map('GetLocationString', + $locationCriterion->location->parentLocations)); + } else { + $parentLocations = 'N/A'; + } + printf("The search term '%s' returned the location '%s' of type '%s' " + . "with ID '%s', parent locations '%s', and reach '%d' (%s).\n", + $locationCriterion->searchTerm, + $locationCriterion->location->locationName, + $locationCriterion->location->displayType, + $locationCriterion->location->id, + $parentLocations, + $locationCriterion->reach, + $locationCriterion->location->targetingStatus); + } + } else { + print "No location criteria were found.\n"; + } +} + +// 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. + LookupLocationExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/init.php b/examples/AdWords/v201306/init.php new file mode 100755 index 000000000..a8f239733 --- /dev/null +++ b/examples/AdWords/v201306/init.php @@ -0,0 +1,46 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function CreateAccountExample(AdWordsUser $user) { + // Get the service, which loads the required classes. + $managedCustomerService = + $user->GetService('ManagedCustomerService', ADWORDS_VERSION); + + // Create customer. + $customer = new ManagedCustomer(); + $customer->name = 'Account #' . uniqid(); + $customer->currencyCode = 'EUR'; + $customer->dateTimeZone = 'Europe/London'; + + // Create operation. + $operation = new ManagedCustomerOperation(); + $operation->operator = 'ADD'; + $operation->operand = $customer; + + $operations = array($operation); + + // Make the mutate request. + $result = $managedCustomerService->mutate($operations); + + // Display result. + $customer = $result->value[0]; + printf("Account with customer ID '%s' was created.\n", + $customer->customerId); +} + +// 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. + CreateAccountExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/AccountManagement/GetAccountAlerts.php b/examples/AdWords/v201309/AccountManagement/GetAccountAlerts.php new file mode 100755 index 000000000..683810f08 --- /dev/null +++ b/examples/AdWords/v201309/AccountManagement/GetAccountAlerts.php @@ -0,0 +1,103 @@ +GetService('AlertService', ADWORDS_VERSION); + + // Create alert query. + $alertQuery = new AlertQuery(); + $alertQuery->clientSpec = 'ALL'; + $alertQuery->filterSpec = 'ALL'; + $alertQuery->types = array('ACCOUNT_BUDGET_BURN_RATE','ACCOUNT_BUDGET_ENDING', + 'ACCOUNT_ON_TARGET','CAMPAIGN_ENDED','CAMPAIGN_ENDING', + 'CREDIT_CARD_EXPIRING','DECLINED_PAYMENT', + 'MANAGER_LINK_PENDING','MISSING_BANK_REFERENCE_NUMBER', + 'PAYMENT_NOT_ENTERED','TV_ACCOUNT_BUDGET_ENDING','TV_ACCOUNT_ON_TARGET', + 'TV_ZERO_DAILY_SPENDING_LIMIT','USER_INVITE_ACCEPTED', + 'USER_INVITE_PENDING','ZERO_DAILY_SPENDING_LIMIT'); + $alertQuery->severities = array('GREEN', 'YELLOW', 'RED'); + $alertQuery->triggerTimeSpec = 'ALL_TIME'; + + // Create selector. + $selector = new AlertSelector(); + $selector->query = $alertQuery; + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $alertService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $alert) { + printf("Alert of type '%s' and severity '%s' for account '%d' was " + . "found.\n", $alert->alertType, $alert->alertSeverity, + $alert->clientCustomerId); + } + } else { + print "No alerts were found.\n"; + } + + // Advance the paging index. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); +} + +// 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. + GetAccountAlertsExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/AccountManagement/GetAccountChanges.php b/examples/AdWords/v201309/AccountManagement/GetAccountChanges.php new file mode 100755 index 000000000..c17f3f3ad --- /dev/null +++ b/examples/AdWords/v201309/AccountManagement/GetAccountChanges.php @@ -0,0 +1,148 @@ +GetService('CampaignService', ADWORDS_VERSION); + $customerSyncService = $user->GetService('CustomerSyncService', ADWORDS_VERSION); + + // Get an array of all campaign ids. + $campaignIds = array(); + $selector = new Selector(); + $selector->fields = array('Id'); + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + do { + $page = $campaignService->get($selector); + if (isset($page->entries)) { + foreach ($page->entries as $campaign) { + $campaignIds[] = $campaign->id; + } + } + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); + + // Set the date time range, from 24 hours ago until now. + $dateTimeRange = new DateTimeRange(); + $dateTimeRange->min = date('Ymd his', strtotime('-1 day')); + $dateTimeRange->max = date('Ymd his'); + + // Create selector. + $selector = new CustomerSyncSelector(); + $selector->dateTimeRange = $dateTimeRange; + $selector->campaignIds = $campaignIds; + + // Make the get request. + $accountChanges = $customerSyncService->get($selector); + + // Display results. + if (isset($accountChanges)) { + printf("Most recent change: %s\n", $accountChanges->lastChangeTimestamp); + if (isset($accountChanges->changedCampaigns)) { + foreach ($accountChanges->changedCampaigns as $campaignChangeData) { + printf("Campaign with id '%.0f' has change status '%s'.\n", + $campaignChangeData->campaignId, + $campaignChangeData->campaignChangeStatus); + if ($campaignChangeData->campaignChangeStatus != 'NEW') { + printf("\tAdded ad extensions: %s\n", + ArrayToString($campaignChangeData->addedAdExtensions)); + printf("\tDeleted ad extensions: %s\n", + ArrayToString($campaignChangeData->deletedAdExtensions)); + printf("\tAdded campaign criteria: %s\n", + ArrayToString($campaignChangeData->addedCampaignCriteria)); + printf("\tDeleted campaign criteria: %s\n", + ArrayToString($campaignChangeData->deletedCampaignCriteria)); + printf("\tCampaign targeting changed: %s\n", + $campaignChangeData->campaignTargetingChanged ? 'true' + : 'false'); + if (isset($campaignChangeData->changedAdGroups)) { + foreach($campaignChangeData->changedAdGroups as + $adGroupChangeData) { + printf("\tAd Group with id '%.0f' has change status '%s'.\n", + $adGroupChangeData->adGroupId, + $adGroupChangeData->adGroupChangeStatus); + if ($adGroupChangeData->adGroupChangeStatus != 'NEW') { + printf("\t\tChanged ads: %s\n", + ArrayToString($adGroupChangeData->changedAds)); + printf("\t\tChanged criteria: %s\n", + ArrayToString($adGroupChangeData->changedCriteria)); + printf("\t\tDeleted criteria: %s\n", + ArrayToString($adGroupChangeData->deletedCriteria)); + } + } + } + } + } + } + } else { + print "No changes were found.\n"; + } +} + +/** + * Converts an array of values to a comma-separated string. + * @param array $array an array of values that can be converted to a string + * @return string a comma-separated string of the values + */ +function ArrayToString($array) { + if (!isset($array)) { + return ''; + } else { + return implode(', ', $array); + } +} + +// 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. + GetAccountChangesExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/AccountManagement/GetAccountHierarchy.php b/examples/AdWords/v201309/AccountManagement/GetAccountHierarchy.php new file mode 100755 index 000000000..fce73ea3d --- /dev/null +++ b/examples/AdWords/v201309/AccountManagement/GetAccountHierarchy.php @@ -0,0 +1,127 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function GetAccountHierarchyExample(AdWordsUser $user) { + // Get the service, which loads the required classes. + $managedCustomerService = + $user->GetService('ManagedCustomerService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + // Specify the fields to retrieve. + $selector->fields = array('Login', 'CustomerId', 'Name'); + + // Make the get request. + $graph = $managedCustomerService->get($selector); + + // Display serviced account graph. + if (isset($graph->entries)) { + // Create map from customerId to parent and child links. + $childLinks = array(); + $parentLinks = array(); + if (isset($graph->links)) { + foreach ($graph->links as $link) { + $childLinks[$link->managerCustomerId][] = $link; + $parentLinks[$link->clientCustomerId][] = $link; + } + } + // Create map from customerID to account, and find root account. + $accounts = array(); + $rootAccount = NULL; + foreach ($graph->entries as $account) { + $accounts[$account->customerId] = $account; + if (!array_key_exists($account->customerId, $parentLinks)) { + $rootAccount = $account; + } + } + // The root account may not be returned in the sandbox. + if (!isset($rootAccount)) { + $rootAccount = new Account(); + $rootAccount->customerId = 0; + $rootAccount->login = $user->GetEmail(); + } + // Display account tree. + print "(Customer Id, Account Name/Login)\n"; + DisplayAccountTree($rootAccount, NULL, $accounts, $childLinks, 0); + } else { + print "No serviced accounts were found.\n"; + } +} + +/** + * Displays an account tree, starting at the account and link provided, and + * recursing to all child accounts. + * @param Account $account the account to display + * @param Link $link the link used to reach this account + * @param array $accounts a map from customerId to account + * @param array $links a map from customerId to child links + * @param int $depth the depth of the current account in the tree + */ +function DisplayAccountTree($account, $link, $accounts, $links, $depth) { + print str_repeat('-', $depth * 2); + printf("%s, %s\n", $account->customerId, + !empty($link->descriptiveName) ? $link->descriptiveName :$account->login); + if (array_key_exists($account->customerId, $links)) { + foreach ($links[$account->customerId] as $childLink) { + $childAccount = $accounts[$childLink->clientCustomerId]; + DisplayAccountTree($childAccount, $childLink, $accounts, $links, + $depth +1); + } + } +} + +// 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. + GetAccountHierarchyExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/AdvancedOperations/AddAdGroupBidModifier.php b/examples/AdWords/v201309/AdvancedOperations/AddAdGroupBidModifier.php new file mode 100755 index 000000000..3c48cfdd7 --- /dev/null +++ b/examples/AdWords/v201309/AdvancedOperations/AddAdGroupBidModifier.php @@ -0,0 +1,101 @@ +GetService('AdGroupBidModifierService', + ADWORDS_VERSION); + + // Mobile criterion ID. + $criterionId = 30001; + + // Prepare to add an ad group level override. + $agBidModifier = new AdGroupBidModifier(); + $agBidModifier->adGroupId = $adGroupId; + $agBidModifier->criterion = new Platform(); + $agBidModifier->criterion->id = $criterionId; + $agBidModifier->bidModifier = $bidModifier; + + $operation = new AdGroupBidModifierOperation(); + + // Use 'ADD' to add a new modifier and 'SET' to update an existing one. A + // modifier can be removed with the 'REMOVE' operator. + $operation->operator = 'ADD'; + $operation->operand = $agBidModifier; + + $response = $bidModifierService->mutate(array($operation)); + + foreach ($response->value as $modifier) { + $value = 'none'; + if (!empty($modifier->bidModifier)) { + $value = $modifier->bidModifier; + } + printf( + 'AdGroup ID %d, Criterion ID %d was updated with ' . + "ad group level modifier: %s\n", + $modifier->adGroupId, + $modifier->criterion->id, + $value + ); + } +} + +// 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. + AddAdGroupBidModifierExample($user, $adGroupId, $bidModifier); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/AdvancedOperations/AddClickToDownloadAd.php b/examples/AdWords/v201309/AdvancedOperations/AddClickToDownloadAd.php new file mode 100755 index 000000000..e4a3b7de8 --- /dev/null +++ b/examples/AdWords/v201309/AdvancedOperations/AddClickToDownloadAd.php @@ -0,0 +1,133 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$adGroupId = 'INSERT_ADGROUP_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $adGroupId the ID of the ad group to add the ad to + */ +function AddClickToDownloadAd(AdWordsUser $user, $adGroupId) { + // Get the AdGroupAdService, which loads the required classes. + $adGroupAdService = $user->GetService('AdGroupAdService', ADWORDS_VERSION); + + // Create the template ad. + $clickToDownloadAppAd = new TemplateAd(); + + $clickToDownloadAppAd->name = 'Ad for demo game'; + $clickToDownloadAppAd->templateId = 353; + $clickToDownloadAppAd->url = + 'http://play.google.com/store/apps/details?id=com.example.demogame'; + $clickToDownloadAppAd->displayUrl = 'play.google.com'; + + // Create the template elements for the ad. You can refer to + // https://developers.google.com/adwords/api/docs/appendix/templateads + // for the list of avaliable template fields. + $headline = new TemplateElementField(); + $headline->name = 'headline'; + $headline->fieldText = 'Enjoy your drive in Mars'; + $headline->type = 'TEXT'; + + $description1 = new TemplateElementField(); + $description1->name = 'description1'; + $description1->fieldText = 'Realistic physics simulation'; + $description1->type = 'TEXT'; + + $description2 = new TemplateElementField(); + $description2->name = 'description2'; + $description2->fieldText = 'Race against players online'; + $description2->type = 'TEXT'; + + $appId = new TemplateElementField(); + $appId->name = 'appId'; + $appId->fieldText = 'com.example.demogame'; + $appId->type = 'TEXT'; + + $appStore = new TemplateElementField(); + $appStore->name = 'appStore'; + $appStore->fieldText = '2'; + $appStore->type = 'ENUM'; + + $adData = new TemplateElement(); + $adData->uniqueName = 'adData'; + $adData->fields = + array($headline, $description1, $description2, $appId, $appStore); + + $clickToDownloadAppAd->templateElements = array($adData); + + // Create the adgroupad. + $clickToDownloadAppAdGroupAd = new AdGroupAd(); + $clickToDownloadAppAdGroupAd->adGroupId = $adGroupId; + $clickToDownloadAppAdGroupAd->ad = $clickToDownloadAppAd; + + // Optional: Set the status. + $clickToDownloadAppAdGroupAd->status = 'PAUSED'; + + // Create the operation. + $operation = new AdGroupAdOperation(); + $operation->operator = 'ADD'; + $operation->operand = $clickToDownloadAppAdGroupAd; + + $operations = array($operation); + + // Create the ads. + $result = $adGroupAdService->mutate($operations); + + 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); + } +} + +// 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. + AddClickToDownloadAd($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/AdvancedOperations/AddSitelinks.php b/examples/AdWords/v201309/AdvancedOperations/AddSitelinks.php new file mode 100755 index 000000000..69c0888d8 --- /dev/null +++ b/examples/AdWords/v201309/AdvancedOperations/AddSitelinks.php @@ -0,0 +1,337 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$campaignId = 'INSERT_CAMPAIGN_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $campaignId the ID of the campaign to add the sitelinks to + */ +function AddSitelinksExample(AdWordsUser $user, $campaignId) { + $sitelinksData = CreateSiteLinksFeed($user); + $sitelinksData = CreateSiteLinksFeedItems($user, $sitelinksData); + CreateSiteLinksFeedMapping($user, $sitelinksData); + CreateSiteLinksCampaignFeed($user, $sitelinksData, $campaignId); +} + +/** + * Creates the feed that holds the sitelinks data. + * @param AdWordsUser $user the user to run the example with + */ +function CreateSiteLinksFeed(AdWordsUser $user) { + // Map that holds IDs associated to the feeds metadata. + $sitelinksData = array(); + + // Get the FeedService, which loads the required classes. + $feedService = $user->GetService('FeedService', ADWORDS_VERSION); + + // Create attributes. + $textAttribute = new FeedAttribute(); + $textAttribute->type = 'STRING'; + $textAttribute->name = 'Link Text'; + $urlAttribute = new FeedAttribute(); + $urlAttribute->type = 'URL'; + $urlAttribute->name = 'Link URL'; + $line1Attribute = new FeedAttribute(); + $line1Attribute->type = 'STRING'; + $line1Attribute->name = 'Line 1 Description'; + $line2Attribute = new FeedAttribute(); + $line2Attribute->type = 'STRING'; + $line2Attribute->name = 'Line 2 Description'; + + // Create the feed. + $sitelinksFeed = new Feed(); + $sitelinksFeed->name = 'Feed For Site Links'; + $sitelinksFeed->attributes = array($textAttribute, $urlAttribute, + $line1Attribute, $line2Attribute); + $sitelinksFeed->origin = 'USER'; + + // Create operation. + $operation = new FeedOperation(); + $operation->operator = 'ADD'; + $operation->operand = $sitelinksFeed; + + $operations = array($operation); + + // Add the feed. + $result = $feedService->mutate($operations); + + $savedFeed = $result->value[0]; + $sitelinksData['sitelinksFeedId'] = $savedFeed->id; + $savedAttributes = $savedFeed->attributes; + $sitelinksData['linkTextFeedAttributeId'] = $savedAttributes[0]->id; + $sitelinksData['linkUrlFeedAttributeId'] = $savedAttributes[1]->id; + $sitelinksData['line1FeedAttribute'] = $savedAttributes[2]->id; + $sitelinksData['line2FeedAttribute'] = $savedAttributes[3]->id; + + printf('Feed with name "%s" and ID %d with linkTextAttributeId %d' + . ", linkUrlAttributeId %d, line1Attribute %d and line2Attribute %d " + . "were created.\n", + $savedFeed->name, + $savedFeed->id, + $savedAttributes[0]->id, + $savedAttributes[1]->id, + $savedAttributes[2]->id, + $savedAttributes[3]->id); + + return $sitelinksData; +} + +/** + * Adds sitelinks items to the feed. + * @param AdWordsUser $user the user to run the example with + * @param map $sitelinksData IDs associated to created sitelinks feed metadata + */ +function CreateSiteLinksFeedItems(AdWordsUser $user, $sitelinksData) { + // Get the FeedItemService, which loads the required classes. + $feedItemService = $user->GetService('FeedItemService', ADWORDS_VERSION); + + // Create operations to add FeedItems. + $home = NewSiteLinkFeedItemAddOperation($sitelinksData, 'Home', + 'http://www.example.com', 'Home line 1', 'Home line 2'); + $stores = NewSiteLinkFeedItemAddOperation($sitelinksData, 'Stores', + 'http://www.example.com/stores', 'Stores line 1', 'Stores line 2'); + $onSale = NewSiteLinkFeedItemAddOperation($sitelinksData, 'On Sale', + 'http://www.example.com/sale', 'On Sale line 1', 'On Sale line 2'); + $support = NewSiteLinkFeedItemAddOperation($sitelinksData, 'Support', + 'http://www.example.com/support', 'Support line 1', 'Support line 2'); + $products = NewSiteLinkFeedItemAddOperation($sitelinksData, 'Products', + 'http://www.example.com/products', 'Products line 1', 'Products line 2'); + $aboutUs = NewSiteLinkFeedItemAddOperation($sitelinksData, 'About Us', + 'http://www.example.com/about', 'About Us line 1', 'About Us line 2'); + + $operations = array($home, $stores, $onSale, $support, $products, $aboutUs); + + $result = $feedItemService->mutate($operations); + $sitelinksData['siteLinkFeedItemIds'] = array(); + + foreach ($result->value as $feedItem) { + printf("FeedItem with feedItemId %d was added.\n", $feedItem->feedItemId); + $sitelinksData['siteLinkFeedItemIds'][] = $feedItem->feedItemId; + } + + return $sitelinksData; +} + +// See the Placeholder reference page for a list of all the placeholder types and fields. +// https://developers.google.com/adwords/api/docs/appendix/placeholders.html +define('PLACEHOLDER_SITELINKS', 1); +define('PLACEHOLDER_FIELD_SITELINK_LINK_TEXT', 1); +define('PLACEHOLDER_FIELD_SITELINK_URL', 2); +define('PLACEHOLDER_FIELD_LINE_1_TEXT', 3); +define('PLACEHOLDER_FIELD_LINE_2_TEXT', 4); + +/** + * Maps the feed attributes to the sitelink placeholders. + * @param AdWordsUser $user the user to run the example with + * @param map $sitelinksData IDs associated to created sitelinks feed metadata + */ +function CreateSiteLinksFeedMapping(AdWordsUser $user, $sitelinksData) { + // Get the FeedMappingService, which loads the required classes. + $feedMappingService = $user->GetService('FeedMappingService', + ADWORDS_VERSION); + + // Map the FeedAttributeIds to the fieldId constants. + $linkTextFieldMapping = new AttributeFieldMapping(); + $linkTextFieldMapping->feedAttributeId = + $sitelinksData['linkTextFeedAttributeId']; + $linkTextFieldMapping->fieldId = PLACEHOLDER_FIELD_SITELINK_LINK_TEXT; + $linkUrlFieldMapping = new AttributeFieldMapping(); + $linkUrlFieldMapping->feedAttributeId = + $sitelinksData['linkUrlFeedAttributeId']; + $linkUrlFieldMapping->fieldId = PLACEHOLDER_FIELD_SITELINK_URL; + $line1FieldMapping = new AttributeFieldMapping(); + $line1FieldMapping->feedAttributeId = $sitelinksData['line1FeedAttribute']; + $line1FieldMapping->fieldId = PLACEHOLDER_FIELD_LINE_1_TEXT; + $line2FieldMapping = new AttributeFieldMapping(); + $line2FieldMapping->feedAttributeId = $sitelinksData['line2FeedAttribute']; + $line2FieldMapping->fieldId = PLACEHOLDER_FIELD_LINE_2_TEXT; + + // Create the FieldMapping and operation. + $feedMapping = new FeedMapping(); + $feedMapping->placeholderType = PLACEHOLDER_SITELINKS; + $feedMapping->feedId = $sitelinksData['sitelinksFeedId']; + $feedMapping->attributeFieldMappings = + array($linkTextFieldMapping, $linkUrlFieldMapping, $line1FieldMapping, + $line2FieldMapping); + $operation = new FeedMappingOperation(); + $operation->operand = $feedMapping; + $operation->operator = 'ADD'; + + $operations = array($operation); + + // Save the field mapping. + $result = $feedMappingService->mutate($operations); + foreach ($result->value as $feedMapping) { + printf('Feed mapping with ID %d and placeholderType %d was saved for ' . + "feed with ID %d.\n", + $feedMapping->feedMappingId, + $feedMapping->placeholderType, + $feedMapping->feedId); + } +} + +/** + * Creates the CampaignFeed associated to the feed data already populated. + * @param AdWordsUser $user the user to run the example with + * @param map $sitelinksData IDs associated to created sitelinks feed metadata + * @param string $campaignId the ID of the campaign to add the sitelinks to + */ +function CreateSiteLinksCampaignFeed(AdWordsUser $user, $sitelinksData, + $campaignId) { + // Get the CampaignFeedService, which loads the required classes. + $campaignFeedService = $user->GetService('CampaignFeedService', + ADWORDS_VERSION); + + $feedFunctionRequestContextOperand = new RequestContextOperand(); + $feedFunctionRequestContextOperand->contextType = 'FEED_ITEM_ID'; + + $feedItemFunction = new FeedFunction(); + $feedItemFunction->lhsOperand = array($feedFunctionRequestContextOperand); + $feedItemFunction->operator = 'IN'; + + $operands = array(); + foreach ($sitelinksData['siteLinkFeedItemIds'] as $feedItemId) { + $constantOperand = new ConstantOperand(); + $constantOperand->longValue = $feedItemId; + $constantOperand->type = 'LONG'; + $operands[] = $constantOperand; + } + $feedItemFunction->rhsOperand = $operands; + + # Optional: to target to a platform, define a function and 'AND' it with the + # feed item ID link: + $platformRequestContextOperand = new RequestContextOperand(); + $platformRequestContextOperand->contextType = 'DEVICE_PLATFORM'; + + $platformOperand = new ConstantOperand(); + $platformOperand->type = 'STRING'; + $platformOperand->stringValue = 'Mobile'; + + $platformFunction = new FeedFunction(); + $platformFunction->operator = 'EQUALS'; + $platformFunction->lhsOperand = array($platformRequestContextOperand); + $platformFunction->rhsOperand = array($platformOperand); + + $feedItemFunctionOperand = new FunctionOperand(); + $feedItemFunctionOperand->value = $feedItemFunction; + + $platformFunctionOperand = new FunctionOperand(); + $platformFunctionOperand->value = $platformFunction; + + $combinedFunction = new FeedFunction(); + $combinedFunction->operator = 'AND'; + $combinedFunction->lhsOperand = array($feedItemFunctionOperand, + $platformFunctionOperand); + + $campaignFeed = new CampaignFeed(); + $campaignFeed->feedId = $sitelinksData['sitelinksFeedId']; + $campaignFeed->campaignId = $campaignId; + $campaignFeed->matchingFunction = $combinedFunction; + // Specifying placeholder types on the CampaignFeed allows the same feed + // to be used for different placeholders in different Campaigns. + $campaignFeed->placeholderTypes = array(PLACEHOLDER_SITELINKS); + + $operation = new CampaignFeedOperation(); + $operation->operand = $campaignFeed; + $operation->operator = 'ADD'; + + $operations = array($operation); + + $result = $campaignFeedService->mutate($operations); + foreach ($result->value as $savedCampaignFeed) { + printf("Campaign with ID %d was associated with feed with ID %d.\n", + $savedCampaignFeed->campaignId, + $savedCampaignFeed->feedId); + } +} + +/** + * Creates a SitelinkFeedItem and wraps it in an ADD operation. + * @param map $sitelinksData IDs associated to created sitelinks feed metadata + * @param string $text text of the sitelink + * @param string $url URL of the sitelink + */ +function NewSiteLinkFeedItemAddOperation($sitelinksData, $text, $url, $line1, + $line2) { + // Create the FeedItemAttributeValues for our text values. + $linkTextAttributeValue = new FeedItemAttributeValue(); + $linkTextAttributeValue->feedAttributeId = + $sitelinksData['linkTextFeedAttributeId']; + $linkTextAttributeValue->stringValue = $text; + $linkUrlAttributeValue = new FeedItemAttributeValue(); + $linkUrlAttributeValue->feedAttributeId = + $sitelinksData['linkUrlFeedAttributeId']; + $linkUrlAttributeValue->stringValue = $url; + $line1AttributeValue = new FeedItemAttributeValue(); + $line1AttributeValue->feedAttributeId = $sitelinksData['line1FeedAttribute']; + $line1AttributeValue->stringValue = $line1; + $line2AttributeValue = new FeedItemAttributeValue(); + $line2AttributeValue->feedAttributeId = $sitelinksData['line2FeedAttribute']; + $line2AttributeValue->stringValue = $line2; + + + // Create the feed item and operation. + $item = new FeedItem(); + $item->feedId = $sitelinksData['sitelinksFeedId']; + $item->attributeValues = + array($linkTextAttributeValue, $linkUrlAttributeValue, + $line1AttributeValue, $line2AttributeValue); + $operation = new FeedItemOperation(); + $operation->operand = $item; + $operation->operator = 'ADD'; + return $operation; +} + +// 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. + AddSitelinksExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/AdvancedOperations/CreateAndAttachSharedKeywordSet.php b/examples/AdWords/v201309/AdvancedOperations/CreateAndAttachSharedKeywordSet.php new file mode 100755 index 000000000..64fb957ef --- /dev/null +++ b/examples/AdWords/v201309/AdvancedOperations/CreateAndAttachSharedKeywordSet.php @@ -0,0 +1,153 @@ +GetService('SharedSetService'); + + $set = new SharedSet(); + $set->name = sprintf( + 'API Negative keyword list #%s', + uniqid() + ); + $set->type = 'NEGATIVE_KEYWORDS'; + + $operation = new SharedSetOperation(); + $operation->operator = 'ADD'; + $operation->operand = $set; + + $operations = array($operation); + + $result = $sharedSetService->mutate($operations); + + // Get the shared set ID and print it. + $set = $result->value[0]; + $sharedSetId = $set->sharedSetId; + printf( + "SharedSet '%s' has been created with ID '%s'\n", + $set->name, + $sharedSetId + ); + + // Add negative Keywords to SharedSet. + $sharedCriterionService = $user->GetService('SharedCriterionService'); + + $operations = array(); + foreach ($keywordTexts as $keywordText) { + $keyword = new Keyword(); + $keyword->text = $keywordText; + $keyword->matchType = 'BROAD'; + + $sharedCriterion = new SharedCriterion(); + $sharedCriterion->criterion = $keyword; + $sharedCriterion->negative = true; + $sharedCriterion->sharedSetId = $sharedSetId; + + $operation = new SharedCriterionOperation(); + $operation->operator = 'ADD'; + $operation->operand = $sharedCriterion; + + + $operations[] = $operation; + } + + $result = $sharedCriterionService->mutate($operations); + + // Print the shared negative keywords. + foreach ($result->value as $sharedCriterion) { + printf( + "Shared negative Keyword '%s' created, with ID '%s'\n", + $sharedCriterion->criterion->text, + $sharedCriterion->criterion->id + ); + } + + // Attach the articles to the campaign. + $campaignSharedSetService = $user->GetService('CampaignSharedSetService'); + + $campaignSet = new CampaignSharedSet(); + $campaignSet->campaignId = $campaignId; + $campaignSet->sharedSetId = $sharedSetId; + + $operator = new CampaignSharedSetOperation(); + $operator->operator = 'ADD'; + $operator->operand = $campaignSet; + + $operations = array($operator); + + $result = $campaignSharedSetService->mutate($operations); + + // Print the CampaignSharedSet and its relating IDs. + $campaignSet = $result->value[0]; + printf( + "Created CampaignSharedSet with campaign ID '%s' and shared set ID '%s'\n", + $campaignSet->campaignId, + $campaignSet->sharedSetId + ); +} + +// 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. + CreateAndAttachSharedKeywordSetExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/AdvancedOperations/FindAndRemoveCriteriaFromSharedSet.php b/examples/AdWords/v201309/AdvancedOperations/FindAndRemoveCriteriaFromSharedSet.php new file mode 100755 index 000000000..54b2aa549 --- /dev/null +++ b/examples/AdWords/v201309/AdvancedOperations/FindAndRemoveCriteriaFromSharedSet.php @@ -0,0 +1,208 @@ +GetService("CampaignSharedSetService"); + + // Create two predicates: + // Filter by campaign ID. + $campaignPredicate = new Predicate(); + $campaignPredicate->field = "CampaignId"; + $campaignPredicate->operator = "EQUALS"; + $campaignPredicate->values = array($campaignId); + + // Filter by shared set type. + $typePredicate = new Predicate(); + $typePredicate->field = "SharedSetType"; + $typePredicate->operator = "IN"; + $typePredicate->values = array("NEGATIVE_KEYWORDS", "NEGATIVE_PLACEMENTS"); + + $selector = new Selector(); + $selector->fields = array("SharedSetId", "CampaignId", "SharedSetName", + "SharedSetType", "Status"); + $selector->predicates = array($campaignPredicate, $typePredicate); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + $sharedSetIds = array(); + + do { + // Make the get request. + $page = $campaignSharedSetService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $campaignSharedSet) { + printf("A Campaign Shared Set with the shared set ID '%s', campaign " . + "ID '%s', name '%s', type '%s' and status '%s' was found.\n", + $campaignSharedSet->sharedSetId, $campaignSharedSet->campaignId, + $campaignSharedSet->sharedSetName, + $campaignSharedSet->sharedSetType, $campaignSharedSet->status); + + // Add the shared set ID to the response array. + $sharedSetIds[] = $campaignSharedSet->sharedSetId; + } + } + + // Configure the next page. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); + + if (empty($sharedSetIds)) { + throw new RuntimeException(sprintf( + "No shared sets for campaign ID \"%s\"", $campaignId)); + } + + return $sharedSetIds; +} + +function FindCriteriaForSharedSets(AdWordsUser $user, $sharedSetIds) { + $sharedCriterionService = $user->GetService("SharedCriterionService"); + + $predicate = new Predicate(); + $predicate->field = "SharedSetId"; + $predicate->operator = "IN"; + $predicate->values = $sharedSetIds; + + $selector = new Selector(); + $selector->fields = array("SharedSetId", "Id", "KeywordText", + "KeywordMatchType", "PlacementUrl"); + $selector->predicates = array($predicate); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + $sharedCriteriaPerSetId = array(); + do { + $page = $sharedCriterionService->get($selector); + + if (isset($page->entries)) { + foreach ($page->entries as $sharedCriterion) { + $sharedSetId = $sharedCriterion->sharedSetId; + printf("A SharedCriterion with the CriterionId \"%s\" was found " . + "for SharedSetId \"%s\".\n", + $sharedCriterion->criterion->id, $sharedSetId); + + // Add an array of shared set IDs mapping to a list of criterionIds + if (!isset($sharedCriteriaPerSetId[$sharedSetId])) { + $sharedCriteriaPerSetId[$sharedSetId] = array(); + } + + $sharedCriteriaPerSetId[$sharedSetId][] = + $sharedCriterion->criterion->id; + } + } + + // Configure the next page. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); + + if (empty($sharedCriteriaPerSetId)) { + throw new RuntimeException(sprintf( + "No shared criteria for sets: \"%s\"", + implode("\", \"", $sharedSetIds))); + } + + return $sharedCriteriaPerSetId; +} + +function RemoveCriteriaFromSharedSet(AdWordsUser $user, + $sharedSetsToCriterions) { + $sharedCriterionService = $user->GetService("SharedCriterionService"); + + $operations = array(); + foreach ($sharedSetsToCriterions as $sharedSetId => $criterionIds) { + foreach ($criterionIds as $criterionId) { + + $criterion = new Criterion(); + $criterion->id = $criterionId; + + $sharedCriterion = new SharedCriterion(); + $sharedCriterion->criterion = $criterion; + $sharedCriterion->sharedSetId = $sharedSetId; + + $operation = new SharedCriterionOperation(); + $operation->operator = "REMOVE"; + $operation->operand = $sharedCriterion; + $operations[] = $operation; + } + } + + $result = $sharedCriterionService->mutate($operations); + + // On nothing removed, raise an exception. + if (empty($result->value)) { + throw new RuntimeException("Unable to remove SharedCriterion."); + } + + foreach ($result->value as $sharedCriterion) { + printf("Deleted SharedCriterion with shared set ID \"%s\" and " . + "criterion ID \"%s\"\n", + $sharedCriterion->sharedSetId, + $sharedCriterion->criterion->id); + } +} + + +// 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. + FindAndRemoveCriteriaFromSharedSetExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/AdvancedOperations/GetAdGroupBidModifiers.php b/examples/AdWords/v201309/AdvancedOperations/GetAdGroupBidModifiers.php new file mode 100755 index 000000000..5dbaab987 --- /dev/null +++ b/examples/AdWords/v201309/AdvancedOperations/GetAdGroupBidModifiers.php @@ -0,0 +1,96 @@ +GetService('AdGroupBidModifierService', + ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('CampaignId', 'AdGroupId', 'BidModifier', 'Id'); + $selector->ordering[] = new OrderBy('CampaignId', 'ASCENDING'); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $bidModifierService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $modifier) { + $value = 'none'; + if (!empty($modifier->bidModifier)) { + $value = $modifier->bidModifier; + } + printf("Campaign ID %d, AdGroup ID %d, Criterion ID %d has ad group " . + "level modifier: %s\n", + $modifier->campaignId, + $modifier->adGroupId, + $modifier->criterion->id, + $value + ); + } + } else { + print "No bid modifiers were found.\n"; + } + + // Advance the paging index. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); +} + +// 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. + GetAdGroupBidModifiersExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/AdvancedOperations/UpdateSitelinks.php b/examples/AdWords/v201309/AdvancedOperations/UpdateSitelinks.php new file mode 100755 index 000000000..8e68e5878 --- /dev/null +++ b/examples/AdWords/v201309/AdvancedOperations/UpdateSitelinks.php @@ -0,0 +1,247 @@ + + * + Replaces the Feed's existing FeedMapping with one that contains the new + * set of FeedItemAttributes + * + * The end result of this is that any campaign or ad group whose CampaignFeed + * or AdGroupFeed points to the Feed's ID will now serve line 1 and line 2 + * descriptions in its sitelinks. + * + * Tags: FeedItemService.mutate, FeedMappingService.mutate, FeedService.mutate + * Tags: FeedItemService.get, FeedMappingService.get, FeedService.get + * Restriction: adwords-only + * + * Copyright 2013, Google Inc. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @category WebServices + * @copyright 2013, Google Inc. All Rights Reserved. + * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, + * Version 2.0 + * @author Paul Matthews + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +$feedId = (int) 'INSERT_FEED_ID'; + +$feedItemDescriptions = array( + 'INSERT_FEED_ITEM_A_ID_HERE' => array( + 'INSERT_FEED_ITEM_A_LINE1_DESC_HERE', + 'INSERT_FEED_ITEM_A_LINE2_DESC_HERE', + ), + 'INSERT_FEED_ITEM_B_ID_HERE' => array( + 'INSERT_FEED_ITEM_B_LINE1_DESC_HERE', + 'INSERT_FEED_ITEM_B_LINE2_DESC_HERE', + ), +); + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $feedId is the id of the feed to manipulate + * @param array $feedItemDescriptions the 2d array of feedItemId to values + */ +function UpdateSitelinksExample(AdWordsUser $user, $feedId, + $feedItemDescriptions) { + $feedService = $user->GetService('FeedService', ADWORDS_VERSION); + $feedItemService = $user->GetService('FeedItemService', ADWORDS_VERSION); + $feedMappingService = $user->GetService('FeedMappingService', + ADWORDS_VERSION); + + $selector = new Selector(); + $selector->fields = array('Id', 'Attributes'); + $selector->predicates = array(); + $selector->predicates[0] = new Predicate('Id', 'EQUALS', array($feedId)); + + $response = $feedService->get($selector); + $feed = $response->entries[0]; + + // Add new attributes to the feed. + $newAttributes = AddLine1AndLine2Attributes($feedService, $feed); + $line1Attribute = $newAttributes[0]; + $line2Attribute = $newAttributes[1]; + + // Update feed items. + UpdateFeedItems($feedItemService, $feedId, $line1Attribute, $line2Attribute, + $feedItemDescriptions); + + // Update feed mappings. + UpdateFeedMappings($feedMappingService, $feedId, $line1Attribute, + $line2Attribute, $feedItemDescriptions); +} + +/* + * Adds a FeedAttribute for line 1 and line 2 descriptions to the Feed. + * + * @param AdWordsSoapClient $feedService the feed service + * @param Feed $feed the feed to attach the attributes to + * @return array containing the created feed attributes + */ +function AddLine1AndLine2Attributes(AdWordsSoapClient $feedService, + Feed $feed) { + // This will be the starting index for the new attributes created below. + $nextAttributeIndex = count($feed->attributes); + + $line1Attribute = new FeedAttribute(); + $line1Attribute->type = 'STRING'; + $line1Attribute->name = 'Line 1 Description'; + $line2Attribute = new FeedAttribute(); + $line2Attribute->type = 'STRING'; + $line2Attribute->name = 'Line 2 Description'; + + // When adding new attributes DO NOT send existing attributes + // EVERY included attribute is to be added. + $feed->attributes = array($line1Attribute, $line2Attribute); + + $result = $feedService->mutate(array(new FeedOperation($feed, 'SET'))); + + // Get the new attributes from the mutated feed. + $mutatedFeed = $result->value[0]; + return array( + $mutatedFeed->attributes[$nextAttributeIndex], + $mutatedFeed->attributes[$nextAttributeIndex + 1], + ); +} + + +/** + * Updates FeedItems for the Feed, setting line 1 description and line 2 + * description from the contents of the feedItemDescriptions map. + * + * @param AdWordsSoapClient $feedService the feed service + * @param string $feedId the feedId to attach the items to. + * @param FeedAttribute $line1Attribute the FeedAttribute for line 1 description + * @param FeedAttribute $line2Attribute the FeedAttribute for line 2 description + * @param array $feedItemDescriptions the 2d array of feedItemId to values + */ +function UpdateFeedItems(AdWordsSoapClient $feedItemService, $feedId, + $line1Attribute, $line2Attribute, $feedItemDescriptions) { + $selector = new Selector(); + $selector->fields = array('FeedId', 'FeedItemId', 'AttributeValues'); + $selector->predicates = array(); + $selector->predicates[0] = new Predicate('FeedId', 'EQUALS', array($feedId)); + $selector->predicates[1] = new Predicate('FeedItemId', 'IN', + array_keys($feedItemDescriptions)); + + $feedItems = $feedItemService->get($selector)->entries; + + $itemOperations = array(); + foreach ($feedItems as $feedItem) { + $feedItemDescription = $feedItemDescriptions[$feedItem->feedItemId]; + + // Construct a FeedItemOperation that will set the line 1 and line 2 + // attribute values for this FeedItem. + $itemAttributeValues = array(); + $itemAttributeValues[0] = new FeedItemAttributeValue(); + $itemAttributeValues[0]->feedAttributeId = $line1Attribute->id; + $itemAttributeValues[0]->stringValue = $feedItemDescription[0]; + + $itemAttributeValues[1] = new FeedItemAttributeValue(); + $itemAttributeValues[1]->feedAttributeId = $line2Attribute->id; + $itemAttributeValues[1]->stringValue = $feedItemDescription[1]; + + $feedItem->attributeValues = $itemAttributeValues; + + $itemOperations[] = new FeedItemOperation($feedItem, 'SET'); + } + + $response = $feedItemService->mutate($itemOperations); + + printf("Updated %d items.\n", count($response->value)); +} + +/* + * See the Placeholder reference page for a list of all the placeholder types + * and fields: + * https://developers.google.com/adwords/api/docs/appendix/placeholders + */ +define('PLACEHOLDER_FIELD_LINE_1_TEXT', 3); +define('PLACEHOLDER_FIELD_LINE_2_TEXT', 4); + +/** + * Updates the FeedMapping for the Feed to include AttributeFieldMappings for + * the new line 1 and line 2 FeedAttributes. + * + * @param AdWordsSoapClient $feedMappingService the feed mapping service + * @param string $feedId the feedId to attach the items to. + * @param FeedAttribute $line1Attribute the FeedAttribute for line 1 description + * @param FeedAttribute $line2Attribute the FeedAttribute for line 2 description + */ +function UpdateFeedMappings(AdWordsSoapClient $feedMappingService, $feedId, + $line1Attribute, $line2Attribute) { + $selector = new Selector(); + $selector->fields = array('FeedId', 'FeedMappingId', 'PlaceholderType', + 'AttributeFieldMappings'); + $selector->predicates = array(); + $selector->predicates[0] = new Predicate('FeedId', 'EQUALS', array($feedId)); + $selector->predicates[1] = new Predicate('Status', 'EQUALS', array('ACTIVE')); + + $feedMapping = $feedMappingService->get($selector)->entries[0]; + + // Remove the existing mapping (FeedMapping is immutable). + $feedMapping = $feedMappingService->mutate(array( + new FeedMappingOperation($feedMapping, 'REMOVE')))->value[0]; + + // Create line 1 and line 2 attribute field mappings. + $line1FieldMapping = new AttributeFieldMapping(); + $line1FieldMapping->feedAttributeId = $line1Attribute->id; + $line1FieldMapping->fieldId = PLACEHOLDER_FIELD_LINE_1_TEXT; + + $line2FieldMapping = new AttributeFieldMapping(); + $line2FieldMapping->feedAttributeId = $line2Attribute->id; + $line2FieldMapping->fieldId = PLACEHOLDER_FIELD_LINE_2_TEXT; + + // Combine the existing field mappings with the new mappings. + $feedMapping->attributeFieldMappings = array_merge( + $feedMapping->attributeFieldMappings, + array($line1FieldMapping, $line2FieldMapping)); + + $response = $feedMappingService->mutate(array( + new FeedMappingOperation($feedMapping, 'ADD'))); + $mutatedMapping = $response->value[0]; + + printf("Updated field mappings for feedId %d and feedMappingId %d to:\n", + $mutatedMapping->feedId, $mutatedMapping->feedMappingId); + foreach ($mutatedMapping->attributeFieldMappings as $fieldMapping) { + printf(" feedAttributeId %s --> fieldId %s\n", + $fieldMapping->feedAttributeId, $fieldMapping->fieldId); + } +} + +// 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. + UpdateSitelinksExample($user, $feedId, $feedItemDescriptions); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/AdvancedOperations/UploadOfflineConversions.php b/examples/AdWords/v201309/AdvancedOperations/UploadOfflineConversions.php new file mode 100755 index 000000000..1780563ee --- /dev/null +++ b/examples/AdWords/v201309/AdvancedOperations/UploadOfflineConversions.php @@ -0,0 +1,116 @@ + + */ + +// Include the initialization file. +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$conversionName = 'INSERT_CONVERSION_NAME_HERE'; +$gClId = 'INSERT_GOOGLE_CLICK_ID_HERE'; +$conversionTime = 'INSERT_CONVERSION_TIME_HERE'; +$conversionValue = 'INSERT_CONVERSION_VALUE_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $campaignId the ID of the campaign to add the sitelinks to + */ +function UploadOfflineConversionsExample(AdWordsUser $user, $conversionName, + $gClId, $conversionTime, $conversionValue) { + // Get the services, which loads the required classes. + $conversionTrackerService = $user->GetService('ConversionTrackerService', + ADWORDS_VERSION); + $offlineConversionService = $user->GetService('OfflineConversionFeedService', + ADWORDS_VERSION); + + // Create an upload conversion. Once created, this entry will be visible + // under Tools and Analysis->Conversion and will have Source = "Import". + $uploadConversion = new UploadConversion(); + $uploadConversion->category = 'PAGE_VIEW'; + $uploadConversion->name = $conversionName; + $uploadConversion->viewthroughLookbackWindow = 30; + $uploadConversion->ctcLookbackWindow = 90; + + $uploadConversionOperation = new ConversionTrackerOperation(); + $uploadConversionOperation->operator = 'ADD'; + $uploadConversionOperation->operand = $uploadConversion; + + $uploadConversionOperations = array($uploadConversionOperation); + $result = $conversionTrackerService->mutate($uploadConversionOperations); + + $uploadConversion = $result->value[0]; + printf("New upload conversion type with name = '%s' and ID = %d was " . + "created.\n", $uploadConversion->name, $uploadConversion->id); + + // Associate offline conversions with the upload conversion we created. + $feed = new OfflineConversionFeed(); + $feed->conversionName = $conversionName; + $feed->conversionTime = $conversionTime; + $feed->conversionValue = $conversionValue; + $feed->googleClickId = $gClId; + + $offlineConversionOperation = new OfflineConversionFeedOperation(); + $offlineConversionOperation->operator = 'ADD'; + $offlineConversionOperation->operand = $feed; + + $offlineConversionOperations = array($offlineConversionOperation); + $result = $offlineConversionService->mutate($offlineConversionOperations); + + $feed = $result->value[0]; + printf('Uploaded offline conversion value of %d for Google Click ID = ' . + "'%s' to '%s'.", $feed->conversionValue, $feed->googleClickId, + $feed->conversionName); +} + +// 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. + UploadOfflineConversionsExample($user, $conversionName, $gClId, + $conversionTime, $conversionValue); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/AdvancedOperations/UseSharedBiddingStrategy.php b/examples/AdWords/v201309/AdvancedOperations/UseSharedBiddingStrategy.php new file mode 100755 index 000000000..266261f74 --- /dev/null +++ b/examples/AdWords/v201309/AdvancedOperations/UseSharedBiddingStrategy.php @@ -0,0 +1,191 @@ +budgetId; + } + CreateCampaignWithBiddingStrategy($user, $biddingStrategy->id, + $sharedBudgetId); +} + +/** + * Creates the bidding strategy object. + * @param AdWordsUser $user the user to run the example with + */ +function CreateBiddingStrategy(AdWordsUser $user) { + // Get the BiddingStrategyService, which loads the required classes. + $biddingStrategyService = + $user->GetService('BiddingStrategyService', ADWORDS_VERSION); + + // Create a shared bidding strategy. + $sharedBiddingStrategy = new SharedBiddingStrategy(); + $sharedBiddingStrategy->name = "Maximize Clicks " . uniqid(); + + $biddingScheme = new TargetSpendBiddingScheme(); + // Optionally set additional bidding scheme parameters. + $biddingScheme->bidCeiling = new Money('2000000'); + $biddingScheme->spendTarget = new Money('20000000'); + + $sharedBiddingStrategy->biddingScheme = $biddingScheme; + + // Create operation. + $operation = new BiddingStrategyOperation(); + $operation->operator = 'ADD'; + $operation->operand = $sharedBiddingStrategy; + + $result = $biddingStrategyService->mutate(array($operation)); + + $newBiddingStrategy = $result->value[0]; + + printf("Shared bidding strategy with name '%s' and ID %d of type %s was " + . "created.\n", $newBiddingStrategy->name, $newBiddingStrategy->id, + $newBiddingStrategy->biddingScheme->BiddingSchemeType); + + return $newBiddingStrategy; +} + +/** + * Creates an explicit budget to be used only to create the Campaign. + * @param AdWordsUser $user the user to run the example with + */ +function CreateSharedBudget($user) { + // Get the BudgetService, which loads the required classes. + $budgetService = $user->GetService('BudgetService', ADWORDS_VERSION); + + // Create a shared budget + $budget = new Budget(); + $budget->name = "Shared Interplanetary Budget #" . uniqid(); + $budget->period = 'DAILY'; + $budget->amount = new Money(50000000); + $budget->deliveryMethod = 'STANDARD'; + $budget->isExplicitlyShared = true; + + $operations = array(); + + // Create operation. + $operation = new BudgetOperation(); + $operation->operand = $budget; + $operation->operator = 'ADD'; + $operations[] = $operation; + + // Make the mutate request. + $result = $budgetService->mutate($operations); + return $result->value[0]; +} + +/** + * Create a Campaign with a Shared Bidding Strategy. + * @param AdWordsUser $user the user to run the example with + * @param string $biddingStrategyId the bidding strategy id to use + * @param string $sharedBudgetId the shared budget id to use + */ +function CreateCampaignWithBiddingStrategy(AdWordsUser $user, + $biddingStrategyId, $sharedBudgetId) { + // Get the CampaignService, which loads the required classes. + $campaignService = $user->GetService('CampaignService', ADWORDS_VERSION); + + // Create campaign. + $campaign = new Campaign(); + $campaign->name = 'Interplanetary Cruise #' . uniqid(); + + // Set the budget. + $campaign->budget = new Budget(); + $campaign->budget->budgetId = $sharedBudgetId; + + // Set bidding strategy (required). + $biddingStrategyConfiguration = new BiddingStrategyConfiguration(); + $biddingStrategyConfiguration->biddingStrategyId = $biddingStrategyId; + + $campaign->biddingStrategyConfiguration = $biddingStrategyConfiguration; + + // Set keyword matching setting (required). + $keywordMatchSetting = new KeywordMatchSetting(); + $keywordMatchSetting->optIn = true; + $campaign->settings[] = $keywordMatchSetting; + + // Set network targeting (recommended). + $networkSetting = new NetworkSetting(); + $networkSetting->targetGoogleSearch = true; + $networkSetting->targetSearchNetwork = true; + $networkSetting->targetContentNetwork = true; + $campaign->networkSetting = $networkSetting; + + // Create operation. + $operation = new CampaignOperation(); + $operation->operand = $campaign; + $operation->operator = 'ADD'; + + $result = $campaignService->mutate(array($operation)); + + $newCampaign = $result->value[0]; + + printf("Campaign with name '%s', ID %d and bidding scheme ID %d was " + . "created.\n", $newCampaign->name, $newCampaign->id, + $newCampaign->biddingStrategyConfiguration->biddingStrategyId); + + return $newCampaign; +} + +// 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. + UseSharedBiddingStrategyExample($user, $budgetId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/AddAdGroupDemographicCriteria.php b/examples/AdWords/v201309/BasicOperations/AddAdGroupDemographicCriteria.php new file mode 100755 index 000000000..58653676b --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/AddAdGroupDemographicCriteria.php @@ -0,0 +1,110 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$adGroupId = 'INSERT_AD_GROUP_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function AddAdGroupDemographicCriteriaExample(AdWordsUser $user, $adGroupId) { + // Get the AdGroupCriterionService, which loads the required classes. + $adGroupCriterionService = $user->GetService('AdGroupCriterionService', + ADWORDS_VERSION); + + // Create biddable ad group criterion for gender + $genderTarget = new Gender(); + // Criterion Id for male. The IDs can be found here + // https://developers.google.com/adwords/api/docs/appendix/genders + $genderTarget->id = 10; + + $genderBiddableAdGroupCriterion = new BiddableAdGroupCriterion(); + $genderBiddableAdGroupCriterion->adGroupId = $adGroupId; + $genderBiddableAdGroupCriterion->criterion = $genderTarget; + + // Create negative ad group criterion for age range + $ageRangeNegative = new AgeRange(); + // Criterion Id for age 18 to 24. The IDs can be found here + // https://developers.google.com/adwords/api/docs/appendix/ages + + $ageRangeNegative->id = 503001; + $ageRangeNegativeAdGroupCriterion = new NegativeAdGroupCriterion(); + $ageRangeNegativeAdGroupCriterion->adGroupId = $adGroupId; + $ageRangeNegativeAdGroupCriterion->criterion = $ageRangeNegative; + + $operations = array(); + + // Create operations. + $genderBiddableAdGroupCriterionOperation = new AdGroupCriterionOperation(); + $genderBiddableAdGroupCriterionOperation->operand = + $genderBiddableAdGroupCriterion; + $genderBiddableAdGroupCriterionOperation->operator = 'ADD'; + $operations[] = $genderBiddableAdGroupCriterionOperation; + + $ageRangeNegativeAdGroupCriterionOperation = new AdGroupCriterionOperation(); + $ageRangeNegativeAdGroupCriterionOperation->operand = + $ageRangeNegativeAdGroupCriterion; + $ageRangeNegativeAdGroupCriterionOperation->operator = 'ADD'; + $operations[] = $ageRangeNegativeAdGroupCriterionOperation; + + // Make the mutate request. + $result = $adGroupCriterionService->mutate($operations); + + // Display results. + foreach ($result->value as $adGroupCriterion) { + printf("Ad group criterion with ad group ID '%s', criterion ID '%s' " . + "and type '%s' was added.\n", $adGroupCriterion->adGroupId, + $adGroupCriterion->criterion->id, + $adGroupCriterion->criterion->CriterionType); + } +} + +// 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. + AddAdGroupDemographicCriteriaExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/AddAdGroups.php b/examples/AdWords/v201309/BasicOperations/AddAdGroups.php new file mode 100755 index 000000000..888e0d2b5 --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/AddAdGroups.php @@ -0,0 +1,111 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$campaignId = 'INSERT_CAMPAIGN_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $campaignId the ID of the campaign to add the ad group to + */ +function AddAdGroupsExample(AdWordsUser $user, $campaignId) { + // Get the service, which loads the required classes. + $adGroupService = $user->GetService('AdGroupService', ADWORDS_VERSION); + + $numAdGroups = 2; + $operations = array(); + for ($i = 0; $i < $numAdGroups; $i++) { + // Create ad group. + $adGroup = new AdGroup(); + $adGroup->campaignId = $campaignId; + $adGroup->name = 'Earth to Mars Cruise #' . uniqid(); + + // Set bids (required). + $bid = new CpcBid(); + $bid->bid = new Money(1000000); + $bid->contentBid = new Money(750000); + $biddingStrategyConfiguration = new BiddingStrategyConfiguration(); + $biddingStrategyConfiguration->bids[] = $bid; + $adGroup->biddingStrategyConfiguration = $biddingStrategyConfiguration; + + // Set additional settings (optional). + $adGroup->status = 'ENABLED'; + + // Targetting restriction settings - these setting only affect serving + // for the Display Network. + $targetingSetting = new TargetingSetting(); + // Restricting to serve ads that match your ad group placements. + $targetingSetting->details[] = + new TargetingSettingDetail('PLACEMENT', TRUE); + // Using your ad group verticals only for bidding. + $targetingSetting->details[] = + new TargetingSettingDetail('VERTICAL', FALSE); + $adGroup->settings[] = $targetingSetting; + + // Create operation. + $operation = new AdGroupOperation(); + $operation->operand = $adGroup; + $operation->operator = 'ADD'; + $operations[] = $operation; + } + + // Make the mutate request. + $result = $adGroupService->mutate($operations); + + // Display result. + $adGroups = $result->value; + foreach ($adGroups as $adGroup) { + printf("Ad group with name '%s' and ID '%s' was added.\n", $adGroup->name, + $adGroup->id); + } +} + +// 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. + AddAdGroupsExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/AddCampaigns.php b/examples/AdWords/v201309/BasicOperations/AddCampaigns.php new file mode 100755 index 000000000..420639a20 --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/AddCampaigns.php @@ -0,0 +1,151 @@ + + * @author Eric Koleda + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function AddCampaignsExample(AdWordsUser $user) { + // Get the BudgetService, which loads the required classes. + $budgetService = $user->GetService('BudgetService', ADWORDS_VERSION); + + // Create the shared budget (required). + $budget = new Budget(); + $budget->name = 'Interplanetary Cruise Budget #' . uniqid(); + $budget->period = 'DAILY'; + $budget->amount = new Money(50000000); + $budget->deliveryMethod = 'STANDARD'; + + $operations = array(); + + // Create operation. + $operation = new BudgetOperation(); + $operation->operand = $budget; + $operation->operator = 'ADD'; + $operations[] = $operation; + + // Make the mutate request. + $result = $budgetService->mutate($operations); + $budget = $result->value[0]; + + // Get the CampaignService, which loads the required classes. + $campaignService = $user->GetService('CampaignService', ADWORDS_VERSION); + + $numCampaigns = 2; + $operations = array(); + for ($i = 0; $i < $numCampaigns; $i++) { + // Create campaign. + $campaign = new Campaign(); + $campaign->name = 'Interplanetary Cruise #' . uniqid(); + + // Set shared budget (required). + $campaign->budget = new Budget(); + $campaign->budget->budgetId = $budget->budgetId; + + // Set bidding strategy (required). + $biddingStrategyConfiguration = new BiddingStrategyConfiguration(); + $biddingStrategyConfiguration->biddingStrategyType = 'MANUAL_CPC'; + + // You can optionally provide a bidding scheme in place of the type. + $biddingScheme = new ManualCpcBiddingScheme(); + $biddingScheme->enhancedCpcEnabled = FALSE; + $biddingStrategyConfiguration->biddingScheme = $biddingScheme; + + $campaign->biddingStrategyConfiguration = $biddingStrategyConfiguration; + + // Set keyword matching setting (required). + $keywordMatchSetting = new KeywordMatchSetting(); + $keywordMatchSetting->optIn = TRUE; + $campaign->settings[] = $keywordMatchSetting; + + // Set network targeting (recommended). + $networkSetting = new NetworkSetting(); + $networkSetting->targetGoogleSearch = TRUE; + $networkSetting->targetSearchNetwork = TRUE; + $networkSetting->targetContentNetwork = TRUE; + $campaign->networkSetting = $networkSetting; + + // Set additional settings (optional). + $campaign->status = 'PAUSED'; + $campaign->startDate = date('Ymd', strtotime('+1 day')); + $campaign->endDate = date('Ymd', strtotime('+1 month')); + $campaign->adServingOptimizationStatus = 'ROTATE'; + + // Set frequency cap (optional). + $frequencyCap = new FrequencyCap(); + $frequencyCap->impressions = 5; + $frequencyCap->timeUnit = 'DAY'; + $frequencyCap->level = 'ADGROUP'; + $campaign->frequencyCap = $frequencyCap; + + // Set advanced location targeting settings (optional). + $geoTargetTypeSetting = new GeoTargetTypeSetting(); + $geoTargetTypeSetting->positiveGeoTargetType = 'DONT_CARE'; + $geoTargetTypeSetting->negativeGeoTargetType = 'DONT_CARE'; + $campaign->settings[] = $geoTargetTypeSetting; + + // Create operation. + $operation = new CampaignOperation(); + $operation->operand = $campaign; + $operation->operator = 'ADD'; + $operations[] = $operation; + } + + // Make the mutate request. + $result = $campaignService->mutate($operations); + + // Display results. + foreach ($result->value as $campaign) { + printf("Campaign with name '%s' and ID '%s' was added.\n", $campaign->name, + $campaign->id); + } +} + +// 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. + AddCampaignsExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/AddKeywords.php b/examples/AdWords/v201309/BasicOperations/AddKeywords.php new file mode 100755 index 000000000..7bdf0f2bb --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/AddKeywords.php @@ -0,0 +1,110 @@ +GetService('AdGroupCriterionService', ADWORDS_VERSION); + + $numKeywords = 5; + $operations = array(); + for ($i = 0; $i < $numKeywords; $i++) { + // Create keyword criterion. + $keyword = new Keyword(); + $keyword->text = 'mars cruise ' . uniqid(); + $keyword->matchType = 'BROAD'; + + // Create biddable ad group criterion. + $adGroupCriterion = new BiddableAdGroupCriterion(); + $adGroupCriterion->adGroupId = $adGroupId; + $adGroupCriterion->criterion = $keyword; + + // Set additional settings (optional). + $adGroupCriterion->userStatus = 'PAUSED'; + $adGroupCriterion->destinationUrl = '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; + + $adGroupCriteria[] = $adGroupCriterion; + + // Create operation. + $operation = new AdGroupCriterionOperation(); + $operation->operand = $adGroupCriterion; + $operation->operator = 'ADD'; + $operations[] = $operation; + } + + // Make the mutate request. + $result = $adGroupCriterionService->mutate($operations); + + // Display results. + foreach ($result->value as $adGroupCriterion) { + printf("Keyword with text '%s', match type '%s', and ID '%s' was added.\n", + $adGroupCriterion->criterion->text, + $adGroupCriterion->criterion->matchType, + $adGroupCriterion->criterion->id); + } +} + +// 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. + AddKeywordsExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/AddTextAds.php b/examples/AdWords/v201309/BasicOperations/AddTextAds.php new file mode 100755 index 000000000..c8b78cabb --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/AddTextAds.php @@ -0,0 +1,102 @@ +GetService('AdGroupAdService', ADWORDS_VERSION); + + $numAds = 5; + $operations = array(); + for ($i = 0; $i < $numAds; $i++) { + // Create text ad. + $textAd = new TextAd(); + $textAd->headline = 'Cruise #' . uniqid(); + $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'; + + // Create ad group ad. + $adGroupAd = new AdGroupAd(); + $adGroupAd->adGroupId = $adGroupId; + $adGroupAd->ad = $textAd; + + // Set additional settings (optional). + $adGroupAd->status = 'PAUSED'; + + // Create operation. + $operation = new AdGroupAdOperation(); + $operation->operand = $adGroupAd; + $operation->operator = 'ADD'; + $operations[] = $operation; + } + + // Make the mutate request. + $result = $adGroupAdService->mutate($operations); + + // Display results. + foreach ($result->value as $adGroupAd) { + printf("Text ad with headline '%s' and ID '%s' was added.\n", + $adGroupAd->ad->headline, $adGroupAd->ad->id); + } +} + +// 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. + AddTextAdsExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/DeleteAd.php b/examples/AdWords/v201309/BasicOperations/DeleteAd.php new file mode 100755 index 000000000..137fdb57e --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/DeleteAd.php @@ -0,0 +1,88 @@ +GetService('AdGroupAdService', ADWORDS_VERSION); + + // Create base class ad to avoid setting type specific fields. + $ad = new Ad(); + $ad->id = $adId; + + // Create ad group ad. + $adGroupAd = new AdGroupAd(); + $adGroupAd->adGroupId = $adGroupId; + $adGroupAd->ad = $ad; + + // Create operation. + $operation = new AdGroupAdOperation(); + $operation->operand = $adGroupAd; + $operation->operator = 'REMOVE'; + + $operations = array($operation); + + // Make the mutate request. + $result = $adGroupAdService->mutate($operations); + + // Display result. + $adGroupAd = $result->value[0]; + printf("Ad with ID '%s' was deleted.\n", $adGroupAd->ad->id); +} + +// 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. + DeleteAdExample($user, $adGroupId, $adId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/DeleteAdGroup.php b/examples/AdWords/v201309/BasicOperations/DeleteAdGroup.php new file mode 100755 index 000000000..4694b9c6d --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/DeleteAdGroup.php @@ -0,0 +1,84 @@ +GetService('AdGroupService', ADWORDS_VERSION); + + // Create ad group with DELETED status. + $adGroup = new AdGroup(); + $adGroup->id = $adGroupId; + $adGroup->status = 'DELETED'; + // Rename the ad group as you delete it, to avoid future name conflicts. + $adGroup->name = 'Deleted ' . date('Ymd his'); + + // Create operations. + $operation = new AdGroupOperation(); + $operation->operand = $adGroup; + $operation->operator = 'SET'; + + $operations = array($operation); + + // Make the mutate request. + $result = $adGroupService->mutate($operations); + + // Display result. + $adGroup = $result->value[0]; + printf("Ad group with ID '%s' was deleted.\n", $adGroup->id); +} + +// 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. + DeleteAdGroupExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/DeleteCampaign.php b/examples/AdWords/v201309/BasicOperations/DeleteCampaign.php new file mode 100755 index 000000000..94139c9c5 --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/DeleteCampaign.php @@ -0,0 +1,85 @@ + + * @author Eric Koleda + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$campaignId = 'INSERT_CAMPAIGN_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $campaignId the id of the campaign to delete + */ +function DeleteCampaignExample(AdWordsUser $user, $campaignId) { + // Get the service, which loads the required classes. + $campaignService = $user->GetService('CampaignService', ADWORDS_VERSION); + + // Create campaign with DELETED status. + $campaign = new Campaign(); + $campaign->id = $campaignId; + $campaign->status = 'DELETED'; + // Rename the campaign as you delete it, to avoid future name conflicts. + $campaign->name = 'Deleted ' . date('Ymd his'); + + // Create operations. + $operation = new CampaignOperation(); + $operation->operand = $campaign; + $operation->operator = 'SET'; + + $operations = array($operation); + + // Make the mutate request. + $result = $campaignService->mutate($operations); + + // Display result. + $campaign = $result->value[0]; + printf("Campaign with ID '%s' was deleted.\n", $campaign->id); +} + +// 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. + DeleteCampaignExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/DeleteKeyword.php b/examples/AdWords/v201309/BasicOperations/DeleteKeyword.php new file mode 100755 index 000000000..632bd391a --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/DeleteKeyword.php @@ -0,0 +1,92 @@ +GetService('AdGroupCriterionService', ADWORDS_VERSION); + + // Create criterion using an existing ID. Use the base class Criterion + // instead of Keyword to avoid having to set keyword-specific fields. + $criterion = new Criterion(); + $criterion->id = $criterionId; + + // Create ad group criterion. + $adGroupCriterion = new AdGroupCriterion(); + $adGroupCriterion->adGroupId = $adGroupId; + $adGroupCriterion->criterion = new Criterion($criterionId); + + // Create operation. + $operation = new AdGroupCriterionOperation(); + $operation->operand = $adGroupCriterion; + $operation->operator = 'REMOVE'; + + $operations = array($operation); + + // Make the mutate request. + $result = $adGroupCriterionService->mutate($operations); + + // Display result. + $adGroupCriterion = $result->value[0]; + printf("Keyword with ID '%s' was deleted.\n", + $adGroupCriterion->criterion->id); +} + +// 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. + DeleteKeywordExample($user, $adGroupId, $criterionId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/GetAdGroups.php b/examples/AdWords/v201309/BasicOperations/GetAdGroups.php new file mode 100755 index 000000000..fcfcb57ac --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/GetAdGroups.php @@ -0,0 +1,94 @@ +GetService('AdGroupService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('Id', 'Name'); + $selector->ordering[] = new OrderBy('Name', 'ASCENDING'); + + // Create predicates. + $selector->predicates[] = + new Predicate('CampaignId', 'IN', array($campaignId)); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $adGroupService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $adGroup) { + printf("Ad group with name '%s' and ID '%s' was found.\n", + $adGroup->name, $adGroup->id); + } + } else { + print "No ad groups were found.\n"; + } + + // Advance the paging index. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); +} + +// 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. + GetAdGroupsExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/GetCampaigns.php b/examples/AdWords/v201309/BasicOperations/GetCampaigns.php new file mode 100755 index 000000000..fb918a578 --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/GetCampaigns.php @@ -0,0 +1,87 @@ + + * @author Eric Koleda + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function GetCampaignsExample(AdWordsUser $user) { + // Get the service, which loads the required classes. + $campaignService = $user->GetService('CampaignService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('Id', 'Name'); + $selector->ordering[] = new OrderBy('Name', 'ASCENDING'); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $campaignService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $campaign) { + printf("Campaign with name '%s' and ID '%s' was found.\n", + $campaign->name, $campaign->id); + } + } else { + print "No campaigns were found.\n"; + } + + // Advance the paging index. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); +} + +// 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. + GetCampaignsExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/GetCampaignsWithAwql.php b/examples/AdWords/v201309/BasicOperations/GetCampaignsWithAwql.php new file mode 100755 index 000000000..ee2b801b3 --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/GetCampaignsWithAwql.php @@ -0,0 +1,86 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function GetCampaignsWithAwqlExample(AdWordsUser $user) { + // Get the service, which loads the required classes. + $campaignService = $user->GetService('CampaignService', ADWORDS_VERSION); + + // Create AWQL query. + $query = 'SELECT Id, Name, Status ORDER BY Name'; + + // Create paging controls. + $offset = 0; + + do { + $pageQuery = sprintf('%s LIMIT %d,%d', $query, $offset, + AdWordsConstants::RECOMMENDED_PAGE_SIZE); + // Make the query request. + $page = $campaignService->query($pageQuery); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $campaign) { + printf("Campaign with name '%s' and ID '%s' was found.\n", + $campaign->name, $campaign->id); + } + } else { + print "No campaigns were found.\n"; + } + + // Advance the paging offset. + $offset += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $offset); +} + +// 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. + GetCampaignsWithAwqlExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/GetKeywords.php b/examples/AdWords/v201309/BasicOperations/GetKeywords.php new file mode 100755 index 000000000..cc5fabec3 --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/GetKeywords.php @@ -0,0 +1,99 @@ +GetService('AdGroupCriterionService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('KeywordText', 'KeywordMatchType', 'Id'); + $selector->ordering[] = new OrderBy('KeywordText', 'ASCENDING'); + + // Create predicates. + $selector->predicates[] = new Predicate('AdGroupId', 'IN', array($adGroupId)); + $selector->predicates[] = + new Predicate('CriteriaType', 'IN', array('KEYWORD')); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $adGroupCriterionService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $adGroupCriterion) { + printf("Keyword with text '%s', match type '%s', and ID '%s' was " + . "found.\n", $adGroupCriterion->criterion->text, + $adGroupCriterion->criterion->matchType, + $adGroupCriterion->criterion->id); + } + } else { + print "No keywords were found.\n"; + } + + // Advance the paging index. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); +} + +// 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. + GetKeywordsExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/GetTextAds.php b/examples/AdWords/v201309/BasicOperations/GetTextAds.php new file mode 100755 index 000000000..a6db808b7 --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/GetTextAds.php @@ -0,0 +1,99 @@ +GetService('AdGroupAdService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('Headline', 'Id'); + $selector->ordering[] = new OrderBy('Headline', 'ASCENDING'); + + // Create predicates. + $selector->predicates[] = new Predicate('AdGroupId', 'IN', array($adGroupId)); + $selector->predicates[] = new Predicate('AdType', 'IN', array('TEXT_AD')); + // By default disabled ads aren't returned by the selector. To return them + // include the DISABLED status in a predicate. + $selector->predicates[] = + new Predicate('Status', 'IN', array('ENABLED', 'PAUSED', 'DISABLED')); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $adGroupAdService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $adGroupAd) { + printf("Text ad with headline '%s' and ID '%s' was found.\n", + $adGroupAd->ad->headline, $adGroupAd->ad->id); + } + } else { + print "No text ads were found.\n"; + } + + // Advance the paging index. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); +} + +// 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. + GetTextAdsExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/PauseAd.php b/examples/AdWords/v201309/BasicOperations/PauseAd.php new file mode 100755 index 000000000..dcd4451ab --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/PauseAd.php @@ -0,0 +1,93 @@ +GetService('AdGroupAdService', ADWORDS_VERSION); + + // Create ad using an existing ID. Use the base class Ad instead of TextAd to + // avoid having to set ad-specific fields. + $ad = new Ad(); + $ad->id = $adId; + + // Create ad group ad. + $adGroupAd = new AdGroupAd(); + $adGroupAd->adGroupId = $adGroupId; + $adGroupAd->ad = $ad; + + // Update the status. + $adGroupAd->status = 'PAUSED'; + + // Create operation. + $operation = new AdGroupAdOperation(); + $operation->operand = $adGroupAd; + $operation->operator = 'SET'; + + $operations = array($operation); + + // Make the mutate request. + $result = $adGroupAdService->mutate($operations); + + // Display result. + $adGroupAd = $result->value[0]; + printf("Ad of type '%s' with ID '%s' has updated status '%s'.\n", + $adGroupAd->ad->AdType, $adGroupAd->ad->id, $adGroupAd->status); +} + +// 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. + PauseAdExample($user, $adGroupId, $adId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/UpdateAdGroup.php b/examples/AdWords/v201309/BasicOperations/UpdateAdGroup.php new file mode 100755 index 000000000..5a87234c0 --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/UpdateAdGroup.php @@ -0,0 +1,92 @@ +GetService('AdGroupService', ADWORDS_VERSION); + + // Create ad group using an existing ID. + $adGroup = new AdGroup(); + $adGroup->id = $adGroupId; + + // Update the bid. + $bid = new CpcBid(); + $bid->bid = new Money(0.75 * AdWordsConstants::MICROS_PER_DOLLAR); + $biddingStrategyConfiguration = new BiddingStrategyConfiguration(); + $biddingStrategyConfiguration->bids[] = $bid; + $adGroup->biddingStrategyConfiguration = $biddingStrategyConfiguration; + + // Create operation. + $operation = new AdGroupOperation(); + $operation->operand = $adGroup; + $operation->operator = 'SET'; + + $operations = array($operation); + + // Make the mutate request. + $result = $adGroupService->mutate($operations); + + // Display result. + $adGroup = $result->value[0]; + printf("Ad group with ID '%s' has updated default bid '$%s'.\n", $adGroup->id, + $adGroup->biddingStrategyConfiguration->bids[0]->bid->microAmount / + AdWordsConstants::MICROS_PER_DOLLAR); + +} + +// 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. + UpdateAdGroupExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/UpdateCampaign.php b/examples/AdWords/v201309/BasicOperations/UpdateCampaign.php new file mode 100755 index 000000000..9ec5346ae --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/UpdateCampaign.php @@ -0,0 +1,84 @@ + + * @author Eric Koleda + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$campaignId = 'INSERT_CAMPAIGN_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $campaignId the ID of the campaign to update + */ +function UpdateCampaignExample(AdWordsUser $user, $campaignId) { + // Get the service, which loads the required classes. + $campaignService = $user->GetService('CampaignService', ADWORDS_VERSION); + + // Create campaign using an existing ID. + $campaign = new Campaign(); + $campaign->id = $campaignId; + $campaign->status = 'PAUSED'; + + // Create operation. + $operation = new CampaignOperation(); + $operation->operand = $campaign; + $operation->operator = 'SET'; + + $operations = array($operation); + + // Make the mutate request. + $result = $campaignService->mutate($operations); + + // Display result. + $campaign = $result->value[0]; + printf("Campaign with ID '%s' was paused.\n", $campaign->id); +} + +// 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. + UpdateCampaignExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/UpdateKeyword.php b/examples/AdWords/v201309/BasicOperations/UpdateKeyword.php new file mode 100755 index 000000000..a76859236 --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/UpdateKeyword.php @@ -0,0 +1,93 @@ +GetService('AdGroupCriterionService', ADWORDS_VERSION); + + // Create ad group criterion. + $adGroupCriterion = new BiddableAdGroupCriterion(); + $adGroupCriterion->adGroupId = $adGroupId; + // Create criterion using an existing ID. Use the base class Criterion + // instead of Keyword to avoid having to set keyword-specific fields. + $adGroupCriterion->criterion = new Criterion($criterionId); + + // Update destination URL. + $adGroupCriterion->destinationUrl = 'http://www.example.com/new'; + + // Create operation. + $operation = new AdGroupCriterionOperation(); + $operation->operand = $adGroupCriterion; + $operation->operator = 'SET'; + + $operations = array($operation); + + // Make the mutate request. + $result = $adGroupCriterionService->mutate($operations); + + // Display result. + $adGroupCriterion = $result->value[0]; + printf("Keyword with ID '%s' has updated destination URL '%s'.\n", + $adGroupCriterion->criterion->id, $adGroupCriterion->destinationUrl); +} + +// 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. + UpdateKeywordExample($user, $adGroupId, $criterionId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/CampaignManagement/AddExperiment.php b/examples/AdWords/v201309/CampaignManagement/AddExperiment.php new file mode 100755 index 000000000..3ac309b02 --- /dev/null +++ b/examples/AdWords/v201309/CampaignManagement/AddExperiment.php @@ -0,0 +1,163 @@ +GetService('ExperimentService', ADWORDS_VERSION); + $adGroupService = $user->GetService('AdGroupService', ADWORDS_VERSION); + $adGroupCriterionService = + $user->GetService('AdGroupCriterionService', ADWORDS_VERSION); + + // Create experiment. + $experiment = new Experiment(); + $experiment->campaignId = $campaignId; + $experiment->name = 'Interplanetary Experiment #' . uniqid(); + $experiment->queryPercentage = 10; + + // Set additional settings (optional). + $experiment->startDateTime = date('Ymd His', strtotime('+1 day')); + $experiment->endDateTime = date('Ymd His', strtotime('+1 month')); + + // Create operation. + $experimentOperation = new ExperimentOperation(); + $experimentOperation->operand = $experiment; + $experimentOperation->operator = 'ADD'; + + $experimentOperations = array($experimentOperation); + + // Make the mutate request. + $result = $experimentService->mutate($experimentOperations); + + // Display result. + $experiment = $result->value[0]; + printf ("Experiment with name '%s' and ID '%.0f' was added.\n", + $experiment->name, $experiment->id); + + // Create ad group bid multipliers to be used in the experiment. + $adGroupBidMultipliers = new ManualCPCAdGroupExperimentBidMultipliers(); + $adGroupBidMultipliers->maxCpcMultiplier = new BidMultiplier(1.5); + + // Create ad group experiment data. + $adGroupExperimentData = new AdGroupExperimentData(); + $adGroupExperimentData->experimentId = $experiment->id; + $adGroupExperimentData->experimentDeltaStatus = 'MODIFIED'; + $adGroupExperimentData->experimentBidMultipliers = $adGroupBidMultipliers; + + // Create updated ad group. + $adGroup = new AdGroup(); + $adGroup->id = $adGroupId; + $adGroup->experimentData = $adGroupExperimentData; + + // Create operation. + $adGroupOperation = new AdGroupOperation(); + $adGroupOperation->operand = $adGroup; + $adGroupOperation->operator = 'SET'; + + $adGroupOperations = array($adGroupOperation); + + // Make the mutate request. + $result = $adGroupService->mutate($adGroupOperations); + + // Display result. + $adGroup = $result->value[0]; + printf ("Ad group with name '%s' and ID '%.0f' was updated in the " + . "experiment.\n", $adGroup->name, $adGroup->id); + + // Create experiment data for a new experiment-only keyword. + $adGroupCriterionExperimentData = + new BiddableAdGroupCriterionExperimentData(); + $adGroupCriterionExperimentData->experimentId = $experiment->id; + $adGroupCriterionExperimentData->experimentDeltaStatus = 'EXPERIMENT_ONLY'; + + // Create keyword. + $keyword = new Keyword('mars tour', 'BROAD'); + + // Create ad group criterion. + $adGroupCriterion = new BiddableAdGroupCriterion(); + $adGroupCriterion->adGroupId = $adGroupId; + $adGroupCriterion->criterion = $keyword; + $adGroupCriterion->experimentData = $adGroupCriterionExperimentData; + + // Create operation. + $adGroupCriterionOperation = new AdGroupCriterionOperation(); + $adGroupCriterionOperation->operand = $adGroupCriterion; + $adGroupCriterionOperation->operator = 'ADD'; + + $adGroupCriterionOperations = array($adGroupCriterionOperation); + + // Make the mutate request. + $result = $adGroupCriterionService->mutate($adGroupCriterionOperations); + + // Display result. + $adGroupCriterion = $result->value[0]; + printf("Keyword with text '%s', match type '%s', and ID '%s' was added to " + . "the experiment.\n", + $adGroupCriterion->criterion->text, + $adGroupCriterion->criterion->matchType, + $adGroupCriterion->criterion->id); +} + +// 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. + AddExperimentExample($user, $campaignId, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/CampaignManagement/AddKeywordsInBulk.php b/examples/AdWords/v201309/CampaignManagement/AddKeywordsInBulk.php new file mode 100755 index 000000000..de78da77a --- /dev/null +++ b/examples/AdWords/v201309/CampaignManagement/AddKeywordsInBulk.php @@ -0,0 +1,205 @@ +GetService('MutateJobService', ADWORDS_VERSION); + + // Generate operations. + $numKeywords = 100; + $operations = array(); + for ($i = 0; $i < $numKeywords; $i++) { + $keyword = new Keyword(); + // Randomly add invalid characters to keywords. + if (rand(0, 9) == 0) { + $keyword->text = 'keyword!!!' . uniqid(); + } else { + $keyword->text = 'keyword' . uniqid(); + } + $keyword->matchType = 'BROAD'; + + $adGroupCriterion = new BiddableAdGroupCriterion(); + $adGroupCriterion->adGroupId = $adGroupId; + $adGroupCriterion->criterion = $keyword; + + $operation = new AdGroupCriterionOperation(); + $operation->operator = 'ADD'; + $operation->operand = $adGroupCriterion; + $operations[] = $operation; + } + + // You can specify up to 3 job IDs that must successfully complete before + // this job can be processed. We won't set any in this example. + $policy = new BulkMutateJobPolicy(); + $policy->prerequisiteJobIds = array(); + + // Call mutate to create a new job. + printf("Creating job with %d operations.\n", sizeof($operations)); + $job = $mutateJobService->mutate($operations, $policy); + printf("Job with ID '%s' was created.\n", $job->id); + + // Create a selector for retrieving the job status and later its results. + $selector = new BulkMutateJobSelector(); + $selector->jobIds[] = $job->id; + $selector->includeStats = TRUE; + $selector->includeHistory = TRUE; + + $numRetries = 0; + $maxRetries = 100; + $retryInterval = 10; + do { + sleep($retryInterval); + $jobs = $mutateJobService->get($selector); + $job = $jobs[0]; + switch ($job->status) { + case 'PENDING': + printf("The job has been pending for approximately %s.\n", + strftime('%M:%S', time() - strtotime($job->history[0]->dateTime))); + break; + case 'PROCESSING': + printf("The job is processing and approximately %d%% complete.\n", + $job->stats->progressPercent); + break; + case 'COMPLETED': + printf("The job is complete and took approximately %d seconds to " + ."process.\n", $job->stats->processingTimeMillis / 100); + break; + case 'FAILED': + printf("The job failed with reason '%s'.\n", + ChoiceUtils::GetValue($job->failureReason)); + break; + } + $numRetries++; + } while (($job->status == 'PENDING' || $job->status == 'PROCESSING') && + $numRetries < $maxRetries); + + if ($job->status == 'COMPLETED') { + // Retrieve the results of the job. + $jobResult = ChoiceUtils::GetValue( + $mutateJobService->getResult($selector)); + + // Sort the keywords into groups based on the results. + $lost = array(); + $skipped = array(); + $failed = array(); + $errors = array(); + $genericErrors = array(); + + // Examines the errors to determine which keywords failed to be applied. + foreach ($jobResult->errors as $error) { + $index = OgnlUtils::GetOperationIndex($error->fieldPath); + if (isset($index)) { + $keywordText = $operations[$index]->operand->criterion->text; + switch ($error->reason) { + case 'LOST_RESULT': + $lost[] = $keywordText; + break; + case 'UNPROCESSED_RESULT': + case 'BATCH_FAILURE': + $skipped[] = $keywordText; + break; + default: + if (!in_array($keywordText, $failed)) { + $failed[] = $keywordText; + } + $errors[$keywordText][] = $error; + } + } else { + $genericErrors[] = $error; + } + } + + // Examine the results to determine which keywords were added successfully. + $succeeded = array(); + for ($i = 0; $i < sizeof($jobResult->results); $i++) { + $operation = $operations[$i]; + $result = ChoiceUtils::GetValue($jobResult->results[$i]); + if ($result instanceof AdGroupCriterion) { + $succeeded[] = $result->criterion->text; + } + } + + // Display the results of the job. + printf("%d keywords were added successfully: %s\n", sizeof($succeeded), + implode(', ', $succeeded)); + + printf("%d keywords were skipped and should be retried: %s\n", + sizeof($skipped), implode(', ', $skipped)); + + printf("%d keywords were not added due to errors:\n", sizeof($failed)); + foreach ($failed as $keywordText) { + $errorStrings = array(); + foreach ($errors[$keywordText] as $error) { + $errorStrings[] = $error->errorString; + } + printf("- %s: %s\n", $keywordText, implode(', ', $errorStrings)); + } + + printf("%d generic errors were encountered:\n", sizeof($genericErrors)); + foreach($genericErrors as $error) { + printf("- %s\n", $error->errorString); + } + } +} + +// 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. + AddKeywordsInBulkExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/CampaignManagement/AddLocationExtension.php b/examples/AdWords/v201309/CampaignManagement/AddLocationExtension.php new file mode 100755 index 000000000..a02a122b7 --- /dev/null +++ b/examples/AdWords/v201309/CampaignManagement/AddLocationExtension.php @@ -0,0 +1,130 @@ +GetService('GeoLocationService', ADWORDS_VERSION); + $campaignAdExtensionService = + $user->GetService('CampaignAdExtensionService', ADWORDS_VERSION); + + // Create address. + $address = new Address(); + $address->streetAddress = '1600 Amphitheatre Parkway'; + $address->cityName = 'Mountain View'; + $address->provinceCode = 'US-CA'; + $address->postalCode = '94043'; + $address->countryCode = 'US'; + + // Create geo location selector. + $selector = new GeoLocationSelector(); + $selector->addresses = array($address); + + // Make the get request. + $result = $geoLocationService->get($selector); + + // Display result. + $geoLocation = $result[0]; + if ($geoLocation->GeoLocationType != 'InvalidGeoLocation') { + $lat = $geoLocation->geoPoint->latitudeInMicroDegrees / + AdWordsConstants::MICRO_DEGREES_PER_DEGREE; + $long = $geoLocation->geoPoint->longitudeInMicroDegrees / + AdWordsConstants::MICRO_DEGREES_PER_DEGREE; + printf("Address with street '%s' and lat/long '%s/%s' was found.\n", + $geoLocation->address->streetAddress, $lat, $long); + } else { + printf("Address with street '%s' could not be found.\n", + $address->streetAddress); + exit; + } + + // Create location extension. + $locationExtension = new LocationExtension(); + $locationExtension->address = $geoLocation->address; + $locationExtension->geoPoint = $geoLocation->geoPoint; + $locationExtension->encodedLocation = $geoLocation->encodedLocation; + $locationExtension->source = 'ADWORDS_FRONTEND'; + + // Set additional settings (optional). + $locationExtension->companyName = 'ACME Inc.'; + $locationExtension->phoneNumber = '(650) 253-0000'; + + // Create campaign ad extension. + $campaignAdExtension = new CampaignAdExtension(); + $campaignAdExtension->campaignId = $campaignId; + $campaignAdExtension->adExtension = $locationExtension; + + // Create operation. + $operation = new CampaignAdExtensionOperation(); + $operation->operand = $campaignAdExtension; + $operation->operator = 'ADD'; + + $operations = array($operation); + + // Make the mutate request. + $result = $campaignAdExtensionService->mutate($operations); + + // Display result. + $campaignAdExtension = $result->value[0]; + printf("Location extension with street address '%s' and ID '%s' was added.\n", + $campaignAdExtension->adExtension->address->streetAddress, + $campaignAdExtension->adExtension->id); +} + +// 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. + AddLocationExtensionExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/CampaignManagement/GetAllDisapprovedAds.php b/examples/AdWords/v201309/CampaignManagement/GetAllDisapprovedAds.php new file mode 100755 index 000000000..448f02c6e --- /dev/null +++ b/examples/AdWords/v201309/CampaignManagement/GetAllDisapprovedAds.php @@ -0,0 +1,103 @@ +GetService('AdGroupAdService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('Id', 'AdGroupAdDisapprovalReasons'); + $selector->ordering = array(new OrderBy('Id', 'ASCENDING')); + + // Create predicates. + $selector->predicates[] = new Predicate('AdGroupId', 'IN', array($adGroupId)); + $selector->predicates[] = + new Predicate('AdGroupCreativeApprovalStatus', 'IN', + array('DISAPPROVED')); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $adGroupAdService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $adGroupAd) { + printf("Ad with ID '%.0f', and type '%s' was disapproved for the " + . "following reasons:\n", $adGroupAd->ad->id, + $adGroupAd->ad->AdType); + if (!empty($adGroupAd->disapprovalReasons)) { + foreach ($adGroupAd->disapprovalReasons as $reason) { + printf("\t'%s'\n", $reason); + } + } + } + } else { + print "No disapproved ads were found.\n"; + } + + // Advance the paging index. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); +} + +// 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. + GetAllDisapprovedAdsExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/CampaignManagement/GetAllDisapprovedAdsWithAwql.php b/examples/AdWords/v201309/CampaignManagement/GetAllDisapprovedAdsWithAwql.php new file mode 100755 index 000000000..3a5d0965f --- /dev/null +++ b/examples/AdWords/v201309/CampaignManagement/GetAllDisapprovedAdsWithAwql.php @@ -0,0 +1,100 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$adGroupId = 'INSERT_AD_GROUP_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $adGroupId the parent ad group id of the ads to retrieve + */ +function GetAllDisapprovedAdsWithAwqlExample(AdWordsUser $user, $adGroupId) { + // Get the service, which loads the required classes. + $adGroupAdService = $user->GetService('AdGroupAdService', ADWORDS_VERSION); + + // Create a query. + $query = sprintf('SELECT Id, AdGroupAdDisapprovalReasons WHERE AdGroupId = ' + . '%d AND AdGroupCreativeApprovalStatus = DISAPPROVED ORDER BY Id', + $adGroupId); + + // Create paging controls. + $offset = 0; + + do { + $pageQuery = sprintf('%s LIMIT %d,%d', $query, $offset, + AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + // Make the query request. + $page = $adGroupAdService->query($pageQuery); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $adGroupAd) { + printf("Ad with ID '%.0f', and type '%s' was disapproved for the " + . "following reasons:\n", $adGroupAd->ad->id, + $adGroupAd->ad->AdType); + if (!empty($adGroupAd->disapprovalReasons)) { + foreach ($adGroupAd->disapprovalReasons as $reason) { + printf("\t'%s'\n", $reason); + } + } + } + } else { + print "No disapproved ads were found.\n"; + } + + // Advance the paging offset. + $offset += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $offset); +} + +// 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. + GetAllDisapprovedAdsWithAwqlExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/CampaignManagement/PromoteExperiment.php b/examples/AdWords/v201309/CampaignManagement/PromoteExperiment.php new file mode 100755 index 000000000..713a7a06e --- /dev/null +++ b/examples/AdWords/v201309/CampaignManagement/PromoteExperiment.php @@ -0,0 +1,86 @@ +GetService('ExperimentService', ADWORDS_VERSION); + + // Create experiment with PROMOTED status. + $experiment = new Experiment(); + $experiment->id = $experimentId; + $experiment->status = 'PROMOTED'; + + // Create operation. + $operation = new ExperimentOperation(); + $operation->operand = $experiment; + $operation->operator = 'SET'; + + $operations = array($operation); + + // Make the mutate request. + $result = $experimentService->mutate($operations); + + // Display result. + $experiment = $result->value[0]; + printf ("Experiment with name '%s' and ID '%s' was promoted.\n", + $experiment->name, $experiment->id); +} + +// 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. + PromoteExperimentExample($user, $experimentId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/CampaignManagement/SetAdParameters.php b/examples/AdWords/v201309/CampaignManagement/SetAdParameters.php new file mode 100755 index 000000000..6eea8a1b6 --- /dev/null +++ b/examples/AdWords/v201309/CampaignManagement/SetAdParameters.php @@ -0,0 +1,93 @@ +GetService('AdParamService', ADWORDS_VERSION); + + // Create ad parameters. + $adParam1 = new AdParam($adGroupId, $keywordId, '100', 1); + $adParam2 = new AdParam($adGroupId, $keywordId, '$40', 2); + + // Create operations. + $operations = array(); + + $adParamOperation1 = new AdParamOperation(); + $adParamOperation1->operand = $adParam1; + $adParamOperation1->operator = 'SET'; + $operations[] = $adParamOperation1; + + $adParamOperation2 = new AdParamOperation(); + $adParamOperation2->operand = $adParam2; + $adParamOperation2->operator = 'SET'; + $operations[] = $adParamOperation2; + + // Make the mutate request. + $adParams = $adParamService->mutate($operations); + + // Display results. + foreach ($adParams as $adParam) { + printf("Ad parameter with insertion text '%s' and parameter index '%s' " + . "was set.\n", $adParam->insertionText, $adParam->paramIndex); + } +} + +// 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. + SetAdParametersExample($user, $adGroupId, $keywordId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/CampaignManagement/SetBidModifier.php b/examples/AdWords/v201309/CampaignManagement/SetBidModifier.php new file mode 100755 index 000000000..b4fabdc3b --- /dev/null +++ b/examples/AdWords/v201309/CampaignManagement/SetBidModifier.php @@ -0,0 +1,102 @@ +GetService("CampaignCriterionService", ADWORDS_VERSION); + + // Create Mobile Platform. The ID can be found in the documentation. + // https://developers.google.com/adwords/api/docs/appendix/platforms + $mobile = new Platform(); + $mobile->id = 30001; // HighEndMobile = 30001 + + // Create criterion with modified bid. + $criterion = new CampaignCriterion(); + $criterion->campaignId = $campaignId; + $criterion->criterion = $mobile; + $criterion->bidModifier = $bidModifier; + + // Create SET operation. + $operation = new CampaignCriterionOperation(); + $operation->operator = "SET"; + $operation->operand = $criterion; + + // Update campaign criteria. + $results = $campaignCriterionService->mutate(array($operation)); + + // Display campaign criteria. + if (count($results->value)) { + foreach ($results->value as $campaignCriterion) { + printf( + "Campaign criterion with campaign ID '%s', criterion ID '%s', " + . "and type '%s' was modified with bid %.2f.\n", + $campaignCriterion->campaignId, + $campaignCriterion->criterion->id, + $campaignCriterion->criterion->type, + $campaignCriterion->bidModifier); + } + + return true; + } + print "No campaign criterias were modified."; +} + +// 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. + SetBidModifierExample($user, $campaignId, $bidModifier); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/CampaignManagement/ValidateTextAd.php b/examples/AdWords/v201309/CampaignManagement/ValidateTextAd.php new file mode 100755 index 000000000..75e323f2c --- /dev/null +++ b/examples/AdWords/v201309/CampaignManagement/ValidateTextAd.php @@ -0,0 +1,106 @@ +GetService('AdGroupAdService', ADWORDS_VERSION, NULL, NULL, TRUE); + + // Create invalid text ad. + $textAd = new TextAd(); + $textAd->headline = 'This headline is too long and will cause an error'; + $textAd->description1 = 'Description Line 1'; + $textAd->description2 = 'Description Line 2'; + $textAd->displayUrl = 'www.example.com'; + $textAd->url = 'http://www.example.com'; + + // Create ad group ad. + $adGroupAd = new AdGroupAd(); + $adGroupAd->adGroupId = $adGroupId; + $adGroupAd->ad = $textAd; + + // Create operation. + $operation = new AdGroupAdOperation(); + $operation->operand = $adGroupAd; + $operation->operator = 'ADD'; + + $operations = array($operation); + + // Make the mutate request. + try { + $result = $adGroupAdValidationService->mutate($operations); + printf("The text ad is valid.\n"); + } catch (SoapFault $e) { + $errors = ErrorUtils::GetApiErrors($e); + if (sizeof($errors) > 0) { + printf("The text ad is invalid for the following reasons:\n"); + foreach ($errors as $error) { + printf(" %s @ %s\n", $error->errorString, $error->fieldPath); + } + } else { + // Not an API error, so throw it up a level. + throw $e; + } + } +} + +// 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. + ValidateTextAdExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/ErrorHandling/HandlePartialFailures.php b/examples/AdWords/v201309/ErrorHandling/HandlePartialFailures.php new file mode 100755 index 000000000..5a6d59780 --- /dev/null +++ b/examples/AdWords/v201309/ErrorHandling/HandlePartialFailures.php @@ -0,0 +1,116 @@ +GetService('AdGroupCriterionService', + ADWORDS_VERSION, NULL, NULL, NULL, TRUE); + + // Create keywords. + $keywords = array(); + $keywords[] = new Keyword('mars cruise', 'BROAD'); + $keywords[] = new Keyword('inv@lid cruise', 'BROAD'); + $keywords[] = new Keyword('venus cruise', 'BROAD'); + $keywords[] = new Keyword('b(a)d keyword cruise', 'BROAD'); + + // Create ad group criteria and operations. + $operations = array(); + foreach ($keywords as $keyword) { + $adGroupCriterion = new BiddableAdGroupCriterion(); + $adGroupCriterion->adGroupId = $adGroupId; + $adGroupCriterion->criterion = $keyword; + + $operation = new AdGroupCriterionOperation(); + $operation->operand = $adGroupCriterion; + $operation->operator = 'ADD'; + + $operations[] = $operation; + } + + // Make the mutate request. + $result = $adGroupCriterionService->mutate($operations); + + // Display results. + foreach ($result->value as $adGroupCriterion) { + if ($adGroupCriterion->AdGroupCriterionType == 'BiddableAdGroupCriterion') { + printf("Keyword with text '%s', match type '%s', and ID '%s' was " + . "added.\n", $adGroupCriterion->criterion->text, + $adGroupCriterion->criterion->matchType, + $adGroupCriterion->criterion->id); + } + } + + // Check for partial failures. + if (isset($result->partialFailureErrors)) { + foreach ($result->partialFailureErrors as $error) { + $index = ErrorUtils::GetSourceOperationIndex($error); + if (isset($index)) { + $adGroupCriterion = $operations[$index]->operand; + printf("Keyword with text '%s' and match type '%s' failed with error " + . "'%s'.\n", $adGroupCriterion->criterion->text, + $adGroupCriterion->criterion->matchType, $error->errorString); + } else { + printf("Operations failed with error '%s'.\n", $error->errorString); + } + } + } +} + +// 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. + HandlePartialFailuresExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/ErrorHandling/HandlePolicyViolationError.php b/examples/AdWords/v201309/ErrorHandling/HandlePolicyViolationError.php new file mode 100755 index 000000000..8fd733cb6 --- /dev/null +++ b/examples/AdWords/v201309/ErrorHandling/HandlePolicyViolationError.php @@ -0,0 +1,146 @@ +GetService('AdGroupAdService', ADWORDS_VERSION); + + // Get validateOnly version of the AdGroupAdService. + $adGroupAdValidationService = + $user->GetService('AdGroupAdService', ADWORDS_VERSION, NULL, NULL, TRUE); + + // Create text ad that violates an exemptable policy. This ad will only + // trigger an error in the production environment. + $textAd = new TextAd(); + $textAd->headline = 'Mars Cruise !!!'; + $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/'; + + // Create ad group ad. + $adGroupAd = new AdGroupAd(); + $adGroupAd->adGroupId = $adGroupId; + $adGroupAd->ad = $textAd; + + // Create operation. + $operation = new AdGroupAdOperation(); + $operation->operand = $adGroupAd; + $operation->operator = 'ADD'; + + $operations = array($operation); + + try { + // Make the mutate request. + $result = $adGroupAdValidationService->mutate($operations); + } catch (SoapFault $fault) { + $errors = ErrorUtils::GetApiErrors($fault); + if (sizeof($errors) == 0) { + // Not an API error, so throw fault. + throw $fault; + } + $operationIndicesToRemove = array(); + foreach ($errors as $error) { + if ($error->ApiErrorType == 'PolicyViolationError') { + $operationIndex = ErrorUtils::GetSourceOperationIndex($error); + $operation = $operations[$operationIndex]; + printf("Ad with headline '%s' violated %s policy '%s'.\n", + $operation->operand->ad->headline, + $error->isExemptable ? 'exemptable' : 'non-exemptable', + $error->externalPolicyName); + if ($error->isExemptable) { + // Add exemption request to the operation. + printf("Adding exemption request for policy name '%s' on text " + ."'%s'.\n", $error->key->policyName, $error->key->violatingText); + $operation->exemptionRequests[] = new ExemptionRequest($error->key); + } else { + // Remove non-exemptable operation. + print "Removing the operation from the request.\n"; + $operationIndicesToRemove[] = $operationIndex; + } + } else { + // Non-policy error returned, throw fault. + throw $fault; + } + } + $operationIndicesToRemove = array_unique($operationIndicesToRemove); + rsort($operationIndicesToRemove, SORT_NUMERIC); + if (sizeof($operationIndicesToRemove) > 0) { + foreach ($operationIndicesToRemove as $operationIndex) { + unset($operations[$operationIndex]); + } + } + } + + if (sizeof($operations) > 0) { + // Retry the mutate request. + $result = $adGroupAdService->mutate($operations); + + // Display results. + foreach ($result->value as $adGroupAd) { + printf("Text ad with headline '%s' and ID '%s' was added.\n", + $adGroupAd->ad->headline, $adGroupAd->ad->id); + } + } else { + print "All the operations were invalid with non-exemptable errors.\n"; + } +} + +// 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. + HandlePolicyViolationErrorExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/ErrorHandling/HandleTwoFactorAuthorizationError.php b/examples/AdWords/v201309/ErrorHandling/HandleTwoFactorAuthorizationError.php new file mode 100755 index 000000000..437373c5a --- /dev/null +++ b/examples/AdWords/v201309/ErrorHandling/HandleTwoFactorAuthorizationError.php @@ -0,0 +1,65 @@ + + * @author Eric Koleda + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Runs the example. + */ +function HandleTwoFactorAuthorizationErrorExample() { + // Create an AdWordsUser using the credentials for a 2-step tester account. + $user = new AdWordsUser(NULL, '2steptester@gmail.com', 'testaccount'); + + try { + $authToken = $user->GetAuthToken(); + printf("Successfully retrieved auth token for the account '%s': '%s'\n", + $user->GetEmail(), $authToken); + } catch (AuthTokenException $e) { + if (strpos($e->GetError(), 'InvalidSecondFactor') !== FALSE) { + // See http://goo.gl/SHgXV for more details. + print "The account has 2-step verification enabled, so an " + . "application-specific password must be used instead.\n"; + } else { + print "Invalid email or password.\n"; + } + } +} + +// Don't run the example if the file is being included. +if (__FILE__ != realpath($_SERVER['PHP_SELF'])) { + return; +} + +try { + // Run the example. + HandleTwoFactorAuthorizationErrorExample(); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Express/AddExpressBusinesses.php b/examples/AdWords/v201309/Express/AddExpressBusinesses.php new file mode 100755 index 000000000..ff829bf19 --- /dev/null +++ b/examples/AdWords/v201309/Express/AddExpressBusinesses.php @@ -0,0 +1,94 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function AddExpressBusinessesExample(AdWordsUser $user) { + // Get the service, which loads the required classes. + $businessService = $user->GetService('ExpressBusinessService', + ADWORDS_VERSION); + + $business1 = new ExpressBusiness(); + $business1->status = 'ACTIVE'; + $business1->name = 'Express Interplanetary Cruise #' . uniqid(); + $business1->address = new Address('1600 Amphitheatre Pkwy', null, + 'Mountain View', 'CA', null, null, 'US'); + $business1->website = 'http://www.example.com/cruise1'; + + $business2 = new ExpressBusiness(); + $business2->status = 'ACTIVE'; + $business2->name = 'Express Interplanetary Cruise #' . uniqid(); + $business2->address = new Address('1600 Amphitheatre Pkwy', null, + 'Mountain View', 'CA', null, null, 'US'); + $business2->website = 'http://www.example.com/cruise2'; + + $operations = array(); + + $operation1 = new ExpressBusinessOperation(); + $operation1->operand = $business1; + $operation1->operator = 'ADD'; + $operations[] = $operation1; + + $operation2 = new ExpressBusinessOperation(); + $operation2->operand = $business2; + $operation2->operator = 'ADD'; + $operations[] = $operation2; + + $addedBusinesses = $businessService->mutate($operations); + + foreach($addedBusinesses as $addedBusiness) { + printf("Added express business with ID %d and name '%s'\n", + $addedBusiness->id, $addedBusiness->name); + } +} + +// 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. + AddExpressBusinessesExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Express/AddPromotion.php b/examples/AdWords/v201309/Express/AddPromotion.php new file mode 100755 index 000000000..0663f09e5 --- /dev/null +++ b/examples/AdWords/v201309/Express/AddPromotion.php @@ -0,0 +1,143 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$businessId = 'INSERT_BUSINESS_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function AddPromotionExample(AdWordsUser $user, $businessId) { + // Get the business service, which loads the required classes. + $businessService = $user->GetService('ExpressBusinessService', + ADWORDS_VERSION); + + // Get the business for the businessId. We will need its geo point + // to create a Proximity criterion for the new Promotion. + $businessSelector = new Selector(); + $businessSelector->fields = array('Id', 'GeoPoint'); + + $businessPredicate = new Predicate('Id', 'EQUALS', + array($businessId)); + $businessSelector->predicates = array($businessPredicate); + + $businessEntries = $businessService->get($businessSelector)->entries; + $business = $businessEntries[0]; + + // PromotionService requires the businessId on the user. + $user->SetExpressBusinessId($businessId); + + // Get the promotion service. + $promotionService = $user->GetService('PromotionService', + ADWORDS_VERSION); + + // Set up the new Promotion. + $marsTourPromotion = new Promotion(); + $budget = new Money(); + $budget->microAmount = 1000000; + $marsTourPromotion->name = 'Mars Tour Promotion ' . uniqid(); + $marsTourPromotion->status = 'PAUSED'; + $marsTourPromotion->destinationUrl = 'http://www.example.com'; + $marsTourPromotion->budget = $budget; + $marsTourPromotion->callTrackingEnabled = TRUE; + + // Criteria + $criteria = array(); + + // Criterion - Travel Agency product service + $productService = new ProductService(); + $productService->text = 'Travel Agency'; + $criteria[] = $productService; + + // Criterion - English language + // The ID can be found in the documentation: + // https://developers.google.com/adwords/api/docs/appendix/languagecodes + $language = new Language(); + $language->id = 1000; + $criteria[] = $language; + + // Criterion - Within 15 miles + $proximity = new Proximity(); + $proximity->geoPoint = $business->geoPoint; + $proximity->radiusDistanceUnits = 'MILES'; + $proximity->radiusInUnits = 15; + $criteria[] = $proximity; + + $marsTourPromotion->criteria = $criteria; + + // Creatives + $creatives = array(); + + $creative1 = new Creative('Standard Mars Trip', 'Fly coach to Mars', + 'Free in-flight pretzels'); + $creatives[] = $creative1; + + $creative2 = new Creative('Deluxe Mars Trip', 'Fly first class to Mars', + 'Unlimited powdered orange drink'); + $creatives[] = $creative2; + + $marsTourPromotion->creatives = $creatives; + + $operations = array(); + + $operation = new PromotionOperation(); + $operation->operand = $marsTourPromotion; + $operation->operator = 'ADD'; + $operations[] = $operation; + + $result = $promotionService->mutate($operations); + $addedPromotion = $result[0]; + + printf("Added promotion ID %d with name '%s' to business ID %d\n", + $addedPromotion->id, $addedPromotion->name, $businessId); +} + +// 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. + AddPromotionExample($user, $businessId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Express/GetExpressBusinesses.php b/examples/AdWords/v201309/Express/GetExpressBusinesses.php new file mode 100755 index 000000000..6e8c7cbe6 --- /dev/null +++ b/examples/AdWords/v201309/Express/GetExpressBusinesses.php @@ -0,0 +1,96 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function GetExpressBusinessesExample(AdWordsUser $user) { + // Get the service, which loads the required classes. + $businessService = $user->GetService('ExpressBusinessService', + ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('Id', 'Name', 'Website', 'Address', 'GeoPoint', + 'Status'); + $selector->ordering[] = new OrderBy('Name', 'ASCENDING'); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $businessService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $business) { + $address = $business->address; + $geoPoint = $business->geoPoint; + printf("Express business found with name '%s' id %s website: %s " . + "address: %s,%s,%s,%s,%s geo point: %d,%d status: %s\n", + $business->name, $business->id, $business->website, + $address->streetAddress, $address->streetAddress2, $address->cityName, + $address->provinceName, $address->postalCode, + $geoPoint->latitudeInMicroDegrees, $geoPoint->longitudeInMicroDegrees, + $business->status + ); + } + } else { + print "No express businesses were found.\n"; + } + + // Advance the paging index. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); +} + +// 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. + GetExpressBusinessesExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Express/GetPromotions.php b/examples/AdWords/v201309/Express/GetPromotions.php new file mode 100755 index 000000000..1b63a19d2 --- /dev/null +++ b/examples/AdWords/v201309/Express/GetPromotions.php @@ -0,0 +1,92 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$businessId = 'INSERT_BUSINESS_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function GetPromotionsExample(AdWordsUser $user, $businessId) { + $user->SetExpressBusinessId($businessId); + + // Get the service, which loads the required classes. + $promotionService = $user->GetService('PromotionService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('PromotionId', 'Name'); + $selector->ordering[] = new OrderBy('Name', 'ASCENDING'); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $promotionService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $promotion) { + printf("Express promotion found with name '%s' " . + "id %s destinationUrl: %s\n", $promotion->name, $promotion->id, + $promotion->destinationUrl); + } + } else { + print "No express promotions were found.\n"; + } + + // Advance the paging index. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); +} + +// 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. + GetPromotionsExample($user, $businessId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Express/UpdateExpressBusiness.php b/examples/AdWords/v201309/Express/UpdateExpressBusiness.php new file mode 100755 index 000000000..561685602 --- /dev/null +++ b/examples/AdWords/v201309/Express/UpdateExpressBusiness.php @@ -0,0 +1,83 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$businessId = 'INSERT_BUSINESS_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function UpdateExpressBusinessExample(AdWordsUser $user, $businessId) { + // Get the service, which loads the required classes. + $businessService = $user->GetService('ExpressBusinessService', + ADWORDS_VERSION); + + // Update the name and website for the business. + $business = new ExpressBusiness(); + $business->id = $businessId; + $business->name = 'Express Interplanetary Cruise #' . uniqid(); + $business->website = 'http://www.example.com/?myParam=' . uniqid(); + + $operations = array(); + + $operation = new ExpressBusinessOperation(); + $operation->operand = $business; + $operation->operator = 'SET'; + $operations[] = $operation; + + $result = $businessService->mutate($operations); + $mutatedBusiness = $result[0]; + + printf("Express business with ID %d and name '%s' was updated\n", + $mutatedBusiness->id, $mutatedBusiness->name); +} + +// 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. + UpdateExpressBusinessExample($user, $businessId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Express/UpdatePromotion.php b/examples/AdWords/v201309/Express/UpdatePromotion.php new file mode 100755 index 000000000..b24c73a72 --- /dev/null +++ b/examples/AdWords/v201309/Express/UpdatePromotion.php @@ -0,0 +1,89 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$businessId = 'INSERT_BUSINESS_ID_HERE'; +$promotionId = 'INSERT_PROMOTION_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function UpdatePromotionExample(AdWordsUser $user, $businessId, $promotionId) { + // PromotionService requires the businessId on the user. + $user->SetExpressBusinessId($businessId); + + // Get the service, which loads the required classes. + $promotionService = $user->GetService('PromotionService', + ADWORDS_VERSION); + + // Update the budget for the promotion. + $promotion = new Promotion(); + $promotion->id = $promotionId; + $newBudget = new Money(); + $newBudget->microAmount = 2000000; + $promotion->budget = $newBudget; + + $operations = array(); + + $operation = new PromotionOperation(); + $operation->operand = $promotion; + $operation->operator = 'SET'; + $operations[] = $operation; + + $result = $promotionService->mutate($operations); + $mutatedPromotion = $result[0]; + + printf("Promotion ID %d for business ID %d now has budget micro amount %d\n", + $mutatedPromotion->id, $businessId, + $mutatedPromotion->budget->microAmount); +} + +// 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. + UpdatePromotionExample($user, $businessId, $promotionId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Misc/GetAllImagesAndVideos.php b/examples/AdWords/v201309/Misc/GetAllImagesAndVideos.php new file mode 100755 index 000000000..3a37c1f8d --- /dev/null +++ b/examples/AdWords/v201309/Misc/GetAllImagesAndVideos.php @@ -0,0 +1,100 @@ +GetService('MediaService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('MediaId', 'Width', 'Height', 'MimeType', 'Name'); + $selector->ordering = array(new OrderBy('MediaId', 'ASCENDING')); + + // Create predicates. + $selector->predicates[] = + new Predicate('Type', 'IN', array('IMAGE', 'VIDEO')); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $mediaService->get($selector); + + // Display images. + if (isset($page->entries)) { + foreach ($page->entries as $media) { + if ($media->MediaType == 'Image') { + $dimensions = MapUtils::GetMap($media->dimensions); + printf("Image with dimensions '%dx%d', MIME type '%s', and id '%s' " + . "was found.\n", $dimensions['FULL']->width, + $dimensions['FULL']->height, $media->mimeType, $media->mediaId); + } else if ($media->MediaType == 'Video') { + printf("Video with name '%s' and id '%s' was found.\n", $media->name, + $media->mediaId); + } + } + } else { + print "No images or videos were found.\n"; + } + + // Advance the paging index. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); +} + +// 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. + GetAllImagesAndVideosExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Misc/UploadImage.php b/examples/AdWords/v201309/Misc/UploadImage.php new file mode 100755 index 000000000..0bbd67633 --- /dev/null +++ b/examples/AdWords/v201309/Misc/UploadImage.php @@ -0,0 +1,77 @@ +GetService('MediaService', ADWORDS_VERSION); + + // Create image. + $image = new Image(); + $image->data = MediaUtils::GetBase64Data('http://goo.gl/HJM3L'); + $image->type = 'IMAGE'; + + // Make the upload request. + $result = $mediaService->upload(array($image)); + + // Display result. + $image = $result[0]; + $dimensions = MapUtils::GetMap($image->dimensions); + printf("Image with dimensions '%dx%d', MIME type '%s', and id '%s' was " + . "uploaded.\n", $dimensions['FULL']->width, + $dimensions['FULL']->height, $image->mimeType, $image->mediaId); +} + +// 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. + UploadImageExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Optimization/EstimateKeywordTraffic.php b/examples/AdWords/v201309/Optimization/EstimateKeywordTraffic.php new file mode 100755 index 000000000..b6213dc5f --- /dev/null +++ b/examples/AdWords/v201309/Optimization/EstimateKeywordTraffic.php @@ -0,0 +1,142 @@ +GetService('TrafficEstimatorService', ADWORDS_VERSION); + + // Create keywords. Up to 2000 keywords can be passed in a single request. + $keywords = array(); + $keywords[] = new Keyword('mars cruise', 'BROAD'); + $keywords[] = new Keyword('cheap cruise', 'PHRASE'); + $keywords[] = new Keyword('cruise', 'EXACT'); + + // Negative keywords don't return estimates, but adjust the estimates of the + // other keywords in the hypothetical ad group. + $negativeKeywords = array(); + $negativeKeywords[] = new Keyword('moon walk', 'BROAD'); + + // Create a keyword estimate request for each keyword. + $keywordEstimateRequests = array(); + foreach ($keywords as $keyword) { + $keywordEstimateRequest = new KeywordEstimateRequest(); + $keywordEstimateRequest->keyword = $keyword; + $keywordEstimateRequests[] = $keywordEstimateRequest; + } + + // Create a keyword estimate request for each negative keyword. + foreach ($negativeKeywords as $negativeKeyword) { + $keywordEstimateRequest = new KeywordEstimateRequest(); + $keywordEstimateRequest->keyword = $negativeKeyword; + $keywordEstimateRequest->isNegative = TRUE; + $keywordEstimateRequests[] = $keywordEstimateRequest; + } + + // Create ad group estimate requests. + $adGroupEstimateRequest = new AdGroupEstimateRequest(); + $adGroupEstimateRequest->keywordEstimateRequests = $keywordEstimateRequests; + $adGroupEstimateRequest->maxCpc = new Money(1000000); + + // Create campaign estimate requests. + $campaignEstimateRequest = new CampaignEstimateRequest(); + $campaignEstimateRequest->adGroupEstimateRequests[] = $adGroupEstimateRequest; + + // Set targeting criteria. Only locations and languages are supported. + $unitedStates = new Location(); + $unitedStates->id = 2840; + $campaignEstimateRequest->criteria[] = $unitedStates; + + $english = new Language(); + $english->id = 1000; + $campaignEstimateRequest->criteria[] = $english; + + // Create selector. + $selector = new TrafficEstimatorSelector(); + $selector->campaignEstimateRequests[] = $campaignEstimateRequest; + + // Make the get request. + $result = $trafficEstimatorService->get($selector); + + // Display results. + $keywordEstimates = + $result->campaignEstimates[0]->adGroupEstimates[0]->keywordEstimates; + for ($i = 0; $i < sizeof($keywordEstimates); $i++) { + $keywordEstimateRequest = $keywordEstimateRequests[$i]; + // Skip negative keywords, since they don't return estimates. + if (!$keywordEstimateRequest->isNegative) { + $keyword = $keywordEstimateRequest->keyword; + $keywordEstimate = $keywordEstimates[$i]; + + // Find the mean of the min and max values. + $meanAverageCpc = ($keywordEstimate->min->averageCpc->microAmount + + $keywordEstimate->max->averageCpc->microAmount) / 2; + $meanAveragePosition = ($keywordEstimate->min->averagePosition + + $keywordEstimate->max->averagePosition) / 2; + $meanClicks = ($keywordEstimate->min->clicksPerDay + + $keywordEstimate->max->clicksPerDay) / 2; + $meanTotalCost = ($keywordEstimate->min->totalCost->microAmount + + $keywordEstimate->max->totalCost->microAmount) / 2; + + printf("Results for the keyword with text '%s' and match type '%s':\n", + $keyword->text, $keyword->matchType); + printf(" Estimated average CPC in micros: %.0f\n", $meanAverageCpc); + printf(" Estimated ad position: %.2f \n", $meanAveragePosition); + printf(" Estimated daily clicks: %d\n", $meanClicks); + printf(" Estimated daily cost in micros: %.0f\n\n", $meanTotalCost); + } + } +} + +// 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. + EstimateKeywordTrafficExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Optimization/GetKeywordBidSimulations.php b/examples/AdWords/v201309/Optimization/GetKeywordBidSimulations.php new file mode 100755 index 000000000..5b562d67b --- /dev/null +++ b/examples/AdWords/v201309/Optimization/GetKeywordBidSimulations.php @@ -0,0 +1,106 @@ +GetService('DataService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('AdGroupId', 'CriterionId', 'StartDate', 'EndDate', + 'Bid', 'LocalClicks', 'LocalCost', 'MarginalCpc', 'LocalImpressions'); + + // Create predicates. + $selector->predicates[] = new Predicate('AdGroupId', 'IN', array($adGroupId)); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do{ + // Make the getCriterionBidLandscape request. + $page = $dataService->getCriterionBidLandscape($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $bidLandscape) { + printf("Found criterion bid landscape for keyword with id '%s', start " + . "date '%s', end date '%s', and landscape points:\n", + $bidLandscape->criterionId, $bidLandscape->startDate, + $bidLandscape->endDate); + foreach ($bidLandscape->landscapePoints as $bidLandscapePoint) { + printf(" bid: %.0f => clicks: %d, cost: %.0f, marginalCpc: %.0f, " + . "impressions: %d\n", + $bidLandscapePoint->bid->microAmount, $bidLandscapePoint->clicks, + $bidLandscapePoint->cost->microAmount, + $bidLandscapePoint->marginalCpc->microAmount, + $bidLandscapePoint->impressions); + } + print "\n"; + } + } else { + print "No criterion bid landscapes were found.\n"; + } + + // Advance the paging index. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); +} + +// 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. + GetKeywordBidSimulationsExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Optimization/GetKeywordIdeas.php b/examples/AdWords/v201309/Optimization/GetKeywordIdeas.php new file mode 100755 index 000000000..abb5d14d4 --- /dev/null +++ b/examples/AdWords/v201309/Optimization/GetKeywordIdeas.php @@ -0,0 +1,116 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +require_once UTIL_PATH . '/MapUtils.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function GetKeywordIdeasExample(AdWordsUser $user) { + // Get the service, which loads the required classes. + $targetingIdeaService = + $user->GetService('TargetingIdeaService', ADWORDS_VERSION); + + // Create seed keyword. + $keyword = 'mars cruise'; + + // Create selector. + $selector = new TargetingIdeaSelector(); + $selector->requestType = 'IDEAS'; + $selector->ideaType = 'KEYWORD'; + $selector->requestedAttributeTypes = array('KEYWORD_TEXT', 'SEARCH_VOLUME', + 'CATEGORY_PRODUCTS_AND_SERVICES'); + + // Create language search parameter (optional). + // The ID can be found in the documentation: + // https://developers.google.com/adwords/api/docs/appendix/languagecodes + // Note: As of v201302, only a single language parameter is allowed. + $languageParameter = new LanguageSearchParameter(); + $english = new Language(); + $english->id = 1000; + $languageParameter->languages = array($english); + + // Create related to query search parameter. + $relatedToQuerySearchParameter = new RelatedToQuerySearchParameter(); + $relatedToQuerySearchParameter->queries = array($keyword); + $selector->searchParameters[] = $relatedToQuerySearchParameter; + $selector->searchParameters[] = $languageParameter; + + // Set selector paging (required by this service). + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $targetingIdeaService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $targetingIdea) { + $data = MapUtils::GetMap($targetingIdea->data); + $keyword = $data['KEYWORD_TEXT']->value; + $search_volume = isset($data['SEARCH_VOLUME']->value) + ? $data['SEARCH_VOLUME']->value : 0; + $categoryIds = + implode(', ', $data['CATEGORY_PRODUCTS_AND_SERVICES']->value); + printf("Keyword idea with text '%s', category IDs (%s) and average " + . "monthly search volume '%s' was found.\n", + $keyword, $categoryIds, $search_volume); + } + } else { + print "No keywords ideas were found.\n"; + } + + // Advance the paging index. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); +} + +// 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. + GetKeywordIdeasExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Optimization/GetPlacementIdeas.php b/examples/AdWords/v201309/Optimization/GetPlacementIdeas.php new file mode 100755 index 000000000..f8180e99b --- /dev/null +++ b/examples/AdWords/v201309/Optimization/GetPlacementIdeas.php @@ -0,0 +1,101 @@ +GetService('TargetingIdeaService', ADWORDS_VERSION); + + // Create seed url. + $url = 'mars.google.com'; + + // Create selector. + $selector = new TargetingIdeaSelector(); + $selector->requestType = 'IDEAS'; + $selector->ideaType = 'PLACEMENT'; + $selector->requestedAttributeTypes = array('CRITERION', 'PLACEMENT_TYPE'); + + // Create related to url search parameter. + $relatedToUrlSearchParameter = new RelatedToUrlSearchParameter(); + $relatedToUrlSearchParameter->urls = array($url); + $relatedToUrlSearchParameter->includeSubUrls = FALSE; + $selector->searchParameters[] = $relatedToUrlSearchParameter; + + // Set selector paging (required by this service). + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $targetingIdeaService->get($selector); + + // Display related placements. + if (isset($page->entries)) { + foreach ($page->entries as $targetingIdea) { + $data = MapUtils::GetMap($targetingIdea->data); + $placement = $data['CRITERION']->value; + $placementType = $data['PLACEMENT_TYPE']->value; + printf("Placement with url '%s' and type '%s' was found.\n", + $placement->url, $placementType); + } + } else { + print "No related placements were found.\n"; + } + + // Advance the paging index. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); +} + +// 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. + GetPlacementIdeasExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Remarketing/AddAudience.php b/examples/AdWords/v201309/Remarketing/AddAudience.php new file mode 100755 index 000000000..d4b7b946b --- /dev/null +++ b/examples/AdWords/v201309/Remarketing/AddAudience.php @@ -0,0 +1,107 @@ +GetService('AdwordsUserListService', ADWORDS_VERSION); + $conversionTrackerService = + $user->GetService('ConversionTrackerService', ADWORDS_VERSION); + + // Create conversion type (tag). + $conversionType = new UserListConversionType(); + $conversionType->name = 'Mars cruise customers #' . uniqid(); + + // Create remarketing user list. + $userList = new BasicUserList(); + $userList->name = 'Mars cruise customers #' . uniqid(); + $userList->conversionTypes = array($conversionType); + + // Set additional settings (optional). + $userList->description = 'A list of mars cruise customers in the last year'; + $userList->status = 'OPEN'; + $userList->membershipLifeSpan = 365; + + // Create operation. + $operation = new UserListOperation(); + $operation->operand = $userList; + $operation->operator = 'ADD'; + + $operations = array($operation); + + // Make the mutate request. + $result = $userListService->mutate($operations); + $userList = $result->value[0]; + + // Wait a moment before retrieving the conversion snippet. + sleep(1); + + // Create the selector. + $selector = new Selector(); + $selector->fields = array('Id'); + $selector->predicates[] = + new Predicate('Id', 'IN', array($userList->conversionTypes[0]->id)); + + // Make the get request. + $page = $conversionTrackerService->get($selector); + $conversionTracker = $page->entries[0]; + + // Display result. + printf("Audience with name '%s' and ID '%.0f' was added.\n", $userList->name, + $userList->id); + printf("Tag code:\n%s\n", $conversionTracker->snippet); +} + +// 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. + AddAudienceExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Remarketing/AddConversionTracker.php b/examples/AdWords/v201309/Remarketing/AddConversionTracker.php new file mode 100755 index 000000000..ff183b9f5 --- /dev/null +++ b/examples/AdWords/v201309/Remarketing/AddConversionTracker.php @@ -0,0 +1,95 @@ + + * @author Eric Koleda + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function AddConversionTrackerExample(AdWordsUser $user) { + // Get the service, which loads the required classes. + $conversionTrackerService = + $user->GetService('ConversionTrackerService', ADWORDS_VERSION); + + // Create conversion tracker. + $conversionTracker = new AdWordsConversionTracker(); + $conversionTracker->name = 'Interplanetary Cruise Conversion #' . uniqid(); + + // Set additional settings (optional). + $conversionTracker->status = 'ENABLED'; + $conversionTracker->category = 'DEFAULT'; + $conversionTracker->viewthroughLookbackWindow = 15; + $conversionTracker->isProductAdsChargeable = TRUE; + $conversionTracker->productAdsChargeableConversionWindow = 15; + $conversionTracker->markupLanguage = 'HTML'; + $conversionTracker->textFormat = 'HIDDEN'; + $conversionTracker->conversionPageLanguage = 'en'; + $conversionTracker->backgroundColor = '#0000FF'; + $conversionTracker->userRevenueValue = 'someJavascriptVariable'; + + // Create operation. + $operation = new ConversionTrackerOperation(); + $operation->operand = $conversionTracker; + $operation->operator = 'ADD'; + + $operations = array($operation); + + // Make the mutate request. + $result = $conversionTrackerService->mutate($operations); + + // Display result. + $conversionTracker = $result->value[0]; + printf("Conversion type with name '%s' and ID '%.0f' was added.\n", + $conversionTracker->name, $conversionTracker->id); + printf("Tag code:\n%s\n", $conversionTracker->snippet); +} + +// 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. + AddConversionTrackerExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Reporting/DownloadCriteriaReport.php b/examples/AdWords/v201309/Reporting/DownloadCriteriaReport.php new file mode 100755 index 000000000..a331f704e --- /dev/null +++ b/examples/AdWords/v201309/Reporting/DownloadCriteriaReport.php @@ -0,0 +1,91 @@ +LoadService('ReportDefinitionService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('CampaignId', 'AdGroupId', 'Id', 'Criteria', + 'CriteriaType', 'Impressions', 'Clicks', 'Cost'); + + // Filter out deleted criteria. + $selector->predicates[] = new Predicate('Status', 'NOT_IN', array('DELETED')); + + // Create report definition. + $reportDefinition = new ReportDefinition(); + $reportDefinition->selector = $selector; + $reportDefinition->reportName = 'Criteria performance report #' . uniqid(); + $reportDefinition->dateRangeType = 'LAST_7_DAYS'; + $reportDefinition->reportType = 'CRITERIA_PERFORMANCE_REPORT'; + $reportDefinition->downloadFormat = 'CSV'; + + // Exclude criteria that haven't recieved any impressions over the date range. + $reportDefinition->includeZeroImpressions = FALSE; + + // Set additional options. + $options = array('version' => ADWORDS_VERSION, 'returnMoneyInMicros' => TRUE); + + // Download report. + ReportUtils::DownloadReport($reportDefinition, $filePath, $user, $options); + + printf("Report with name '%s' was downloaded to '%s'.\n", + $reportDefinition->reportName, $filePath); +} + +// 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(); + + // Download the report to a file in the same directory as the example. + $filePath = dirname(__FILE__) . '/report.csv'; + + // Run the example. + DownloadCriteriaReportExample($user, $filePath); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Reporting/DownloadCriteriaReportWithAwql.php b/examples/AdWords/v201309/Reporting/DownloadCriteriaReportWithAwql.php new file mode 100755 index 000000000..ed6c35d45 --- /dev/null +++ b/examples/AdWords/v201309/Reporting/DownloadCriteriaReportWithAwql.php @@ -0,0 +1,82 @@ + + */ + +error_reporting(E_STRICT | E_ALL); + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +require_once ADWORDS_UTIL_PATH . '/ReportUtils.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $filePath the path of the file to download the report to + */ +function DownloadCriteriaReportWithAwqlExample(AdWordsUser $user, $filePath, + $reportFormat) { + // Prepare a date range for the last week. Instead you can use 'LAST_7_DAYS'. + $dateRange = sprintf('%d,%d', + date('Ymd', strtotime('-7 day')), date('Ymd', strtotime('-1 day'))); + + // Create report query. + $reportQuery = 'SELECT CampaignId, AdGroupId, Id, Criteria, CriteriaType, ' + . 'Impressions, Clicks, Cost FROM CRITERIA_PERFORMANCE_REPORT ' + . 'WHERE Status IN [ACTIVE, PAUSED] DURING ' . $dateRange; + + // Set additional options. + $options = array('version' => ADWORDS_VERSION); + + // Download report. + ReportUtils::DownloadReportWithAwql($reportQuery, $filePath, $user, + $reportFormat, $options); + + printf("Report was downloaded to '%s'.\n", $filePath); +} + +// 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(); + + // Download the report to a file in the same directory as the example. + $filePath = dirname(__FILE__) . '/report.csv'; + $reportFormat = 'CSV'; + + // Run the example. + DownloadCriteriaReportWithAwqlExample($user, $filePath, $reportFormat); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Reporting/GetReportFields.php b/examples/AdWords/v201309/Reporting/GetReportFields.php new file mode 100755 index 000000000..89a9afee9 --- /dev/null +++ b/examples/AdWords/v201309/Reporting/GetReportFields.php @@ -0,0 +1,78 @@ +GetService('ReportDefinitionService', ADWORDS_VERSION); + + // The type of the report to get fields for. + $reportType = 'CAMPAIGN_PERFORMANCE_REPORT'; + + // Get report fields. + $reportDefinitionFields = + $reportDefinitionService->getReportFields($reportType); + + // Display results. + printf("The report type '%s' contains the following fields:\n", $reportType); + foreach ($reportDefinitionFields as $reportDefinitionField) { + printf(' %s (%s)', $reportDefinitionField->fieldName, + $reportDefinitionField->fieldType); + if (isset($reportDefinitionField->enumValues)) { + printf(' := [%s]', implode(', ', $reportDefinitionField->enumValues)); + } + print "\n"; + } +} + +// 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. + GetReportFieldsExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Targeting/AddCampaignTargetingCriteria.php b/examples/AdWords/v201309/Targeting/AddCampaignTargetingCriteria.php new file mode 100755 index 000000000..ce47cc09d --- /dev/null +++ b/examples/AdWords/v201309/Targeting/AddCampaignTargetingCriteria.php @@ -0,0 +1,103 @@ +GetService('CampaignCriterionService', ADWORDS_VERSION); + + $campaignCriteria = array(); + + // Create locations. The IDs can be found in the documentation or retrieved + // with the LocationCriterionService. + $california = new Location(); + $california->id = 21137; + $campaignCriteria[] = new CampaignCriterion($campaignId, null, $california); + + $mexico = new Location(); + $mexico->id = 2484; + $campaignCriteria[] = new CampaignCriterion($campaignId, null, $mexico); + + // Create languages. The IDs can be found in the documentation or retrieved + // with the ConstantDataService. + $english = new Language(); + $english->id = 1000; + $campaignCriteria[] = new CampaignCriterion($campaignId, null, $english); + + $spanish = new Language(); + $spanish->id = 1003; + $campaignCriteria[] = new CampaignCriterion($campaignId, null, $spanish); + + // Create operations. + $operations = array(); + foreach ($campaignCriteria as $campaignCriterion) { + $operations[] = new CampaignCriterionOperation($campaignCriterion, 'ADD'); + } + + // Make the mutate request. + $result = $campaignCriterionService->mutate($operations); + + // Display results. + foreach ($result->value as $campaignCriterion) { + printf("Campaign targeting criterion with ID '%s' and type '%s' was " + . "added.\n", $campaignCriterion->criterion->id, + $campaignCriterion->criterion->CriterionType); + } +} + +// 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. + AddCampaignTargetingCriteriaExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Targeting/GetCampaignTargetingCriteria.php b/examples/AdWords/v201309/Targeting/GetCampaignTargetingCriteria.php new file mode 100755 index 000000000..f4ace5aa8 --- /dev/null +++ b/examples/AdWords/v201309/Targeting/GetCampaignTargetingCriteria.php @@ -0,0 +1,101 @@ + + * @author Eric Koleda + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$campaignId = 'INSERT_CAMPAIGN_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $campaignId the ID of the campaign to get targeting criteria + * for + */ +function GetCampaignTargetingCriteriaExample(AdWordsUser $user, $campaignId) { + // Get the service, which loads the required classes. + $campaignCriterionService = + $user->GetService('CampaignCriterionService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('Id', 'CriteriaType'); + + // Create predicates. + $selector->predicates[] = + new Predicate('CampaignId', 'IN', array($campaignId)); + $selector->predicates[] = new Predicate('CriteriaType', 'IN', + array('LANGUAGE', 'LOCATION', 'AGE_RANGE', 'CARRIER', + 'OPERATING_SYSTEM_VERSION', 'GENDER', 'POLYGON', 'PROXIMITY', + 'PLATFORM')); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $campaignCriterionService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $campaignCriterion) { + printf("Campaign targeting criterion with ID '%s' and type '%s' was " + . "found.\n", $campaignCriterion->criterion->id, + $campaignCriterion->criterion->CriterionType); + } + } else { + print "No campaign targeting criteria were found.\n"; + } + + // Advance the paging index. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); +} + +// 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. + GetCampaignTargetingCriteriaExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Targeting/GetTargetableLanguagesAndCarriers.php b/examples/AdWords/v201309/Targeting/GetTargetableLanguagesAndCarriers.php new file mode 100755 index 000000000..dfd9fec8e --- /dev/null +++ b/examples/AdWords/v201309/Targeting/GetTargetableLanguagesAndCarriers.php @@ -0,0 +1,77 @@ +GetService('ConstantDataService', ADWORDS_VERSION); + + // Make the getLanguageCriterion request. + $languages = $constantDataService->getLanguageCriterion(); + + foreach ($languages as $language) { + printf("Language with name '%s' and ID '%s' was found.\n", + $language->name, $language->id); + } + + print "\n"; + + // Make the getCarrierCriterion request. + $carriers = $constantDataService->getCarrierCriterion(); + + foreach ($carriers as $carrier) { + printf("Carrier with name '%s', country code '%s', and ID '%s' was " + . "found.\n", $carrier->name, $carrier->countryCode, $carrier->id); + } +} + +// 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. + GetTargetableLanguagesAndCarriersExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Targeting/LookupLocation.php b/examples/AdWords/v201309/Targeting/LookupLocation.php new file mode 100755 index 000000000..d4cd30807 --- /dev/null +++ b/examples/AdWords/v201309/Targeting/LookupLocation.php @@ -0,0 +1,109 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Gets a string representation for a location. + * @param Location $location the location + * @return string the string representation + */ +function GetLocationString($location) { + return sprintf('%s (%s)', $location->locationName, $location->displayType); +} + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function LookupLocationExample(AdWordsUser $user) { + // Get the service, which loads the required classes. + $locationCriterionService = + $user->GetService('LocationCriterionService', ADWORDS_VERSION); + + // Location names to look up. + $locationNames = array('Paris', 'Quebec', 'Spain', 'Deutschland'); + // Locale to retrieve location names in. + $locale = 'en'; + + $selector = new Selector(); + $selector->fields = array('Id', 'LocationName', 'CanonicalName', + 'DisplayType', 'ParentLocations', 'Reach', 'TargetingStatus'); + // Location names must match exactly, only EQUALS and IN are supported. + $selector->predicates[] = new Predicate('LocationName', 'IN', $locationNames); + // Only one locale can be used in a request. + $selector->predicates[] = new Predicate('Locale', 'EQUALS', $locale); + + // Make the get request. + $locationCriteria = $locationCriterionService->get($selector); + + // Display results. + if (isset($locationCriteria)) { + foreach ($locationCriteria as $locationCriterion) { + if (isset($locationCriterion->location->parentLocations)) { + $parentLocations = implode(', ', + array_map('GetLocationString', + $locationCriterion->location->parentLocations)); + } else { + $parentLocations = 'N/A'; + } + printf("The search term '%s' returned the location '%s' of type '%s' " + . "with ID '%s', parent locations '%s', and reach '%d' (%s).\n", + $locationCriterion->searchTerm, + $locationCriterion->location->locationName, + $locationCriterion->location->displayType, + $locationCriterion->location->id, + $parentLocations, + $locationCriterion->reach, + $locationCriterion->location->targetingStatus); + } + } else { + print "No location criteria were found.\n"; + } +} + +// 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. + LookupLocationExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/init.php b/examples/AdWords/v201309/init.php new file mode 100755 index 000000000..e0f66811b --- /dev/null +++ b/examples/AdWords/v201309/init.php @@ -0,0 +1,46 @@ +GetService('AdGroupService', ADWORDS_VERSION); + + $numAdGroups = 2; + $operations = array(); + for ($i = 0; $i < $numAdGroups; $i++) { + // Create ad group. + $adGroup = new AdGroup(); + $adGroup->campaignId = $campaignId; + $adGroup->name = 'Earth to Mars Cruise #' . uniqid(); + + // Set bids (required). + $bid = new CpmBid(); + $bid->bid = new Money(1000000); + $biddingStrategyConfiguration = new BiddingStrategyConfiguration(); + $biddingStrategyConfiguration->bids[] = $bid; + $adGroup->biddingStrategyConfiguration = $biddingStrategyConfiguration; + + // Set additional settings (optional). + $adGroup->status = 'ENABLED'; + + // Create operation. + $operation = new AdGroupOperation(); + $operation->operand = $adGroup; + $operation->operator = 'ADD'; + $operations[] = $operation; + } + + // Make the mutate request. + $result = $adGroupService->mutate($operations); + + // Display result. + $adGroups = $result->value; + foreach ($adGroups as $adGroup) { + printf("Ad group with name '%s' and ID '%s' was added.\n", $adGroup->name, + $adGroup->id); + } +} + +// 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. + AddAdGroupsExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/Adx/v201306/BasicOperations/AddCampaigns.php b/examples/Adx/v201306/BasicOperations/AddCampaigns.php new file mode 100755 index 000000000..d0332409f --- /dev/null +++ b/examples/Adx/v201306/BasicOperations/AddCampaigns.php @@ -0,0 +1,146 @@ +GetService('BudgetService', ADWORDS_VERSION); + + // Create the shared budget (required). + $budget = new Budget(); + $budget->name = 'Interplanetary Cruise Budget #' . uniqid(); + $budget->period = 'DAILY'; + $budget->amount = new Money(50000000); + $budget->deliveryMethod = 'STANDARD'; + + $operations = array(); + + // Create operation. + $operation = new BudgetOperation(); + $operation->operand = $budget; + $operation->operator = 'ADD'; + $operations[] = $operation; + + // Make the mutate request. + $result = $budgetService->mutate($operations); + $budget = $result->value[0]; + + // Get the service, which loads the required classes. + $campaignService = $user->GetService('CampaignService', ADWORDS_VERSION); + + $numCampaigns = 2; + $operations = array(); + for ($i = 0; $i < $numCampaigns; $i++) { + // Create campaign. + $campaign = new Campaign(); + $campaign->name = 'Interplanetary Cruise #' . uniqid(); + + // Set shared budget (required). + $campaign->budget = new Budget(); + $campaign->budget->budgetId = $budget->budgetId; + + // Set bidding strategy (required). + $biddingStrategyConfiguration = new BiddingStrategyConfiguration(); + $biddingStrategyConfiguration->biddingStrategyType = 'MANUAL_CPM'; + $campaign->biddingStrategyConfiguration = $biddingStrategyConfiguration; + + // Set keyword matching setting (required). + $keywordMatchSetting = new KeywordMatchSetting(); + $keywordMatchSetting->optIn = FALSE; + $campaign->settings[] = $keywordMatchSetting; + + // Set network targeting (recommended). + $networkSetting = new NetworkSetting(); + $networkSetting->targetContentNetwork = TRUE; + $campaign->networkSetting = $networkSetting; + + // Set additional settings (optional). + $campaign->status = 'PAUSED'; + $campaign->startDate = date('Ymd', strtotime('+1 day')); + $campaign->endDate = date('Ymd', strtotime('+1 month')); + $campaign->adServingOptimizationStatus = 'ROTATE'; + + // Set frequency cap (optional). + $frequencyCap = new FrequencyCap(); + $frequencyCap->impressions = 5; + $frequencyCap->timeUnit = 'DAY'; + $frequencyCap->level = 'ADGROUP'; + $campaign->frequencyCap = $frequencyCap; + + // Set advanced location targeting settings (optional). + $geoTargetTypeSetting = new GeoTargetTypeSetting(); + $geoTargetTypeSetting->positiveGeoTargetType = 'DONT_CARE'; + $geoTargetTypeSetting->negativeGeoTargetType = 'DONT_CARE'; + $campaign->settings[] = $geoTargetTypeSetting; + + // Set Real-Time bidding setting (optional). + $realTimeBiddingSetting = new RealTimeBiddingSetting(); + $realTimeBiddingSetting->optIn = TRUE; + $campaign->settings[] = $realTimeBiddingSetting; + + // Create operation. + $operation = new CampaignOperation(); + $operation->operand = $campaign; + $operation->operator = 'ADD'; + $operations[] = $operation; + } + + // Make the mutate request. + $result = $campaignService->mutate($operations); + + // Display results. + foreach ($result->value as $campaign) { + printf("Campaign with name '%s' and ID '%s' was added.\n", $campaign->name, + $campaign->id); + } +} + +// 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. + AddCampaignsExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/Adx/v201306/BasicOperations/AddPlacements.php b/examples/Adx/v201306/BasicOperations/AddPlacements.php new file mode 100755 index 000000000..990a73c2f --- /dev/null +++ b/examples/Adx/v201306/BasicOperations/AddPlacements.php @@ -0,0 +1,107 @@ +GetService('AdGroupCriterionService', ADWORDS_VERSION); + + $numPlacements = 5; + $operations = array(); + for ($i = 0; $i < $numPlacements; $i++) { + // Create placement criterion. + $placement = new Placement(); + $placement->url = 'mars.google.com/' . uniqid(); + + // Create biddable ad group criterion. + $adGroupCriterion = new BiddableAdGroupCriterion(); + $adGroupCriterion->adGroupId = $adGroupId; + $adGroupCriterion->criterion = $placement; + + // Set additional settings (optional). + $adGroupCriterion->userStatus = 'PAUSED'; + $adGroupCriterion->destinationUrl = 'http://www.example.com/mars'; + + // Set bids (optional). + $bid = new CpmBid(); + $bid->bid = new Money(500000); + $biddingStrategyConfiguration = new BiddingStrategyConfiguration(); + $biddingStrategyConfiguration->bids[] = $bid; + $adGroupCriterion->biddingStrategyConfiguration = + $biddingStrategyConfiguration; + + $adGroupCriteria[] = $adGroupCriterion; + + // Create operation. + $operation = new AdGroupCriterionOperation(); + $operation->operand = $adGroupCriterion; + $operation->operator = 'ADD'; + $operations[] = $operation; + } + + // Make the mutate request. + $result = $adGroupCriterionService->mutate($operations); + + // Display results. + foreach ($result->value as $adGroupCriterion) { + printf("Placement with URL '%s' and ID '%s' was added.\n", + $adGroupCriterion->criterion->url, + $adGroupCriterion->criterion->id); + } +} + +// 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. + AddPlacementsExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/Adx/v201306/BasicOperations/AddThirdPartyRedirectAds.php b/examples/Adx/v201306/BasicOperations/AddThirdPartyRedirectAds.php new file mode 100755 index 000000000..ce57ffade --- /dev/null +++ b/examples/Adx/v201306/BasicOperations/AddThirdPartyRedirectAds.php @@ -0,0 +1,140 @@ +GetService('AdGroupAdService', ADWORDS_VERSION); + + $numAds = 5; + + $thirdPartyRedirectAd = new ThirdPartyRedirectAd(); + $thirdPartyRedirectAd->name = 'Example third party ad #' . uniqid(); + $thirdPartyRedirectAd->url = 'http://www.example.com'; + + $thirdPartyRedirectAd->dimensions = new Dimensions(300, 250); + // This field normally contains the javascript ad tag. + $thirdPartyRedirectAd->snippet = ''; + + // DoubleClick Rich Media Expandable format ID. + $thirdPartyRedirectAd->certifiedVendorFormatId = 232; + $thirdPartyRedirectAd->isCookieTargeted = false; + $thirdPartyRedirectAd->isUserInterestTargeted = false; + $thirdPartyRedirectAd->isTagged = false; + + // Expandable Ad properties. + $thirdPartyRedirectAd->expandingDirections = + array('EXPANDING_UP', 'EXPANDING_DOWN'); + $thirdPartyRedirectAd->adAttributes = array('ROLL_OVER_TO_EXPAND'); + + // Create ad group ad. + $thirdPartyAdGroup = new AdGroupAd(); + $thirdPartyAdGroup->adGroupId = $adGroupId; + $thirdPartyAdGroup->ad = $thirdPartyRedirectAd; + + // Set additional settings (optional). + $thirdPartyAdGroup->status = 'PAUSED'; + + // Create operation. + $thirdPartyOperation = new AdGroupAdOperation(); + $thirdPartyOperation->operand = $thirdPartyAdGroup; + $thirdPartyOperation->operator = 'ADD'; + + // Create in stream third party redirect ad. + $inStreamRedirectAd = new ThirdPartyRedirectAd(); + $inStreamRedirectAd->name = 'Example third party ad #' . uniqid(); + $inStreamRedirectAd->url = 'http://www.example.com'; + + // Duration = 15 seconds + $inStreamRedirectAd->adDuration = 15000; + $inStreamRedirectAd->sourceUrl = 'http://ad.doubleclick.net/pfadx/' . + 'N270.126913.6102203221521/B3876671.21;dcadv=2215309;sz=0x0;' . + 'ord=%5btimestamp%5d;dcmt=text/xml'; + + // VAST (video) Unit. + $inStreamRedirectAd->certifiedVendorFormatId = 303; + + $inStreamRedirectAd->richMediaAdType = 'IN_STREAM_VIDEO'; + + // Create ad group ad. + $inStreamAdGroup = new AdGroupAd(); + $inStreamAdGroup->adGroupId = $adGroupId; + $inStreamAdGroup->ad = $inStreamRedirectAd; + + // Set additional settings (optional). + $inStreamAdGroup->status = 'PAUSED'; + + // Create operation. + $inStreamOperation = new AdGroupAdOperation(); + $inStreamOperation->operand = $inStreamAdGroup; + $inStreamOperation->operator = 'ADD'; + + $operations = array( + $thirdPartyOperation, + $inStreamOperation, + ); + + // Make the mutate request. + $result = $adGroupAdService->mutate($operations); + + // Display results. + foreach ($result->value as $adGroupAd) { + printf("Third party redirect ad with name '%s' and ID '%s' was added.\n", + $adGroupAd->ad->name, $adGroupAd->ad->id); + } +} + +// 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. + AddThirdPartyRedirectAdsExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/Adx/v201306/BasicOperations/DeletePlacement.php b/examples/Adx/v201306/BasicOperations/DeletePlacement.php new file mode 100755 index 000000000..c427104a1 --- /dev/null +++ b/examples/Adx/v201306/BasicOperations/DeletePlacement.php @@ -0,0 +1,90 @@ +GetService('AdGroupCriterionService', ADWORDS_VERSION); + + // Create criterion using an existing ID. Use the base class Criterion + // instead of Placement to avoid having to set placement-specific fields. + $criterion = new Criterion(); + $criterion->id = $criterionId; + + // Create ad group criterion. + $adGroupCriterion = new AdGroupCriterion(); + $adGroupCriterion->adGroupId = $adGroupId; + $adGroupCriterion->criterion = new Criterion($criterionId); + + // Create operation. + $operation = new AdGroupCriterionOperation(); + $operation->operand = $adGroupCriterion; + $operation->operator = 'REMOVE'; + + $operations = array($operation); + + // Make the mutate request. + $result = $adGroupCriterionService->mutate($operations); + + // Display result. + $adGroupCriterion = $result->value[0]; + printf("Placement with ID '%s' was deleted.\n", + $adGroupCriterion->criterion->id); +} + +// 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. + DeletePlacementExample($user, $adGroupId, $criterionId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/Adx/v201306/BasicOperations/GetPlacements.php b/examples/Adx/v201306/BasicOperations/GetPlacements.php new file mode 100755 index 000000000..f328c1de4 --- /dev/null +++ b/examples/Adx/v201306/BasicOperations/GetPlacements.php @@ -0,0 +1,96 @@ +GetService('AdGroupCriterionService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('PlacementUrl', 'Id'); + $selector->ordering[] = new OrderBy('PlacementUrl', 'ASCENDING'); + + // Create predicates. + $selector->predicates[] = new Predicate('AdGroupId', 'IN', array($adGroupId)); + $selector->predicates[] = + new Predicate('CriteriaType', 'IN', array('PLACEMENT')); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $adGroupCriterionService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $adGroupCriterion) { + printf("Placement with URL '%s' and ID '%s' was found.\n", + $adGroupCriterion->criterion->url, + $adGroupCriterion->criterion->id); + } + } else { + print "No placements were found.\n"; + } + + // Advance the paging index. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); +} + +// 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. + GetPlacementsExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/Adx/v201306/BasicOperations/GetThirdPartyRedirectAds.php b/examples/Adx/v201306/BasicOperations/GetThirdPartyRedirectAds.php new file mode 100755 index 000000000..e835db781 --- /dev/null +++ b/examples/Adx/v201306/BasicOperations/GetThirdPartyRedirectAds.php @@ -0,0 +1,99 @@ +GetService('AdGroupAdService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('RichMediaAdName', 'Id'); + $selector->ordering[] = new OrderBy('Id', 'ASCENDING'); + + // Create predicates. + $selector->predicates[] = new Predicate('AdGroupId', 'IN', array($adGroupId)); + $selector->predicates[] = + new Predicate('AdType', 'IN', array('THIRD_PARTY_REDIRECT_AD')); + // By default disabled ads aren't returned by the selector. To return them + // include the DISABLED status in a predicate. + $selector->predicates[] = + new Predicate('Status', 'IN', array('ENABLED', 'PAUSED', 'DISABLED')); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $adGroupAdService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $adGroupAd) { + printf("Third party redirect ad with name '%s' and ID '%s' was " + . "found.\n", $adGroupAd->ad->name, $adGroupAd->ad->id); + } + } else { + print "No third party redirect ads were found.\n"; + } + + // Advance the paging index. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); +} + +// 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. + GetThirdPartyRedirectAdsExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/Adx/v201306/BasicOperations/UpdateAdGroup.php b/examples/Adx/v201306/BasicOperations/UpdateAdGroup.php new file mode 100755 index 000000000..3824608af --- /dev/null +++ b/examples/Adx/v201306/BasicOperations/UpdateAdGroup.php @@ -0,0 +1,91 @@ +GetService('AdGroupService', ADWORDS_VERSION); + + // Create ad group using an existing ID. + $adGroup = new AdGroup(); + $adGroup->id = $adGroupId; + + // Update the bid. + $bid = new CpmBid(); + $bid->bid = new Money(0.75 * AdWordsConstants::MICROS_PER_DOLLAR); + $biddingStrategyConfiguration = new BiddingStrategyConfiguration(); + $biddingStrategyConfiguration->bids[] = $bid; + $adGroup->biddingStrategyConfiguration = $biddingStrategyConfiguration; + + // Create operation. + $operation = new AdGroupOperation(); + $operation->operand = $adGroup; + $operation->operator = 'SET'; + + $operations = array($operation); + + // Make the mutate request. + $result = $adGroupService->mutate($operations); + + // Display result. + $adGroup = $result->value[0]; + printf("Ad group with ID '%s' has updated default bid '$%s'.\n", $adGroup->id, + $adGroup->biddingStrategyConfiguration->bids[0]->bid->microAmount / + AdWordsConstants::MICROS_PER_DOLLAR); +} + +// 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. + UpdateAdGroupExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/Adx/v201306/BasicOperations/UpdatePlacement.php b/examples/Adx/v201306/BasicOperations/UpdatePlacement.php new file mode 100755 index 000000000..3c2368fe2 --- /dev/null +++ b/examples/Adx/v201306/BasicOperations/UpdatePlacement.php @@ -0,0 +1,94 @@ +GetService('AdGroupCriterionService', ADWORDS_VERSION); + + // Create criterion using an existing ID. Use the base class Criterion + // instead of Placement to avoid having to set placement-specific fields. + $criterion = new Placement(); + $criterion->id = $criterionId; + + // Create ad group criterion. + $adGroupCriterion = new BiddableAdGroupCriterion(); + $adGroupCriterion->adGroupId = $adGroupId; + $adGroupCriterion->criterion = $criterion; + + // Update destination URL. + $adGroupCriterion->destinationUrl = 'http://www.example.com/new'; + + // Create operation. + $operation = new AdGroupCriterionOperation(); + $operation->operand = $adGroupCriterion; + $operation->operator = 'SET'; + + $operations = array($operation); + + // Make the mutate request. + $result = $adGroupCriterionService->mutate($operations); + + // Display result. + $adGroupCriterion = $result->value[0]; + printf("Placement with ID '%s' has updated destination URL '%s'.\n", + $adGroupCriterion->criterion->id, $adGroupCriterion->destinationUrl); +} + +// 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. + UpdatePlacementExample($user, $adGroupId, $criterionId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/Adx/v201306/CampaignManagement/AddPlacementsInBulk.php b/examples/Adx/v201306/CampaignManagement/AddPlacementsInBulk.php new file mode 100755 index 000000000..32d5d38d6 --- /dev/null +++ b/examples/Adx/v201306/CampaignManagement/AddPlacementsInBulk.php @@ -0,0 +1,203 @@ +GetService('MutateJobService', ADWORDS_VERSION); + + // Generate operations. + $numPlacements = 100; + $operations = array(); + for ($i = 0; $i < $numPlacements; $i++) { + $placement = new Placement(); + // Randomly add invalid characters to placement URLs. + if (rand(0, 9) == 0) { + $placement->url = 'mars.google.com/<' . uniqid(); + } else { + $placement->url = 'mars.google.com/' . uniqid(); + } + + $adGroupCriterion = new BiddableAdGroupCriterion(); + $adGroupCriterion->adGroupId = $adGroupId; + $adGroupCriterion->criterion = $placement; + + $operation = new AdGroupCriterionOperation(); + $operation->operator = 'ADD'; + $operation->operand = $adGroupCriterion; + $operations[] = $operation; + } + + // You can specify up to 3 job IDs that must successfully complete before + // this job can be processed. We won't set any in this example. + $policy = new BulkMutateJobPolicy(); + $policy->prerequisiteJobIds = array(); + + // Call mutate to create a new job. + printf("Creating job with %d operations.\n", sizeof($operations)); + $job = $mutateJobService->mutate($operations, $policy); + printf("Job with ID '%s' was created.\n", $job->id); + + // Create a selector for retrieving the job status and later its results. + $selector = new BulkMutateJobSelector(); + $selector->jobIds[] = $job->id; + $selector->includeStats = TRUE; + $selector->includeHistory = TRUE; + + $numRetries = 0; + $maxRetries = 100; + $retryInterval = 10; + do { + sleep($retryInterval); + $jobs = $mutateJobService->get($selector); + $job = $jobs[0]; + switch ($job->status) { + case 'PENDING': + printf("The job has been pending for approximately %s.\n", + strftime('%M:%S', time() - strtotime($job->history[0]->dateTime))); + break; + case 'PROCESSING': + printf("The job is processing and approximately %d%% complete.\n", + $job->stats->progressPercent); + break; + case 'COMPLETED': + printf("The job is complete and took approximately %d seconds to " + ."process.\n", $job->stats->processingTimeMillis / 100); + break; + case 'FAILED': + printf("The job failed with reason '%s'.\n", + ChoiceUtils::GetValue($job->failureReason)); + break; + } + $numRetries++; + } while (($job->status == 'PENDING' || $job->status == 'PROCESSING') && + $numRetries < $maxRetries); + + if ($job->status == 'COMPLETED') { + // Retrieve the results of the job. + $jobResult = ChoiceUtils::GetValue( + $mutateJobService->getResult($selector)); + + // Sort the placements into groups based on the results. + $lost = array(); + $skipped = array(); + $failed = array(); + $errors = array(); + $genericErrors = array(); + + // Examines the errors to determine which placements failed to be applied. + foreach ($jobResult->errors as $error) { + $index = OgnlUtils::GetOperationIndex($error->fieldPath); + if (isset($index)) { + $placementUrl = $operations[$index]->operand->criterion->url; + switch ($error->reason) { + case 'LOST_RESULT': + $lost[] = $placementUrl; + break; + case 'UNPROCESSED_RESULT': + case 'BATCH_FAILURE': + $skipped[] = $placementUrl; + break; + default: + if (!in_array($placementUrl, $failed)) { + $failed[] = $placementUrl; + } + $errors[$placementUrl][] = $error; + } + } else { + $genericErrors[] = $error; + } + } + + // Examine the results to determine which placements were added + // successfully. + $succeeded = array(); + for ($i = 0; $i < sizeof($jobResult->results); $i++) { + $operation = $operations[$i]; + $result = ChoiceUtils::GetValue($jobResult->results[$i]); + if ($result instanceof AdGroupCriterion) { + $succeeded[] = $result->criterion->url; + } + } + + // Display the results of the job. + printf("%d placements were added successfully: %s\n", sizeof($succeeded), + implode(', ', $succeeded)); + + printf("%d placements were skipped and should be retried: %s\n", + sizeof($skipped), implode(', ', $skipped)); + + printf("%d placements were not added due to errors:\n", sizeof($failed)); + foreach ($failed as $placementUrl) { + $errorStrings = array(); + foreach ($errors[$placementUrl] as $error) { + $errorStrings[] = $error->errorString; + } + printf("- %s: %s\n", $placementUrl, implode(', ', $errorStrings)); + } + + printf("%d generic errors were encountered:\n", sizeof($genericErrors)); + foreach($genericErrors as $error) { + printf("- %s\n", $error->errorString); + } + } +} + +// 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. + AddPlacementsInBulkExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/Adx/v201306/ErrorHandling/HandlePartialFailures.php b/examples/Adx/v201306/ErrorHandling/HandlePartialFailures.php new file mode 100755 index 000000000..cf4232ac6 --- /dev/null +++ b/examples/Adx/v201306/ErrorHandling/HandlePartialFailures.php @@ -0,0 +1,114 @@ +GetService('AdGroupCriterionService', + ADWORDS_VERSION, NULL, NULL, NULL, TRUE); + + // Create placements. + $placements = array(); + $placements[] = new Placement('mars.google.com'); + $placements[] = new Placement('bad.url'); + $placements[] = new Placement('venus.google.com'); + $placements[] = new Placement('example.com/invalidadGroupId = $adGroupId; + $adGroupCriterion->criterion = $placement; + + $operation = new AdGroupCriterionOperation(); + $operation->operand = $adGroupCriterion; + $operation->operator = 'ADD'; + + $operations[] = $operation; + } + + // Make the mutate request. + $result = $adGroupCriterionService->mutate($operations); + + // Display results. + foreach ($result->value as $adGroupCriterion) { + if ($adGroupCriterion->AdGroupCriterionType == 'BiddableAdGroupCriterion') { + printf("Placement with URL '%s' and ID '%s' was added.\n", + $adGroupCriterion->criterion->url, + $adGroupCriterion->criterion->id); + } + } + + // Check for partial failures. + if (isset($result->partialFailureErrors)) { + foreach ($result->partialFailureErrors as $error) { + $index = ErrorUtils::GetSourceOperationIndex($error); + if (isset($index)) { + $adGroupCriterion = $operations[$index]->operand; + printf("Placement with URL '%s' failed with error '%s'.\n", + $adGroupCriterion->criterion->url, $error->errorString); + } else { + printf("Operations failed with error '%s'.\n", $error->errorString); + } + } + } +} + +// 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. + HandlePartialFailuresExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/Adx/v201306/init.php b/examples/Adx/v201306/init.php new file mode 100755 index 000000000..53dfea7c5 --- /dev/null +++ b/examples/Adx/v201306/init.php @@ -0,0 +1,46 @@ +GetTrigger(); + if (in_array($trigger, $requiredAuthFields)) { + $errorMessage = sprintf( + "Your OAuth2 Credentials are missing the '%s'. Please see" + . " GetRefreshToken.php for further information.", + $trigger + ); + } + } + printf("%s\n%s\n", $errorMessage, $raisedException->getMessage()); + } +} diff --git a/examples/Common/HandleCaptcha.php b/examples/Common/HandleCaptcha.php new file mode 100755 index 000000000..5fdfe3cdb --- /dev/null +++ b/examples/Common/HandleCaptcha.php @@ -0,0 +1,90 @@ +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/Auth/GetRefreshToken.php b/examples/Dfp/Auth/GetRefreshToken.php new file mode 100755 index 000000000..bf516ad94 --- /dev/null +++ b/examples/Dfp/Auth/GetRefreshToken.php @@ -0,0 +1,110 @@ +GetOAuth2Handler(); + $authorizationUrl = $OAuth2Handler->GetAuthorizationUrl( + $user->GetOAuth2Info(), $redirectUri, $offline); + + // In a web application you would redirect the user to the authorization URL + // and after approving the token they would be redirected back to the + // redirect URL, with the URL parameter "code" added. For desktop + // or server applications, spawn a browser to the URL and then have the user + // enter the authorization code that is displayed. + printf("Log in to your DFP account and open the following URL:\n%s\n\n", + $authorizationUrl); + print "After approving the token enter the authorization code here: "; + $stdin = fopen('php://stdin', 'r'); + $code = trim(fgets($stdin)); + fclose($stdin); + print "\n"; + + // Get the access token using the authorization code. Ensure you use the same + // redirect URL used when requesting authorization. + $user->SetOAuth2Info( + $OAuth2Handler->GetAccessToken( + $user->GetOAuth2Info(), $code, $redirectUri)); + + // The access token expires but the refresh token obtained for offline use + // doesn't, and should be stored for later use. + return $user->GetOAuth2Info(); +} + +// Don't run the example if the file is being included. +if (__FILE__ != realpath($_SERVER['PHP_SELF'])) { + return; +} + +try { + // Get the client ID and secret from the auth.ini file. If you do not have a + // client ID or secret, please create one of type "installed application" in + // the Google API console: https://code.google.com/apis/console#access + // and set it in the auth.ini file. + $user = new DfpUser(); + $user->LogAll(); + + // Get the OAuth2 credential. + $oauth2Info = GetOAuth2Credential($user); + + // Enter the refresh token into your auth.ini file. + printf("Your refresh token is: %s\n\n", $oauth2Info['refresh_token']); + printf("In your auth.ini file, edit the refresh_token line to be:\n" + . "refresh_token = \"%s\"\n", $oauth2Info['refresh_token']); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/README.md b/examples/Dfp/README.md new file mode 100755 index 000000000..862a395ca --- /dev/null +++ b/examples/Dfp/README.md @@ -0,0 +1,12 @@ +### DoubleClick for Publishers API PHP Client Library Examples + +For instructions on how to get started, please visit our GitHub project: +https://github.com/googleads/googleads-php-lib + +For API and client library updates and news, please follow our +[Google+ Ads Developers page](https://plus.google.com/+GoogleAdsDevelopers/posts) +and our [Google Ads Developers blog](http://googleadsdeveloper.blogspot.com/). + +For any issues relating to the API in general (not this library), please see the +[DFP API forum](https://groups.google.com/forum/#!forum/google-doubleclick-for-publishers-api) + diff --git a/examples/Dfp/v201208/AudienceSegmentService/GetAllAudienceSegmentsExample.php b/examples/Dfp/v201208/AudienceSegmentService/GetAllAudienceSegmentsExample.php new file mode 100755 index 000000000..a8ca77600 --- /dev/null +++ b/examples/Dfp/v201208/AudienceSegmentService/GetAllAudienceSegmentsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the AudienceSegmentService. + $audienceSegmentService = $user->GetService('AudienceSegmentService', + 'v201208'); + + // Set defaults for page and statement. + $page = new AudienceSegmentPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all audience segments. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get audience segments by statement. + $page = $audienceSegmentService->getAudienceSegmentsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $audienceSegment) { + print $i . ') Audience segment with ID "' + . $audienceSegment->id . '", and name "' . $audienceSegment->name + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201208/CompanyService/CreateCompaniesExample.php b/examples/Dfp/v201208/CompanyService/CreateCompaniesExample.php new file mode 100755 index 000000000..1a297b81d --- /dev/null +++ b/examples/Dfp/v201208/CompanyService/CreateCompaniesExample.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201208'); + + // Create an array to store local company objects. + $companies = array(); + + for ($i = 0; $i < 5; $i++) { + $company = new Company(); + $company->name = 'Advertiser #' . $i; + $company->type = 'ADVERTISER'; + + $companies[] = $company; + } + + // Create the companies on the server. + $companies = $companyService->createCompanies($companies); + + // Display results. + if (isset($companies)) { + foreach ($companies as $company) { + print 'A company with ID "' . $company->id + . '", name "'. $company->name + . '", and type "' . $company->type . "\" was created.\n"; + } + } else { + print "No companies created.\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/v201208/CompanyService/GetAllCompaniesExample.php b/examples/Dfp/v201208/CompanyService/GetAllCompaniesExample.php new file mode 100755 index 000000000..6871848fb --- /dev/null +++ b/examples/Dfp/v201208/CompanyService/GetAllCompaniesExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201208'); + + // Set defaults for page and statement. + $page = new CompanyPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all companies. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get companies by statement. + $page = $companyService->getCompaniesByStatement($filterStatement); + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201208/CompanyService/GetCompaniesByStatementExample.php b/examples/Dfp/v201208/CompanyService/GetCompaniesByStatementExample.php new file mode 100755 index 000000000..624d5129a --- /dev/null +++ b/examples/Dfp/v201208/CompanyService/GetCompaniesByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201208'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('type' => new TextValue('ADVERTISER'))); + + // 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 companies by statement. + $page = $companyService->getCompaniesByStatement($filterStatement); + + // 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++; + } + } + + 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/v201208/CompanyService/GetCompanyExample.php b/examples/Dfp/v201208/CompanyService/GetCompanyExample.php new file mode 100755 index 000000000..c3ce5fc4a --- /dev/null +++ b/examples/Dfp/v201208/CompanyService/GetCompanyExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201208'); + + // Set the ID of the company to get. + $companyId = 'INSERT_COMPANY_ID_HERE'; + + // Get the company. + $company = $companyService->getCompany($companyId); + + // Display results. + if (isset($company)) { + print 'Company with ID "' . $company->id + . '", name "' . $company->name + . '", and type "' . $company->type . "\" was found.\n"; + } else { + print "No company found for this ID.\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/v201208/CompanyService/UpdateCompaniesExample.php b/examples/Dfp/v201208/CompanyService/UpdateCompaniesExample.php new file mode 100755 index 000000000..f50cb6e99 --- /dev/null +++ b/examples/Dfp/v201208/CompanyService/UpdateCompaniesExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201208'); + + // 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/v201208/ContentService/GetAllContentExample.php b/examples/Dfp/v201208/ContentService/GetAllContentExample.php new file mode 100755 index 000000000..e1a9ea116 --- /dev/null +++ b/examples/Dfp/v201208/ContentService/GetAllContentExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the ContentService. + $contentService = $user->GetService('ContentService', 'v201208'); + + // Set defaults for page and statement. + $page = new ContentPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all content. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get content by statement. + $page = $contentService->getContentByStatement($filterStatement); + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201208/ContentService/GetContentByCategoryExample.php b/examples/Dfp/v201208/ContentService/GetContentByCategoryExample.php new file mode 100755 index 000000000..8d7dae815 --- /dev/null +++ b/examples/Dfp/v201208/ContentService/GetContentByCategoryExample.php @@ -0,0 +1,113 @@ +LogDefaults(); + + // Get the ContentService. + $contentService = $user->GetService('ContentService', 'v201208'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201208'); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201208'); + + // 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/v201208/CreativeService/AssociateCreativeSetToLineItemExample.php b/examples/Dfp/v201208/CreativeService/AssociateCreativeSetToLineItemExample.php new file mode 100755 index 000000000..15da82c85 --- /dev/null +++ b/examples/Dfp/v201208/CreativeService/AssociateCreativeSetToLineItemExample.php @@ -0,0 +1,78 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = $user->GetService('LineItemCreativeAssociationService', + 'v201208'); + + // 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/v201208/CreativeService/CreateCreativeFromTemplateExample.php b/examples/Dfp/v201208/CreativeService/CreateCreativeFromTemplateExample.php new file mode 100755 index 000000000..9f33e88c2 --- /dev/null +++ b/examples/Dfp/v201208/CreativeService/CreateCreativeFromTemplateExample.php @@ -0,0 +1,129 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201208'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Use the image banner with optional third party tracking template. + $creativeTemplateId = 10000680; + + // Create the local custom creative object. + $templateCreative = new TemplateCreative(); + $templateCreative->name = 'Template creative'; + $templateCreative->advertiserId = $advertiserId; + $templateCreative->creativeTemplateId = $creativeTemplateId; + + // Set the creative size. + $templateCreative->size = new Size(300, 250, FALSE); + + // Create the asset variable value. + $assetVariableValue = new AssetCreativeTemplateVariableValue(); + $assetVariableValue->uniqueName = 'Imagefile'; + $assetVariableValue->assetByteArray = MediaUtils::GetBase64Data( + 'http://www.google.com/intl/en/adwords/select/images/samples/inline.jpg'); + // Filenames must be unique. + $assetVariableValue->fileName = sprintf('image%s.jpg', uniqid()); + $templateCreative->creativeTemplateVariableValues[] = $assetVariableValue; + + // Create the image width variable value. + $imageWidthVariableValue = new LongCreativeTemplateVariableValue(); + $imageWidthVariableValue->uniqueName = 'Imagewidth'; + $imageWidthVariableValue->value = 300; + $templateCreative->creativeTemplateVariableValues[] = + $imageWidthVariableValue; + + // Create the image height variable value. + $imageHeightVariableValue = new LongCreativeTemplateVariableValue(); + $imageHeightVariableValue->uniqueName = 'Imageheight'; + $imageHeightVariableValue->value = 250; + $templateCreative->creativeTemplateVariableValues[] = + $imageHeightVariableValue; + + // Create the URL variable value. + $urlVariableValue = new UrlCreativeTemplateVariableValue(); + $urlVariableValue->uniqueName = 'ClickthroughURL'; + $urlVariableValue->value = 'www.google.com'; + $templateCreative->creativeTemplateVariableValues[] = $urlVariableValue; + + // Create the target window variable value. + $targetWindowVariableValue = new StringCreativeTemplateVariableValue(); + $targetWindowVariableValue->uniqueName = 'Targetwindow'; + $targetWindowVariableValue->value = '_blank'; + $templateCreative->creativeTemplateVariableValues[] = + $targetWindowVariableValue; + + // Create the template creative on the server. + $templateCreative = $creativeService->createCreative($templateCreative); + + // Display results. + if (isset($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->previewUrl); + } else { + print "No creative was created.\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/v201208/CreativeService/CreateCreativesExample.php b/examples/Dfp/v201208/CreativeService/CreateCreativesExample.php new file mode 100755 index 000000000..9ffde93af --- /dev/null +++ b/examples/Dfp/v201208/CreativeService/CreateCreativesExample.php @@ -0,0 +1,109 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201208'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create an array to store local image creative objects. + $imageCreatives = array(); + + for ($i = 0; $i < 5; $i++) { + $imageCreative = new ImageCreative(); + $imageCreative->name = 'Image creative #' . $i; + $imageCreative->advertiserId = $advertiserId; + $imageCreative->destinationUrl = 'http://google.com'; + $imageCreative->imageName = 'image.jpg'; + $imageCreative->imageByteArray = + MediaUtils::GetBase64Data('http://www.google.com/intl/en/adwords/' + . 'select/images/samples/inline.jpg'); + $imageCreative->size = new Size(300, 250); + + $imageCreatives[] = $imageCreative; + } + + // Create the image creatives on the server. + $imageCreatives = $creativeService->createCreatives($imageCreatives); + + // Display results. + if (isset($imageCreatives)) { + 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"; + } else { + print 'A creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType + . "\" was created.\n"; + } + } + } else { + print "No creatives created.\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/v201208/CreativeService/CreateCustomCreativeExample.php b/examples/Dfp/v201208/CreativeService/CreateCustomCreativeExample.php new file mode 100755 index 000000000..796bbd53b --- /dev/null +++ b/examples/Dfp/v201208/CreativeService/CreateCustomCreativeExample.php @@ -0,0 +1,103 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201208'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create the local custom creative object. + $customCreative = new CustomCreative(); + $customCreative->name = 'Custom creative'; + $customCreative->advertiserId = $advertiserId; + $customCreative->destinationUrl = 'http://google.com'; + + // Set the custom creative image asset. + $customCreativeAsset = new CustomCreativeAsset(); + $customCreativeAsset->macroName = 'IMAGE_ASSET'; + // Filenames must be unique. + $customCreativeAsset->fileName = sprintf('inline%s.jpg', uniqid()); + $customCreativeAsset->assetByteArray = MediaUtils::GetBase64Data( + 'http://www.google.com/intl/en/adwords/select/images/samples/inline.jpg'); + $customCreative->customCreativeAssets = array($customCreativeAsset); + + // Set the HTML snippet using the custom creative asset macro. + $customCreative->htmlSnippet = '' + . '' + . '
Click above for great deals!'; + + // Set the creative size. + $customCreative->size = new Size(300, 250, FALSE); + + // Create the custom creative on the server. + $customCreative = $creativeService->createCreative($customCreative); + + // Display results. + if (isset($customCreative)) { + printf("A custom creative with ID '%s', name '%s', and size '%sx%s' was " + . "created and can be previewed at: %s\n", $templateCreative->id, + $templateCreative->name, $templateCreative->size->width, + $templateCreative->size->height, $templateCreative->previewUrl); + } else { + print "No creative was created.\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/v201208/CreativeService/GetAllCreativesExample.php b/examples/Dfp/v201208/CreativeService/GetAllCreativesExample.php new file mode 100755 index 000000000..91ff70e9e --- /dev/null +++ b/examples/Dfp/v201208/CreativeService/GetAllCreativesExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201208'); + + // Set defaults for page and statement. + $page = new CreativePage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all creatives. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201208/CreativeService/GetCreativeExample.php b/examples/Dfp/v201208/CreativeService/GetCreativeExample.php new file mode 100755 index 000000000..1f5ae7788 --- /dev/null +++ b/examples/Dfp/v201208/CreativeService/GetCreativeExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201208'); + + // Set the ID of the creative to get. + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Get the creative. + $creative = $creativeService->getCreative($creativeId); + + // Display results. + if (isset($creative)) { + print 'Creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType . "\" was found.\n"; + } else { + print "No creative found for this ID.\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/v201208/CreativeService/GetCreativesByStatementExample.php b/examples/Dfp/v201208/CreativeService/GetCreativesByStatementExample.php new file mode 100755 index 000000000..e63fdd772 --- /dev/null +++ b/examples/Dfp/v201208/CreativeService/GetCreativesByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201208'); + + // 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/v201208/CreativeService/UpdateCreativesExample.php b/examples/Dfp/v201208/CreativeService/UpdateCreativesExample.php new file mode 100755 index 000000000..e9c55f1e5 --- /dev/null +++ b/examples/Dfp/v201208/CreativeService/UpdateCreativesExample.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201208'); + + // Create a statement to get all image creatives. + $filterStatement = + new Statement("WHERE creativeType = 'ImageCreative' LIMIT 500"); + + // Get creatives by statement. + $page = $creativeService->getCreativesByStatement($filterStatement); + + if (isset($page->results)) { + $creatives = $page->results; + + // Update each local creative object by changing its destination URL. + foreach ($creatives as $creative) { + $creative->destinationUrl = 'http://news.google.com'; + } + + // Update the creatives on the server. + $creatives = $creativeService->updateCreatives($creatives); + + // 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"; + } + } else { + print "No creatives 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/v201208/CreativeSetService/CreateCreativeSetExample.php b/examples/Dfp/v201208/CreativeSetService/CreateCreativeSetExample.php new file mode 100755 index 000000000..737b4ce85 --- /dev/null +++ b/examples/Dfp/v201208/CreativeSetService/CreateCreativeSetExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201208'); + + // Set the ID of the creatives to associate with this set. + $masterCreativeID = 'INSERT_MASTER_CREATIVE_ID_HERE'; + $companionCreativeID = 'INSERT_COMPANION_CREATIVE_ID_HERE'; + + // Create a local creative set. + $creativeSet = new CreativeSet(); + $creativeSet->name = 'Creative set #' . uniqid(); + $creativeSet->masterCreativeId = $masterCreativeID; + $creativeSet->companionCreativeIds = array(); + $creativeSet->companionCreativeIds[] = $companionCreativeID; + + // Create the creative set on the server. + $creativeSet = $creativeSetService->createCreativeSet($creativeSet); + + // Display results. + if (isset($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)); + } else { + print "No creative set created.\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/v201208/CreativeSetService/GetAllCreativesSetsExample.php b/examples/Dfp/v201208/CreativeSetService/GetAllCreativesSetsExample.php new file mode 100755 index 000000000..ce9005bd9 --- /dev/null +++ b/examples/Dfp/v201208/CreativeSetService/GetAllCreativesSetsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201208'); + + // Set default offset. + $offset = 0; + $filterStatement = new Statement(); + + do { + // Create a statement to get all creative sets. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201208/CreativeSetService/GetCreativeSetsByStatementExample.php b/examples/Dfp/v201208/CreativeSetService/GetCreativeSetsByStatementExample.php new file mode 100755 index 000000000..ad16e4be1 --- /dev/null +++ b/examples/Dfp/v201208/CreativeSetService/GetCreativeSetsByStatementExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201208'); + + $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/v201208/CreativeSetService/UpdateCreativeSetExample.php b/examples/Dfp/v201208/CreativeSetService/UpdateCreativeSetExample.php new file mode 100755 index 000000000..7b3e3c7ad --- /dev/null +++ b/examples/Dfp/v201208/CreativeSetService/UpdateCreativeSetExample.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201208'); + + # Set the ID of the creative set to get. + $creativeSetID = 'INSERT_CREATIVE_SET_ID_HERE'; + $companionCreativeID = 'INSERT_COMPANION_CREATIVE_ID_HERE'; + + # Get creative set. + $creativeSet = $creativeSetService->getCreativeSet($creativeSetID); + + $creativeSet->companionCreativeIds[] = $companionCreativeID; + + # Update the creative set on the server. + $creativeSet = $creativeSetService->updateCreativeSet($creativeSet); + + // Display results. + if (isset($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)); + } else { + print "No creative set 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/v201208/CreativeTemplateService/GetAllCreativeTemplatesExample.php b/examples/Dfp/v201208/CreativeTemplateService/GetAllCreativeTemplatesExample.php new file mode 100755 index 000000000..12d6c1804 --- /dev/null +++ b/examples/Dfp/v201208/CreativeTemplateService/GetAllCreativeTemplatesExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201208'); + + // Set defaults for page and statement. + $page = new CreativeTemplatePage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all creative templates. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201208/CreativeTemplateService/GetCreativeTemplateExample.php b/examples/Dfp/v201208/CreativeTemplateService/GetCreativeTemplateExample.php new file mode 100755 index 000000000..48a475dcf --- /dev/null +++ b/examples/Dfp/v201208/CreativeTemplateService/GetCreativeTemplateExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201208'); + + // Set the ID of the creative template to get. + $creativeTemplateId = 'INSERT_CREATIVE_TEMPLATE_ID_HERE'; + + // Get the creative template. + $creativeTemplate = + $creativeTemplateService->getCreativeTemplate($creativeTemplateId); + + // Display results. + if (isset($creativeTemplate)) { + printf("Creative template with ID '%s', name '%s', and type '%s' was " + ."found.\n", $creativeTemplate->id, $creativeTemplate->name, + $creativeTemplate->type); + } else { + print "No creative template found for this ID.\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/v201208/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php b/examples/Dfp/v201208/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php new file mode 100755 index 000000000..7078dbf01 --- /dev/null +++ b/examples/Dfp/v201208/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201208'); + + // 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/v201208/CustomFieldService/CreateCustomFieldOptions.php b/examples/Dfp/v201208/CustomFieldService/CreateCustomFieldOptions.php new file mode 100755 index 000000000..51f73da90 --- /dev/null +++ b/examples/Dfp/v201208/CustomFieldService/CreateCustomFieldOptions.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = + $user->GetService('CustomFieldService', 'v201208'); + + // Set the ID of the drop-down custom field to create options for. + $customFieldId = "INSERT_DROP_DOWN_CUSTOM_FIELD_ID_HERE"; + + // Create custom field options. + $customFieldOption1 = new CustomFieldOption(); + $customFieldOption1->displayName = 'Approved'; + $customFieldOption1->customFieldId = $customFieldId; + + $customFieldOption2 = new CustomFieldOption(); + $customFieldOption2->displayName = 'Unapproved'; + $customFieldOption2->customFieldId = $customFieldId; + + // Create the custom targeting keys on the server. + $customFieldOptions = $customFieldService->createCustomFieldOptions( + array($customFieldOption1, $customFieldOption2)); + + // Display results. + if (isset($customFieldOptions)) { + foreach ($customFieldOptions as $customFieldOption) { + printf("A custom field option with ID '%s' and name '%s' was created.\n", + $customFieldOption->id, $customFieldOption->displayName); + } + } else { + print "No custom field options were created.\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/v201208/CustomFieldService/CreateCustomFields.php b/examples/Dfp/v201208/CustomFieldService/CreateCustomFields.php new file mode 100755 index 000000000..de703e7a2 --- /dev/null +++ b/examples/Dfp/v201208/CustomFieldService/CreateCustomFields.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = + $user->GetService('CustomFieldService', 'v201208'); + + // Create custom fields. + $customField1 = new CustomField(); + $customField1->name = 'Customer comments #' . time(); + $customField1->entityType = 'LINE_ITEM'; + $customField1->dataType = 'STRING'; + $customField1->visibility = 'FULL'; + + $customField2 = new CustomField(); + $customField2->name = 'Internal approval status #' . time(); + $customField2->entityType = 'LINE_ITEM'; + $customField2->dataType = 'DROP_DOWN'; + $customField2->visibility = 'FULL'; + + // Create the custom fields on the server. + $customFields = $customFieldService->createCustomFields( + array($customField1, $customField2)); + + // Display results. + if (isset($customFields)) { + foreach ($customFields as $customField) { + printf("A custom field with ID '%s' and name '%s' was created.\n", + $customField->id, $customField->name); + } + } else { + print "No custom fields were created.\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/v201208/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php b/examples/Dfp/v201208/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php new file mode 100755 index 000000000..da3a6b86c --- /dev/null +++ b/examples/Dfp/v201208/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php @@ -0,0 +1,123 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201208'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('entityType' => new TextValue("LINE_ITEM"), + 'isActive' => new BooleanValue("TRUE"))); + + // Create statement text to select only active custom fields that apply + // to line items. + $filterStatementText = + "WHERE entityType = :entityType and isActive = :isActive"; + $offset = 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); + + // Display results. + $customFieldIds = array(); + if (isset($page->results)) { + $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; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of custom fields to be deactivated: ' . sizeof($customFieldIds) + . "\n"; + + if (sizeof($customFieldIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $customFieldIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateCustomFields(); + + // Perform action. + $result = $customFieldService->performCustomFieldAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of custom fields deactivated: ' . $result->numChanges + . "\n"; + } else { + print "No custom fields 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/v201208/CustomFieldService/GetAllCustomFieldsExample.php b/examples/Dfp/v201208/CustomFieldService/GetAllCustomFieldsExample.php new file mode 100755 index 000000000..65a0ab1d3 --- /dev/null +++ b/examples/Dfp/v201208/CustomFieldService/GetAllCustomFieldsExample.php @@ -0,0 +1,87 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201208'); + + // Set defaults for page and statement. + $page = new CustomFieldPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all custom fields. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get custom fields by statement. + $page = $customFieldService->getCustomFieldsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $customField) { + print $i . ') Custom field with ID "' . $customField->id + . '" and name "' . $customField->name . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201208/CustomFieldService/SetLineItemCustomFieldValue.php b/examples/Dfp/v201208/CustomFieldService/SetLineItemCustomFieldValue.php new file mode 100755 index 000000000..1e2acb3f5 --- /dev/null +++ b/examples/Dfp/v201208/CustomFieldService/SetLineItemCustomFieldValue.php @@ -0,0 +1,128 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201208'); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201208'); + + // Set the IDs of the custom fields, custom field option, and line item. + $customFieldId = "INSERT_CUSTOM_FIELD_ID_HERE"; + $dropDownCustomFieldId = "INSERT_DROP_DOWN_CUSTOM_FIELD_ID_HERE"; + $customFieldOptionId = "INSERT_CUSTOM_FIELD_OPTION_ID_HERE"; + $lineItemId = "INSERT_LINE_ITEM_ID_HERE"; + + // Get the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + + // Create custom field values. + $customFieldValues = array(); + + $customFieldValue = new CustomFieldValue(); + $customFieldValue->customFieldId = $customFieldId; + $customFieldValue->value = new TextValue("Custom field value"); + $customFieldValues[] = $customFieldValue; + + $dropDownCustomFieldValue = new DropDownCustomFieldValue(); + $dropDownCustomFieldValue->customFieldId = $dropDownCustomFieldId; + $dropDownCustomFieldValue->customFieldOptionId = $customFieldOptionId; + $customFieldValues[] = $dropDownCustomFieldValue; + + // Only add existing custom field values for different custom fields than + // the ones you are setting. + if (isset($lineItem->customFieldValues)) { + foreach ($lineItem->customFieldValues as $oldCustomFieldValue) { + if (($oldCustomFieldValue->customFieldId != $customFieldId) && + ($oldCustomFieldValue->customFieldId != $dropDownCustomFieldId)) { + $customFieldValues[] = $oldCustomFieldValue; + } + } + } + + $lineItem->customFieldValues = $customFieldValues; + + // Update the line item on the server. + $lineItems = $lineItemService->updateLineItems($lineItem); + + if (isset($lineItems)) { + foreach ($lineItems as $lineItem) { + $customFieldValueStrings = array(); + foreach ($lineItem->customFieldValues as $baseCustomFieldValue) { + if (($baseCustomFieldValue instanceof CustomFieldValue)) { + $customFieldValueStrings[] = "{ID: '" + . $baseCustomFieldValue->customFieldId . "', value: '" + . $baseCustomFieldValue->value->value . "'}"; + } else if ($baseCustomFieldValue instanceof DropDownCustomFieldValue) { + $customFieldValueStrings[] = "{ID: '" + . $baseCustomFieldValue->customFieldId + . "', custom field option ID: '" + . $baseCustomFieldValue->customFieldOptionId . "'}"; + } + } + print "A line item with ID '" . $lineItem->id + . "' was set with custom field values '" + . join(",", $customFieldValueStrings) . "'."; + } + } + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CustomFieldService/UpdateCustomFieldExample.php b/examples/Dfp/v201208/CustomFieldService/UpdateCustomFieldExample.php new file mode 100755 index 000000000..0648d82ea --- /dev/null +++ b/examples/Dfp/v201208/CustomFieldService/UpdateCustomFieldExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201208'); + + // Set the ID of the custom field to update. + $customFieldId = "INSERT_CUSTOM_FIELD_ID_HERE"; + + // Get the custom field. + $customField = $customFieldService->getCustomField($customFieldId); + + if (isset($customField)) { + $customField->description = "Description " . time(); + + $customFields = array(); + $customFields[] = $customField; + + // Update the custom field on the server. + $customFields = $customFieldService->updateCustomFields($customFields); + + // Display results. + if (isset($customFields)) { + foreach ($customFields as $customField) { + print 'Custom field with ID "' + . $customField->id . '", name "' . $customField->name + . '", and description "' . $customField->description + . "\" was updated.\n"; + } + } else { + print "No custom fields were updated.\n"; + } + } else { + print "No custom fields 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/v201208/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php b/examples/Dfp/v201208/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php new file mode 100755 index 000000000..066ab50a3 --- /dev/null +++ b/examples/Dfp/v201208/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php @@ -0,0 +1,152 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201208'); + + // Create predefined key. + $genderKey = new CustomTargetingKey(); + $genderKey->displayName = 'gender'; + $genderKey->name = 'g'; + $genderKey->type = 'PREDEFINED'; + + // Create predefined key that may be used for content targeting. + $genreKey = new CustomTargetingKey(); + $genreKey->displayName = 'genre'; + $genreKey->name = 'genre'; + $genreKey->type = 'PREDEFINED'; + + // Create free-form key. + $carModelKey = new CustomTargetingKey(); + $carModelKey->displayName = 'car model'; + $carModelKey->name = 'c'; + $carModelKey->type = 'FREEFORM'; + + // Create the custom targeting keys on the server. + $keys = $customTargetingService->createCustomTargetingKeys( + array($genderKey, $genreKey, $carModelKey)); + + if (isset($keys)) { + foreach ($keys as $key) { + printf("A custom targeting key with ID '%s', name '%s', and display " . + "name '%s' was created.\n", $key->id, $key->name, $key->displayName); + } + } else { + print "No keys were created.\n"; + } + + // Create custom targeting value for the predefined gender key. + $genderMaleValue = new CustomTargetingValue(); + $genderMaleValue->customTargetingKeyId = $keys[0]->id; + $genderMaleValue->displayName = 'male'; + // Name is set to 1 so that the actual name can be hidden from website + // users. + $genderMaleValue->name = '1'; + $genderMaleValue->matchType = 'EXACT'; + + $genderFemaleValue = new CustomTargetingValue(); + $genderFemaleValue->customTargetingKeyId = $keys[0]->id; + $genderFemaleValue->displayName = 'female'; + // Name is set to 2 so that the actual name can be hidden from website + // users. + $genderFemaleValue->name = '2'; + $genderFemaleValue->matchType = 'EXACT'; + + // Create custom targeting value for the predefined genre key. + $genreComedyValue = new CustomTargetingValue(); + $genreComedyValue->customTargetingKeyId = $keys[1]->id; + $genreComedyValue->displayName = 'comedy'; + $genreComedyValue->name = 'comedy'; + $genreComedyValue->matchType = 'EXACT'; + + $genreDramaValue = new CustomTargetingValue(); + $genreDramaValue->customTargetingKeyId = $keys[1]->id; + $genreDramaValue->displayName = 'drama'; + $genreDramaValue->name = 'drama'; + $genreDramaValue->matchType = 'EXACT'; + + // Create custom targeting value for the free-form age key. These are + // values that would be suggested in the UI or can be used when targeting + // with a free-form custom criterion. + $carModelHondaCivicValue = new CustomTargetingValue(); + $carModelHondaCivicValue->customTargetingKeyId = $keys[2]->id; + $carModelHondaCivicValue->displayName = 'honda civic'; + $carModelHondaCivicValue->name = 'honda civic'; + // Setting match type to exact will match exactly 'honda civic'. + $carModelHondaCivicValue->matchType = 'EXACT'; + + // Create the custom targeting values on the server. + $values = $customTargetingService->createCustomTargetingValues(array( + $genderMaleValue, $genderFemaleValue, $genreComedyValue, + $genreDramaValue, $carModelHondaCivicValue)); + + if (isset($values)) { + foreach ($values as $value) { + printf("A custom targeting value with ID '%s', belonging to key " . + "with ID '%s', name '%s', and display name '%s' was created.\n", + $value->id, $value->customTargetingKeyId, $value->name, + $value->displayName); + } + } else { + print "No values were created.\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/v201208/CustomTargetingService/DeleteCustomTargetingKeysExample.php b/examples/Dfp/v201208/CustomTargetingService/DeleteCustomTargetingKeysExample.php new file mode 100755 index 000000000..69f7745a7 --- /dev/null +++ b/examples/Dfp/v201208/CustomTargetingService/DeleteCustomTargetingKeysExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201208'); + + // 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'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('name' => new TextValue($keyName))); + + $offset = 0; + $keyIds = array(); + + 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); + + if (isset($page->results)) { + foreach ($page->results as $customTargetingKey) { + $keyIds[] = $customTargetingKey->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + printf("Number of custom targeting keys to be deleted: %d\n", + sizeof($keyIds)); + + if (sizeof($keyIds) > 0) { + // Create action statement. + $filterStatementText = sprintf('WHERE id IN (%s)', implode(',', $keyIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeleteCustomTargetingKeys(); + + // Perform action. + $result = $customTargetingService->performCustomTargetingKeyAction( + $action, $filterStatement); + + // 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"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CustomTargetingService/DeleteCustomTargetingValuesExample.php b/examples/Dfp/v201208/CustomTargetingService/DeleteCustomTargetingValuesExample.php new file mode 100755 index 000000000..59e8d2747 --- /dev/null +++ b/examples/Dfp/v201208/CustomTargetingService/DeleteCustomTargetingValuesExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201208'); + + // 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'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('keyId' => new NumberValue($keyId))); + + $offset = 0; + $valueIds = array(); + + 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); + + if (isset($page->results)) { + foreach ($page->results as $customTargetingValue) { + $valueIds[] = $customTargetingValue->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + printf("Number of custom targeting values to be deleted: %d\n", + sizeof($valueIds)); + + if (sizeof($valueIds) > 0) { + // Create action statement. + $filterStatementText .= sprintf(' AND id IN (%s)', implode(',', $valueIds)); + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeleteCustomTargetingValues(); + + // Perform action. + $result = $customTargetingService->performCustomTargetingValueAction( + $action, $filterStatement); + + // 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"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php b/examples/Dfp/v201208/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php new file mode 100755 index 000000000..33f43a30b --- /dev/null +++ b/examples/Dfp/v201208/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php @@ -0,0 +1,137 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201208'); + + $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/v201208/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php b/examples/Dfp/v201208/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php new file mode 100755 index 000000000..81e3bf446 --- /dev/null +++ b/examples/Dfp/v201208/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201208'); + + // 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/v201208/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php b/examples/Dfp/v201208/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php new file mode 100755 index 000000000..2015a5197 --- /dev/null +++ b/examples/Dfp/v201208/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201208'); + + // Set the ID of the custom targeting key to get custom targeting values for. + $keyId = '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($keyId)))); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingValuesByStatement( + $filterStatement); + + // 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++; + } + } + + 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/v201208/CustomTargetingService/UpdateCustomTargetingKeysExample.php b/examples/Dfp/v201208/CustomTargetingService/UpdateCustomTargetingKeysExample.php new file mode 100755 index 000000000..3e5dcaf19 --- /dev/null +++ b/examples/Dfp/v201208/CustomTargetingService/UpdateCustomTargetingKeysExample.php @@ -0,0 +1,100 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201208'); + + // Create a statement to get all custom targeting keys. + $filterStatement = new Statement('LIMIT 500'); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $filterStatement); + + if (isset($page->results)) { + $keys = $page->results; + + // 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 keys on the server. + $keys = $customTargetingService->updateCustomTargetingKeys($keys); + + // 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"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CustomTargetingService/UpdateCustomTargetingValuesExample.php b/examples/Dfp/v201208/CustomTargetingService/UpdateCustomTargetingValuesExample.php new file mode 100755 index 000000000..8c4a93330 --- /dev/null +++ b/examples/Dfp/v201208/CustomTargetingService/UpdateCustomTargetingValuesExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201208'); + + // 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/v201208/ForecastService/GetForecastByIdExample.php b/examples/Dfp/v201208/ForecastService/GetForecastByIdExample.php new file mode 100755 index 000000000..e7e36f44f --- /dev/null +++ b/examples/Dfp/v201208/ForecastService/GetForecastByIdExample.php @@ -0,0 +1,80 @@ +LogDefaults(); + + // Get the ForecastService. + $forecastService = $user->GetService('ForecastService', 'v201208'); + + // Set the line item to get a forecast for. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Get forecast for line item. + $forecast = $forecastService->getForecastById($lineItemId); + + // 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)) { + $percentPossibleUnits = $forecast->possibleUnits / $matchedUnits * 100; + printf("%d%% %s possible.\n", $percentPossibleUnits, $unitType); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/ForecastService/GetForecastExample.php b/examples/Dfp/v201208/ForecastService/GetForecastExample.php new file mode 100755 index 000000000..f680e760a --- /dev/null +++ b/examples/Dfp/v201208/ForecastService/GetForecastExample.php @@ -0,0 +1,112 @@ +LogDefaults(); + + // Get the ForecastService. + $forecastService = $user->GetService('ForecastService', 'v201208'); + + // Set the placement ID that the prospective line item will target. + $targetPlacementId = 'INSERT_PLACEMENT_ID_HERE'; + + // Create prospective line item. + $lineItem = new LineItem(); + $lineItem->lineItemType = 'SPONSORSHIP'; + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedPlacementIds = array($targetPlacementId); + + // Set targeting for line item. + $targeting = new Targeting(); + $targeting->inventoryTargeting = $inventoryTargeting; + $lineItem->targeting = $targeting; + + // 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 line item's time to be now until the projected end date time. + $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; + + // Set the cost type to match the unit type. + $lineItem->costType = 'CPM'; + + // Get forecast for line item. + $forecast = $forecastService->getForecast($lineItem); + + // 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)) { + $percentPossibleUnits = $forecast->possibleUnits / $matchedUnits * 100; + printf("%d%% %s possible.\n", $percentPossibleUnits, $unitType); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/InventoryService/CreateAdUnitsExample.php b/examples/Dfp/v201208/InventoryService/CreateAdUnitsExample.php new file mode 100755 index 000000000..346d51074 --- /dev/null +++ b/examples/Dfp/v201208/InventoryService/CreateAdUnitsExample.php @@ -0,0 +1,105 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201208'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201208'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + // Create an array to store local ad unit objects. + $adUnits = array(); + + for ($i = 0; $i < 5; $i++) { + $adUnit = new AdUnit(); + $adUnit->name = uniqid('Ad_Unit_'); + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + + // Create ad unit size. + $adUnitSize = new AdUnitSize(); + $adUnitSize->size = new Size(300, 250, FALSE); + $adUnitSize->environmentType = 'BROWSER'; + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($adUnitSize); + + $adUnits[] = $adUnit; + } + + // Create the ad units on the server. + $adUnits = $inventoryService->createAdUnits($adUnits); + + // Display results. + if (isset($adUnits)) { + foreach ($adUnits as $adUnit) { + print 'An ad unit with ID "' . $adUnit->id + . '" was created under parent with ID "' . $adUnit->parentId + . "\".\n"; + } + } else { + print "No ad units created.\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/v201208/InventoryService/CreateMobileAdUnitExample.php b/examples/Dfp/v201208/InventoryService/CreateMobileAdUnitExample.php new file mode 100755 index 000000000..a100bb136 --- /dev/null +++ b/examples/Dfp/v201208/InventoryService/CreateMobileAdUnitExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201208'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201208'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + $adUnit = new AdUnit(); + $adUnit->name = uniqid('Mobile_Ad_Unit_'); + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + $adUnit->targetPlatform = 'MOBILE'; + $adUnit->mobilePlatform = 'APPLICATION'; + + // Create ad unit size. + $adUnitSize = new AdUnitSize(); + $adUnitSize->size = new Size(400, 300, FALSE); + $adUnitSize->environmentType = 'BROWSER'; + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($adUnitSize); + + // Create the ad unit on the server. + $adUnit = $inventoryService->createAdUnit($adUnit); + + // Display results. + if (isset($adUnit)) { + printf("An ad unit with ID '%s' was created under parent with ID '%s'.\n", + $adUnit->id, $adUnit->parentId); + } else { + print "No ad unit was created.\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/v201208/InventoryService/CreateVideoAdUnitExample.php b/examples/Dfp/v201208/InventoryService/CreateVideoAdUnitExample.php new file mode 100755 index 000000000..3fcf22e72 --- /dev/null +++ b/examples/Dfp/v201208/InventoryService/CreateVideoAdUnitExample.php @@ -0,0 +1,111 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201208'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201208'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + // Create local ad unit object. + $adUnit = new AdUnit(); + $adUnit->name = 'Video_Ad_Unit'; + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + $adUnit->explicitlyTargeted = TRUE; + $adUnit->targetPlatform = 'WEB'; + + // Create master ad unit size. + $masterAdUnitSize = new AdUnitSize(); + $masterAdUnitSize->size = new Size(400, 300, FALSE); + $masterAdUnitSize->environmentType = 'VIDEO_PLAYER'; + + // Create companion sizes. + $companionAdUnitSize1 = new AdUnitSize(); + $companionAdUnitSize1->size = new Size(300, 250, FALSE); + $companionAdUnitSize1->environmentType = 'BROWSER'; + + $companionAdUnitSize2 = new AdUnitSize(); + $companionAdUnitSize2->size = new Size(728, 90, FALSE); + $companionAdUnitSize2->environmentType = 'BROWSER'; + + // Add companions to master ad unit size. + $masterAdUnitSize->companions = + array($companionAdUnitSize1, $companionAdUnitSize2); + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($masterAdUnitSize); + + // Create the ad unit on the server. + $adUnit = $inventoryService->createAdUnit($adUnit); + + // Display results. + if (isset($adUnit)) { + printf("An ad unit with ID '%s' was created under parent with ID '%s'.\n", + $adUnit->id, $adUnit->parentId); + } else { + print "No ad unit was created.\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/v201208/InventoryService/DeactivateAdUnitsExample.php b/examples/Dfp/v201208/InventoryService/DeactivateAdUnitsExample.php new file mode 100755 index 000000000..3eb66ad92 --- /dev/null +++ b/examples/Dfp/v201208/InventoryService/DeactivateAdUnitsExample.php @@ -0,0 +1,113 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201208'); + + // Create statement text to get all active ad units. + $filterStatementText = "WHERE status = 'ACTIVE'"; + + $offset = 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); + + // Display results. + $adUnitIds = array(); + 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 . "\" will be deactivated.\n"; + $i++; + $adUnitIds[] = $adUnit->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of ad units to be deactivated: ' . sizeof($adUnitIds) . "\n"; + + if (sizeof($adUnitIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $adUnitIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateAdUnits(); + + // Perform action. + $result = $inventoryService->performAdUnitAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of ad units deactivated: ' . $result->numChanges . "\n"; + } else { + print "No ad units 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/v201208/InventoryService/GetAdUnitExample.php b/examples/Dfp/v201208/InventoryService/GetAdUnitExample.php new file mode 100755 index 000000000..ad48fbfd3 --- /dev/null +++ b/examples/Dfp/v201208/InventoryService/GetAdUnitExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201208'); + + // Set the ID of the ad unit to get. + $adUnitId = 'INSERT_AD_UNIT_ID_HERE'; + + // Get the ad unit. + $adUnit = $inventoryService->getAdUnit($adUnitId); + + // Display results. + if (isset($adUnit)) { + print 'Ad unit with ID "' . $adUnit->id + . '", name "' . $adUnit->name + . '", and status "' . $adUnit->status . "\" was found.\n"; + } else { + print "No ad unit found for this ID.\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/v201208/InventoryService/GetAdUnitSizesExample.php b/examples/Dfp/v201208/InventoryService/GetAdUnitSizesExample.php new file mode 100755 index 000000000..86c80eda0 --- /dev/null +++ b/examples/Dfp/v201208/InventoryService/GetAdUnitSizesExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201208'); + + // 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); + + // Get all ad unit sizes by statement. + $adUnitSizes = $inventoryService->getAdUnitSizesByStatement($filterStatement); + + // Display results. + $i = 0; + foreach ($adUnitSizes as $adUnitSize) { + printf("%d) Web ad unit size of dimensions %s was found.\n", $i, + $adUnitSize->fullDisplayString); + $i++; + } + + 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"; +} + diff --git a/examples/Dfp/v201208/InventoryService/GetAdUnitsByStatementExample.php b/examples/Dfp/v201208/InventoryService/GetAdUnitsByStatementExample.php new file mode 100755 index 000000000..6aef38ffb --- /dev/null +++ b/examples/Dfp/v201208/InventoryService/GetAdUnitsByStatementExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201208'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201208'); + + // Get the effective root ad unit's ID. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->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)))); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // 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++; + } + } + + 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/v201208/InventoryService/GetAllAdUnitsExample.php b/examples/Dfp/v201208/InventoryService/GetAllAdUnitsExample.php new file mode 100755 index 000000000..0ffbf1772 --- /dev/null +++ b/examples/Dfp/v201208/InventoryService/GetAllAdUnitsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201208'); + + // Set defaults for page and statement. + $page = new AdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201208/InventoryService/GetInventoryTreeExample.php b/examples/Dfp/v201208/InventoryService/GetInventoryTreeExample.php new file mode 100755 index 000000000..4fb728da5 --- /dev/null +++ b/examples/Dfp/v201208/InventoryService/GetInventoryTreeExample.php @@ -0,0 +1,206 @@ +GetService('InventoryService', 'v201208'); + + // Create array to hold all ad units. + $adUnits = array(); + + // Set defaults for page and statement. + $page = new AdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + $adUnits = array_merge($adUnits, $page->results); + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + return $adUnits; +} + +/** + * Finds the root ad unit for the user. + * @param DfpUser $user the user to get the root ad unit for + * @return the ad unit representing the root ad unit or NULL if one + * is not found. + * @access private + */ +function FindRootAdUnit(DfpUser $user) { + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201208'); + + // Create a statement to only select image creatives. + $filterStatement = new Statement("WHERE parentId IS NULL LIMIT 1"); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + return $page->results[0]; + } else { + return NULL; + } +} + +/** + * Builds and displays an ad unit tree from an array of ad units underneath + * the root ad unit. + * @param AdUnit $root the root ad unit to build the tree under + * @param array $adUnits the array of ad units. + * @access private + */ +function BuildAndDisplayAdUnitTree(AdUnit $root, + array $adUnits) { + $treeMap = array(); + + foreach ($adUnits as $adUnit) { + if (isset($adUnit->parentId)) { + $treeMap[$adUnit->parentId][] = $adUnit; + } + } + + if (isset($root)) { + DisplayInventoryTree($root, $treeMap); + } else { + print "No root unit found.\n"; + } +} + +/** + * Displays the ad unit tree beginning at the root ad unit. + * @param AdUnit $root the root ad unit + * @param array $treeMap the map of id to array of ad units + * @access private + */ +function DisplayInventoryTree(AdUnit $root, array $treeMap) { + DisplayInventoryTreeHelper($root, $treeMap, 0); +} + +/** + * Helper for displaying inventory units. + * @param AdUnit $root the root inventory unit + * @param array $treeMap the map of id to array of inventory units + * @param $depth the depth the tree has reached + * @access private + */ +function DisplayInventoryTreeHelper(AdUnit $root, + array $treeMap, $depth) { + print GenerateTab($depth) . $root->name . ' (' + . $root->id . ")\n"; + + if (isset($treeMap[$root->id])) { + foreach ($treeMap[$root->id] as $child) { + DisplayInventoryTreeHelper($child, + $treeMap, $depth + 1); + } + } +} + +/** + * Generates a string of tabs to represent branching to children. + * @param $depth a depth from 0 to max(depth) + * @return string a string to insert in front of the root unit + * @access private + */ +function GenerateTab($depth) { + $tab = ''; + + if ($depth != 0) { + $tab .= ' '; + } + + for ($i = 1; $i < $depth; $i++) { + $tab .= '| '; + } + + return $tab . '+--'; +} + +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->LogDefaults(); + + $allAdUnits = GetAllAdUnits($user); + + // Find the root ad unit. rootAdUnit can also be set to child unit to + // only build and display a portion of the tree. + // i.e. $adUnit = $inventoryService->getAdUnit("INSERT_AD_UNIT_ID_HERE") + $rootAdUnit = FindRootAdUnit($user); + + if (isset($rootAdUnit)) { + BuildAndDisplayAdUnitTree($rootAdUnit, $allAdUnits); + } else { + print "Could not build tree. No root ad unit found.\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/v201208/InventoryService/UpdateAdUnitsExample.php b/examples/Dfp/v201208/InventoryService/UpdateAdUnitsExample.php new file mode 100755 index 000000000..c15ba84b4 --- /dev/null +++ b/examples/Dfp/v201208/InventoryService/UpdateAdUnitsExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201208'); + + // Create a statement to get all ad units. + $filterStatement = new Statement("LIMIT 500"); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + $adUnits = $page->results; + + // Update each local ad unit object by enabling AdSense. + foreach ($adUnits as $adUnit) { + $adUnit->inheritedAdSenseSettings->value->adSenseEnabled = TRUE; + } + + // Update the ad units on the server. + $adUnits = $inventoryService->updateAdUnits($adUnits); + + // 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"; + } + } + } else { + print "No ad units updated.\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/v201208/LabelService/CreateLabelsExample.php b/examples/Dfp/v201208/LabelService/CreateLabelsExample.php new file mode 100755 index 000000000..3e0400fb3 --- /dev/null +++ b/examples/Dfp/v201208/LabelService/CreateLabelsExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201208'); + + // Create an array to store local label objects. + $labels = array(); + + for ($i = 0; $i < 5; $i++) { + $label = new Label(); + $label->name = 'Label #' . uniqid(); + $label->types = array('COMPETITIVE_EXCLUSION'); + $labels[] = $label; + } + + // Create the labels on the server. + $labels = $labelService->createLabels($labels); + + // Display results. + if (isset($labels)) { + foreach ($labels as $label) { + printf("A label with ID '%s', name '%s', and types {%s} was created.\n", + $label->id, $label->name, join(',', $label->types)); + } + } else { + print "No labels created.\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/v201208/LabelService/DeactivateLabelsExample.php b/examples/Dfp/v201208/LabelService/DeactivateLabelsExample.php new file mode 100755 index 000000000..80648c824 --- /dev/null +++ b/examples/Dfp/v201208/LabelService/DeactivateLabelsExample.php @@ -0,0 +1,111 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201208'); + + // Create statement text to get all active labels. + $filterStatementText = "WHERE isActive = true"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset); + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // Display results. + $labelIds = array(); + if (isset($page->results)) { + 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; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of labels to be deactivated: ' . sizeof($labelIds) . "\n"; + + if (sizeof($labelIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $labelIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateLabels(); + + // Perform action. + $result = $labelService->performLabelAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of labels deactivated: ' . $result->numChanges . "\n"; + } else { + print "No labels 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/v201208/LabelService/GetAllLabelsExample.php b/examples/Dfp/v201208/LabelService/GetAllLabelsExample.php new file mode 100755 index 000000000..dfe34fac7 --- /dev/null +++ b/examples/Dfp/v201208/LabelService/GetAllLabelsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201208'); + + // Set defaults for page and statement. + $page = new LabelPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all labels. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201208/LabelService/GetLabelExample.php b/examples/Dfp/v201208/LabelService/GetLabelExample.php new file mode 100755 index 000000000..d8376e9d0 --- /dev/null +++ b/examples/Dfp/v201208/LabelService/GetLabelExample.php @@ -0,0 +1,75 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201208'); + + // Set the ID of the label to get. + $labelId = 'INSERT_LABEL_ID_HERE'; + + // Get the label. + $label = $labelService->getLabel($labelId); + + if (isset($label)) { + printf("Label with ID '%s', name '%s', and type {%s} was found.\n", + $label->id, $label->name, join(",", $label->types)); + } else { + print "No label found for this ID.\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/v201208/LabelService/GetLabelsByStatementExample.php b/examples/Dfp/v201208/LabelService/GetLabelsByStatementExample.php new file mode 100755 index 000000000..37ea7043e --- /dev/null +++ b/examples/Dfp/v201208/LabelService/GetLabelsByStatementExample.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201208'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array()); + + // Create a statement to select labels ordered by name. + $filterStatement = + new Statement("ORDER BY name LIMIT 500", $vars); + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // 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++; + } + } + + 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/v201208/LabelService/UpdateLabelsExample.php b/examples/Dfp/v201208/LabelService/UpdateLabelsExample.php new file mode 100755 index 000000000..4f41db46b --- /dev/null +++ b/examples/Dfp/v201208/LabelService/UpdateLabelsExample.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201208'); + + // 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/v201208/LicaService/CreateLicasExample.php b/examples/Dfp/v201208/LicaService/CreateLicasExample.php new file mode 100755 index 000000000..fadb524ec --- /dev/null +++ b/examples/Dfp/v201208/LicaService/CreateLicasExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201208'); + + // Set the line item ID and creative ID to associate + // them with. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Create local LICA. + $lica = new LineItemCreativeAssociation(); + $lica->creativeId = $creativeId; + $lica->lineItemId = $lineItemId; + + $licas = array($lica); + + // Create the LICAs on the server. + $licas = $licaService->createLineItemCreativeAssociations($licas); + + // Display results. + if (isset($licas)) { + foreach ($licas as $lica) { + print 'A LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" was created.\n"; + } + } else { + print "No LICAs created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/LicaService/DeactivateLicasExample.php b/examples/Dfp/v201208/LicaService/DeactivateLicasExample.php new file mode 100755 index 000000000..8ad649a30 --- /dev/null +++ b/examples/Dfp/v201208/LicaService/DeactivateLicasExample.php @@ -0,0 +1,127 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201208'); + + // 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 statement text to select active LICAs for a given line item. + $filterStatementText = "WHERE lineItemId = :lineItemId AND status = 'ACTIVE'"; + + $offset = 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); + + // Display results. + $creativeIds = array(); + 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 + . "\" will be deactivated.\n"; + $i++; + $creativeIds[] = $lica->creativeId; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of LICAs to be deactivated: ' . sizeof($lica->creativeId) + . "\n"; + + if (sizeof($lica->creativeId) > 0) { + // Create action statement. + $filterStatementText = sprintf( + 'WHERE lineItemId = :lineItemId AND creativeId IN (%s)', + implode(',', $creativeIds)); + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeactivateLineItemCreativeAssociations(); + + // Perform action. + $result = $licaService->performLineItemCreativeAssociationAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of LICAs deactivated: ' . $result->numChanges . "\n"; + } else { + print "No LICAs 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/v201208/LicaService/GetAllLicasExample.php b/examples/Dfp/v201208/LicaService/GetAllLicasExample.php new file mode 100755 index 000000000..a21c2fdcc --- /dev/null +++ b/examples/Dfp/v201208/LicaService/GetAllLicasExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201208'); + + // Set defaults for page and statement. + $page = new LineItemCreativeAssociationPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all LICAs. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $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); + } 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); + } + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201208/LicaService/GetLicaExample.php b/examples/Dfp/v201208/LicaService/GetLicaExample.php new file mode 100755 index 000000000..17d301090 --- /dev/null +++ b/examples/Dfp/v201208/LicaService/GetLicaExample.php @@ -0,0 +1,82 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201208'); + + // Set the line item and creative ID to use to retrieve the LICA. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Get the LICA. + $lica = $licaService->getLineItemCreativeAssociation($lineItemId, + $creativeId); + + // Display results. + if (isset($lica)) { + print 'A LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" was found.\n"; + } else { + print "No LICA found for this ID.\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/v201208/LicaService/GetLicasByStatementExample.php b/examples/Dfp/v201208/LicaService/GetLicasByStatementExample.php new file mode 100755 index 000000000..eac8c70fd --- /dev/null +++ b/examples/Dfp/v201208/LicaService/GetLicasByStatementExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201208'); + + // 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/v201208/LicaService/UpdateLicasExample.php b/examples/Dfp/v201208/LicaService/UpdateLicasExample.php new file mode 100755 index 000000000..a8dbbefc0 --- /dev/null +++ b/examples/Dfp/v201208/LicaService/UpdateLicasExample.php @@ -0,0 +1,96 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201208'); + + // Create a statement to get all LICAs. + $filterStatement = new Statement("LIMIT 500"); + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + if (isset($page->results)) { + $licas = $page->results; + + // Update each local LICA object by changing its destination URL. + foreach ($licas as $lica) { + $lica->destinationUrl = 'http://news.google.com'; + } + + // Update the LICAs on the server. + $licas = $licaService->updateLineItemCreativeAssociations($licas); + + // 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"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/LineItemService/ActivateLineItemsExample.php b/examples/Dfp/v201208/LineItemService/ActivateLineItemsExample.php new file mode 100755 index 000000000..839acfc4c --- /dev/null +++ b/examples/Dfp/v201208/LineItemService/ActivateLineItemsExample.php @@ -0,0 +1,132 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201208'); + + // 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/v201208/LineItemService/CreateLineItemsExample.php b/examples/Dfp/v201208/LineItemService/CreateLineItemsExample.php new file mode 100755 index 000000000..7e18eb5b6 --- /dev/null +++ b/examples/Dfp/v201208/LineItemService/CreateLineItemsExample.php @@ -0,0 +1,186 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201208'); + + // 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_PLACEMENT_ID_HERE'); + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedPlacementIds = $targetPlacementIds; + + // Create geographical targeting. + $geoTargeting = new GeoTargeting(); + + // Include the US, Quebec (Canada), and postal code B3P (Canada). + $countryLocation = new DfpLocation(); + $countryLocation->id = 2840; + + $regionLocation = new DfpLocation(); + $regionLocation->id = 20123; + + $postalCodeLocation = new PostalCodeLocation(); + $postalCodeLocation->id = 9000093; + + $geoTargeting->targetedLocations = array($countryLocation, $regionLocation); + + // Exclude Chicago and the New York metro area. + $cityLocation = new DfpLocation(); + $cityLocation->id = 1016367; + + $metroLocation = new DfpLocation(); + $metroLocation->id = 200501; + $geoTargeting->excludedLocations = array($cityLocation, $metroLocation); + + // Exclude users from US federal government domains. + $userDomainTargeting = new UserDomainTargeting(array('usa.gov'), FALSE); + + // Target only the weekend in the browser's timezone. + $saturdayDayPart = new DayPart(); + $saturdayDayPart->dayOfWeek = 'SATURDAY'; + $saturdayDayPart->startTime = new TimeOfDay(0, 'ZERO'); + $saturdayDayPart->endTime = new TimeOfDay(24, 'ZERO'); + + $sundayDayPart = new DayPart(); + $sundayDayPart->dayOfWeek = 'SUNDAY'; + $sundayDayPart->startTime = new TimeOfDay(0, 'ZERO'); + $sundayDayPart->endTime = new TimeOfDay(24, 'ZERO'); + + // Create day-part targeting. + $dayPartTargeting = new DayPartTargeting(); + $dayPartTargeting->timeZone = 'BROWSER'; + $dayPartTargeting->dayParts = array($saturdayDayPart, $sundayDayPart); + + // Target just the Chrome browser. + $browserTechnology = new Technology(); + $browserTechnology->id = 500072; + + // Create technology targeting. + $browserTargeting = new BrowserTargeting(); + $browserTargeting->browsers = array($browserTechnology); + $technologyTargeting = new TechnologyTargeting(); + $technologyTargeting->browserTargeting = $browserTargeting; + + // Create targeting. + $targeting = new Targeting(); + $targeting->inventoryTargeting = $inventoryTargeting; + $targeting->geoTargeting = $geoTargeting; + $targeting->userDomainTargeting = $userDomainTargeting; + $targeting->dayPartTargeting = $dayPartTargeting; + $targeting->technologyTargeting = $technologyTargeting; + + // Create an array to store local line item objects. + $lineItems = array(); + + for ($i = 0; $i < 5; $i++) { + $lineItem = new LineItem(); + $lineItem->name = 'Line item #' . uniqid(); + $lineItem->orderId = $orderId; + $lineItem->targeting = $targeting; + $lineItem->lineItemType = 'STANDARD'; + $lineItem->allowOverbook = 'TRUE'; + + // 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 creative rotation type to even. + $lineItem->creativeRotationType = 'EVEN'; + + // 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'; + + $lineItems[] = $lineItem; + } + + // Create the line items on the server. + $lineItems = $lineItemService->createLineItems($lineItems); + + // 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"; + } + } else { + print "No line items created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/LineItemService/CreateMobileLineItemExample.php b/examples/Dfp/v201208/LineItemService/CreateMobileLineItemExample.php new file mode 100755 index 000000000..a24200366 --- /dev/null +++ b/examples/Dfp/v201208/LineItemService/CreateMobileLineItemExample.php @@ -0,0 +1,160 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201208'); + + // 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. + $lineItem = $lineItemService->createLineItem($lineItem); + + // Display results. + if (isset($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); + } else { + print "No line item was created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/LineItemService/CreateVideoLineItemExample.php b/examples/Dfp/v201208/LineItemService/CreateVideoLineItemExample.php new file mode 100755 index 000000000..9bfcd96f7 --- /dev/null +++ b/examples/Dfp/v201208/LineItemService/CreateVideoLineItemExample.php @@ -0,0 +1,163 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201208'); + + // 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); + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedAdUnits = + array(new AdUnitTargeting($targetedVideoAdUnitId, TRUE)); + + // Create video position targeting. + $videoPositionTargeting = new VideoPositionTargeting(); + $videoPositionTargeting->targetedVideoPositions = array('PREROLL'); + + // Create targeting. + $targeting = new Targeting(); + $targeting->customTargeting = $customCriteriaSet; + $targeting->inventoryTargeting = $inventoryTargeting; + $targeting->videoPositionTargeting = $videoPositionTargeting; + + // Create local line item object. + $lineItem = new LineItem(); + $lineItem->name = 'Video line item'; + $lineItem->orderId = $orderId; + $lineItem->targeting = $targeting; + $lineItem->lineItemType = 'SPONSORSHIP'; + $lineItem->allowOverbook = TRUE; + + // Set the environment type to video. + $lineItem->environmentType = 'VIDEO_PLAYER'; + + // Set the creative rotation type to optimized. + $lineItem->creativeRotationType = 'OPTIMIZED'; + + // Create the master creative placeholder. + $creativeMasterPlaceholder = new CreativePlaceholder(); + $creativeMasterPlaceholder->size = new Size(400, 300, FALSE); + + // Create companion creative placeholders. + $companionCreativePlaceholder1 = new CreativePlaceholder(); + $companionCreativePlaceholder1->size = new Size(300, 250, FALSE); + + $companionCreativePlaceholder2 = new CreativePlaceholder(); + $companionCreativePlaceholder2->size = new Size(728, 90, FALSE); + + // Set companion creative placeholders. + $creativeMasterPlaceholder->companions = + array($companionCreativePlaceholder1, $companionCreativePlaceholder2); + + // Set the size of creatives that can be associated with this line item. + $lineItem->creativePlaceholders = array($creativeMasterPlaceholder); + + // Set delivery of video companions to optional. + $lineItem->companionDeliveryOption = 'OPTIONAL'; + + // Set the length of the line item to run. + $lineItem->startDateTimeType = 'IMMEDIATELY'; + $lineItem->endDateTime = + DateTimeUtils::GetDfpDateTime(new DateTime('+1 month')); + + // Set the cost per day to $1. + $lineItem->costType = 'CPD'; + $lineItem->costPerUnit = new Money('USD', 1000000); + + // Set the percentage to be 100%. + $lineItem->unitsBought = 100; + + // 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 { + print "No line items created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/LineItemService/GetAllLineItemsExample.php b/examples/Dfp/v201208/LineItemService/GetAllLineItemsExample.php new file mode 100755 index 000000000..e2d3ca73a --- /dev/null +++ b/examples/Dfp/v201208/LineItemService/GetAllLineItemsExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201208'); + + // Set defaults for page and statement. + $page = new LineItemPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all line items. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201208/LineItemService/GetLineItemExample.php b/examples/Dfp/v201208/LineItemService/GetLineItemExample.php new file mode 100755 index 000000000..479f71eb3 --- /dev/null +++ b/examples/Dfp/v201208/LineItemService/GetLineItemExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201208'); + + // Set the ID of the line item to get. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Get the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + + // Display results. + if (isset($lineItem)) { + print 'Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", and name "' . $lineItem->name + . "\" was found.\n"; + } else { + print "No line item found for this ID.\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/v201208/LineItemService/GetLineItemsByStatementExample.php b/examples/Dfp/v201208/LineItemService/GetLineItemsByStatementExample.php new file mode 100755 index 000000000..19a92d63d --- /dev/null +++ b/examples/Dfp/v201208/LineItemService/GetLineItemsByStatementExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201208'); + + // 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/v201208/LineItemService/GetRecentlyUpdatedLineItems.php b/examples/Dfp/v201208/LineItemService/GetRecentlyUpdatedLineItems.php new file mode 100755 index 000000000..d6c2b957d --- /dev/null +++ b/examples/Dfp/v201208/LineItemService/GetRecentlyUpdatedLineItems.php @@ -0,0 +1,103 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201208'); + + // 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/v201208/LineItemService/TargetCustomCriteriaExample.php b/examples/Dfp/v201208/LineItemService/TargetCustomCriteriaExample.php new file mode 100755 index 000000000..61c5e5977 --- /dev/null +++ b/examples/Dfp/v201208/LineItemService/TargetCustomCriteriaExample.php @@ -0,0 +1,119 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201208'); + + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $customCriteriaIds1 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + $customCriteriaIds2 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + $customCriteriaIds3 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + + // Create custom criteria. + $customCriteria1 = new CustomCriteria(); + $customCriteria1->keyId = $customCriteriaIds1[0]; + $customCriteria1->valueIds = array($customCriteriaIds1[1]); + $customCriteria1->operator = 'IS'; + + $customCriteria2 = new CustomCriteria(); + $customCriteria2->keyId = $customCriteriaIds2[0]; + $customCriteria2->valueIds = array($customCriteriaIds2[1]); + $customCriteria2->operator = 'IS_NOT'; + + $customCriteria3 = new CustomCriteria(); + $customCriteria3->keyId = $customCriteriaIds3[0]; + $customCriteria3->valueIds = array($customCriteriaIds3[1]); + $customCriteria3->operator = 'IS'; + + + // Create the custom criteria set that will resemble: + // + // ($customCriteria1.key == $customCriteria1.value OR + // ($customCriteria2.key != $customCriteria2.value AND + // $customCriteria3.key == $customCriteria3.value)) + $topCustomCriteriaSet = new CustomCriteriaSet(); + $topCustomCriteriaSet->logicalOperator = 'OR'; + + $subCustomCriteriaSet = new CustomCriteriaSet(); + $subCustomCriteriaSet->logicalOperator = 'AND'; + $subCustomCriteriaSet->children = array($customCriteria2, $customCriteria3); + $topCustomCriteriaSet->children = + array($customCriteria1, $subCustomCriteriaSet); + + // Set the custom criteria targeting on the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + $lineItem->targeting->customTargeting = $topCustomCriteriaSet; + + // Update the line items on the server. + $lineItem = $lineItemService->updateLineItem($lineItem); + + // Display results. + if (isset($lineItem)) { + printf("Line item with ID '%s' updated with custom criteria targeting:\n", + $lineItem->id); + print_r($lineItem->targeting->customTargeting); + } else { + print "No line items updated.\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/v201208/LineItemService/UpdateLineItemsExample.php b/examples/Dfp/v201208/LineItemService/UpdateLineItemsExample.php new file mode 100755 index 000000000..a0856046c --- /dev/null +++ b/examples/Dfp/v201208/LineItemService/UpdateLineItemsExample.php @@ -0,0 +1,104 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201208'); + + // 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/v201208/NetworkService/GetAllNetworksExample.php b/examples/Dfp/v201208/NetworkService/GetAllNetworksExample.php new file mode 100755 index 000000000..168200704 --- /dev/null +++ b/examples/Dfp/v201208/NetworkService/GetAllNetworksExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201208'); + + // Get all networks that you have access to with the current login + // 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++; + } + } + + print 'Number of results found: ' . $i . "\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/v201208/NetworkService/GetCurrentNetworkExample.php b/examples/Dfp/v201208/NetworkService/GetCurrentNetworkExample.php new file mode 100755 index 000000000..91ed71250 --- /dev/null +++ b/examples/Dfp/v201208/NetworkService/GetCurrentNetworkExample.php @@ -0,0 +1,65 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201208'); + + // Get the current network. + $network = $networkService->getCurrentNetwork(); + + print 'Current network has network code "' . $network->networkCode + . '" and display name "' . $network->displayName . "\".\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/v201208/NetworkService/MakeTestNetworkExample.php b/examples/Dfp/v201208/NetworkService/MakeTestNetworkExample.php new file mode 100755 index 000000000..417cc7dfb --- /dev/null +++ b/examples/Dfp/v201208/NetworkService/MakeTestNetworkExample.php @@ -0,0 +1,78 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201208'); + + // Make the test network. + $network = $networkService->makeTestNetwork(); + + print 'Test network with network code "' . $network->networkCode + . '" and display name "' . $network->displayName . "\" created.\n" + . ' You may now sign in at http://www.google.com/dfp/main?networkCode=' + . $network->networkCode . "\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/v201208/OrderService/ApproveOrdersExample.php b/examples/Dfp/v201208/OrderService/ApproveOrdersExample.php new file mode 100755 index 000000000..2438c53e9 --- /dev/null +++ b/examples/Dfp/v201208/OrderService/ApproveOrdersExample.php @@ -0,0 +1,128 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201208'); + + // 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/v201208/OrderService/CreateOrdersExample.php b/examples/Dfp/v201208/OrderService/CreateOrdersExample.php new file mode 100755 index 000000000..4b234c078 --- /dev/null +++ b/examples/Dfp/v201208/OrderService/CreateOrdersExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetOrderService('v201208'); + + // Set the advertiser (company), salesperson, and trafficker to assign to each + // order. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + $salespersonId = 'INSERT_SALESPERSON_ID_HERE'; + $traffickerId = 'INSERT_TRAFFICKER_ID_HERE'; + + // Create an array to store local order objects. + $orders = array(); + + for ($i = 0; $i < 5; $i++) { + $order = new Order(); + $order->name = 'Order #' . $i; + $order->advertiserId = $advertiserId; + $order->salespersonId = $salespersonId; + $order->traffickerId = $traffickerId; + + $orders[] = $order; + } + + // Create the orders on the server. + $orders = $orderService->createOrders($orders); + + // Display results. + if (isset($orders)) { + foreach ($orders as $order) { + print 'An order with with ID "' . $order->id + . '" and name "' . $order->name + . "\" was created.\n"; + } + } else { + print "No orders created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/OrderService/GetAllOrdersExample.php b/examples/Dfp/v201208/OrderService/GetAllOrdersExample.php new file mode 100755 index 000000000..0043644d0 --- /dev/null +++ b/examples/Dfp/v201208/OrderService/GetAllOrdersExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201208'); + + // Set defaults for page and statement. + $page = new OrderPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all orders. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201208/OrderService/GetOrderExample.php b/examples/Dfp/v201208/OrderService/GetOrderExample.php new file mode 100755 index 000000000..2fd52130e --- /dev/null +++ b/examples/Dfp/v201208/OrderService/GetOrderExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201208'); + + // Set the ID of the order to get. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Get the order. + $order = $orderService->getOrder($orderId); + + // Display results. + if (isset($order)) { + print 'An order with ID "' . $order->id + . '", name "' . $order->name + . '", and advertiser ID "' . $order->advertiserId + . "\" was found.\n"; + } else { + print "No order found for this ID.\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/v201208/OrderService/GetOrdersByStatementExample.php b/examples/Dfp/v201208/OrderService/GetOrdersByStatementExample.php new file mode 100755 index 000000000..4c8daccaf --- /dev/null +++ b/examples/Dfp/v201208/OrderService/GetOrdersByStatementExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201208'); + + // 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/v201208/OrderService/UpdateOrdersExample.php b/examples/Dfp/v201208/OrderService/UpdateOrdersExample.php new file mode 100755 index 000000000..5327f3325 --- /dev/null +++ b/examples/Dfp/v201208/OrderService/UpdateOrdersExample.php @@ -0,0 +1,99 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201208'); + + // 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/v201208/PlacementService/CreatePlacementsExample.php b/examples/Dfp/v201208/PlacementService/CreatePlacementsExample.php new file mode 100755 index 000000000..514ce5ef5 --- /dev/null +++ b/examples/Dfp/v201208/PlacementService/CreatePlacementsExample.php @@ -0,0 +1,137 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201208'); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201208'); + + // Create local placement object to store skyscraper ad units. + $skyscraperAdUnitPlacement = new Placement(); + $skyscraperAdUnitPlacement->name = + 'Skyscraper AdUnit Placement #' . time(); + $skyscraperAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 120x600'; + + // Create local placement object to store medium square ad units. + $mediumSquareAdUnitPlacement = new Placement(); + $mediumSquareAdUnitPlacement->name = + 'Medium Square AdUnit Placement #' . time(); + $mediumSquareAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 300x250'; + + // Create local placement object to store banner ad units. + $bannerAdUnitPlacement = new Placement(); + $bannerAdUnitPlacement->name = 'Banner AdUnit Placement #' . time(); + $bannerAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 468x60'; + + $placementList = array(); + + // Get the first 500 ad units. + $filterStatement = new Statement('LIMIT 500'); + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // Separate the ad units by size. + if (isset($page->results)) { + foreach ($page->results as $adUnit) { + if (isset($adUnit->parentId)) { + foreach ((array) $adUnit->adUnitSizes as $adUnitSize) { + $size = $adUnitSize->size; + if ($size->width == 300 && $size->height == 250) { + $mediumSquareAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } else if ($size->width == 120 && $size->height == 600) { + $skyscraperAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } else if ($size->width == 468 && $size->height == 60) { + $bannerAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } + } + } + } + } + + // Only create placements with one or more ad units. + if (count($skyscraperAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $skyscraperAdUnitPlacement; + } + if (count($mediumSquareAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $mediumSquareAdUnitPlacement; + } + if (count($bannerAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $bannerAdUnitPlacement; + } + + // Create the placements on the server. + $placements = $placementService->createPlacements($placementList); + + // Display results. + if (isset($placements)) { + foreach ($placements as $placement) { + print 'A placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and containing ad units {' . + implode(', ', (array) $placement->targetedAdUnitIds) + . "} was created.\n"; + } + } else { + print "No placements created.\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/v201208/PlacementService/DeactivatePlacementsExample.php b/examples/Dfp/v201208/PlacementService/DeactivatePlacementsExample.php new file mode 100755 index 000000000..5335c2f9f --- /dev/null +++ b/examples/Dfp/v201208/PlacementService/DeactivatePlacementsExample.php @@ -0,0 +1,115 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201208'); + + // Create statement text to select active placements. + $filterStatementText = "WHERE status = 'ACTIVE'"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset); + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // Display results. + $placementIds = array(); + 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 + . "\" will be deactivated.\n"; + $i++; + $placementIds[] = $placement->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of placements to be deactivated: ' . sizeof($placementIds) + . "\n"; + + if (sizeof($placementIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $placementIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivatePlacements(); + + // Perform action. + $result = + $placementService->performPlacementAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of placements deactivated: ' . $result->numChanges . "\n"; + } else { + print "No placements 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/v201208/PlacementService/GetAllPlacementsExample.php b/examples/Dfp/v201208/PlacementService/GetAllPlacementsExample.php new file mode 100755 index 000000000..f6b7ac547 --- /dev/null +++ b/examples/Dfp/v201208/PlacementService/GetAllPlacementsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201208'); + + // Set defaults for page and statement. + $page = new PlacementPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all placements. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $placement) { + print $i . ') Placement with ID "' . $placement->id + . '" and name "' . $placement->name + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201208/PlacementService/GetPlacementExample.php b/examples/Dfp/v201208/PlacementService/GetPlacementExample.php new file mode 100755 index 000000000..d4ae3bb33 --- /dev/null +++ b/examples/Dfp/v201208/PlacementService/GetPlacementExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201208'); + + // Set the ID of the placement to get. + $placementId = 'INSERT_PLACEMENT_ID_HERE'; + + // Get the placement. + $placement = $placementService->getPlacement($placementId); + + // Display results. + if (isset($placement)) { + print 'Placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and status "' . $placement->status . "\" was found.\n"; + } else { + print "No placement found for this ID.\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/v201208/PlacementService/GetPlacementsByStatementExample.php b/examples/Dfp/v201208/PlacementService/GetPlacementsByStatementExample.php new file mode 100755 index 000000000..e104f05bf --- /dev/null +++ b/examples/Dfp/v201208/PlacementService/GetPlacementsByStatementExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201208'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('status' => new TextValue('ACTIVE'))); + + // Create a statement to only select active placements. + $filterStatement = new Statement("WHERE status = :status LIMIT 500", $vars); + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // 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++; + } + } + + 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/v201208/PlacementService/UpdatePlacementsExample.php b/examples/Dfp/v201208/PlacementService/UpdatePlacementsExample.php new file mode 100755 index 000000000..75f890a70 --- /dev/null +++ b/examples/Dfp/v201208/PlacementService/UpdatePlacementsExample.php @@ -0,0 +1,102 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201208'); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201208'); + + // 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/v201208/PublisherQueryLanguageService/GetAllCitiesExample.php b/examples/Dfp/v201208/PublisherQueryLanguageService/GetAllCitiesExample.php new file mode 100755 index 000000000..ad8a68eaf --- /dev/null +++ b/examples/Dfp/v201208/PublisherQueryLanguageService/GetAllCitiesExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the PublisherQueryLanguageService. + $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201208'); + + // Create statement to select all targetable cities. + $selectStatement = + new Statement('SELECT * FROM City WHERE targetable = true LIMIT 500'); + + // Get all cities. + // A limit of 500 is set here. You may want to page through such a large + // result set. + // For criteria that do not have a 'targetable' property, that predicate + // may be left off, i.e. just "SELECT * FROM Browser_Groups LIMIT 500". + $resultSet = $pqlService->select($selectStatement); + + // Display results. + if (isset($resultSet)) { + $columnLabels = array_map( + create_function('$columnType', 'return $columnType->labelName;'), + $resultSet->columnTypes); + printf("Columns are: %s\n", implode(', ', $columnLabels)); + $i = 0; + foreach($resultSet->rows as $row) { + $values = array_map(create_function('$value', 'return $value->value;'), + $row->values); + printf("%d) %s\n", $i, implode(', ', $values)); + $i++; + } + } else { + print "No results returned.\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/v201208/ReportService/DownloadReportExample.php b/examples/Dfp/v201208/ReportService/DownloadReportExample.php new file mode 100755 index 000000000..57375d992 --- /dev/null +++ b/examples/Dfp/v201208/ReportService/DownloadReportExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201208'); + + // 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/v201208/ReportService/RunDeliveryReportExample.php b/examples/Dfp/v201208/ReportService/RunDeliveryReportExample.php new file mode 100755 index 000000000..6236a3cae --- /dev/null +++ b/examples/Dfp/v201208/ReportService/RunDeliveryReportExample.php @@ -0,0 +1,108 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201208'); + + // 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(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_MONTH'; + $reportQuery->dimensions = array('ORDER'); + $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_AVERAGE_ECPM'); + $reportQuery->statement = $filterStatement; + $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/v201208/ReportService/RunInventoryReportExample.php b/examples/Dfp/v201208/ReportService/RunInventoryReportExample.php new file mode 100755 index 000000000..2d93c289f --- /dev/null +++ b/examples/Dfp/v201208/ReportService/RunInventoryReportExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201208'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_WEEK'; + $reportQuery->dimensions = array('DATE', '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'); + $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/v201208/ReportService/RunMergedDeliveryReportExample.php b/examples/Dfp/v201208/ReportService/RunMergedDeliveryReportExample.php new file mode 100755 index 000000000..142b2ae63 --- /dev/null +++ b/examples/Dfp/v201208/ReportService/RunMergedDeliveryReportExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201208'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_MONTH'; + $reportQuery->dimensions = array('ORDER'); + $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_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/v201208/ReportService/RunReportWithCustomFields.php b/examples/Dfp/v201208/ReportService/RunReportWithCustomFields.php new file mode 100755 index 000000000..4718f979e --- /dev/null +++ b/examples/Dfp/v201208/ReportService/RunReportWithCustomFields.php @@ -0,0 +1,133 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201208'); + + // 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', 'v201208'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_MONTH'; + $reportQuery->dimensions = array('LINE_ITEM'); + $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/v201208/ReportService/RunSalesReportExample.php b/examples/Dfp/v201208/ReportService/RunSalesReportExample.php new file mode 100755 index 000000000..6c09c3f57 --- /dev/null +++ b/examples/Dfp/v201208/ReportService/RunSalesReportExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201208'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_MONTH'; + $reportQuery->dimensions = array('SALESPERSON'); + $reportQuery->columns = array('AD_SERVER_IMPRESSIONS', + 'AD_SERVER_CPM_AND_CPC_REVENUE', + 'AD_SERVER_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/v201208/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php b/examples/Dfp/v201208/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php new file mode 100755 index 000000000..fb594904c --- /dev/null +++ b/examples/Dfp/v201208/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201208'); + + // Set the number of requests to 50 or more. + define('NUMBER_OF_REQUESTS', 50); + + // Create statement text to select all suggested ad units + // that have been requested 50 times or more. + $filterStatementText = 'WHERE numRequests >= ' . NUMBER_OF_REQUESTS; + + // Get all suggested ad units. + $allSuggestedAdUnits = ServiceUtils::GetAllObjects($suggestedAdUnitService, + 'getSuggestedAdUnitsByStatement', $filterStatementText); + + $numSuggestedAdUnits = 0; + foreach ($allSuggestedAdUnits as $suggestedAdUnit) { + $numSuggestedAdUnits++; + printf("%d) Suggested ad unit with ID '%s' and number of requests '%d' " + . "will be approved.\n", $numSuggestedAdUnits, $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + } + + printf("Number of suggested ad units to be approved: %d\n", + $numSuggestedAdUnits); + + if ($numSuggestedAdUnits > 0) { + // Create action statement. + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new ApproveSuggestedAdUnit(); + + // Perform action. + $result = $suggestedAdUnitService->performSuggestedAdUnitAction($action, + $filterStatementText); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of suggested ad units approved: %d\n", + $result->numChanges); + } else { + print "No suggested ad units 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/v201208/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php b/examples/Dfp/v201208/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php new file mode 100755 index 000000000..6e796e751 --- /dev/null +++ b/examples/Dfp/v201208/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201208'); + + // Set defaults for page and statement. + $page = new SuggestedAdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all suggested ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201208/SuggestedAdUnitService/GetSuggestedAdUnitExample.php b/examples/Dfp/v201208/SuggestedAdUnitService/GetSuggestedAdUnitExample.php new file mode 100755 index 000000000..e1614b5b9 --- /dev/null +++ b/examples/Dfp/v201208/SuggestedAdUnitService/GetSuggestedAdUnitExample.php @@ -0,0 +1,79 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201208'); + + // Set the ID of the ad unit to get. + $suggestedAdUnitId = 'INSERT_SUGGESTED_AD_UNIT_ID_HERE'; + + // Get the ad unit. + $suggestedAdUnit = + $suggestedAdUnitService->getSuggestedAdUnit($suggestedAdUnitId); + + // Display results. + if (isset($suggestedAdUnit)) { + printf("Suggested ad unit with ID '%s' and number of requests '%d' " + . "was found.\n", $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + } else { + print "No suggested ad unit found for this ID.\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/v201208/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php b/examples/Dfp/v201208/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php new file mode 100755 index 000000000..bef9b8a00 --- /dev/null +++ b/examples/Dfp/v201208/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201208'); + + // 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/v201208/TeamService/CreateTeamsExample.php b/examples/Dfp/v201208/TeamService/CreateTeamsExample.php new file mode 100755 index 000000000..8989e1688 --- /dev/null +++ b/examples/Dfp/v201208/TeamService/CreateTeamsExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201208'); + + // Create an array to store local team objects. + $teams = array(); + + for ($i = 0; $i < 5; $i++) { + $team = new Team(); + $team->name = 'Team #' . uniqid(); + $team->hasAllCompanies = false; + $team->hasAllInventory = false; + $teams[] = $team; + } + + // Create the teams on the server. + $teams = $teamService->createTeams($teams); + + // Display results. + if (isset($teams)) { + foreach ($teams as $team) { + print 'A team with ID "' . $team->id + . '" and name "'. $team->name + . '" was created."' . "\n"; + } + } else { + print "No teams created.\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/v201208/TeamService/GetAllTeamsExample.php b/examples/Dfp/v201208/TeamService/GetAllTeamsExample.php new file mode 100755 index 000000000..75a29d13a --- /dev/null +++ b/examples/Dfp/v201208/TeamService/GetAllTeamsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201208'); + + // Set defaults for page and statement. + $page = new TeamPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all teams. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get teams by statement. + $page = $teamService->getTeamsByStatement($filterStatement); + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201208/TeamService/GetTeamExample.php b/examples/Dfp/v201208/TeamService/GetTeamExample.php new file mode 100755 index 000000000..7aac9cc56 --- /dev/null +++ b/examples/Dfp/v201208/TeamService/GetTeamExample.php @@ -0,0 +1,75 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201208'); + + // Set the ID of the team to get. + $teamId = 'INSERT_TEAM_ID_HERE'; + + // Get the team. + $team = $teamService->getTeam($teamId); + + // Display results. + if (isset($team)) { + print 'Team with ID "' . $team->id + . '" and name "' . $team->name + . "\" was found.\n"; + } else { + print "No team found for this ID.\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/v201208/TeamService/GetTeamsByStatementExample.php b/examples/Dfp/v201208/TeamService/GetTeamsByStatementExample.php new file mode 100755 index 000000000..84e305454 --- /dev/null +++ b/examples/Dfp/v201208/TeamService/GetTeamsByStatementExample.php @@ -0,0 +1,83 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201208'); + + // Create a statement to order teams by name. + $filterStatementText = 'ORDER BY name LIMIT 500'; + $filterStatement = new Statement($filterStatementText); + + // Get teams by statement. + $page = $teamService->getTeamsByStatement($filterStatement); + + // 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++; + } + } + + 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/v201208/TeamService/UpdateTeamsExample.php b/examples/Dfp/v201208/TeamService/UpdateTeamsExample.php new file mode 100755 index 000000000..c6c99f6fb --- /dev/null +++ b/examples/Dfp/v201208/TeamService/UpdateTeamsExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201208'); + + // 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/v201208/ThirdPartySlotService/ArchiveThirdPartySlotsExample.php b/examples/Dfp/v201208/ThirdPartySlotService/ArchiveThirdPartySlotsExample.php new file mode 100755 index 000000000..847e678a1 --- /dev/null +++ b/examples/Dfp/v201208/ThirdPartySlotService/ArchiveThirdPartySlotsExample.php @@ -0,0 +1,126 @@ +LogDefaults(); + + // Get the ThirdPartySlotService. + $thirdPartySlotService = + $user->GetService('ThirdPartySlotService', 'v201208'); + + // Set the company that the third party slots to archive belong to. + $companyId = 'INSERT_COMPANY_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array( + 'companyId' => new NumberValue($companyId), + 'status' => new TextValue('ACTIVE'))); + + // Create a statement to only select active third party slots. + $filterStatementText = 'WHERE companyId = :companyId AND status = :status'; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . ' LIMIT 500 OFFSET ' . $offset, + $vars); + + // Get third party slots by statement. + $page = + $thirdPartySlotService->getThirdPartySlotsByStatement($filterStatement); + + // Display results. + $thirdPartySlotIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $thirdPartySlot) { + printf("Third party slot with ID '%s' will be archived.\n", + $thirdPartySlot->id); + $i++; + $thirdPartySlotIds[] = $thirdPartySlot->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + printf("Number of third party slots to be archived: %d\n", + sizeof($thirdPartySlotIds)); + + if (sizeof($thirdPartySlotIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $thirdPartySlotIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new ArchiveThirdPartySlots(); + + // Perform action. + $result = $thirdPartySlotService->performThirdPartySlotAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of third party slots archived: %d\n", + $result->numChanges); + } else { + print "No third party slots were archived.\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/v201208/ThirdPartySlotService/CreateThirdPartySlotExample.php b/examples/Dfp/v201208/ThirdPartySlotService/CreateThirdPartySlotExample.php new file mode 100755 index 000000000..194edfb3b --- /dev/null +++ b/examples/Dfp/v201208/ThirdPartySlotService/CreateThirdPartySlotExample.php @@ -0,0 +1,96 @@ +LogDefaults(); + + // Get the ThirdPartySlotService. + $thirdPartySlotService = + $user->GetService('ThirdPartySlotService', 'v201208'); + + // Set the company ID to associate with this third party slot. + $companyId = 'INSERT_COMPANY_ID_HERE'; + + // Set the external unique ID to associate with this third party slot. + $externalUniqueId = 'INSERT_EXTERNAL_UNIQUE_ID_HERE'; + + // Set the external unique name to associate with this third party slot. + $externalUniqueName = 'INSERT_EXTERNAL_UNIQUE_NAME_HERE'; + + // Set the creative IDs to associate with this third party slot. + $creativeIds = array('INSERT_CREATIVE_ID_HERE'); + + // Create the ThirdPartySlot object. + $thirdPartySlot = new ThirdPartySlot(); + $thirdPartySlot->companyId = $companyId; + $thirdPartySlot->description = 'Third party slot description.'; + $thirdPartySlot->externalUniqueId = $externalUniqueId; + $thirdPartySlot->externalUniqueName = $externalUniqueName; + + // Set the creatives that the third party slot will represent. + $thirdPartySlot->creativeIds = $creativeIds; + + // Create the third party slot on the server. + $thirdPartySlot = + $thirdPartySlotService->createThirdPartySlot($thirdPartySlot); + + // Display results. + if (isset($thirdPartySlot)) { + printf("A third party slot with ID '%s' and name '%s' was created.\n", + $thirdPartySlot->id, $thirdPartySlot->externalUniqueName); + } else { + print "No third party slot was created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/ThirdPartySlotService/GetAllThirdPartySlotsExample.php b/examples/Dfp/v201208/ThirdPartySlotService/GetAllThirdPartySlotsExample.php new file mode 100755 index 000000000..e7f85abde --- /dev/null +++ b/examples/Dfp/v201208/ThirdPartySlotService/GetAllThirdPartySlotsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the ThirdPartySlotService. + $thirdPartySlotService = + $user->GetService('ThirdPartySlotService', 'v201208'); + + // Set defaults for page and statement. + $page = new ThirdPartySlotPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all third party slots. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get third party slots by statement. + $page = + $thirdPartySlotService->getThirdPartySlotsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $thirdPartySlot) { + printf("Third party slot with ID '%s' was found.\n", + $thirdPartySlot->id); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201208/ThirdPartySlotService/GetThirdPartySlotsByStatementExample.php b/examples/Dfp/v201208/ThirdPartySlotService/GetThirdPartySlotsByStatementExample.php new file mode 100755 index 000000000..ca690ed24 --- /dev/null +++ b/examples/Dfp/v201208/ThirdPartySlotService/GetThirdPartySlotsByStatementExample.php @@ -0,0 +1,83 @@ +LogDefaults(); + + // Get the ThirdPartySlotService. + $thirdPartySlotService = + $user->GetService('ThirdPartySlotService', 'v201208'); + + // Create a statement. + $filterStatement = new Statement("WHERE status = :status LIMIT 500", + MapUtils::GetMapEntries(array('status' => new TextValue('ARCHIVED')))); + + // Get third party slots by statement. + $page = + $thirdPartySlotService->getThirdPartySlotsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $thirdPartySlot) { + printf("Third party slot with ID '%s' was found.\n", + $thirdPartySlot->id); + $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/v201208/ThirdPartySlotService/UpdateThirdPartySlotExample.php b/examples/Dfp/v201208/ThirdPartySlotService/UpdateThirdPartySlotExample.php new file mode 100755 index 000000000..3128dd845 --- /dev/null +++ b/examples/Dfp/v201208/ThirdPartySlotService/UpdateThirdPartySlotExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ThirdPartySlotService. + $thirdPartySlotService = + $user->GetService('ThirdPartySlotService', 'v201208'); + + // Create a statement to get one active third party slot. + $filterStatement = new Statement('WHERE status = :status LIMIT 1', + MapUtils::GetMapEntries(array('status' => new TextValue('ACTIVE')))); + + // Get third party slots by statement. + $page = + $thirdPartySlotService->getThirdPartySlotsByStatement($filterStatement); + + if (isset($page->results)) { + $thirdPartySlot = $page->results[0]; + + // Update the local third party slot by changing its description. + $thirdPartySlot->description = 'Updated description'; + + // Update the third party slot on the server. + $thirdPartySlot = + $thirdPartySlotService->updateThirdPartySlot($thirdPartySlot); + + // Display results. + if (isset($thirdPartySlot)) { + printf("Third party slot with ID '%s' and description '%s' was " + . "updated.\n", $thirdPartySlot->id, $thirdPartySlot->description); + } else { + print "The third party slot was not updated.\n"; + } + } else { + print "No third party slot was 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/v201208/UserService/CreateUsersExample.php b/examples/Dfp/v201208/UserService/CreateUsersExample.php new file mode 100755 index 000000000..e41bb4055 --- /dev/null +++ b/examples/Dfp/v201208/UserService/CreateUsersExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201208'); + + // Set the user's email addresses and names. + $emailAndNames = + array(array('INSERT_EMAIL_ADDRESS_HERE', 'INSERT_NAME_HERE'), + array('INSERT_ANOTHER_EMAIL_ADDRESS_HERE', + 'INSERT_ANOTHER_NAME_HERE')); + + // Roles can be obtained by running GetAllRolesExample.php. + $roleId = 'INSERT_ROLE_ID_HERE'; + + // Create an array to store local user objects. + $users = array(); + + for ($i = 0; $i < sizeof($emailAndNames); $i++) { + $newUser = new User(); + $newUser->email = $emailAndNames[$i][0]; + $newUser->name = $emailAndNames[$i][1]; + $newUser->roleId = $roleId; + $newUser->preferredLocale = 'en_US'; + + $users[] = $newUser; + } + + // Create the users on the server. + $users = $userService->createUsers($users); + + // Display results. + if (isset($users)) { + foreach ($users as $user) { + print 'A user with ID "' . $user->id + . '", email "' . $user->email + . '", and role "' . $user->roleName . "\" was created.\n"; + } + } else { + print "No users created.\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/v201208/UserService/DeactivateUserExample.php b/examples/Dfp/v201208/UserService/DeactivateUserExample.php new file mode 100755 index 000000000..61dfb376d --- /dev/null +++ b/examples/Dfp/v201208/UserService/DeactivateUserExample.php @@ -0,0 +1,121 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201208'); + + // Set the ID of the user to deactivate. + $userId = 'INSERT_USER_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('id' => new NumberValue($userId))); + + // Create statement text to get user by id. + $filterStatementText = "WHERE id = :id"; + + $offset = 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); + + // Display results. + $userIds = array(); + if (isset($page->results)) { + $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; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of users to be deactivated: ' . sizeof($userIds) . "\n"; + + if (sizeof($userIds) > 0) { + // Create action statement. + $filterStatementText = sprintf('WHERE id IN (%s)', implode(',', $userIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateUsers(); + + // Perform action. + $result = $userService->performUserAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of users deactivated: ' . $result->numChanges . "\n"; + } else { + print "No users 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/v201208/UserService/GetAllRolesExample.php b/examples/Dfp/v201208/UserService/GetAllRolesExample.php new file mode 100755 index 000000000..370d15e33 --- /dev/null +++ b/examples/Dfp/v201208/UserService/GetAllRolesExample.php @@ -0,0 +1,72 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201208'); + + // 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"; + } + } + print 'Number of results found: ' . sizeof($roles) . "\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/v201208/UserService/GetAllUsersExample.php b/examples/Dfp/v201208/UserService/GetAllUsersExample.php new file mode 100755 index 000000000..ef4c19078 --- /dev/null +++ b/examples/Dfp/v201208/UserService/GetAllUsersExample.php @@ -0,0 +1,87 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201208'); + + // Set defaults for page and statement. + $page = new UserPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all users. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201208/UserService/GetCurrentUserExample.php b/examples/Dfp/v201208/UserService/GetCurrentUserExample.php new file mode 100755 index 000000000..6dd58441e --- /dev/null +++ b/examples/Dfp/v201208/UserService/GetCurrentUserExample.php @@ -0,0 +1,65 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201208'); + + // Get the current user. + $usr = $userService->getCurrentUser(); + + printf("User with ID '%s', email '%s', and role '%s' was found.\n", + $usr->id, $usr->email, $usr->roleName); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/UserService/GetUserExample.php b/examples/Dfp/v201208/UserService/GetUserExample.php new file mode 100755 index 000000000..f0f6f631f --- /dev/null +++ b/examples/Dfp/v201208/UserService/GetUserExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201208'); + + // Set the ID of the user to get. + $userId = 'INSERT_USER_ID_HERE'; + + // Get the user. + $usr = $userService->getUser($userId); + + // Display results. + if (isset($usr)) { + print 'User with ID "' . $usr->id + . '", email "' . $usr->email + . '", and role "' . $usr->roleName . "\" was found.\n"; + } else { + print "No user found for this ID.\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/v201208/UserService/GetUsersByStatementExample.php b/examples/Dfp/v201208/UserService/GetUsersByStatementExample.php new file mode 100755 index 000000000..36597fd29 --- /dev/null +++ b/examples/Dfp/v201208/UserService/GetUsersByStatementExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201208'); + + // 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/v201208/UserService/UpdateUsersExample.php b/examples/Dfp/v201208/UserService/UpdateUsersExample.php new file mode 100755 index 000000000..00132a109 --- /dev/null +++ b/examples/Dfp/v201208/UserService/UpdateUsersExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201208'); + + // Create a statement to get all users. + $filterStatement = new Statement('LIMIT 500'); + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + if (isset($page->results)) { + $users = $page->results; + + // Update each local user object by changing its name. + foreach ($users as $usr) { + $usr->name .= ' Sr.'; + } + + // Update the users on the server. + $users = $userService->updateUsers($users); + + // 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"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/UserTeamAssociationService/CreateUserTeamAssociationsExample.php b/examples/Dfp/v201208/UserTeamAssociationService/CreateUserTeamAssociationsExample.php new file mode 100755 index 000000000..cfb27c353 --- /dev/null +++ b/examples/Dfp/v201208/UserTeamAssociationService/CreateUserTeamAssociationsExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201208'); + + // Set the team ID and user IDs to associate together. + $teamId = 'INSERT_TEAM_ID_HERE'; + $userIds = array('INSERT_USER_ID_HERE'); + + // Create an array to store local user team association objects. + $utas = array(); + + // For each user, associate it with the given team. + foreach ($userIds as $userId) { + // Create local user team association. + $uta = new UserTeamAssociation(); + $uta->teamId = $teamId; + $uta->userId = $userId; + $utas[] = $uta; + } + + // Create the user team associations on the server. + $utas = $userTeamAssociationService->createUserTeamAssociations($utas); + + // Display results. + if (isset($utas)) { + foreach ($utas as $uta) { + print 'A user team association between user with ID "' . $uta->userId + . '" and team with ID "' . $uta->teamId + . "\" was created.\n"; + } + } else { + print "No user team associations created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php b/examples/Dfp/v201208/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php new file mode 100755 index 000000000..7e7d03c45 --- /dev/null +++ b/examples/Dfp/v201208/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201208'); + + // Set the user to remove from its teams. + $userId = 'INSERT_USER_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('userId' => new NumberValue($userId))); + + // Create statement text to select user team associations by the user ID. + $filterStatementText = "WHERE userId = :userId "; + + $offset = 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); + + // 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 + . "\" will be deleted.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of user team associations to be deleted: ' . $i . "\n"; + + if ($i > 0) { + // Create action statement. + $filterStatementText = 'WHERE userId = :userId '; + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeleteUserTeamAssociations(); + + // Perform action. + $result = $userTeamAssociationService->performUserTeamAssociationAction( + $action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of user team associations deleted: ' + . $result->numChanges . "\n"; + } else { + print "No user team associations were deleted.\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/v201208/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php b/examples/Dfp/v201208/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php new file mode 100755 index 000000000..446b90134 --- /dev/null +++ b/examples/Dfp/v201208/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201208'); + + // Set defaults for page and statement. + $page = new UserTeamAssociationPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all user team associations. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201208/UserTeamAssociationService/GetUserTeamAssociationExample.php b/examples/Dfp/v201208/UserTeamAssociationService/GetUserTeamAssociationExample.php new file mode 100755 index 000000000..2c85740e8 --- /dev/null +++ b/examples/Dfp/v201208/UserTeamAssociationService/GetUserTeamAssociationExample.php @@ -0,0 +1,79 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201208'); + + // Set the IDs of the user and team to get the association for. + $userId = 'INSERT_USER_ID_HERE'; + $teamId = 'INSERT_TEAM_ID_HERE'; + + // Get the user team association. + $uta = $userTeamAssociationService->getUserTeamAssociation($teamId, + $userId); + + // Display results. + if (isset($uta)) { + print 'User team association between user with ID "' . $uta->userId + . '" and team with ID "' . $uta->teamId + . "\" was found.\n"; + } else { + print "No user team association found for this ID.\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/v201208/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php b/examples/Dfp/v201208/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php new file mode 100755 index 000000000..bb062b1aa --- /dev/null +++ b/examples/Dfp/v201208/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = $user->GetService('UserTeamAssociationService', + 'v201208'); + + // Get the UserService. + $userService = $user->GetService("UserService", "v201208"); + + // 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/v201208/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php b/examples/Dfp/v201208/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php new file mode 100755 index 000000000..7b823bc8f --- /dev/null +++ b/examples/Dfp/v201208/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php @@ -0,0 +1,102 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201208'); + + // Set the user to set to read only access within its teams. + $userId = "INSERT_USER_ID_HERE"; + + // 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); + + $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( + $filterStatement); + + if (isset($page->results)) { + $utas = $page->results; + + // Update each local user team association to read only access. + foreach ($utas as $uta) { + $uta->overriddenTeamAccessType = 'READ_ONLY'; + } + + // Update the user team associations on the server. + $utas = $userTeamAssociationService->updateUserTeamAssociations($utas); + + // 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"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/AudienceSegmentService/GetAllAudienceSegmentsExample.php b/examples/Dfp/v201211/AudienceSegmentService/GetAllAudienceSegmentsExample.php new file mode 100755 index 000000000..191ed97da --- /dev/null +++ b/examples/Dfp/v201211/AudienceSegmentService/GetAllAudienceSegmentsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the AudienceSegmentService. + $audienceSegmentService = $user->GetService('AudienceSegmentService', + 'v201211'); + + // Set defaults for page and statement. + $page = new AudienceSegmentPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all audience segments. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get audience segments by statement. + $page = $audienceSegmentService->getAudienceSegmentsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $audienceSegment) { + print $i . ') Audience segment with ID "' + . $audienceSegment->id . '", and name "' . $audienceSegment->name + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201211/CompanyService/CreateCompaniesExample.php b/examples/Dfp/v201211/CompanyService/CreateCompaniesExample.php new file mode 100755 index 000000000..4dd0a4918 --- /dev/null +++ b/examples/Dfp/v201211/CompanyService/CreateCompaniesExample.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201211'); + + // Create an array to store local company objects. + $companies = array(); + + for ($i = 0; $i < 5; $i++) { + $company = new Company(); + $company->name = 'Advertiser #' . $i; + $company->type = 'ADVERTISER'; + + $companies[] = $company; + } + + // Create the companies on the server. + $companies = $companyService->createCompanies($companies); + + // Display results. + if (isset($companies)) { + foreach ($companies as $company) { + print 'A company with ID "' . $company->id + . '", name "'. $company->name + . '", and type "' . $company->type . "\" was created.\n"; + } + } else { + print "No companies created.\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/v201211/CompanyService/GetAllCompaniesExample.php b/examples/Dfp/v201211/CompanyService/GetAllCompaniesExample.php new file mode 100755 index 000000000..356a64477 --- /dev/null +++ b/examples/Dfp/v201211/CompanyService/GetAllCompaniesExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201211'); + + // Set defaults for page and statement. + $page = new CompanyPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all companies. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get companies by statement. + $page = $companyService->getCompaniesByStatement($filterStatement); + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201211/CompanyService/GetCompaniesByStatementExample.php b/examples/Dfp/v201211/CompanyService/GetCompaniesByStatementExample.php new file mode 100755 index 000000000..f23e34795 --- /dev/null +++ b/examples/Dfp/v201211/CompanyService/GetCompaniesByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201211'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('type' => new TextValue('ADVERTISER'))); + + // 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 companies by statement. + $page = $companyService->getCompaniesByStatement($filterStatement); + + // 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++; + } + } + + 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/v201211/CompanyService/GetCompanyExample.php b/examples/Dfp/v201211/CompanyService/GetCompanyExample.php new file mode 100755 index 000000000..e5394d3e0 --- /dev/null +++ b/examples/Dfp/v201211/CompanyService/GetCompanyExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201211'); + + // Set the ID of the company to get. + $companyId = 'INSERT_COMPANY_ID_HERE'; + + // Get the company. + $company = $companyService->getCompany($companyId); + + // Display results. + if (isset($company)) { + print 'Company with ID "' . $company->id + . '", name "' . $company->name + . '", and type "' . $company->type . "\" was found.\n"; + } else { + print "No company found for this ID.\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/v201211/CompanyService/UpdateCompaniesExample.php b/examples/Dfp/v201211/CompanyService/UpdateCompaniesExample.php new file mode 100755 index 000000000..ca1d56df2 --- /dev/null +++ b/examples/Dfp/v201211/CompanyService/UpdateCompaniesExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201211'); + + // 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/v201211/ContentService/GetAllContentExample.php b/examples/Dfp/v201211/ContentService/GetAllContentExample.php new file mode 100755 index 000000000..3dc13ce05 --- /dev/null +++ b/examples/Dfp/v201211/ContentService/GetAllContentExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the ContentService. + $contentService = $user->GetService('ContentService', 'v201211'); + + // Set defaults for page and statement. + $page = new ContentPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all content. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get content by statement. + $page = $contentService->getContentByStatement($filterStatement); + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201211/ContentService/GetContentByCategoryExample.php b/examples/Dfp/v201211/ContentService/GetContentByCategoryExample.php new file mode 100755 index 000000000..35d356367 --- /dev/null +++ b/examples/Dfp/v201211/ContentService/GetContentByCategoryExample.php @@ -0,0 +1,113 @@ +LogDefaults(); + + // Get the ContentService. + $contentService = $user->GetService('ContentService', 'v201211'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201211'); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201211'); + + // 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/v201211/CreativeService/AssociateCreativeSetToLineItemExample.php b/examples/Dfp/v201211/CreativeService/AssociateCreativeSetToLineItemExample.php new file mode 100755 index 000000000..d30302e39 --- /dev/null +++ b/examples/Dfp/v201211/CreativeService/AssociateCreativeSetToLineItemExample.php @@ -0,0 +1,78 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = $user->GetService('LineItemCreativeAssociationService', + 'v201211'); + + // 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/v201211/CreativeService/CreateCreativeFromTemplateExample.php b/examples/Dfp/v201211/CreativeService/CreateCreativeFromTemplateExample.php new file mode 100755 index 000000000..2c31355c3 --- /dev/null +++ b/examples/Dfp/v201211/CreativeService/CreateCreativeFromTemplateExample.php @@ -0,0 +1,129 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201211'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Use the image banner with optional third party tracking template. + $creativeTemplateId = 10000680; + + // Create the local custom creative object. + $templateCreative = new TemplateCreative(); + $templateCreative->name = 'Template creative'; + $templateCreative->advertiserId = $advertiserId; + $templateCreative->creativeTemplateId = $creativeTemplateId; + + // Set the creative size. + $templateCreative->size = new Size(300, 250, FALSE); + + // Create the asset variable value. + $assetVariableValue = new AssetCreativeTemplateVariableValue(); + $assetVariableValue->uniqueName = 'Imagefile'; + $assetVariableValue->assetByteArray = MediaUtils::GetBase64Data( + 'http://www.google.com/intl/en/adwords/select/images/samples/inline.jpg'); + // Filenames must be unique. + $assetVariableValue->fileName = sprintf('image%s.jpg', uniqid()); + $templateCreative->creativeTemplateVariableValues[] = $assetVariableValue; + + // Create the image width variable value. + $imageWidthVariableValue = new LongCreativeTemplateVariableValue(); + $imageWidthVariableValue->uniqueName = 'Imagewidth'; + $imageWidthVariableValue->value = 300; + $templateCreative->creativeTemplateVariableValues[] = + $imageWidthVariableValue; + + // Create the image height variable value. + $imageHeightVariableValue = new LongCreativeTemplateVariableValue(); + $imageHeightVariableValue->uniqueName = 'Imageheight'; + $imageHeightVariableValue->value = 250; + $templateCreative->creativeTemplateVariableValues[] = + $imageHeightVariableValue; + + // Create the URL variable value. + $urlVariableValue = new UrlCreativeTemplateVariableValue(); + $urlVariableValue->uniqueName = 'ClickthroughURL'; + $urlVariableValue->value = 'www.google.com'; + $templateCreative->creativeTemplateVariableValues[] = $urlVariableValue; + + // Create the target window variable value. + $targetWindowVariableValue = new StringCreativeTemplateVariableValue(); + $targetWindowVariableValue->uniqueName = 'Targetwindow'; + $targetWindowVariableValue->value = '_blank'; + $templateCreative->creativeTemplateVariableValues[] = + $targetWindowVariableValue; + + // Create the template creative on the server. + $templateCreative = $creativeService->createCreative($templateCreative); + + // Display results. + if (isset($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->previewUrl); + } else { + print "No creative was created.\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/v201211/CreativeService/CreateCreativesExample.php b/examples/Dfp/v201211/CreativeService/CreateCreativesExample.php new file mode 100755 index 000000000..fa146b553 --- /dev/null +++ b/examples/Dfp/v201211/CreativeService/CreateCreativesExample.php @@ -0,0 +1,109 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201211'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create an array to store local image creative objects. + $imageCreatives = array(); + + for ($i = 0; $i < 5; $i++) { + $imageCreative = new ImageCreative(); + $imageCreative->name = 'Image creative #' . $i; + $imageCreative->advertiserId = $advertiserId; + $imageCreative->destinationUrl = 'http://google.com'; + $imageCreative->imageName = 'image.jpg'; + $imageCreative->imageByteArray = + MediaUtils::GetBase64Data('http://www.google.com/intl/en/adwords/' + . 'select/images/samples/inline.jpg'); + $imageCreative->size = new Size(300, 250); + + $imageCreatives[] = $imageCreative; + } + + // Create the image creatives on the server. + $imageCreatives = $creativeService->createCreatives($imageCreatives); + + // Display results. + if (isset($imageCreatives)) { + 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"; + } else { + print 'A creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType + . "\" was created.\n"; + } + } + } else { + print "No creatives created.\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/v201211/CreativeService/CreateCustomCreativeExample.php b/examples/Dfp/v201211/CreativeService/CreateCustomCreativeExample.php new file mode 100755 index 000000000..9393ec729 --- /dev/null +++ b/examples/Dfp/v201211/CreativeService/CreateCustomCreativeExample.php @@ -0,0 +1,103 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201211'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create the local custom creative object. + $customCreative = new CustomCreative(); + $customCreative->name = 'Custom creative'; + $customCreative->advertiserId = $advertiserId; + $customCreative->destinationUrl = 'http://google.com'; + + // Set the custom creative image asset. + $customCreativeAsset = new CustomCreativeAsset(); + $customCreativeAsset->macroName = 'IMAGE_ASSET'; + // Filenames must be unique. + $customCreativeAsset->fileName = sprintf('inline%s.jpg', uniqid()); + $customCreativeAsset->assetByteArray = MediaUtils::GetBase64Data( + 'http://www.google.com/intl/en/adwords/select/images/samples/inline.jpg'); + $customCreative->customCreativeAssets = array($customCreativeAsset); + + // Set the HTML snippet using the custom creative asset macro. + $customCreative->htmlSnippet = '' + . '' + . '
Click above for great deals!'; + + // Set the creative size. + $customCreative->size = new Size(300, 250, FALSE); + + // Create the custom creative on the server. + $customCreative = $creativeService->createCreative($customCreative); + + // Display results. + if (isset($customCreative)) { + printf("A custom creative with ID '%s', name '%s', and size '%sx%s' was " + . "created and can be previewed at: %s\n", $templateCreative->id, + $templateCreative->name, $templateCreative->size->width, + $templateCreative->size->height, $templateCreative->previewUrl); + } else { + print "No creative was created.\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/v201211/CreativeService/GetAllCreativesExample.php b/examples/Dfp/v201211/CreativeService/GetAllCreativesExample.php new file mode 100755 index 000000000..79dfb38b6 --- /dev/null +++ b/examples/Dfp/v201211/CreativeService/GetAllCreativesExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201211'); + + // Set defaults for page and statement. + $page = new CreativePage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all creatives. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201211/CreativeService/GetCreativeExample.php b/examples/Dfp/v201211/CreativeService/GetCreativeExample.php new file mode 100755 index 000000000..f1a3999ab --- /dev/null +++ b/examples/Dfp/v201211/CreativeService/GetCreativeExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201211'); + + // Set the ID of the creative to get. + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Get the creative. + $creative = $creativeService->getCreative($creativeId); + + // Display results. + if (isset($creative)) { + print 'Creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType . "\" was found.\n"; + } else { + print "No creative found for this ID.\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/v201211/CreativeService/GetCreativesByStatementExample.php b/examples/Dfp/v201211/CreativeService/GetCreativesByStatementExample.php new file mode 100755 index 000000000..2a24022f5 --- /dev/null +++ b/examples/Dfp/v201211/CreativeService/GetCreativesByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201211'); + + // 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/v201211/CreativeService/UpdateCreativesExample.php b/examples/Dfp/v201211/CreativeService/UpdateCreativesExample.php new file mode 100755 index 000000000..b42be6849 --- /dev/null +++ b/examples/Dfp/v201211/CreativeService/UpdateCreativesExample.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201211'); + + // Create a statement to get all image creatives. + $filterStatement = + new Statement("WHERE creativeType = 'ImageCreative' LIMIT 500"); + + // Get creatives by statement. + $page = $creativeService->getCreativesByStatement($filterStatement); + + if (isset($page->results)) { + $creatives = $page->results; + + // Update each local creative object by changing its destination URL. + foreach ($creatives as $creative) { + $creative->destinationUrl = 'http://news.google.com'; + } + + // Update the creatives on the server. + $creatives = $creativeService->updateCreatives($creatives); + + // 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"; + } + } else { + print "No creatives 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/v201211/CreativeSetService/CreateCreativeSetExample.php b/examples/Dfp/v201211/CreativeSetService/CreateCreativeSetExample.php new file mode 100755 index 000000000..17f31c603 --- /dev/null +++ b/examples/Dfp/v201211/CreativeSetService/CreateCreativeSetExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201211'); + + // Set the ID of the creatives to associate with this set. + $masterCreativeID = 'INSERT_MASTER_CREATIVE_ID_HERE'; + $companionCreativeID = 'INSERT_COMPANION_CREATIVE_ID_HERE'; + + // Create a local creative set. + $creativeSet = new CreativeSet(); + $creativeSet->name = 'Creative set #' . uniqid(); + $creativeSet->masterCreativeId = $masterCreativeID; + $creativeSet->companionCreativeIds = array(); + $creativeSet->companionCreativeIds[] = $companionCreativeID; + + // Create the creative set on the server. + $creativeSet = $creativeSetService->createCreativeSet($creativeSet); + + // Display results. + if (isset($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)); + } else { + print "No creative set created.\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/v201211/CreativeSetService/GetAllCreativesSetsExample.php b/examples/Dfp/v201211/CreativeSetService/GetAllCreativesSetsExample.php new file mode 100755 index 000000000..0ee44d0f6 --- /dev/null +++ b/examples/Dfp/v201211/CreativeSetService/GetAllCreativesSetsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201211'); + + // Set default offset. + $offset = 0; + $filterStatement = new Statement(); + + do { + // Create a statement to get all creative sets. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201211/CreativeSetService/GetCreativeSetsByStatementExample.php b/examples/Dfp/v201211/CreativeSetService/GetCreativeSetsByStatementExample.php new file mode 100755 index 000000000..c9a56264a --- /dev/null +++ b/examples/Dfp/v201211/CreativeSetService/GetCreativeSetsByStatementExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201211'); + + $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/v201211/CreativeSetService/UpdateCreativeSetExample.php b/examples/Dfp/v201211/CreativeSetService/UpdateCreativeSetExample.php new file mode 100755 index 000000000..f71d81350 --- /dev/null +++ b/examples/Dfp/v201211/CreativeSetService/UpdateCreativeSetExample.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201211'); + + # Set the ID of the creative set to get. + $creativeSetID = 'INSERT_CREATIVE_SET_ID_HERE'; + $companionCreativeID = 'INSERT_COMPANION_CREATIVE_ID_HERE'; + + # Get creative set. + $creativeSet = $creativeSetService->getCreativeSet($creativeSetID); + + $creativeSet->companionCreativeIds[] = $companionCreativeID; + + # Update the creative set on the server. + $creativeSet = $creativeSetService->updateCreativeSet($creativeSet); + + // Display results. + if (isset($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)); + } else { + print "No creative set 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/v201211/CreativeTemplateService/GetAllCreativeTemplatesExample.php b/examples/Dfp/v201211/CreativeTemplateService/GetAllCreativeTemplatesExample.php new file mode 100755 index 000000000..a4f6619d3 --- /dev/null +++ b/examples/Dfp/v201211/CreativeTemplateService/GetAllCreativeTemplatesExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201211'); + + // Set defaults for page and statement. + $page = new CreativeTemplatePage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all creative templates. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201211/CreativeTemplateService/GetCreativeTemplateExample.php b/examples/Dfp/v201211/CreativeTemplateService/GetCreativeTemplateExample.php new file mode 100755 index 000000000..7376acf5c --- /dev/null +++ b/examples/Dfp/v201211/CreativeTemplateService/GetCreativeTemplateExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201211'); + + // Set the ID of the creative template to get. + $creativeTemplateId = 'INSERT_CREATIVE_TEMPLATE_ID_HERE'; + + // Get the creative template. + $creativeTemplate = + $creativeTemplateService->getCreativeTemplate($creativeTemplateId); + + // Display results. + if (isset($creativeTemplate)) { + printf("Creative template with ID '%s', name '%s', and type '%s' was " + ."found.\n", $creativeTemplate->id, $creativeTemplate->name, + $creativeTemplate->type); + } else { + print "No creative template found for this ID.\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/v201211/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php b/examples/Dfp/v201211/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php new file mode 100755 index 000000000..b03eaccb5 --- /dev/null +++ b/examples/Dfp/v201211/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201211'); + + // 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/v201211/CreativeWrapperService/CreateCreativeWrappersExample.php b/examples/Dfp/v201211/CreativeWrapperService/CreateCreativeWrappersExample.php new file mode 100755 index 000000000..c2e2e4a33 --- /dev/null +++ b/examples/Dfp/v201211/CreativeWrapperService/CreateCreativeWrappersExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201211'); + + $labelId = 'INSERT_CREATIVE_WRAPPER_LABEL_ID_HERE'; + + // Create creative wrapper objects. + $creativeWrapper = new CreativeWrapper(); + $creativeWrapper->labelId = $labelId; + $creativeWrapper->ordering = 'INNER'; + $creativeWrapper->header = new CreativeWrapperHtmlSnippet; + $creativeWrapper->header->htmlSnippet = 'My creative wrapper header'; + $creativeWrapper->footer = new CreativeWrapperHtmlSnippet; + $creativeWrapper->footer->htmlSnippet = 'My creative wrapper footer'; + + // Create the creative wrappers on the server. + $creativeWrappers = + $creativeWrapperService->CreateCreativeWrappers(array($creativeWrapper)); + + // Display results. + if (isset($creativeWrappers)) { + foreach ($creativeWrappers as $creativeWrapper) { + printf("Creative wrapper with ID '%d' applying to label '%d' was" . + " created.\n", $creativeWrapper->id, $creativeWrapper->labelId); + } + } else { + print "No creative wrappers were created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201211/CreativeWrapperService/DeactivateCreativeWrapperExample.php b/examples/Dfp/v201211/CreativeWrapperService/DeactivateCreativeWrapperExample.php new file mode 100755 index 000000000..a8c89c2ab --- /dev/null +++ b/examples/Dfp/v201211/CreativeWrapperService/DeactivateCreativeWrapperExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201211'); + + $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/v201211/CreativeWrapperService/GetActiveCreativeWrappersExample.php b/examples/Dfp/v201211/CreativeWrapperService/GetActiveCreativeWrappersExample.php new file mode 100755 index 000000000..677783d16 --- /dev/null +++ b/examples/Dfp/v201211/CreativeWrapperService/GetActiveCreativeWrappersExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201211'); + + // Create a statement to select only active creative wrappers. + $vars = MapUtils::GetMapEntries(array('status' => new TextValue('ACTIVE'))); + $filterStatement = + new Statement('WHERE status = :status', $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' 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/v201211/CreativeWrapperService/GetAllCreativeWrappersExample.php b/examples/Dfp/v201211/CreativeWrapperService/GetAllCreativeWrappersExample.php new file mode 100755 index 000000000..bd7226f2a --- /dev/null +++ b/examples/Dfp/v201211/CreativeWrapperService/GetAllCreativeWrappersExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201211'); + + // 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/v201211/CreativeWrapperService/UpdateCreativeWrappersExample.php b/examples/Dfp/v201211/CreativeWrapperService/UpdateCreativeWrappersExample.php new file mode 100755 index 000000000..04dba445e --- /dev/null +++ b/examples/Dfp/v201211/CreativeWrapperService/UpdateCreativeWrappersExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201211'); + + $creativeWrapperId = 'INSERT_CREATIVE_WRAPPER_ID_HERE'; + + // Get creative wrapper. + $creativeWrapper = + $creativeWrapperService->getCreativeWrapper($creativeWrapperId); + + if (isset($creativeWrapper)) { + $creativeWrapper->ordering = 'OUTER'; + + // Update the creative wrappers on the server. + $creativeWrappers = + $creativeWrapperService-> + updateCreativeWrappers(array($creativeWrapper)); + + // Display results. + if (isset($creativeWrappers)) { + foreach ($creativeWrappers as $creativeWrapper) { + printf("Creative wrapper with ID '%s' and wrapping order '%s' was" . + " updated.\n", $creativeWrapper->id, $creativeWrapper->ordering); + } + } else { + printf('No creative wrappers were updated.'); + } + } else { + print "No creative wrappers found to update."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201211/CustomFieldService/CreateCustomFieldOptions.php b/examples/Dfp/v201211/CustomFieldService/CreateCustomFieldOptions.php new file mode 100755 index 000000000..0efdb5b38 --- /dev/null +++ b/examples/Dfp/v201211/CustomFieldService/CreateCustomFieldOptions.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = + $user->GetService('CustomFieldService', 'v201211'); + + // Set the ID of the drop-down custom field to create options for. + $customFieldId = "INSERT_DROP_DOWN_CUSTOM_FIELD_ID_HERE"; + + // Create custom field options. + $customFieldOption1 = new CustomFieldOption(); + $customFieldOption1->displayName = 'Approved'; + $customFieldOption1->customFieldId = $customFieldId; + + $customFieldOption2 = new CustomFieldOption(); + $customFieldOption2->displayName = 'Unapproved'; + $customFieldOption2->customFieldId = $customFieldId; + + // Create the custom targeting keys on the server. + $customFieldOptions = $customFieldService->createCustomFieldOptions( + array($customFieldOption1, $customFieldOption2)); + + // Display results. + if (isset($customFieldOptions)) { + foreach ($customFieldOptions as $customFieldOption) { + printf("A custom field option with ID '%s' and name '%s' was created.\n", + $customFieldOption->id, $customFieldOption->displayName); + } + } else { + print "No custom field options were created.\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/v201211/CustomFieldService/CreateCustomFields.php b/examples/Dfp/v201211/CustomFieldService/CreateCustomFields.php new file mode 100755 index 000000000..10b710f53 --- /dev/null +++ b/examples/Dfp/v201211/CustomFieldService/CreateCustomFields.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = + $user->GetService('CustomFieldService', 'v201211'); + + // Create custom fields. + $customField1 = new CustomField(); + $customField1->name = 'Customer comments #' . time(); + $customField1->entityType = 'LINE_ITEM'; + $customField1->dataType = 'STRING'; + $customField1->visibility = 'FULL'; + + $customField2 = new CustomField(); + $customField2->name = 'Internal approval status #' . time(); + $customField2->entityType = 'LINE_ITEM'; + $customField2->dataType = 'DROP_DOWN'; + $customField2->visibility = 'FULL'; + + // Create the custom fields on the server. + $customFields = $customFieldService->createCustomFields( + array($customField1, $customField2)); + + // Display results. + if (isset($customFields)) { + foreach ($customFields as $customField) { + printf("A custom field with ID '%s' and name '%s' was created.\n", + $customField->id, $customField->name); + } + } else { + print "No custom fields were created.\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/v201211/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php b/examples/Dfp/v201211/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php new file mode 100755 index 000000000..b4455b642 --- /dev/null +++ b/examples/Dfp/v201211/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php @@ -0,0 +1,123 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201211'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('entityType' => new TextValue("LINE_ITEM"), + 'isActive' => new BooleanValue("TRUE"))); + + // Create statement text to select only active custom fields that apply + // to line items. + $filterStatementText = + "WHERE entityType = :entityType and isActive = :isActive"; + $offset = 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); + + // Display results. + $customFieldIds = array(); + if (isset($page->results)) { + $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; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of custom fields to be deactivated: ' . sizeof($customFieldIds) + . "\n"; + + if (sizeof($customFieldIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $customFieldIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateCustomFields(); + + // Perform action. + $result = $customFieldService->performCustomFieldAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of custom fields deactivated: ' . $result->numChanges + . "\n"; + } else { + print "No custom fields 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/v201211/CustomFieldService/GetAllCustomFieldsExample.php b/examples/Dfp/v201211/CustomFieldService/GetAllCustomFieldsExample.php new file mode 100755 index 000000000..0f2ebf8d6 --- /dev/null +++ b/examples/Dfp/v201211/CustomFieldService/GetAllCustomFieldsExample.php @@ -0,0 +1,87 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201211'); + + // Set defaults for page and statement. + $page = new CustomFieldPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all custom fields. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get custom fields by statement. + $page = $customFieldService->getCustomFieldsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $customField) { + print $i . ') Custom field with ID "' . $customField->id + . '" and name "' . $customField->name . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201211/CustomFieldService/SetLineItemCustomFieldValue.php b/examples/Dfp/v201211/CustomFieldService/SetLineItemCustomFieldValue.php new file mode 100755 index 000000000..6baacba3d --- /dev/null +++ b/examples/Dfp/v201211/CustomFieldService/SetLineItemCustomFieldValue.php @@ -0,0 +1,128 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201211'); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201211'); + + // Set the IDs of the custom fields, custom field option, and line item. + $customFieldId = "INSERT_CUSTOM_FIELD_ID_HERE"; + $dropDownCustomFieldId = "INSERT_DROP_DOWN_CUSTOM_FIELD_ID_HERE"; + $customFieldOptionId = "INSERT_CUSTOM_FIELD_OPTION_ID_HERE"; + $lineItemId = "INSERT_LINE_ITEM_ID_HERE"; + + // Get the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + + // Create custom field values. + $customFieldValues = array(); + + $customFieldValue = new CustomFieldValue(); + $customFieldValue->customFieldId = $customFieldId; + $customFieldValue->value = new TextValue("Custom field value"); + $customFieldValues[] = $customFieldValue; + + $dropDownCustomFieldValue = new DropDownCustomFieldValue(); + $dropDownCustomFieldValue->customFieldId = $dropDownCustomFieldId; + $dropDownCustomFieldValue->customFieldOptionId = $customFieldOptionId; + $customFieldValues[] = $dropDownCustomFieldValue; + + // Only add existing custom field values for different custom fields than + // the ones you are setting. + if (isset($lineItem->customFieldValues)) { + foreach ($lineItem->customFieldValues as $oldCustomFieldValue) { + if (($oldCustomFieldValue->customFieldId != $customFieldId) && + ($oldCustomFieldValue->customFieldId != $dropDownCustomFieldId)) { + $customFieldValues[] = $oldCustomFieldValue; + } + } + } + + $lineItem->customFieldValues = $customFieldValues; + + // Update the line item on the server. + $lineItems = $lineItemService->updateLineItems($lineItem); + + if (isset($lineItems)) { + foreach ($lineItems as $lineItem) { + $customFieldValueStrings = array(); + foreach ($lineItem->customFieldValues as $baseCustomFieldValue) { + if (($baseCustomFieldValue instanceof CustomFieldValue)) { + $customFieldValueStrings[] = "{ID: '" + . $baseCustomFieldValue->customFieldId . "', value: '" + . $baseCustomFieldValue->value->value . "'}"; + } else if ($baseCustomFieldValue instanceof DropDownCustomFieldValue) { + $customFieldValueStrings[] = "{ID: '" + . $baseCustomFieldValue->customFieldId + . "', custom field option ID: '" + . $baseCustomFieldValue->customFieldOptionId . "'}"; + } + } + print "A line item with ID '" . $lineItem->id + . "' was set with custom field values '" + . join(",", $customFieldValueStrings) . "'."; + } + } + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CustomFieldService/UpdateCustomFieldExample.php b/examples/Dfp/v201211/CustomFieldService/UpdateCustomFieldExample.php new file mode 100755 index 000000000..d3b934f35 --- /dev/null +++ b/examples/Dfp/v201211/CustomFieldService/UpdateCustomFieldExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201211'); + + // Set the ID of the custom field to update. + $customFieldId = "INSERT_CUSTOM_FIELD_ID_HERE"; + + // Get the custom field. + $customField = $customFieldService->getCustomField($customFieldId); + + if (isset($customField)) { + $customField->description = "Description " . time(); + + $customFields = array(); + $customFields[] = $customField; + + // Update the custom field on the server. + $customFields = $customFieldService->updateCustomFields($customFields); + + // Display results. + if (isset($customFields)) { + foreach ($customFields as $customField) { + print 'Custom field with ID "' + . $customField->id . '", name "' . $customField->name + . '", and description "' . $customField->description + . "\" was updated.\n"; + } + } else { + print "No custom fields were updated.\n"; + } + } else { + print "No custom fields 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/v201211/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php b/examples/Dfp/v201211/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php new file mode 100755 index 000000000..8b112874d --- /dev/null +++ b/examples/Dfp/v201211/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php @@ -0,0 +1,152 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201211'); + + // Create predefined key. + $genderKey = new CustomTargetingKey(); + $genderKey->displayName = 'gender'; + $genderKey->name = 'g'; + $genderKey->type = 'PREDEFINED'; + + // Create predefined key that may be used for content targeting. + $genreKey = new CustomTargetingKey(); + $genreKey->displayName = 'genre'; + $genreKey->name = 'genre'; + $genreKey->type = 'PREDEFINED'; + + // Create free-form key. + $carModelKey = new CustomTargetingKey(); + $carModelKey->displayName = 'car model'; + $carModelKey->name = 'c'; + $carModelKey->type = 'FREEFORM'; + + // Create the custom targeting keys on the server. + $keys = $customTargetingService->createCustomTargetingKeys( + array($genderKey, $genreKey, $carModelKey)); + + if (isset($keys)) { + foreach ($keys as $key) { + printf("A custom targeting key with ID '%s', name '%s', and display " . + "name '%s' was created.\n", $key->id, $key->name, $key->displayName); + } + } else { + print "No keys were created.\n"; + } + + // Create custom targeting value for the predefined gender key. + $genderMaleValue = new CustomTargetingValue(); + $genderMaleValue->customTargetingKeyId = $keys[0]->id; + $genderMaleValue->displayName = 'male'; + // Name is set to 1 so that the actual name can be hidden from website + // users. + $genderMaleValue->name = '1'; + $genderMaleValue->matchType = 'EXACT'; + + $genderFemaleValue = new CustomTargetingValue(); + $genderFemaleValue->customTargetingKeyId = $keys[0]->id; + $genderFemaleValue->displayName = 'female'; + // Name is set to 2 so that the actual name can be hidden from website + // users. + $genderFemaleValue->name = '2'; + $genderFemaleValue->matchType = 'EXACT'; + + // Create custom targeting value for the predefined genre key. + $genreComedyValue = new CustomTargetingValue(); + $genreComedyValue->customTargetingKeyId = $keys[1]->id; + $genreComedyValue->displayName = 'comedy'; + $genreComedyValue->name = 'comedy'; + $genreComedyValue->matchType = 'EXACT'; + + $genreDramaValue = new CustomTargetingValue(); + $genreDramaValue->customTargetingKeyId = $keys[1]->id; + $genreDramaValue->displayName = 'drama'; + $genreDramaValue->name = 'drama'; + $genreDramaValue->matchType = 'EXACT'; + + // Create custom targeting value for the free-form age key. These are + // values that would be suggested in the UI or can be used when targeting + // with a free-form custom criterion. + $carModelHondaCivicValue = new CustomTargetingValue(); + $carModelHondaCivicValue->customTargetingKeyId = $keys[2]->id; + $carModelHondaCivicValue->displayName = 'honda civic'; + $carModelHondaCivicValue->name = 'honda civic'; + // Setting match type to exact will match exactly 'honda civic'. + $carModelHondaCivicValue->matchType = 'EXACT'; + + // Create the custom targeting values on the server. + $values = $customTargetingService->createCustomTargetingValues(array( + $genderMaleValue, $genderFemaleValue, $genreComedyValue, + $genreDramaValue, $carModelHondaCivicValue)); + + if (isset($values)) { + foreach ($values as $value) { + printf("A custom targeting value with ID '%s', belonging to key " . + "with ID '%s', name '%s', and display name '%s' was created.\n", + $value->id, $value->customTargetingKeyId, $value->name, + $value->displayName); + } + } else { + print "No values were created.\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/v201211/CustomTargetingService/DeleteCustomTargetingKeysExample.php b/examples/Dfp/v201211/CustomTargetingService/DeleteCustomTargetingKeysExample.php new file mode 100755 index 000000000..9cb38196a --- /dev/null +++ b/examples/Dfp/v201211/CustomTargetingService/DeleteCustomTargetingKeysExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201211'); + + // 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'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('name' => new TextValue($keyName))); + + $offset = 0; + $keyIds = array(); + + 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); + + if (isset($page->results)) { + foreach ($page->results as $customTargetingKey) { + $keyIds[] = $customTargetingKey->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + printf("Number of custom targeting keys to be deleted: %d\n", + sizeof($keyIds)); + + if (sizeof($keyIds) > 0) { + // Create action statement. + $filterStatementText = sprintf('WHERE id IN (%s)', implode(',', $keyIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeleteCustomTargetingKeys(); + + // Perform action. + $result = $customTargetingService->performCustomTargetingKeyAction( + $action, $filterStatement); + + // 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"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CustomTargetingService/DeleteCustomTargetingValuesExample.php b/examples/Dfp/v201211/CustomTargetingService/DeleteCustomTargetingValuesExample.php new file mode 100755 index 000000000..ee41b89e1 --- /dev/null +++ b/examples/Dfp/v201211/CustomTargetingService/DeleteCustomTargetingValuesExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201211'); + + // 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'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('keyId' => new NumberValue($keyId))); + + $offset = 0; + $valueIds = array(); + + 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); + + if (isset($page->results)) { + foreach ($page->results as $customTargetingValue) { + $valueIds[] = $customTargetingValue->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + printf("Number of custom targeting values to be deleted: %d\n", + sizeof($valueIds)); + + if (sizeof($valueIds) > 0) { + // Create action statement. + $filterStatementText .= sprintf(' AND id IN (%s)', implode(',', $valueIds)); + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeleteCustomTargetingValues(); + + // Perform action. + $result = $customTargetingService->performCustomTargetingValueAction( + $action, $filterStatement); + + // 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"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php b/examples/Dfp/v201211/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php new file mode 100755 index 000000000..cafb0dfef --- /dev/null +++ b/examples/Dfp/v201211/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php @@ -0,0 +1,137 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201211'); + + $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/v201211/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php b/examples/Dfp/v201211/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php new file mode 100755 index 000000000..bd3131f32 --- /dev/null +++ b/examples/Dfp/v201211/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201211'); + + // 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/v201211/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php b/examples/Dfp/v201211/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php new file mode 100755 index 000000000..b9adee1fa --- /dev/null +++ b/examples/Dfp/v201211/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201211'); + + // Set the ID of the custom targeting key to get custom targeting values for. + $keyId = '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($keyId)))); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingValuesByStatement( + $filterStatement); + + // 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++; + } + } + + 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/v201211/CustomTargetingService/UpdateCustomTargetingKeysExample.php b/examples/Dfp/v201211/CustomTargetingService/UpdateCustomTargetingKeysExample.php new file mode 100755 index 000000000..e3f5b9ca3 --- /dev/null +++ b/examples/Dfp/v201211/CustomTargetingService/UpdateCustomTargetingKeysExample.php @@ -0,0 +1,100 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201211'); + + // Create a statement to get all custom targeting keys. + $filterStatement = new Statement('LIMIT 500'); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $filterStatement); + + if (isset($page->results)) { + $keys = $page->results; + + // 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 keys on the server. + $keys = $customTargetingService->updateCustomTargetingKeys($keys); + + // 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"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CustomTargetingService/UpdateCustomTargetingValuesExample.php b/examples/Dfp/v201211/CustomTargetingService/UpdateCustomTargetingValuesExample.php new file mode 100755 index 000000000..8d1d76fa7 --- /dev/null +++ b/examples/Dfp/v201211/CustomTargetingService/UpdateCustomTargetingValuesExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201211'); + + // 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/v201211/ForecastService/GetForecastByIdExample.php b/examples/Dfp/v201211/ForecastService/GetForecastByIdExample.php new file mode 100755 index 000000000..1f2586fee --- /dev/null +++ b/examples/Dfp/v201211/ForecastService/GetForecastByIdExample.php @@ -0,0 +1,80 @@ +LogDefaults(); + + // Get the ForecastService. + $forecastService = $user->GetService('ForecastService', 'v201211'); + + // Set the line item to get a forecast for. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Get forecast for line item. + $forecast = $forecastService->getForecastById($lineItemId); + + // 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)) { + $percentPossibleUnits = $forecast->possibleUnits / $matchedUnits * 100; + printf("%d%% %s possible.\n", $percentPossibleUnits, $unitType); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/ForecastService/GetForecastExample.php b/examples/Dfp/v201211/ForecastService/GetForecastExample.php new file mode 100755 index 000000000..803e6e626 --- /dev/null +++ b/examples/Dfp/v201211/ForecastService/GetForecastExample.php @@ -0,0 +1,112 @@ +LogDefaults(); + + // Get the ForecastService. + $forecastService = $user->GetService('ForecastService', 'v201211'); + + // Set the placement ID that the prospective line item will target. + $targetPlacementId = 'INSERT_PLACEMENT_ID_HERE'; + + // Create prospective line item. + $lineItem = new LineItem(); + $lineItem->lineItemType = 'SPONSORSHIP'; + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedPlacementIds = array($targetPlacementId); + + // Set targeting for line item. + $targeting = new Targeting(); + $targeting->inventoryTargeting = $inventoryTargeting; + $lineItem->targeting = $targeting; + + // 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 line item's time to be now until the projected end date time. + $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; + + // Set the cost type to match the unit type. + $lineItem->costType = 'CPM'; + + // Get forecast for line item. + $forecast = $forecastService->getForecast($lineItem); + + // 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)) { + $percentPossibleUnits = $forecast->possibleUnits / $matchedUnits * 100; + printf("%d%% %s possible.\n", $percentPossibleUnits, $unitType); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/InventoryService/CreateAdUnitsExample.php b/examples/Dfp/v201211/InventoryService/CreateAdUnitsExample.php new file mode 100755 index 000000000..46fded94f --- /dev/null +++ b/examples/Dfp/v201211/InventoryService/CreateAdUnitsExample.php @@ -0,0 +1,105 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201211'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201211'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + // Create an array to store local ad unit objects. + $adUnits = array(); + + for ($i = 0; $i < 5; $i++) { + $adUnit = new AdUnit(); + $adUnit->name = uniqid('Ad_Unit_'); + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + + // Create ad unit size. + $adUnitSize = new AdUnitSize(); + $adUnitSize->size = new Size(300, 250, FALSE); + $adUnitSize->environmentType = 'BROWSER'; + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($adUnitSize); + + $adUnits[] = $adUnit; + } + + // Create the ad units on the server. + $adUnits = $inventoryService->createAdUnits($adUnits); + + // Display results. + if (isset($adUnits)) { + foreach ($adUnits as $adUnit) { + print 'An ad unit with ID "' . $adUnit->id + . '" was created under parent with ID "' . $adUnit->parentId + . "\".\n"; + } + } else { + print "No ad units created.\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/v201211/InventoryService/CreateMobileAdUnitExample.php b/examples/Dfp/v201211/InventoryService/CreateMobileAdUnitExample.php new file mode 100755 index 000000000..830419823 --- /dev/null +++ b/examples/Dfp/v201211/InventoryService/CreateMobileAdUnitExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201211'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201211'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + $adUnit = new AdUnit(); + $adUnit->name = uniqid('Mobile_Ad_Unit_'); + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + $adUnit->targetPlatform = 'MOBILE'; + $adUnit->mobilePlatform = 'APPLICATION'; + + // Create ad unit size. + $adUnitSize = new AdUnitSize(); + $adUnitSize->size = new Size(400, 300, FALSE); + $adUnitSize->environmentType = 'BROWSER'; + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($adUnitSize); + + // Create the ad unit on the server. + $adUnit = $inventoryService->createAdUnit($adUnit); + + // Display results. + if (isset($adUnit)) { + printf("An ad unit with ID '%s' was created under parent with ID '%s'.\n", + $adUnit->id, $adUnit->parentId); + } else { + print "No ad unit was created.\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/v201211/InventoryService/CreateVideoAdUnitExample.php b/examples/Dfp/v201211/InventoryService/CreateVideoAdUnitExample.php new file mode 100755 index 000000000..76d69507c --- /dev/null +++ b/examples/Dfp/v201211/InventoryService/CreateVideoAdUnitExample.php @@ -0,0 +1,111 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201211'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201211'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + // Create local ad unit object. + $adUnit = new AdUnit(); + $adUnit->name = 'Video_Ad_Unit'; + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + $adUnit->explicitlyTargeted = TRUE; + $adUnit->targetPlatform = 'WEB'; + + // Create master ad unit size. + $masterAdUnitSize = new AdUnitSize(); + $masterAdUnitSize->size = new Size(400, 300, FALSE); + $masterAdUnitSize->environmentType = 'VIDEO_PLAYER'; + + // Create companion sizes. + $companionAdUnitSize1 = new AdUnitSize(); + $companionAdUnitSize1->size = new Size(300, 250, FALSE); + $companionAdUnitSize1->environmentType = 'BROWSER'; + + $companionAdUnitSize2 = new AdUnitSize(); + $companionAdUnitSize2->size = new Size(728, 90, FALSE); + $companionAdUnitSize2->environmentType = 'BROWSER'; + + // Add companions to master ad unit size. + $masterAdUnitSize->companions = + array($companionAdUnitSize1, $companionAdUnitSize2); + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($masterAdUnitSize); + + // Create the ad unit on the server. + $adUnit = $inventoryService->createAdUnit($adUnit); + + // Display results. + if (isset($adUnit)) { + printf("An ad unit with ID '%s' was created under parent with ID '%s'.\n", + $adUnit->id, $adUnit->parentId); + } else { + print "No ad unit was created.\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/v201211/InventoryService/DeactivateAdUnitsExample.php b/examples/Dfp/v201211/InventoryService/DeactivateAdUnitsExample.php new file mode 100755 index 000000000..b8eaa9cf2 --- /dev/null +++ b/examples/Dfp/v201211/InventoryService/DeactivateAdUnitsExample.php @@ -0,0 +1,113 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201211'); + + // Create statement text to get all active ad units. + $filterStatementText = "WHERE status = 'ACTIVE'"; + + $offset = 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); + + // Display results. + $adUnitIds = array(); + 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 . "\" will be deactivated.\n"; + $i++; + $adUnitIds[] = $adUnit->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of ad units to be deactivated: ' . sizeof($adUnitIds) . "\n"; + + if (sizeof($adUnitIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $adUnitIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateAdUnits(); + + // Perform action. + $result = $inventoryService->performAdUnitAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of ad units deactivated: ' . $result->numChanges . "\n"; + } else { + print "No ad units 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/v201211/InventoryService/GetAdUnitExample.php b/examples/Dfp/v201211/InventoryService/GetAdUnitExample.php new file mode 100755 index 000000000..a6c0bbdf8 --- /dev/null +++ b/examples/Dfp/v201211/InventoryService/GetAdUnitExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201211'); + + // Set the ID of the ad unit to get. + $adUnitId = 'INSERT_AD_UNIT_ID_HERE'; + + // Get the ad unit. + $adUnit = $inventoryService->getAdUnit($adUnitId); + + // Display results. + if (isset($adUnit)) { + print 'Ad unit with ID "' . $adUnit->id + . '", name "' . $adUnit->name + . '", and status "' . $adUnit->status . "\" was found.\n"; + } else { + print "No ad unit found for this ID.\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/v201211/InventoryService/GetAdUnitSizesExample.php b/examples/Dfp/v201211/InventoryService/GetAdUnitSizesExample.php new file mode 100755 index 000000000..87c1fff21 --- /dev/null +++ b/examples/Dfp/v201211/InventoryService/GetAdUnitSizesExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201211'); + + // 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); + + // Get all ad unit sizes by statement. + $adUnitSizes = $inventoryService->getAdUnitSizesByStatement($filterStatement); + + // Display results. + $i = 0; + foreach ($adUnitSizes as $adUnitSize) { + printf("%d) Web ad unit size of dimensions %s was found.\n", $i, + $adUnitSize->fullDisplayString); + $i++; + } + + 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"; +} + diff --git a/examples/Dfp/v201211/InventoryService/GetAdUnitsByStatementExample.php b/examples/Dfp/v201211/InventoryService/GetAdUnitsByStatementExample.php new file mode 100755 index 000000000..bd7fb1130 --- /dev/null +++ b/examples/Dfp/v201211/InventoryService/GetAdUnitsByStatementExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201211'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201211'); + + // Get the effective root ad unit's ID. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->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)))); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // 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++; + } + } + + 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/v201211/InventoryService/GetAllAdUnitsExample.php b/examples/Dfp/v201211/InventoryService/GetAllAdUnitsExample.php new file mode 100755 index 000000000..87fedf2ec --- /dev/null +++ b/examples/Dfp/v201211/InventoryService/GetAllAdUnitsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201211'); + + // Set defaults for page and statement. + $page = new AdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201211/InventoryService/GetInventoryTreeExample.php b/examples/Dfp/v201211/InventoryService/GetInventoryTreeExample.php new file mode 100755 index 000000000..53d564dab --- /dev/null +++ b/examples/Dfp/v201211/InventoryService/GetInventoryTreeExample.php @@ -0,0 +1,206 @@ +GetService('InventoryService', 'v201211'); + + // Create array to hold all ad units. + $adUnits = array(); + + // Set defaults for page and statement. + $page = new AdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + $adUnits = array_merge($adUnits, $page->results); + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + return $adUnits; +} + +/** + * Finds the root ad unit for the user. + * @param DfpUser $user the user to get the root ad unit for + * @return the ad unit representing the root ad unit or NULL if one + * is not found. + * @access private + */ +function FindRootAdUnit(DfpUser $user) { + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201211'); + + // Create a statement to only select image creatives. + $filterStatement = new Statement("WHERE parentId IS NULL LIMIT 1"); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + return $page->results[0]; + } else { + return NULL; + } +} + +/** + * Builds and displays an ad unit tree from an array of ad units underneath + * the root ad unit. + * @param AdUnit $root the root ad unit to build the tree under + * @param array $adUnits the array of ad units. + * @access private + */ +function BuildAndDisplayAdUnitTree(AdUnit $root, + array $adUnits) { + $treeMap = array(); + + foreach ($adUnits as $adUnit) { + if (isset($adUnit->parentId)) { + $treeMap[$adUnit->parentId][] = $adUnit; + } + } + + if (isset($root)) { + DisplayInventoryTree($root, $treeMap); + } else { + print "No root unit found.\n"; + } +} + +/** + * Displays the ad unit tree beginning at the root ad unit. + * @param AdUnit $root the root ad unit + * @param array $treeMap the map of id to array of ad units + * @access private + */ +function DisplayInventoryTree(AdUnit $root, array $treeMap) { + DisplayInventoryTreeHelper($root, $treeMap, 0); +} + +/** + * Helper for displaying inventory units. + * @param AdUnit $root the root inventory unit + * @param array $treeMap the map of id to array of inventory units + * @param $depth the depth the tree has reached + * @access private + */ +function DisplayInventoryTreeHelper(AdUnit $root, + array $treeMap, $depth) { + print GenerateTab($depth) . $root->name . ' (' + . $root->id . ")\n"; + + if (isset($treeMap[$root->id])) { + foreach ($treeMap[$root->id] as $child) { + DisplayInventoryTreeHelper($child, + $treeMap, $depth + 1); + } + } +} + +/** + * Generates a string of tabs to represent branching to children. + * @param $depth a depth from 0 to max(depth) + * @return string a string to insert in front of the root unit + * @access private + */ +function GenerateTab($depth) { + $tab = ''; + + if ($depth != 0) { + $tab .= ' '; + } + + for ($i = 1; $i < $depth; $i++) { + $tab .= '| '; + } + + return $tab . '+--'; +} + +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->LogDefaults(); + + $allAdUnits = GetAllAdUnits($user); + + // Find the root ad unit. rootAdUnit can also be set to child unit to + // only build and display a portion of the tree. + // i.e. $adUnit = $inventoryService->getAdUnit("INSERT_AD_UNIT_ID_HERE") + $rootAdUnit = FindRootAdUnit($user); + + if (isset($rootAdUnit)) { + BuildAndDisplayAdUnitTree($rootAdUnit, $allAdUnits); + } else { + print "Could not build tree. No root ad unit found.\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/v201211/InventoryService/UpdateAdUnitsExample.php b/examples/Dfp/v201211/InventoryService/UpdateAdUnitsExample.php new file mode 100755 index 000000000..48c3952f2 --- /dev/null +++ b/examples/Dfp/v201211/InventoryService/UpdateAdUnitsExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201211'); + + // Create a statement to get all ad units. + $filterStatement = new Statement("LIMIT 500"); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + $adUnits = $page->results; + + // Update each local ad unit object by enabling AdSense. + foreach ($adUnits as $adUnit) { + $adUnit->inheritedAdSenseSettings->value->adSenseEnabled = TRUE; + } + + // Update the ad units on the server. + $adUnits = $inventoryService->updateAdUnits($adUnits); + + // 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"; + } + } + } else { + print "No ad units updated.\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/v201211/LabelService/CreateLabelsExample.php b/examples/Dfp/v201211/LabelService/CreateLabelsExample.php new file mode 100755 index 000000000..03a83efc1 --- /dev/null +++ b/examples/Dfp/v201211/LabelService/CreateLabelsExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201211'); + + // Create an array to store local label objects. + $labels = array(); + + for ($i = 0; $i < 5; $i++) { + $label = new Label(); + $label->name = 'Label #' . uniqid(); + $label->types = array('COMPETITIVE_EXCLUSION'); + $labels[] = $label; + } + + // Create the labels on the server. + $labels = $labelService->createLabels($labels); + + // Display results. + if (isset($labels)) { + foreach ($labels as $label) { + printf("A label with ID '%s', name '%s', and types {%s} was created.\n", + $label->id, $label->name, join(',', $label->types)); + } + } else { + print "No labels created.\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/v201211/LabelService/DeactivateLabelsExample.php b/examples/Dfp/v201211/LabelService/DeactivateLabelsExample.php new file mode 100755 index 000000000..b8ce3a172 --- /dev/null +++ b/examples/Dfp/v201211/LabelService/DeactivateLabelsExample.php @@ -0,0 +1,111 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201211'); + + // Create statement text to get all active labels. + $filterStatementText = "WHERE isActive = true"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset); + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // Display results. + $labelIds = array(); + if (isset($page->results)) { + 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; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of labels to be deactivated: ' . sizeof($labelIds) . "\n"; + + if (sizeof($labelIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $labelIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateLabels(); + + // Perform action. + $result = $labelService->performLabelAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of labels deactivated: ' . $result->numChanges . "\n"; + } else { + print "No labels 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/v201211/LabelService/GetAllLabelsExample.php b/examples/Dfp/v201211/LabelService/GetAllLabelsExample.php new file mode 100755 index 000000000..5bb599df8 --- /dev/null +++ b/examples/Dfp/v201211/LabelService/GetAllLabelsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201211'); + + // Set defaults for page and statement. + $page = new LabelPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all labels. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201211/LabelService/GetLabelExample.php b/examples/Dfp/v201211/LabelService/GetLabelExample.php new file mode 100755 index 000000000..ac5bbbb99 --- /dev/null +++ b/examples/Dfp/v201211/LabelService/GetLabelExample.php @@ -0,0 +1,75 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201211'); + + // Set the ID of the label to get. + $labelId = 'INSERT_LABEL_ID_HERE'; + + // Get the label. + $label = $labelService->getLabel($labelId); + + if (isset($label)) { + printf("Label with ID '%s', name '%s', and type {%s} was found.\n", + $label->id, $label->name, join(",", $label->types)); + } else { + print "No label found for this ID.\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/v201211/LabelService/GetLabelsByStatementExample.php b/examples/Dfp/v201211/LabelService/GetLabelsByStatementExample.php new file mode 100755 index 000000000..d76848e5d --- /dev/null +++ b/examples/Dfp/v201211/LabelService/GetLabelsByStatementExample.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201211'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array()); + + // Create a statement to select labels ordered by name. + $filterStatement = + new Statement("ORDER BY name LIMIT 500", $vars); + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // 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++; + } + } + + 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/v201211/LabelService/UpdateLabelsExample.php b/examples/Dfp/v201211/LabelService/UpdateLabelsExample.php new file mode 100755 index 000000000..fca948e2e --- /dev/null +++ b/examples/Dfp/v201211/LabelService/UpdateLabelsExample.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201211'); + + // 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/v201211/LicaService/CreateLicasExample.php b/examples/Dfp/v201211/LicaService/CreateLicasExample.php new file mode 100755 index 000000000..ee61b4b5b --- /dev/null +++ b/examples/Dfp/v201211/LicaService/CreateLicasExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201211'); + + // Set the line item ID and creative ID to associate + // them with. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Create local LICA. + $lica = new LineItemCreativeAssociation(); + $lica->creativeId = $creativeId; + $lica->lineItemId = $lineItemId; + + $licas = array($lica); + + // Create the LICAs on the server. + $licas = $licaService->createLineItemCreativeAssociations($licas); + + // Display results. + if (isset($licas)) { + foreach ($licas as $lica) { + print 'A LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" was created.\n"; + } + } else { + print "No LICAs created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/LicaService/DeactivateLicasExample.php b/examples/Dfp/v201211/LicaService/DeactivateLicasExample.php new file mode 100755 index 000000000..82fba9d80 --- /dev/null +++ b/examples/Dfp/v201211/LicaService/DeactivateLicasExample.php @@ -0,0 +1,127 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201211'); + + // 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 statement text to select active LICAs for a given line item. + $filterStatementText = "WHERE lineItemId = :lineItemId AND status = 'ACTIVE'"; + + $offset = 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); + + // Display results. + $creativeIds = array(); + 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 + . "\" will be deactivated.\n"; + $i++; + $creativeIds[] = $lica->creativeId; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of LICAs to be deactivated: ' . sizeof($lica->creativeId) + . "\n"; + + if (sizeof($lica->creativeId) > 0) { + // Create action statement. + $filterStatementText = sprintf( + 'WHERE lineItemId = :lineItemId AND creativeId IN (%s)', + implode(',', $creativeIds)); + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeactivateLineItemCreativeAssociations(); + + // Perform action. + $result = $licaService->performLineItemCreativeAssociationAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of LICAs deactivated: ' . $result->numChanges . "\n"; + } else { + print "No LICAs 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/v201211/LicaService/GetAllLicasExample.php b/examples/Dfp/v201211/LicaService/GetAllLicasExample.php new file mode 100755 index 000000000..dd037f05a --- /dev/null +++ b/examples/Dfp/v201211/LicaService/GetAllLicasExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201211'); + + // Set defaults for page and statement. + $page = new LineItemCreativeAssociationPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all LICAs. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $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); + } 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); + } + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201211/LicaService/GetLicaExample.php b/examples/Dfp/v201211/LicaService/GetLicaExample.php new file mode 100755 index 000000000..188db080f --- /dev/null +++ b/examples/Dfp/v201211/LicaService/GetLicaExample.php @@ -0,0 +1,82 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201211'); + + // Set the line item and creative ID to use to retrieve the LICA. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Get the LICA. + $lica = $licaService->getLineItemCreativeAssociation($lineItemId, + $creativeId); + + // Display results. + if (isset($lica)) { + print 'A LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" was found.\n"; + } else { + print "No LICA found for this ID.\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/v201211/LicaService/GetLicasByStatementExample.php b/examples/Dfp/v201211/LicaService/GetLicasByStatementExample.php new file mode 100755 index 000000000..42e5fa790 --- /dev/null +++ b/examples/Dfp/v201211/LicaService/GetLicasByStatementExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201211'); + + // 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/v201211/LicaService/UpdateLicasExample.php b/examples/Dfp/v201211/LicaService/UpdateLicasExample.php new file mode 100755 index 000000000..54fe418f4 --- /dev/null +++ b/examples/Dfp/v201211/LicaService/UpdateLicasExample.php @@ -0,0 +1,96 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201211'); + + // Create a statement to get all LICAs. + $filterStatement = new Statement("LIMIT 500"); + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + if (isset($page->results)) { + $licas = $page->results; + + // Update each local LICA object by changing its destination URL. + foreach ($licas as $lica) { + $lica->destinationUrl = 'http://news.google.com'; + } + + // Update the LICAs on the server. + $licas = $licaService->updateLineItemCreativeAssociations($licas); + + // 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"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/LineItemService/ActivateLineItemsExample.php b/examples/Dfp/v201211/LineItemService/ActivateLineItemsExample.php new file mode 100755 index 000000000..e1c10a809 --- /dev/null +++ b/examples/Dfp/v201211/LineItemService/ActivateLineItemsExample.php @@ -0,0 +1,132 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201211'); + + // 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/v201211/LineItemService/AuditLineItemsGeoTargetingExample.php b/examples/Dfp/v201211/LineItemService/AuditLineItemsGeoTargetingExample.php new file mode 100755 index 000000000..684ba6869 --- /dev/null +++ b/examples/Dfp/v201211/LineItemService/AuditLineItemsGeoTargetingExample.php @@ -0,0 +1,213 @@ +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/v201211/LineItemService/CreateLineItemsExample.php b/examples/Dfp/v201211/LineItemService/CreateLineItemsExample.php new file mode 100755 index 000000000..76584f6a3 --- /dev/null +++ b/examples/Dfp/v201211/LineItemService/CreateLineItemsExample.php @@ -0,0 +1,186 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201211'); + + // 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_PLACEMENT_ID_HERE'); + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedPlacementIds = $targetPlacementIds; + + // Create geographical targeting. + $geoTargeting = new GeoTargeting(); + + // Include the US, Quebec (Canada), and postal code B3P (Canada). + $countryLocation = new DfpLocation(); + $countryLocation->id = 2840; + + $regionLocation = new DfpLocation(); + $regionLocation->id = 20123; + + $postalCodeLocation = new PostalCodeLocation(); + $postalCodeLocation->id = 9000093; + + $geoTargeting->targetedLocations = array($countryLocation, $regionLocation); + + // Exclude Chicago and the New York metro area. + $cityLocation = new DfpLocation(); + $cityLocation->id = 1016367; + + $metroLocation = new DfpLocation(); + $metroLocation->id = 200501; + $geoTargeting->excludedLocations = array($cityLocation, $metroLocation); + + // Exclude users from US federal government domains. + $userDomainTargeting = new UserDomainTargeting(array('usa.gov'), FALSE); + + // Target only the weekend in the browser's timezone. + $saturdayDayPart = new DayPart(); + $saturdayDayPart->dayOfWeek = 'SATURDAY'; + $saturdayDayPart->startTime = new TimeOfDay(0, 'ZERO'); + $saturdayDayPart->endTime = new TimeOfDay(24, 'ZERO'); + + $sundayDayPart = new DayPart(); + $sundayDayPart->dayOfWeek = 'SUNDAY'; + $sundayDayPart->startTime = new TimeOfDay(0, 'ZERO'); + $sundayDayPart->endTime = new TimeOfDay(24, 'ZERO'); + + // Create day-part targeting. + $dayPartTargeting = new DayPartTargeting(); + $dayPartTargeting->timeZone = 'BROWSER'; + $dayPartTargeting->dayParts = array($saturdayDayPart, $sundayDayPart); + + // Target just the Chrome browser. + $browserTechnology = new Technology(); + $browserTechnology->id = 500072; + + // Create technology targeting. + $browserTargeting = new BrowserTargeting(); + $browserTargeting->browsers = array($browserTechnology); + $technologyTargeting = new TechnologyTargeting(); + $technologyTargeting->browserTargeting = $browserTargeting; + + // Create targeting. + $targeting = new Targeting(); + $targeting->inventoryTargeting = $inventoryTargeting; + $targeting->geoTargeting = $geoTargeting; + $targeting->userDomainTargeting = $userDomainTargeting; + $targeting->dayPartTargeting = $dayPartTargeting; + $targeting->technologyTargeting = $technologyTargeting; + + // Create an array to store local line item objects. + $lineItems = array(); + + for ($i = 0; $i < 5; $i++) { + $lineItem = new LineItem(); + $lineItem->name = 'Line item #' . uniqid(); + $lineItem->orderId = $orderId; + $lineItem->targeting = $targeting; + $lineItem->lineItemType = 'STANDARD'; + $lineItem->allowOverbook = 'TRUE'; + + // 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 creative rotation type to even. + $lineItem->creativeRotationType = 'EVEN'; + + // 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'; + + $lineItems[] = $lineItem; + } + + // Create the line items on the server. + $lineItems = $lineItemService->createLineItems($lineItems); + + // 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"; + } + } else { + print "No line items created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/LineItemService/CreateMobileLineItemExample.php b/examples/Dfp/v201211/LineItemService/CreateMobileLineItemExample.php new file mode 100755 index 000000000..912b13bb0 --- /dev/null +++ b/examples/Dfp/v201211/LineItemService/CreateMobileLineItemExample.php @@ -0,0 +1,160 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201211'); + + // 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. + $lineItem = $lineItemService->createLineItem($lineItem); + + // Display results. + if (isset($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); + } else { + print "No line item was created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/LineItemService/CreateVideoLineItemExample.php b/examples/Dfp/v201211/LineItemService/CreateVideoLineItemExample.php new file mode 100755 index 000000000..1fa90a091 --- /dev/null +++ b/examples/Dfp/v201211/LineItemService/CreateVideoLineItemExample.php @@ -0,0 +1,163 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201211'); + + // 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); + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedAdUnits = + array(new AdUnitTargeting($targetedVideoAdUnitId, TRUE)); + + // Create video position targeting. + $videoPositionTargeting = new VideoPositionTargeting(); + $videoPositionTargeting->targetedVideoPositions = array('PREROLL'); + + // Create targeting. + $targeting = new Targeting(); + $targeting->customTargeting = $customCriteriaSet; + $targeting->inventoryTargeting = $inventoryTargeting; + $targeting->videoPositionTargeting = $videoPositionTargeting; + + // Create local line item object. + $lineItem = new LineItem(); + $lineItem->name = 'Video line item'; + $lineItem->orderId = $orderId; + $lineItem->targeting = $targeting; + $lineItem->lineItemType = 'SPONSORSHIP'; + $lineItem->allowOverbook = TRUE; + + // Set the environment type to video. + $lineItem->environmentType = 'VIDEO_PLAYER'; + + // Set the creative rotation type to optimized. + $lineItem->creativeRotationType = 'OPTIMIZED'; + + // Create the master creative placeholder. + $creativeMasterPlaceholder = new CreativePlaceholder(); + $creativeMasterPlaceholder->size = new Size(400, 300, FALSE); + + // Create companion creative placeholders. + $companionCreativePlaceholder1 = new CreativePlaceholder(); + $companionCreativePlaceholder1->size = new Size(300, 250, FALSE); + + $companionCreativePlaceholder2 = new CreativePlaceholder(); + $companionCreativePlaceholder2->size = new Size(728, 90, FALSE); + + // Set companion creative placeholders. + $creativeMasterPlaceholder->companions = + array($companionCreativePlaceholder1, $companionCreativePlaceholder2); + + // Set the size of creatives that can be associated with this line item. + $lineItem->creativePlaceholders = array($creativeMasterPlaceholder); + + // Set delivery of video companions to optional. + $lineItem->companionDeliveryOption = 'OPTIONAL'; + + // Set the length of the line item to run. + $lineItem->startDateTimeType = 'IMMEDIATELY'; + $lineItem->endDateTime = + DateTimeUtils::GetDfpDateTime(new DateTime('+1 month')); + + // Set the cost per day to $1. + $lineItem->costType = 'CPD'; + $lineItem->costPerUnit = new Money('USD', 1000000); + + // Set the percentage to be 100%. + $lineItem->unitsBought = 100; + + // 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 { + print "No line items created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/LineItemService/GetAllLineItemsExample.php b/examples/Dfp/v201211/LineItemService/GetAllLineItemsExample.php new file mode 100755 index 000000000..de6b5cf79 --- /dev/null +++ b/examples/Dfp/v201211/LineItemService/GetAllLineItemsExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201211'); + + // Set defaults for page and statement. + $page = new LineItemPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all line items. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201211/LineItemService/GetLineItemExample.php b/examples/Dfp/v201211/LineItemService/GetLineItemExample.php new file mode 100755 index 000000000..76750a8da --- /dev/null +++ b/examples/Dfp/v201211/LineItemService/GetLineItemExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201211'); + + // Set the ID of the line item to get. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Get the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + + // Display results. + if (isset($lineItem)) { + print 'Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", and name "' . $lineItem->name + . "\" was found.\n"; + } else { + print "No line item found for this ID.\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/v201211/LineItemService/GetLineItemsByStatementExample.php b/examples/Dfp/v201211/LineItemService/GetLineItemsByStatementExample.php new file mode 100755 index 000000000..84fbb1097 --- /dev/null +++ b/examples/Dfp/v201211/LineItemService/GetLineItemsByStatementExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201211'); + + // 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/v201211/LineItemService/GetRecentlyUpdatedLineItems.php b/examples/Dfp/v201211/LineItemService/GetRecentlyUpdatedLineItems.php new file mode 100755 index 000000000..61c8fc959 --- /dev/null +++ b/examples/Dfp/v201211/LineItemService/GetRecentlyUpdatedLineItems.php @@ -0,0 +1,103 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201211'); + + // 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/v201211/LineItemService/TargetCustomCriteriaExample.php b/examples/Dfp/v201211/LineItemService/TargetCustomCriteriaExample.php new file mode 100755 index 000000000..bc445b367 --- /dev/null +++ b/examples/Dfp/v201211/LineItemService/TargetCustomCriteriaExample.php @@ -0,0 +1,119 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201211'); + + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $customCriteriaIds1 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + $customCriteriaIds2 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + $customCriteriaIds3 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + + // Create custom criteria. + $customCriteria1 = new CustomCriteria(); + $customCriteria1->keyId = $customCriteriaIds1[0]; + $customCriteria1->valueIds = array($customCriteriaIds1[1]); + $customCriteria1->operator = 'IS'; + + $customCriteria2 = new CustomCriteria(); + $customCriteria2->keyId = $customCriteriaIds2[0]; + $customCriteria2->valueIds = array($customCriteriaIds2[1]); + $customCriteria2->operator = 'IS_NOT'; + + $customCriteria3 = new CustomCriteria(); + $customCriteria3->keyId = $customCriteriaIds3[0]; + $customCriteria3->valueIds = array($customCriteriaIds3[1]); + $customCriteria3->operator = 'IS'; + + + // Create the custom criteria set that will resemble: + // + // ($customCriteria1.key == $customCriteria1.value OR + // ($customCriteria2.key != $customCriteria2.value AND + // $customCriteria3.key == $customCriteria3.value)) + $topCustomCriteriaSet = new CustomCriteriaSet(); + $topCustomCriteriaSet->logicalOperator = 'OR'; + + $subCustomCriteriaSet = new CustomCriteriaSet(); + $subCustomCriteriaSet->logicalOperator = 'AND'; + $subCustomCriteriaSet->children = array($customCriteria2, $customCriteria3); + $topCustomCriteriaSet->children = + array($customCriteria1, $subCustomCriteriaSet); + + // Set the custom criteria targeting on the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + $lineItem->targeting->customTargeting = $topCustomCriteriaSet; + + // Update the line items on the server. + $lineItem = $lineItemService->updateLineItem($lineItem); + + // Display results. + if (isset($lineItem)) { + printf("Line item with ID '%s' updated with custom criteria targeting:\n", + $lineItem->id); + print_r($lineItem->targeting->customTargeting); + } else { + print "No line items updated.\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/v201211/LineItemService/UpdateLineItemsExample.php b/examples/Dfp/v201211/LineItemService/UpdateLineItemsExample.php new file mode 100755 index 000000000..973a53f5d --- /dev/null +++ b/examples/Dfp/v201211/LineItemService/UpdateLineItemsExample.php @@ -0,0 +1,104 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201211'); + + // 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/v201211/NetworkService/GetAllNetworksExample.php b/examples/Dfp/v201211/NetworkService/GetAllNetworksExample.php new file mode 100755 index 000000000..4e671cec3 --- /dev/null +++ b/examples/Dfp/v201211/NetworkService/GetAllNetworksExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201211'); + + // Get all networks that you have access to with the current login + // 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++; + } + } + + print 'Number of results found: ' . $i . "\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/v201211/NetworkService/GetCurrentNetworkExample.php b/examples/Dfp/v201211/NetworkService/GetCurrentNetworkExample.php new file mode 100755 index 000000000..f49dc1219 --- /dev/null +++ b/examples/Dfp/v201211/NetworkService/GetCurrentNetworkExample.php @@ -0,0 +1,65 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201211'); + + // Get the current network. + $network = $networkService->getCurrentNetwork(); + + print 'Current network has network code "' . $network->networkCode + . '" and display name "' . $network->displayName . "\".\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/v201211/NetworkService/MakeTestNetworkExample.php b/examples/Dfp/v201211/NetworkService/MakeTestNetworkExample.php new file mode 100755 index 000000000..4472109f3 --- /dev/null +++ b/examples/Dfp/v201211/NetworkService/MakeTestNetworkExample.php @@ -0,0 +1,78 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201211'); + + // Make the test network. + $network = $networkService->makeTestNetwork(); + + print 'Test network with network code "' . $network->networkCode + . '" and display name "' . $network->displayName . "\" created.\n" + . ' You may now sign in at http://www.google.com/dfp/main?networkCode=' + . $network->networkCode . "\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/v201211/OrderService/ApproveOrdersExample.php b/examples/Dfp/v201211/OrderService/ApproveOrdersExample.php new file mode 100755 index 000000000..d94e0b8bc --- /dev/null +++ b/examples/Dfp/v201211/OrderService/ApproveOrdersExample.php @@ -0,0 +1,128 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201211'); + + // 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/v201211/OrderService/CreateOrdersExample.php b/examples/Dfp/v201211/OrderService/CreateOrdersExample.php new file mode 100755 index 000000000..82135b270 --- /dev/null +++ b/examples/Dfp/v201211/OrderService/CreateOrdersExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetOrderService('v201211'); + + // Set the advertiser (company), salesperson, and trafficker to assign to each + // order. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + $salespersonId = 'INSERT_SALESPERSON_ID_HERE'; + $traffickerId = 'INSERT_TRAFFICKER_ID_HERE'; + + // Create an array to store local order objects. + $orders = array(); + + for ($i = 0; $i < 5; $i++) { + $order = new Order(); + $order->name = 'Order #' . $i; + $order->advertiserId = $advertiserId; + $order->salespersonId = $salespersonId; + $order->traffickerId = $traffickerId; + + $orders[] = $order; + } + + // Create the orders on the server. + $orders = $orderService->createOrders($orders); + + // Display results. + if (isset($orders)) { + foreach ($orders as $order) { + print 'An order with with ID "' . $order->id + . '" and name "' . $order->name + . "\" was created.\n"; + } + } else { + print "No orders created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/OrderService/GetAllOrdersExample.php b/examples/Dfp/v201211/OrderService/GetAllOrdersExample.php new file mode 100755 index 000000000..b71804c13 --- /dev/null +++ b/examples/Dfp/v201211/OrderService/GetAllOrdersExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201211'); + + // Set defaults for page and statement. + $page = new OrderPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all orders. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201211/OrderService/GetOrderExample.php b/examples/Dfp/v201211/OrderService/GetOrderExample.php new file mode 100755 index 000000000..7f676d31a --- /dev/null +++ b/examples/Dfp/v201211/OrderService/GetOrderExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201211'); + + // Set the ID of the order to get. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Get the order. + $order = $orderService->getOrder($orderId); + + // Display results. + if (isset($order)) { + print 'An order with ID "' . $order->id + . '", name "' . $order->name + . '", and advertiser ID "' . $order->advertiserId + . "\" was found.\n"; + } else { + print "No order found for this ID.\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/v201211/OrderService/GetOrdersByStatementExample.php b/examples/Dfp/v201211/OrderService/GetOrdersByStatementExample.php new file mode 100755 index 000000000..b25e76a16 --- /dev/null +++ b/examples/Dfp/v201211/OrderService/GetOrdersByStatementExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201211'); + + // 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/v201211/OrderService/UpdateOrdersExample.php b/examples/Dfp/v201211/OrderService/UpdateOrdersExample.php new file mode 100755 index 000000000..89455f89b --- /dev/null +++ b/examples/Dfp/v201211/OrderService/UpdateOrdersExample.php @@ -0,0 +1,99 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201211'); + + // 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/v201211/PlacementService/CreatePlacementsExample.php b/examples/Dfp/v201211/PlacementService/CreatePlacementsExample.php new file mode 100755 index 000000000..f8d70b880 --- /dev/null +++ b/examples/Dfp/v201211/PlacementService/CreatePlacementsExample.php @@ -0,0 +1,137 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201211'); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201211'); + + // Create local placement object to store skyscraper ad units. + $skyscraperAdUnitPlacement = new Placement(); + $skyscraperAdUnitPlacement->name = + 'Skyscraper AdUnit Placement #' . time(); + $skyscraperAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 120x600'; + + // Create local placement object to store medium square ad units. + $mediumSquareAdUnitPlacement = new Placement(); + $mediumSquareAdUnitPlacement->name = + 'Medium Square AdUnit Placement #' . time(); + $mediumSquareAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 300x250'; + + // Create local placement object to store banner ad units. + $bannerAdUnitPlacement = new Placement(); + $bannerAdUnitPlacement->name = 'Banner AdUnit Placement #' . time(); + $bannerAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 468x60'; + + $placementList = array(); + + // Get the first 500 ad units. + $filterStatement = new Statement('LIMIT 500'); + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // Separate the ad units by size. + if (isset($page->results)) { + foreach ($page->results as $adUnit) { + if (isset($adUnit->parentId)) { + foreach ((array) $adUnit->adUnitSizes as $adUnitSize) { + $size = $adUnitSize->size; + if ($size->width == 300 && $size->height == 250) { + $mediumSquareAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } else if ($size->width == 120 && $size->height == 600) { + $skyscraperAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } else if ($size->width == 468 && $size->height == 60) { + $bannerAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } + } + } + } + } + + // Only create placements with one or more ad units. + if (count($skyscraperAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $skyscraperAdUnitPlacement; + } + if (count($mediumSquareAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $mediumSquareAdUnitPlacement; + } + if (count($bannerAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $bannerAdUnitPlacement; + } + + // Create the placements on the server. + $placements = $placementService->createPlacements($placementList); + + // Display results. + if (isset($placements)) { + foreach ($placements as $placement) { + print 'A placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and containing ad units {' . + implode(', ', (array) $placement->targetedAdUnitIds) + . "} was created.\n"; + } + } else { + print "No placements created.\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/v201211/PlacementService/DeactivatePlacementsExample.php b/examples/Dfp/v201211/PlacementService/DeactivatePlacementsExample.php new file mode 100755 index 000000000..a0dc7f669 --- /dev/null +++ b/examples/Dfp/v201211/PlacementService/DeactivatePlacementsExample.php @@ -0,0 +1,115 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201211'); + + // Create statement text to select active placements. + $filterStatementText = "WHERE status = 'ACTIVE'"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset); + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // Display results. + $placementIds = array(); + 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 + . "\" will be deactivated.\n"; + $i++; + $placementIds[] = $placement->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of placements to be deactivated: ' . sizeof($placementIds) + . "\n"; + + if (sizeof($placementIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $placementIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivatePlacements(); + + // Perform action. + $result = + $placementService->performPlacementAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of placements deactivated: ' . $result->numChanges . "\n"; + } else { + print "No placements 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/v201211/PlacementService/GetAllPlacementsExample.php b/examples/Dfp/v201211/PlacementService/GetAllPlacementsExample.php new file mode 100755 index 000000000..351a67435 --- /dev/null +++ b/examples/Dfp/v201211/PlacementService/GetAllPlacementsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201211'); + + // Set defaults for page and statement. + $page = new PlacementPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all placements. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $placement) { + print $i . ') Placement with ID "' . $placement->id + . '" and name "' . $placement->name + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201211/PlacementService/GetPlacementExample.php b/examples/Dfp/v201211/PlacementService/GetPlacementExample.php new file mode 100755 index 000000000..66f492677 --- /dev/null +++ b/examples/Dfp/v201211/PlacementService/GetPlacementExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201211'); + + // Set the ID of the placement to get. + $placementId = 'INSERT_PLACEMENT_ID_HERE'; + + // Get the placement. + $placement = $placementService->getPlacement($placementId); + + // Display results. + if (isset($placement)) { + print 'Placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and status "' . $placement->status . "\" was found.\n"; + } else { + print "No placement found for this ID.\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/v201211/PlacementService/GetPlacementsByStatementExample.php b/examples/Dfp/v201211/PlacementService/GetPlacementsByStatementExample.php new file mode 100755 index 000000000..35a3b690a --- /dev/null +++ b/examples/Dfp/v201211/PlacementService/GetPlacementsByStatementExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201211'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('status' => new TextValue('ACTIVE'))); + + // Create a statement to only select active placements. + $filterStatement = new Statement("WHERE status = :status LIMIT 500", $vars); + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // 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++; + } + } + + 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/v201211/PlacementService/UpdatePlacementsExample.php b/examples/Dfp/v201211/PlacementService/UpdatePlacementsExample.php new file mode 100755 index 000000000..8fdab139e --- /dev/null +++ b/examples/Dfp/v201211/PlacementService/UpdatePlacementsExample.php @@ -0,0 +1,102 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201211'); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201211'); + + // 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/v201211/PublisherQueryLanguageService/GetAllCitiesExample.php b/examples/Dfp/v201211/PublisherQueryLanguageService/GetAllCitiesExample.php new file mode 100755 index 000000000..a999a2dc8 --- /dev/null +++ b/examples/Dfp/v201211/PublisherQueryLanguageService/GetAllCitiesExample.php @@ -0,0 +1,119 @@ +LogDefaults(); + + // Get the PublisherQueryLanguageService. + $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201211'); + + // Define the number of cities we want to get at a time. + $LIMIT = 500; + + // Create statement to select all targetable cities. + // For criteria that do not have a 'targetable' property, that predicate + // may be left off, i.e. just "SELECT * FROM Browser_Groups LIMIT 500". + $selectStatement = 'SELECT * FROM City WHERE targetable = true LIMIT ' . + $LIMIT; + $offset = 0; + $resultSetSize = 0; + $allRows = array(); + $i = 0; + + $mapColumnTypesToLabelsFn = create_function('$columnType', + 'return $columnType->labelName;'); + $mapRowValueToValueFn = create_function('$value', 'return $value->value;'); + + do { + $selectStatementOffset = + new Statement($selectStatement . ' OFFSET ' . $offset); + + // Get all cities. + $resultSet = $pqlService->select($selectStatementOffset); + + if (isset($resultSet->rows)) { + // Display results. + $columnLabels = array_map($mapColumnTypesToLabelsFn, + $resultSet->columnTypes); + printf("Columns are: %s\n", implode(', ', $columnLabels)); + + foreach($resultSet->rows as $row) { + $values = array_map($mapRowValueToValueFn, $row->values); + + // Collect all cities from each page. + $allRows[] = $values; + + printf("%d) %s\n", $i, implode(', ', $values)); + $i++; + } + + $resultSetSize = count($resultSet->rows); + } + + $offset += $LIMIT; + } while ($resultSetSize == $LIMIT); + + printf("Number of results found: %d\n", count($allRows)); + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201211/ReportService/DownloadReportExample.php b/examples/Dfp/v201211/ReportService/DownloadReportExample.php new file mode 100755 index 000000000..ae7ff3617 --- /dev/null +++ b/examples/Dfp/v201211/ReportService/DownloadReportExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201211'); + + // 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/v201211/ReportService/RunDeliveryReportExample.php b/examples/Dfp/v201211/ReportService/RunDeliveryReportExample.php new file mode 100755 index 000000000..faefc3812 --- /dev/null +++ b/examples/Dfp/v201211/ReportService/RunDeliveryReportExample.php @@ -0,0 +1,108 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201211'); + + // 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(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_MONTH'; + $reportQuery->dimensions = array('ORDER'); + $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_AVERAGE_ECPM'); + $reportQuery->statement = $filterStatement; + $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/v201211/ReportService/RunInventoryReportExample.php b/examples/Dfp/v201211/ReportService/RunInventoryReportExample.php new file mode 100755 index 000000000..da88dd918 --- /dev/null +++ b/examples/Dfp/v201211/ReportService/RunInventoryReportExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201211'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_WEEK'; + $reportQuery->dimensions = array('DATE', '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'); + $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/v201211/ReportService/RunMergedDeliveryReportExample.php b/examples/Dfp/v201211/ReportService/RunMergedDeliveryReportExample.php new file mode 100755 index 000000000..5568d4f4b --- /dev/null +++ b/examples/Dfp/v201211/ReportService/RunMergedDeliveryReportExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201211'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_MONTH'; + $reportQuery->dimensions = array('ORDER'); + $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_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/v201211/ReportService/RunReportWithCustomFields.php b/examples/Dfp/v201211/ReportService/RunReportWithCustomFields.php new file mode 100755 index 000000000..479988fb5 --- /dev/null +++ b/examples/Dfp/v201211/ReportService/RunReportWithCustomFields.php @@ -0,0 +1,133 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201211'); + + // 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', 'v201211'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_MONTH'; + $reportQuery->dimensions = array('LINE_ITEM'); + $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/v201211/ReportService/RunSalesReportExample.php b/examples/Dfp/v201211/ReportService/RunSalesReportExample.php new file mode 100755 index 000000000..703f055c0 --- /dev/null +++ b/examples/Dfp/v201211/ReportService/RunSalesReportExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201211'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_MONTH'; + $reportQuery->dimensions = array('SALESPERSON'); + $reportQuery->columns = array('AD_SERVER_IMPRESSIONS', + 'AD_SERVER_CPM_AND_CPC_REVENUE', + 'AD_SERVER_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/v201211/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php b/examples/Dfp/v201211/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php new file mode 100755 index 000000000..a187a5a95 --- /dev/null +++ b/examples/Dfp/v201211/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201211'); + + // Set the number of requests to 50 or more. + define('NUMBER_OF_REQUESTS', 50); + + // Create statement text to select all suggested ad units + // that have been requested 50 times or more. + $filterStatementText = 'WHERE numRequests >= ' . NUMBER_OF_REQUESTS; + + // Get all suggested ad units. + $allSuggestedAdUnits = ServiceUtils::GetAllObjects($suggestedAdUnitService, + 'getSuggestedAdUnitsByStatement', $filterStatementText); + + $numSuggestedAdUnits = 0; + foreach ($allSuggestedAdUnits as $suggestedAdUnit) { + $numSuggestedAdUnits++; + printf("%d) Suggested ad unit with ID '%s' and number of requests '%d' " + . "will be approved.\n", $numSuggestedAdUnits, $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + } + + printf("Number of suggested ad units to be approved: %d\n", + $numSuggestedAdUnits); + + if ($numSuggestedAdUnits > 0) { + // Create action statement. + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new ApproveSuggestedAdUnit(); + + // Perform action. + $result = $suggestedAdUnitService->performSuggestedAdUnitAction($action, + $filterStatementText); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of suggested ad units approved: %d\n", + $result->numChanges); + } else { + print "No suggested ad units 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/v201211/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php b/examples/Dfp/v201211/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php new file mode 100755 index 000000000..9689dbf13 --- /dev/null +++ b/examples/Dfp/v201211/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201211'); + + // Set defaults for page and statement. + $page = new SuggestedAdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all suggested ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201211/SuggestedAdUnitService/GetSuggestedAdUnitExample.php b/examples/Dfp/v201211/SuggestedAdUnitService/GetSuggestedAdUnitExample.php new file mode 100755 index 000000000..9482fe016 --- /dev/null +++ b/examples/Dfp/v201211/SuggestedAdUnitService/GetSuggestedAdUnitExample.php @@ -0,0 +1,79 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201211'); + + // Set the ID of the ad unit to get. + $suggestedAdUnitId = 'INSERT_SUGGESTED_AD_UNIT_ID_HERE'; + + // Get the ad unit. + $suggestedAdUnit = + $suggestedAdUnitService->getSuggestedAdUnit($suggestedAdUnitId); + + // Display results. + if (isset($suggestedAdUnit)) { + printf("Suggested ad unit with ID '%s' and number of requests '%d' " + . "was found.\n", $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + } else { + print "No suggested ad unit found for this ID.\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/v201211/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php b/examples/Dfp/v201211/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php new file mode 100755 index 000000000..85a0795f5 --- /dev/null +++ b/examples/Dfp/v201211/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201211'); + + // 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/v201211/TeamService/CreateTeamsExample.php b/examples/Dfp/v201211/TeamService/CreateTeamsExample.php new file mode 100755 index 000000000..3dea7c142 --- /dev/null +++ b/examples/Dfp/v201211/TeamService/CreateTeamsExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201211'); + + // Create an array to store local team objects. + $teams = array(); + + for ($i = 0; $i < 5; $i++) { + $team = new Team(); + $team->name = 'Team #' . uniqid(); + $team->hasAllCompanies = false; + $team->hasAllInventory = false; + $teams[] = $team; + } + + // Create the teams on the server. + $teams = $teamService->createTeams($teams); + + // Display results. + if (isset($teams)) { + foreach ($teams as $team) { + print 'A team with ID "' . $team->id + . '" and name "'. $team->name + . '" was created."' . "\n"; + } + } else { + print "No teams created.\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/v201211/TeamService/GetAllTeamsExample.php b/examples/Dfp/v201211/TeamService/GetAllTeamsExample.php new file mode 100755 index 000000000..532c1cd67 --- /dev/null +++ b/examples/Dfp/v201211/TeamService/GetAllTeamsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201211'); + + // Set defaults for page and statement. + $page = new TeamPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all teams. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get teams by statement. + $page = $teamService->getTeamsByStatement($filterStatement); + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201211/TeamService/GetTeamExample.php b/examples/Dfp/v201211/TeamService/GetTeamExample.php new file mode 100755 index 000000000..bd1a23406 --- /dev/null +++ b/examples/Dfp/v201211/TeamService/GetTeamExample.php @@ -0,0 +1,75 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201211'); + + // Set the ID of the team to get. + $teamId = 'INSERT_TEAM_ID_HERE'; + + // Get the team. + $team = $teamService->getTeam($teamId); + + // Display results. + if (isset($team)) { + print 'Team with ID "' . $team->id + . '" and name "' . $team->name + . "\" was found.\n"; + } else { + print "No team found for this ID.\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/v201211/TeamService/GetTeamsByStatementExample.php b/examples/Dfp/v201211/TeamService/GetTeamsByStatementExample.php new file mode 100755 index 000000000..1556c534c --- /dev/null +++ b/examples/Dfp/v201211/TeamService/GetTeamsByStatementExample.php @@ -0,0 +1,83 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201211'); + + // Create a statement to order teams by name. + $filterStatementText = 'ORDER BY name LIMIT 500'; + $filterStatement = new Statement($filterStatementText); + + // Get teams by statement. + $page = $teamService->getTeamsByStatement($filterStatement); + + // 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++; + } + } + + 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/v201211/TeamService/UpdateTeamsExample.php b/examples/Dfp/v201211/TeamService/UpdateTeamsExample.php new file mode 100755 index 000000000..a97fb6678 --- /dev/null +++ b/examples/Dfp/v201211/TeamService/UpdateTeamsExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201211'); + + // 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/v201211/ThirdPartySlotService/ArchiveThirdPartySlotsExample.php b/examples/Dfp/v201211/ThirdPartySlotService/ArchiveThirdPartySlotsExample.php new file mode 100755 index 000000000..34ec6eb36 --- /dev/null +++ b/examples/Dfp/v201211/ThirdPartySlotService/ArchiveThirdPartySlotsExample.php @@ -0,0 +1,126 @@ +LogDefaults(); + + // Get the ThirdPartySlotService. + $thirdPartySlotService = + $user->GetService('ThirdPartySlotService', 'v201211'); + + // Set the company that the third party slots to archive belong to. + $companyId = 'INSERT_COMPANY_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array( + 'companyId' => new NumberValue($companyId), + 'status' => new TextValue('ACTIVE'))); + + // Create a statement to only select active third party slots. + $filterStatementText = 'WHERE companyId = :companyId AND status = :status'; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . ' LIMIT 500 OFFSET ' . $offset, + $vars); + + // Get third party slots by statement. + $page = + $thirdPartySlotService->getThirdPartySlotsByStatement($filterStatement); + + // Display results. + $thirdPartySlotIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $thirdPartySlot) { + printf("Third party slot with ID '%s' will be archived.\n", + $thirdPartySlot->id); + $i++; + $thirdPartySlotIds[] = $thirdPartySlot->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + printf("Number of third party slots to be archived: %d\n", + sizeof($thirdPartySlotIds)); + + if (sizeof($thirdPartySlotIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $thirdPartySlotIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new ArchiveThirdPartySlots(); + + // Perform action. + $result = $thirdPartySlotService->performThirdPartySlotAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of third party slots archived: %d\n", + $result->numChanges); + } else { + print "No third party slots were archived.\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/v201211/ThirdPartySlotService/CreateThirdPartySlotExample.php b/examples/Dfp/v201211/ThirdPartySlotService/CreateThirdPartySlotExample.php new file mode 100755 index 000000000..1845caea9 --- /dev/null +++ b/examples/Dfp/v201211/ThirdPartySlotService/CreateThirdPartySlotExample.php @@ -0,0 +1,96 @@ +LogDefaults(); + + // Get the ThirdPartySlotService. + $thirdPartySlotService = + $user->GetService('ThirdPartySlotService', 'v201211'); + + // Set the company ID to associate with this third party slot. + $companyId = 'INSERT_COMPANY_ID_HERE'; + + // Set the external unique ID to associate with this third party slot. + $externalUniqueId = 'INSERT_EXTERNAL_UNIQUE_ID_HERE'; + + // Set the external unique name to associate with this third party slot. + $externalUniqueName = 'INSERT_EXTERNAL_UNIQUE_NAME_HERE'; + + // Set the creative IDs to associate with this third party slot. + $creativeIds = array('INSERT_CREATIVE_ID_HERE'); + + // Create the ThirdPartySlot object. + $thirdPartySlot = new ThirdPartySlot(); + $thirdPartySlot->companyId = $companyId; + $thirdPartySlot->description = 'Third party slot description.'; + $thirdPartySlot->externalUniqueId = $externalUniqueId; + $thirdPartySlot->externalUniqueName = $externalUniqueName; + + // Set the creatives that the third party slot will represent. + $thirdPartySlot->creativeIds = $creativeIds; + + // Create the third party slot on the server. + $thirdPartySlot = + $thirdPartySlotService->createThirdPartySlot($thirdPartySlot); + + // Display results. + if (isset($thirdPartySlot)) { + printf("A third party slot with ID '%s' and name '%s' was created.\n", + $thirdPartySlot->id, $thirdPartySlot->externalUniqueName); + } else { + print "No third party slot was created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/ThirdPartySlotService/GetAllThirdPartySlotsExample.php b/examples/Dfp/v201211/ThirdPartySlotService/GetAllThirdPartySlotsExample.php new file mode 100755 index 000000000..99ff273a4 --- /dev/null +++ b/examples/Dfp/v201211/ThirdPartySlotService/GetAllThirdPartySlotsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the ThirdPartySlotService. + $thirdPartySlotService = + $user->GetService('ThirdPartySlotService', 'v201211'); + + // Set defaults for page and statement. + $page = new ThirdPartySlotPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all third party slots. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get third party slots by statement. + $page = + $thirdPartySlotService->getThirdPartySlotsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $thirdPartySlot) { + printf("Third party slot with ID '%s' was found.\n", + $thirdPartySlot->id); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201211/ThirdPartySlotService/GetThirdPartySlotsByStatementExample.php b/examples/Dfp/v201211/ThirdPartySlotService/GetThirdPartySlotsByStatementExample.php new file mode 100755 index 000000000..ca7a6f4d3 --- /dev/null +++ b/examples/Dfp/v201211/ThirdPartySlotService/GetThirdPartySlotsByStatementExample.php @@ -0,0 +1,83 @@ +LogDefaults(); + + // Get the ThirdPartySlotService. + $thirdPartySlotService = + $user->GetService('ThirdPartySlotService', 'v201211'); + + // Create a statement. + $filterStatement = new Statement("WHERE status = :status LIMIT 500", + MapUtils::GetMapEntries(array('status' => new TextValue('ARCHIVED')))); + + // Get third party slots by statement. + $page = + $thirdPartySlotService->getThirdPartySlotsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $thirdPartySlot) { + printf("Third party slot with ID '%s' was found.\n", + $thirdPartySlot->id); + $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/v201211/ThirdPartySlotService/UpdateThirdPartySlotExample.php b/examples/Dfp/v201211/ThirdPartySlotService/UpdateThirdPartySlotExample.php new file mode 100755 index 000000000..5365f3c25 --- /dev/null +++ b/examples/Dfp/v201211/ThirdPartySlotService/UpdateThirdPartySlotExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ThirdPartySlotService. + $thirdPartySlotService = + $user->GetService('ThirdPartySlotService', 'v201211'); + + // Create a statement to get one active third party slot. + $filterStatement = new Statement('WHERE status = :status LIMIT 1', + MapUtils::GetMapEntries(array('status' => new TextValue('ACTIVE')))); + + // Get third party slots by statement. + $page = + $thirdPartySlotService->getThirdPartySlotsByStatement($filterStatement); + + if (isset($page->results)) { + $thirdPartySlot = $page->results[0]; + + // Update the local third party slot by changing its description. + $thirdPartySlot->description = 'Updated description'; + + // Update the third party slot on the server. + $thirdPartySlot = + $thirdPartySlotService->updateThirdPartySlot($thirdPartySlot); + + // Display results. + if (isset($thirdPartySlot)) { + printf("Third party slot with ID '%s' and description '%s' was " + . "updated.\n", $thirdPartySlot->id, $thirdPartySlot->description); + } else { + print "The third party slot was not updated.\n"; + } + } else { + print "No third party slot was 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/v201211/UserService/CreateUsersExample.php b/examples/Dfp/v201211/UserService/CreateUsersExample.php new file mode 100755 index 000000000..72f91a17a --- /dev/null +++ b/examples/Dfp/v201211/UserService/CreateUsersExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201211'); + + // Set the user's email addresses and names. + $emailAndNames = + array(array('INSERT_EMAIL_ADDRESS_HERE', 'INSERT_NAME_HERE'), + array('INSERT_ANOTHER_EMAIL_ADDRESS_HERE', + 'INSERT_ANOTHER_NAME_HERE')); + + // Roles can be obtained by running GetAllRolesExample.php. + $roleId = 'INSERT_ROLE_ID_HERE'; + + // Create an array to store local user objects. + $users = array(); + + for ($i = 0; $i < sizeof($emailAndNames); $i++) { + $newUser = new User(); + $newUser->email = $emailAndNames[$i][0]; + $newUser->name = $emailAndNames[$i][1]; + $newUser->roleId = $roleId; + $newUser->preferredLocale = 'en_US'; + + $users[] = $newUser; + } + + // Create the users on the server. + $users = $userService->createUsers($users); + + // Display results. + if (isset($users)) { + foreach ($users as $user) { + print 'A user with ID "' . $user->id + . '", email "' . $user->email + . '", and role "' . $user->roleName . "\" was created.\n"; + } + } else { + print "No users created.\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/v201211/UserService/DeactivateUserExample.php b/examples/Dfp/v201211/UserService/DeactivateUserExample.php new file mode 100755 index 000000000..e266b4deb --- /dev/null +++ b/examples/Dfp/v201211/UserService/DeactivateUserExample.php @@ -0,0 +1,121 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201211'); + + // Set the ID of the user to deactivate. + $userId = 'INSERT_USER_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('id' => new NumberValue($userId))); + + // Create statement text to get user by id. + $filterStatementText = "WHERE id = :id"; + + $offset = 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); + + // Display results. + $userIds = array(); + if (isset($page->results)) { + $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; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of users to be deactivated: ' . sizeof($userIds) . "\n"; + + if (sizeof($userIds) > 0) { + // Create action statement. + $filterStatementText = sprintf('WHERE id IN (%s)', implode(',', $userIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateUsers(); + + // Perform action. + $result = $userService->performUserAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of users deactivated: ' . $result->numChanges . "\n"; + } else { + print "No users 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/v201211/UserService/GetAllRolesExample.php b/examples/Dfp/v201211/UserService/GetAllRolesExample.php new file mode 100755 index 000000000..9c8a113bb --- /dev/null +++ b/examples/Dfp/v201211/UserService/GetAllRolesExample.php @@ -0,0 +1,72 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201211'); + + // 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"; + } + } + print 'Number of results found: ' . sizeof($roles) . "\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/v201211/UserService/GetAllUsersExample.php b/examples/Dfp/v201211/UserService/GetAllUsersExample.php new file mode 100755 index 000000000..58874a30a --- /dev/null +++ b/examples/Dfp/v201211/UserService/GetAllUsersExample.php @@ -0,0 +1,87 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201211'); + + // Set defaults for page and statement. + $page = new UserPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all users. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201211/UserService/GetCurrentUserExample.php b/examples/Dfp/v201211/UserService/GetCurrentUserExample.php new file mode 100755 index 000000000..d55a80a06 --- /dev/null +++ b/examples/Dfp/v201211/UserService/GetCurrentUserExample.php @@ -0,0 +1,65 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201211'); + + // Get the current user. + $usr = $userService->getCurrentUser(); + + printf("User with ID '%s', email '%s', and role '%s' was found.\n", + $usr->id, $usr->email, $usr->roleName); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/UserService/GetUserExample.php b/examples/Dfp/v201211/UserService/GetUserExample.php new file mode 100755 index 000000000..84ca7cc17 --- /dev/null +++ b/examples/Dfp/v201211/UserService/GetUserExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201211'); + + // Set the ID of the user to get. + $userId = 'INSERT_USER_ID_HERE'; + + // Get the user. + $usr = $userService->getUser($userId); + + // Display results. + if (isset($usr)) { + print 'User with ID "' . $usr->id + . '", email "' . $usr->email + . '", and role "' . $usr->roleName . "\" was found.\n"; + } else { + print "No user found for this ID.\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/v201211/UserService/GetUsersByStatementExample.php b/examples/Dfp/v201211/UserService/GetUsersByStatementExample.php new file mode 100755 index 000000000..07ff7f263 --- /dev/null +++ b/examples/Dfp/v201211/UserService/GetUsersByStatementExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201211'); + + // 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/v201211/UserService/UpdateUsersExample.php b/examples/Dfp/v201211/UserService/UpdateUsersExample.php new file mode 100755 index 000000000..6e0655946 --- /dev/null +++ b/examples/Dfp/v201211/UserService/UpdateUsersExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201211'); + + // Create a statement to get all users. + $filterStatement = new Statement('LIMIT 500'); + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + if (isset($page->results)) { + $users = $page->results; + + // Update each local user object by changing its name. + foreach ($users as $usr) { + $usr->name .= ' Sr.'; + } + + // Update the users on the server. + $users = $userService->updateUsers($users); + + // 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"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/UserTeamAssociationService/CreateUserTeamAssociationsExample.php b/examples/Dfp/v201211/UserTeamAssociationService/CreateUserTeamAssociationsExample.php new file mode 100755 index 000000000..b550cdf9b --- /dev/null +++ b/examples/Dfp/v201211/UserTeamAssociationService/CreateUserTeamAssociationsExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201211'); + + // Set the team ID and user IDs to associate together. + $teamId = 'INSERT_TEAM_ID_HERE'; + $userIds = array('INSERT_USER_ID_HERE'); + + // Create an array to store local user team association objects. + $utas = array(); + + // For each user, associate it with the given team. + foreach ($userIds as $userId) { + // Create local user team association. + $uta = new UserTeamAssociation(); + $uta->teamId = $teamId; + $uta->userId = $userId; + $utas[] = $uta; + } + + // Create the user team associations on the server. + $utas = $userTeamAssociationService->createUserTeamAssociations($utas); + + // Display results. + if (isset($utas)) { + foreach ($utas as $uta) { + print 'A user team association between user with ID "' . $uta->userId + . '" and team with ID "' . $uta->teamId + . "\" was created.\n"; + } + } else { + print "No user team associations created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php b/examples/Dfp/v201211/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php new file mode 100755 index 000000000..069febf6a --- /dev/null +++ b/examples/Dfp/v201211/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201211'); + + // Set the user to remove from its teams. + $userId = 'INSERT_USER_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('userId' => new NumberValue($userId))); + + // Create statement text to select user team associations by the user ID. + $filterStatementText = "WHERE userId = :userId "; + + $offset = 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); + + // 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 + . "\" will be deleted.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of user team associations to be deleted: ' . $i . "\n"; + + if ($i > 0) { + // Create action statement. + $filterStatementText = 'WHERE userId = :userId '; + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeleteUserTeamAssociations(); + + // Perform action. + $result = $userTeamAssociationService->performUserTeamAssociationAction( + $action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of user team associations deleted: ' + . $result->numChanges . "\n"; + } else { + print "No user team associations were deleted.\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/v201211/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php b/examples/Dfp/v201211/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php new file mode 100755 index 000000000..85b32e4a7 --- /dev/null +++ b/examples/Dfp/v201211/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201211'); + + // Set defaults for page and statement. + $page = new UserTeamAssociationPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all user team associations. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201211/UserTeamAssociationService/GetUserTeamAssociationExample.php b/examples/Dfp/v201211/UserTeamAssociationService/GetUserTeamAssociationExample.php new file mode 100755 index 000000000..a9b6cce04 --- /dev/null +++ b/examples/Dfp/v201211/UserTeamAssociationService/GetUserTeamAssociationExample.php @@ -0,0 +1,79 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201211'); + + // Set the IDs of the user and team to get the association for. + $userId = 'INSERT_USER_ID_HERE'; + $teamId = 'INSERT_TEAM_ID_HERE'; + + // Get the user team association. + $uta = $userTeamAssociationService->getUserTeamAssociation($teamId, + $userId); + + // Display results. + if (isset($uta)) { + print 'User team association between user with ID "' . $uta->userId + . '" and team with ID "' . $uta->teamId + . "\" was found.\n"; + } else { + print "No user team association found for this ID.\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/v201211/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php b/examples/Dfp/v201211/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php new file mode 100755 index 000000000..8b4c15b02 --- /dev/null +++ b/examples/Dfp/v201211/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = $user->GetService('UserTeamAssociationService', + 'v201211'); + + // Get the UserService. + $userService = $user->GetService("UserService", "v201211"); + + // 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/v201211/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php b/examples/Dfp/v201211/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php new file mode 100755 index 000000000..40590efe4 --- /dev/null +++ b/examples/Dfp/v201211/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php @@ -0,0 +1,102 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201211'); + + // Set the user to set to read only access within its teams. + $userId = "INSERT_USER_ID_HERE"; + + // 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); + + $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( + $filterStatement); + + if (isset($page->results)) { + $utas = $page->results; + + // Update each local user team association to read only access. + foreach ($utas as $uta) { + $uta->overriddenTeamAccessType = 'READ_ONLY'; + } + + // Update the user team associations on the server. + $utas = $userTeamAssociationService->updateUserTeamAssociations($utas); + + // 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"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/ActivityGroupService/CreateActivityGroups.php b/examples/Dfp/v201302/ActivityGroupService/CreateActivityGroups.php new file mode 100755 index 000000000..4eb14e7f4 --- /dev/null +++ b/examples/Dfp/v201302/ActivityGroupService/CreateActivityGroups.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the ActivityGroupService. + $activityGroupService = $user->GetService('ActivityGroupService', 'v201302'); + + // Set the ID of the advertiser company this activity group is associated + // with. + $advertiserCompanyId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create a short-term activity group. + $shortTermActivityGroup = new ActivityGroup(); + $shortTermActivityGroup->name = sprintf('Short-term activity group #%s', + uniqid()); + $shortTermActivityGroup->companyIds = array($advertiserCompanyId); + $shortTermActivityGroup->clicksLookback = 1; + $shortTermActivityGroup->impressionsLookback = 1; + + // Create a long-term activity group. + $longTermActivityGroup = new ActivityGroup(); + $longTermActivityGroup->name = sprintf('Long-term activity group #%s', + uniqid()); + $longTermActivityGroup->companyIds = array($advertiserCompanyId); + $longTermActivityGroup->clicksLookback = 30; + $longTermActivityGroup->impressionsLookback = 30; + + // Create the activity groups on the server. + $activityGroups = $activityGroupService->createActivityGroups( + array($shortTermActivityGroup, $longTermActivityGroup)); + + // Display results. + if (isset($activityGroups)) { + foreach ($activityGroups as $activityGroup) { + printf("An activity group with ID \"%d\" and name \"%s\" was created.\n", + $activityGroup->id, $activityGroup->name); + } + } else { + printf("No activity groups were created.\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/v201302/ActivityGroupService/GetActiveActivityGroups.php b/examples/Dfp/v201302/ActivityGroupService/GetActiveActivityGroups.php new file mode 100755 index 000000000..45868e660 --- /dev/null +++ b/examples/Dfp/v201302/ActivityGroupService/GetActiveActivityGroups.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ActivityGroupService. + $activityGroupService = $user->GetService('ActivityGroupService', 'v201302'); + + // 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; + + $page = new ActivityGroupPage(); + + 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)); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $activityGroup) { + 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); + + printf("Number of results found: %d\n", $page->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/v201302/ActivityGroupService/GetAllActivityGroups.php b/examples/Dfp/v201302/ActivityGroupService/GetAllActivityGroups.php new file mode 100755 index 000000000..c37e70da0 --- /dev/null +++ b/examples/Dfp/v201302/ActivityGroupService/GetAllActivityGroups.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the ActivityGroupService. + $activityGroupService = $user->GetService('ActivityGroupService', 'v201302'); + + // 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; + + $page = new ActivityGroupPage(); + + do { + // Get activity groups by statement. + $page = $activityGroupService->getActivityGroupsByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $activityGroup) { + 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); + + printf("Number of results found: %d\n", $page->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/v201302/ActivityGroupService/UpdateActivityGroups.php b/examples/Dfp/v201302/ActivityGroupService/UpdateActivityGroups.php new file mode 100755 index 000000000..6588fac41 --- /dev/null +++ b/examples/Dfp/v201302/ActivityGroupService/UpdateActivityGroups.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the ActivityGroupService. + $activityGroupService = $user->GetService('ActivityGroupService', 'v201302'); + + // 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'; + + // Get the activity group. + $activityGroup = $activityGroupService->getActivityGroup($activityGroupId); + + // Update the companies. + $activityGroup->companyIds[] = $advertiserCompanyId; + + // Update the activity groups on the server. + $activityGroups = $activityGroupService->updateActivityGroups(array($activityGroup)); + + // Display results. + if (isset($activityGroups)) { + foreach ($activityGroups as $updatedActivityGroup) { + printf("Activity group with ID \"%d\" and name \"%s\" was updated.\n", + $updatedActivityGroup->id, $updatedActivityGroup->name); + } + } else { + printf("No activity groups were updated.\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/v201302/ActivityService/CreateActivities.php b/examples/Dfp/v201302/ActivityService/CreateActivities.php new file mode 100755 index 000000000..5f060d99c --- /dev/null +++ b/examples/Dfp/v201302/ActivityService/CreateActivities.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201302'); + + // Set the ID of the activity group this activity is associated with. + $activityGroupId = 'INSERT_ACTIVITY_GROUP_ID_HERE'; + + // Create a daily visits activity. + $dailyVisitsActivity = new Activity(); + $dailyVisitsActivity->name = sprintf('Activity #%s', uniqid()); + $dailyVisitsActivity->activityGroupId = $activityGroupId; + $dailyVisitsActivity->type = 'DAILY_VISITS'; + + // Create a custom activity. + $customActivity = new Activity(); + $customActivity->name = sprintf('Activity #%s', uniqid()); + $customActivity->activityGroupId = $activityGroupId; + $customActivity->type = 'CUSTOM'; + + // Create the activities on the server. + $activities = $activityService->createActivities( + array($dailyVisitsActivity, $customActivity)); + + // Display results. + if (isset($activities)) { + foreach ($activities as $activity) { + printf("An activity with ID \"%d\", name \"%s\", and type \"%s\" was " . + "created.\n", $activity->id, $activity->name, $activity->type); + } + } else { + printf("No activities were created.\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/v201302/ActivityService/GetActiveActivities.php b/examples/Dfp/v201302/ActivityService/GetActiveActivities.php new file mode 100755 index 000000000..5ac049d11 --- /dev/null +++ b/examples/Dfp/v201302/ActivityService/GetActiveActivities.php @@ -0,0 +1,96 @@ +LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201302'); + + // Set the ID of the activity group these activities are associated with. + $activityGroupId = 'INSERT_ACTIVITY_GROUP_ID_HERE'; + + // Statement parts to help build a statement that only selects active + // activities. + $pqlTemplate = 'WHERE activityGroupId = :activityGroupId and status = ' . + ':status ORDER BY id LIMIT %d OFFSET %d'; + $STATUS = 'ACTIVE'; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + + $page = new ActivityPage(); + + do { + // Get activities by statement. + $vars = MapUtils::GetMapEntries(array('activityGroupId' => + new NumberValue($activityGroupId), 'status' => new TextValue($STATUS))); + $page = $activityService->getActivitiesByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), $vars)); + + // Display results. + if (isset($page->results)) { + $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); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->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/v201302/ActivityService/GetAllActivities.php b/examples/Dfp/v201302/ActivityService/GetAllActivities.php new file mode 100755 index 000000000..0a1f965ca --- /dev/null +++ b/examples/Dfp/v201302/ActivityService/GetAllActivities.php @@ -0,0 +1,136 @@ +GetService('ActivityGroupService', + 'v201302'); + + // 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; + + $page = new ActivityGroupPage(); + + do { + // Get activity groups by statement. + $page = $activityGroupService->getActivityGroupsByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + + // Display results. + if (isset($page->results)) { + foreach ($page->results as $activityGroup) { + $activityGroupIds[] = $activityGroup->id; + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + return $activityGroupIds; +} + +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->LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201302'); + + // Statement parts to help build a statement to get all activities for an + // activity group. + $pqlTemplate = 'WHERE activityGroupId = :activityGroupId ORDER BY id LIMIT ' . + '%d OFFSET %d'; + $SUGGESTED_PAGE_LIMIT = 500; + + $totalResultsCounter = 0; + + $activityGroupIds = getAllActivityGroupIds($user); + + foreach ($activityGroupIds as $activityGroupId) { + // Set the activity group ID to select from. + $vars = MapUtils::GetMapEntries(array('activityGroupId' => + new NumberValue($activityGroupId))); + + $page = new ActivityPage(); + $offset = 0; + + do { + // Get activities by statement. + $page = $activityService->getActivitiesByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), $vars)); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $activity) { + printf("%d) Activity with ID \"%d\", name \"%s\", type \"%s\", and " . + "activity group ID \"%d\" was found.\n", $totalResultsCounter++, + $activity->id, $activity->name, $activity->type, + $activityGroupId); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->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()); +} + diff --git a/examples/Dfp/v201302/ActivityService/UpdateActivities.php b/examples/Dfp/v201302/ActivityService/UpdateActivities.php new file mode 100755 index 000000000..4914f5f41 --- /dev/null +++ b/examples/Dfp/v201302/ActivityService/UpdateActivities.php @@ -0,0 +1,83 @@ +LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201302'); + + // Set the ID of the activity to update. + $activityId = 'INSERT_ACTIVITY_ID_HERE'; + + // Get the activity. + $activity = $activityService->getActivity($activityId); + + // Update the expected URL. + $activity->expectedURL = 'https://google.com'; + + // Update the activity on the server. + $activities = $activityService->updateActivities(array($activity)); + + // Display results. + if (isset($activities)) { + foreach ($activities as $updatedActivity) { + printf("Activity with ID \"%d\" and name \"%s\" was updated.\n", + $updatedActivity->id, $updatedActivity->name); + } + } else { + printf("No activities were updated.\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/v201302/AudienceSegmentService/GetAllAudienceSegmentsExample.php b/examples/Dfp/v201302/AudienceSegmentService/GetAllAudienceSegmentsExample.php new file mode 100755 index 000000000..96085af51 --- /dev/null +++ b/examples/Dfp/v201302/AudienceSegmentService/GetAllAudienceSegmentsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the AudienceSegmentService. + $audienceSegmentService = $user->GetService('AudienceSegmentService', + 'v201302'); + + // Set defaults for page and statement. + $page = new AudienceSegmentPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all audience segments. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get audience segments by statement. + $page = $audienceSegmentService->getAudienceSegmentsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $audienceSegment) { + print $i . ') Audience segment with ID "' + . $audienceSegment->id . '", and name "' . $audienceSegment->name + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201302/CompanyService/CreateCompaniesExample.php b/examples/Dfp/v201302/CompanyService/CreateCompaniesExample.php new file mode 100755 index 000000000..4e4cf6dbf --- /dev/null +++ b/examples/Dfp/v201302/CompanyService/CreateCompaniesExample.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201302'); + + // Create an array to store local company objects. + $companies = array(); + + for ($i = 0; $i < 5; $i++) { + $company = new Company(); + $company->name = 'Advertiser #' . $i; + $company->type = 'ADVERTISER'; + + $companies[] = $company; + } + + // Create the companies on the server. + $companies = $companyService->createCompanies($companies); + + // Display results. + if (isset($companies)) { + foreach ($companies as $company) { + print 'A company with ID "' . $company->id + . '", name "'. $company->name + . '", and type "' . $company->type . "\" was created.\n"; + } + } else { + print "No companies created.\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/v201302/CompanyService/GetAllCompaniesExample.php b/examples/Dfp/v201302/CompanyService/GetAllCompaniesExample.php new file mode 100755 index 000000000..9611b8108 --- /dev/null +++ b/examples/Dfp/v201302/CompanyService/GetAllCompaniesExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201302'); + + // Set defaults for page and statement. + $page = new CompanyPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all companies. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get companies by statement. + $page = $companyService->getCompaniesByStatement($filterStatement); + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201302/CompanyService/GetCompaniesByStatementExample.php b/examples/Dfp/v201302/CompanyService/GetCompaniesByStatementExample.php new file mode 100755 index 000000000..f8d6fac19 --- /dev/null +++ b/examples/Dfp/v201302/CompanyService/GetCompaniesByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201302'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('type' => new TextValue('ADVERTISER'))); + + // 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 companies by statement. + $page = $companyService->getCompaniesByStatement($filterStatement); + + // 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++; + } + } + + 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/v201302/CompanyService/GetCompanyExample.php b/examples/Dfp/v201302/CompanyService/GetCompanyExample.php new file mode 100755 index 000000000..0c16dddef --- /dev/null +++ b/examples/Dfp/v201302/CompanyService/GetCompanyExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201302'); + + // Set the ID of the company to get. + $companyId = 'INSERT_COMPANY_ID_HERE'; + + // Get the company. + $company = $companyService->getCompany($companyId); + + // Display results. + if (isset($company)) { + print 'Company with ID "' . $company->id + . '", name "' . $company->name + . '", and type "' . $company->type . "\" was found.\n"; + } else { + print "No company found for this ID.\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/v201302/CompanyService/UpdateCompaniesExample.php b/examples/Dfp/v201302/CompanyService/UpdateCompaniesExample.php new file mode 100755 index 000000000..f7b0765c0 --- /dev/null +++ b/examples/Dfp/v201302/CompanyService/UpdateCompaniesExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201302'); + + // 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/v201302/ContactService/CreateContacts.php b/examples/Dfp/v201302/ContactService/CreateContacts.php new file mode 100755 index 000000000..0b3b64acd --- /dev/null +++ b/examples/Dfp/v201302/ContactService/CreateContacts.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201302'); + + // Set the ID of the advertiser company this contact is associated with. + $advertiserCompanyId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Set the ID of the agency company this contact is associated with. + $agencyCompanyId = 'INSERT_AGENCY_COMPANY_ID_HERE'; + + // Create an advertiser contact. + $advertiserContact = new Contact(); + $advertiserContact->name = sprintf('Mr. Advertiser #%s', uniqid()); + $advertiserContact->email = 'advertiser@advertising.com'; + $advertiserContact->companyId = $advertiserCompanyId; + + // Create an agency contact. + $agencyContact = new Contact(); + $agencyContact->name = sprintf('Ms. Agency #%s', uniqid()); + $agencyContact->email = 'agency@agencies.com'; + $agencyContact->companyId = $agencyCompanyId; + + // Create the contacts on the server. + $contacts = $contactService->createContacts(array($advertiserContact, + $agencyContact)); + + // Display results. + if (isset($contacts)) { + foreach ($contacts as $contact) { + printf("A contact with ID \"%d\" and name \"%s\" was created.\n", + $contact->id, $contact->name); + } + } else { + printf("No contacts were created.\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/v201302/ContactService/GetAllContacts.php b/examples/Dfp/v201302/ContactService/GetAllContacts.php new file mode 100755 index 000000000..d26a5b806 --- /dev/null +++ b/examples/Dfp/v201302/ContactService/GetAllContacts.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201302'); + + // 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; + + $page = new ContactPage(); + + do { + // Get contacts by statement. + $page = $contactService->getContactsByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $contact) { + 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); + + printf("Number of results found: %d\n", $page->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/v201302/ContactService/GetUninvitedContacts.php b/examples/Dfp/v201302/ContactService/GetUninvitedContacts.php new file mode 100755 index 000000000..4bf8392dc --- /dev/null +++ b/examples/Dfp/v201302/ContactService/GetUninvitedContacts.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201302'); + + // 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; + + $page = new ContactPage(); + + 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)); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $contact) { + 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); + + printf("Number of results found: %d\n", $page->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/v201302/ContactService/UpdateContacts.php b/examples/Dfp/v201302/ContactService/UpdateContacts.php new file mode 100755 index 000000000..5dca39449 --- /dev/null +++ b/examples/Dfp/v201302/ContactService/UpdateContacts.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201302'); + + // Set the ID of the contact to update. + $contactId = "INSERT_CONTACT_ID_HERE"; + + // Get the contact. + $contact = $contactService->getContact($contactId); + + // Update the address on the contact. + $contact->address = '123 New Street, New York, NY, 10011'; + + // Update the contact on the server. + $contacts = $contactService->updateContacts(array($contact)); + + // Display results. + if (isset($contacts)) { + foreach ($contacts as $updatedContact) { + printf("Contact with ID \"%d\", name \"%s\", and address \"%s\" was " . + "updated.\n", $updatedContact->id, $updatedContact->name, + $updatedContact->address); + } + } else { + printf("No contacts were updated.\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/v201302/ContentService/GetAllContentExample.php b/examples/Dfp/v201302/ContentService/GetAllContentExample.php new file mode 100755 index 000000000..83c3936a0 --- /dev/null +++ b/examples/Dfp/v201302/ContentService/GetAllContentExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the ContentService. + $contentService = $user->GetService('ContentService', 'v201302'); + + // Set defaults for page and statement. + $page = new ContentPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all content. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get content by statement. + $page = $contentService->getContentByStatement($filterStatement); + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201302/ContentService/GetContentByCategoryExample.php b/examples/Dfp/v201302/ContentService/GetContentByCategoryExample.php new file mode 100755 index 000000000..dcd66ecb0 --- /dev/null +++ b/examples/Dfp/v201302/ContentService/GetContentByCategoryExample.php @@ -0,0 +1,113 @@ +LogDefaults(); + + // Get the ContentService. + $contentService = $user->GetService('ContentService', 'v201302'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201302'); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201302'); + + // 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/v201302/CreativeService/AssociateCreativeSetToLineItemExample.php b/examples/Dfp/v201302/CreativeService/AssociateCreativeSetToLineItemExample.php new file mode 100755 index 000000000..542711a8c --- /dev/null +++ b/examples/Dfp/v201302/CreativeService/AssociateCreativeSetToLineItemExample.php @@ -0,0 +1,78 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = $user->GetService('LineItemCreativeAssociationService', + 'v201302'); + + // 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/v201302/CreativeService/CreateCreativeFromTemplateExample.php b/examples/Dfp/v201302/CreativeService/CreateCreativeFromTemplateExample.php new file mode 100755 index 000000000..e64c16d9b --- /dev/null +++ b/examples/Dfp/v201302/CreativeService/CreateCreativeFromTemplateExample.php @@ -0,0 +1,129 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201302'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Use the image banner with optional third party tracking template. + $creativeTemplateId = 10000680; + + // Create the local custom creative object. + $templateCreative = new TemplateCreative(); + $templateCreative->name = 'Template creative'; + $templateCreative->advertiserId = $advertiserId; + $templateCreative->creativeTemplateId = $creativeTemplateId; + + // Set the creative size. + $templateCreative->size = new Size(300, 250, FALSE); + + // Create the asset variable value. + $assetVariableValue = new AssetCreativeTemplateVariableValue(); + $assetVariableValue->uniqueName = 'Imagefile'; + $assetVariableValue->assetByteArray = MediaUtils::GetBase64Data( + 'http://www.google.com/intl/en/adwords/select/images/samples/inline.jpg'); + // Filenames must be unique. + $assetVariableValue->fileName = sprintf('image%s.jpg', uniqid()); + $templateCreative->creativeTemplateVariableValues[] = $assetVariableValue; + + // Create the image width variable value. + $imageWidthVariableValue = new LongCreativeTemplateVariableValue(); + $imageWidthVariableValue->uniqueName = 'Imagewidth'; + $imageWidthVariableValue->value = 300; + $templateCreative->creativeTemplateVariableValues[] = + $imageWidthVariableValue; + + // Create the image height variable value. + $imageHeightVariableValue = new LongCreativeTemplateVariableValue(); + $imageHeightVariableValue->uniqueName = 'Imageheight'; + $imageHeightVariableValue->value = 250; + $templateCreative->creativeTemplateVariableValues[] = + $imageHeightVariableValue; + + // Create the URL variable value. + $urlVariableValue = new UrlCreativeTemplateVariableValue(); + $urlVariableValue->uniqueName = 'ClickthroughURL'; + $urlVariableValue->value = 'www.google.com'; + $templateCreative->creativeTemplateVariableValues[] = $urlVariableValue; + + // Create the target window variable value. + $targetWindowVariableValue = new StringCreativeTemplateVariableValue(); + $targetWindowVariableValue->uniqueName = 'Targetwindow'; + $targetWindowVariableValue->value = '_blank'; + $templateCreative->creativeTemplateVariableValues[] = + $targetWindowVariableValue; + + // Create the template creative on the server. + $templateCreative = $creativeService->createCreative($templateCreative); + + // Display results. + if (isset($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->previewUrl); + } else { + print "No creative was created.\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/v201302/CreativeService/CreateCreativesExample.php b/examples/Dfp/v201302/CreativeService/CreateCreativesExample.php new file mode 100755 index 000000000..fdfb03e68 --- /dev/null +++ b/examples/Dfp/v201302/CreativeService/CreateCreativesExample.php @@ -0,0 +1,119 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201302'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create an array to store local image creative objects. + $imageCreatives = array(); + + for ($i = 0; $i < 5; $i++) { + // Create creative size. + $size = new Size(300, 250); + + // Create an image creative. + $imageCreative = new ImageCreative(); + $imageCreative->name = 'Image creative #' . $i; + $imageCreative->advertiserId = $advertiserId; + $imageCreative->destinationUrl = 'http://google.com'; + $imageCreative->size = $size; + + // Create image asset. + $creativeAsset = new CreativeAsset(); + $creativeAsset->fileName = 'image.jpg'; + $creativeAsset->assetByteArray = + MediaUtils::GetBase64Data('http://www.google.com/intl/en/adwords/' + . 'select/images/samples/inline.jpg'); + $creativeAsset->size = $size; + $imageCreative->primaryImageAsset = $creativeAsset; + + $imageCreatives[] = $imageCreative; + } + + // Create the image creatives on the server. + $imageCreatives = $creativeService->createCreatives($imageCreatives); + + // Display results. + if (isset($imageCreatives)) { + 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"; + } else { + print 'A creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType + . "\" was created.\n"; + } + } + } else { + print "No creatives created.\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/v201302/CreativeService/CreateCustomCreativeExample.php b/examples/Dfp/v201302/CreativeService/CreateCustomCreativeExample.php new file mode 100755 index 000000000..a15156662 --- /dev/null +++ b/examples/Dfp/v201302/CreativeService/CreateCustomCreativeExample.php @@ -0,0 +1,103 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201302'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create the local custom creative object. + $customCreative = new CustomCreative(); + $customCreative->name = 'Custom creative'; + $customCreative->advertiserId = $advertiserId; + $customCreative->destinationUrl = 'http://google.com'; + + // Set the custom creative image asset. + $customCreativeAsset = new CustomCreativeAsset(); + $customCreativeAsset->macroName = 'IMAGE_ASSET'; + // Filenames must be unique. + $customCreativeAsset->fileName = sprintf('inline%s.jpg', uniqid()); + $customCreativeAsset->assetByteArray = MediaUtils::GetBase64Data( + 'http://www.google.com/intl/en/adwords/select/images/samples/inline.jpg'); + $customCreative->customCreativeAssets = array($customCreativeAsset); + + // Set the HTML snippet using the custom creative asset macro. + $customCreative->htmlSnippet = '' + . '' + . '
Click above for great deals!'; + + // Set the creative size. + $customCreative->size = new Size(300, 250, FALSE); + + // Create the custom creative on the server. + $customCreative = $creativeService->createCreative($customCreative); + + // Display results. + if (isset($customCreative)) { + printf("A custom creative with ID '%s', name '%s', and size '%sx%s' was " + . "created and can be previewed at: %s\n", $templateCreative->id, + $templateCreative->name, $templateCreative->size->width, + $templateCreative->size->height, $templateCreative->previewUrl); + } else { + print "No creative was created.\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/v201302/CreativeService/GetAllCreativesExample.php b/examples/Dfp/v201302/CreativeService/GetAllCreativesExample.php new file mode 100755 index 000000000..3b2cd6f2c --- /dev/null +++ b/examples/Dfp/v201302/CreativeService/GetAllCreativesExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201302'); + + // Set defaults for page and statement. + $page = new CreativePage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all creatives. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201302/CreativeService/GetCreativeExample.php b/examples/Dfp/v201302/CreativeService/GetCreativeExample.php new file mode 100755 index 000000000..1f13968dd --- /dev/null +++ b/examples/Dfp/v201302/CreativeService/GetCreativeExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201302'); + + // Set the ID of the creative to get. + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Get the creative. + $creative = $creativeService->getCreative($creativeId); + + // Display results. + if (isset($creative)) { + print 'Creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType . "\" was found.\n"; + } else { + print "No creative found for this ID.\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/v201302/CreativeService/GetCreativesByStatementExample.php b/examples/Dfp/v201302/CreativeService/GetCreativesByStatementExample.php new file mode 100755 index 000000000..649f192d5 --- /dev/null +++ b/examples/Dfp/v201302/CreativeService/GetCreativesByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201302'); + + // 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/v201302/CreativeService/UpdateCreativesExample.php b/examples/Dfp/v201302/CreativeService/UpdateCreativesExample.php new file mode 100755 index 000000000..a077ac0c6 --- /dev/null +++ b/examples/Dfp/v201302/CreativeService/UpdateCreativesExample.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201302'); + + // Create a statement to get all image creatives. + $filterStatement = + new Statement("WHERE creativeType = 'ImageCreative' LIMIT 500"); + + // Get creatives by statement. + $page = $creativeService->getCreativesByStatement($filterStatement); + + if (isset($page->results)) { + $creatives = $page->results; + + // Update each local creative object by changing its destination URL. + foreach ($creatives as $creative) { + $creative->destinationUrl = 'http://news.google.com'; + } + + // Update the creatives on the server. + $creatives = $creativeService->updateCreatives($creatives); + + // 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"; + } + } else { + print "No creatives 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/v201302/CreativeSetService/CreateCreativeSetExample.php b/examples/Dfp/v201302/CreativeSetService/CreateCreativeSetExample.php new file mode 100755 index 000000000..06618172b --- /dev/null +++ b/examples/Dfp/v201302/CreativeSetService/CreateCreativeSetExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201302'); + + // Set the ID of the creatives to associate with this set. + $masterCreativeID = 'INSERT_MASTER_CREATIVE_ID_HERE'; + $companionCreativeID = 'INSERT_COMPANION_CREATIVE_ID_HERE'; + + // Create a local creative set. + $creativeSet = new CreativeSet(); + $creativeSet->name = 'Creative set #' . uniqid(); + $creativeSet->masterCreativeId = $masterCreativeID; + $creativeSet->companionCreativeIds = array(); + $creativeSet->companionCreativeIds[] = $companionCreativeID; + + // Create the creative set on the server. + $creativeSet = $creativeSetService->createCreativeSet($creativeSet); + + // Display results. + if (isset($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)); + } else { + print "No creative set created.\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/v201302/CreativeSetService/GetAllCreativesSetsExample.php b/examples/Dfp/v201302/CreativeSetService/GetAllCreativesSetsExample.php new file mode 100755 index 000000000..d788c5a24 --- /dev/null +++ b/examples/Dfp/v201302/CreativeSetService/GetAllCreativesSetsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201302'); + + // Set default offset. + $offset = 0; + $filterStatement = new Statement(); + + do { + // Create a statement to get all creative sets. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201302/CreativeSetService/GetCreativeSetsByStatementExample.php b/examples/Dfp/v201302/CreativeSetService/GetCreativeSetsByStatementExample.php new file mode 100755 index 000000000..874a67acd --- /dev/null +++ b/examples/Dfp/v201302/CreativeSetService/GetCreativeSetsByStatementExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201302'); + + $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/v201302/CreativeSetService/UpdateCreativeSetExample.php b/examples/Dfp/v201302/CreativeSetService/UpdateCreativeSetExample.php new file mode 100755 index 000000000..313d1c74c --- /dev/null +++ b/examples/Dfp/v201302/CreativeSetService/UpdateCreativeSetExample.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201302'); + + # Set the ID of the creative set to get. + $creativeSetID = 'INSERT_CREATIVE_SET_ID_HERE'; + $companionCreativeID = 'INSERT_COMPANION_CREATIVE_ID_HERE'; + + # Get creative set. + $creativeSet = $creativeSetService->getCreativeSet($creativeSetID); + + $creativeSet->companionCreativeIds[] = $companionCreativeID; + + # Update the creative set on the server. + $creativeSet = $creativeSetService->updateCreativeSet($creativeSet); + + // Display results. + if (isset($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)); + } else { + print "No creative set 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/v201302/CreativeTemplateService/GetAllCreativeTemplatesExample.php b/examples/Dfp/v201302/CreativeTemplateService/GetAllCreativeTemplatesExample.php new file mode 100755 index 000000000..2d031768d --- /dev/null +++ b/examples/Dfp/v201302/CreativeTemplateService/GetAllCreativeTemplatesExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201302'); + + // Set defaults for page and statement. + $page = new CreativeTemplatePage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all creative templates. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201302/CreativeTemplateService/GetCreativeTemplateExample.php b/examples/Dfp/v201302/CreativeTemplateService/GetCreativeTemplateExample.php new file mode 100755 index 000000000..e2faf2362 --- /dev/null +++ b/examples/Dfp/v201302/CreativeTemplateService/GetCreativeTemplateExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201302'); + + // Set the ID of the creative template to get. + $creativeTemplateId = 'INSERT_CREATIVE_TEMPLATE_ID_HERE'; + + // Get the creative template. + $creativeTemplate = + $creativeTemplateService->getCreativeTemplate($creativeTemplateId); + + // Display results. + if (isset($creativeTemplate)) { + printf("Creative template with ID '%s', name '%s', and type '%s' was " + ."found.\n", $creativeTemplate->id, $creativeTemplate->name, + $creativeTemplate->type); + } else { + print "No creative template found for this ID.\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/v201302/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php b/examples/Dfp/v201302/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php new file mode 100755 index 000000000..768a801d0 --- /dev/null +++ b/examples/Dfp/v201302/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201302'); + + // 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/v201302/CreativeWrapperService/CreateCreativeWrappersExample.php b/examples/Dfp/v201302/CreativeWrapperService/CreateCreativeWrappersExample.php new file mode 100755 index 000000000..e716164a2 --- /dev/null +++ b/examples/Dfp/v201302/CreativeWrapperService/CreateCreativeWrappersExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201302'); + + $labelId = 'INSERT_CREATIVE_WRAPPER_LABEL_ID_HERE'; + + // Create creative wrapper objects. + $creativeWrapper = new CreativeWrapper(); + $creativeWrapper->labelId = $labelId; + $creativeWrapper->ordering = 'INNER'; + $creativeWrapper->header = new CreativeWrapperHtmlSnippet; + $creativeWrapper->header->htmlSnippet = 'My creative wrapper header'; + $creativeWrapper->footer = new CreativeWrapperHtmlSnippet; + $creativeWrapper->footer->htmlSnippet = 'My creative wrapper footer'; + + // Create the creative wrappers on the server. + $creativeWrappers = + $creativeWrapperService->CreateCreativeWrappers(array($creativeWrapper)); + + // Display results. + if (isset($creativeWrappers)) { + foreach ($creativeWrappers as $creativeWrapper) { + printf("Creative wrapper with ID '%d' applying to label '%d' was" . + " created.\n", $creativeWrapper->id, $creativeWrapper->labelId); + } + } else { + print "No creative wrappers were created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201302/CreativeWrapperService/DeactivateCreativeWrapperExample.php b/examples/Dfp/v201302/CreativeWrapperService/DeactivateCreativeWrapperExample.php new file mode 100755 index 000000000..e3d738aa2 --- /dev/null +++ b/examples/Dfp/v201302/CreativeWrapperService/DeactivateCreativeWrapperExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201302'); + + $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/v201302/CreativeWrapperService/GetActiveCreativeWrappersExample.php b/examples/Dfp/v201302/CreativeWrapperService/GetActiveCreativeWrappersExample.php new file mode 100755 index 000000000..abf4a097d --- /dev/null +++ b/examples/Dfp/v201302/CreativeWrapperService/GetActiveCreativeWrappersExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201302'); + + // Create a statement to select only active creative wrappers. + $vars = MapUtils::GetMapEntries(array('status' => new TextValue('ACTIVE'))); + $filterStatement = + new Statement('WHERE status = :status', $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' 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/v201302/CreativeWrapperService/GetAllCreativeWrappersExample.php b/examples/Dfp/v201302/CreativeWrapperService/GetAllCreativeWrappersExample.php new file mode 100755 index 000000000..f5961d766 --- /dev/null +++ b/examples/Dfp/v201302/CreativeWrapperService/GetAllCreativeWrappersExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201302'); + + // 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/v201302/CreativeWrapperService/UpdateCreativeWrappersExample.php b/examples/Dfp/v201302/CreativeWrapperService/UpdateCreativeWrappersExample.php new file mode 100755 index 000000000..c6c9cad0a --- /dev/null +++ b/examples/Dfp/v201302/CreativeWrapperService/UpdateCreativeWrappersExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201302'); + + $creativeWrapperId = 'INSERT_CREATIVE_WRAPPER_ID_HERE'; + + // Get creative wrapper. + $creativeWrapper = + $creativeWrapperService->getCreativeWrapper($creativeWrapperId); + + if (isset($creativeWrapper)) { + $creativeWrapper->ordering = 'OUTER'; + + // Update the creative wrappers on the server. + $creativeWrappers = + $creativeWrapperService-> + updateCreativeWrappers(array($creativeWrapper)); + + // Display results. + if (isset($creativeWrappers)) { + foreach ($creativeWrappers as $creativeWrapper) { + printf("Creative wrapper with ID '%s' and wrapping order '%s' was" . + " updated.\n", $creativeWrapper->id, $creativeWrapper->ordering); + } + } else { + printf('No creative wrappers were updated.'); + } + } else { + print "No creative wrappers found to update."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201302/CustomFieldService/CreateCustomFieldOptions.php b/examples/Dfp/v201302/CustomFieldService/CreateCustomFieldOptions.php new file mode 100755 index 000000000..68c1a5630 --- /dev/null +++ b/examples/Dfp/v201302/CustomFieldService/CreateCustomFieldOptions.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = + $user->GetService('CustomFieldService', 'v201302'); + + // Set the ID of the drop-down custom field to create options for. + $customFieldId = "INSERT_DROP_DOWN_CUSTOM_FIELD_ID_HERE"; + + // Create custom field options. + $customFieldOption1 = new CustomFieldOption(); + $customFieldOption1->displayName = 'Approved'; + $customFieldOption1->customFieldId = $customFieldId; + + $customFieldOption2 = new CustomFieldOption(); + $customFieldOption2->displayName = 'Unapproved'; + $customFieldOption2->customFieldId = $customFieldId; + + // Create the custom targeting keys on the server. + $customFieldOptions = $customFieldService->createCustomFieldOptions( + array($customFieldOption1, $customFieldOption2)); + + // Display results. + if (isset($customFieldOptions)) { + foreach ($customFieldOptions as $customFieldOption) { + printf("A custom field option with ID '%s' and name '%s' was created.\n", + $customFieldOption->id, $customFieldOption->displayName); + } + } else { + print "No custom field options were created.\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/v201302/CustomFieldService/CreateCustomFields.php b/examples/Dfp/v201302/CustomFieldService/CreateCustomFields.php new file mode 100755 index 000000000..d32803003 --- /dev/null +++ b/examples/Dfp/v201302/CustomFieldService/CreateCustomFields.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = + $user->GetService('CustomFieldService', 'v201302'); + + // Create custom fields. + $customField1 = new CustomField(); + $customField1->name = 'Customer comments #' . time(); + $customField1->entityType = 'LINE_ITEM'; + $customField1->dataType = 'STRING'; + $customField1->visibility = 'FULL'; + + $customField2 = new CustomField(); + $customField2->name = 'Internal approval status #' . time(); + $customField2->entityType = 'LINE_ITEM'; + $customField2->dataType = 'DROP_DOWN'; + $customField2->visibility = 'FULL'; + + // Create the custom fields on the server. + $customFields = $customFieldService->createCustomFields( + array($customField1, $customField2)); + + // Display results. + if (isset($customFields)) { + foreach ($customFields as $customField) { + printf("A custom field with ID '%s' and name '%s' was created.\n", + $customField->id, $customField->name); + } + } else { + print "No custom fields were created.\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/v201302/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php b/examples/Dfp/v201302/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php new file mode 100755 index 000000000..306a5651c --- /dev/null +++ b/examples/Dfp/v201302/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php @@ -0,0 +1,123 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201302'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('entityType' => new TextValue("LINE_ITEM"), + 'isActive' => new BooleanValue("TRUE"))); + + // Create statement text to select only active custom fields that apply + // to line items. + $filterStatementText = + "WHERE entityType = :entityType and isActive = :isActive"; + $offset = 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); + + // Display results. + $customFieldIds = array(); + if (isset($page->results)) { + $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; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of custom fields to be deactivated: ' . sizeof($customFieldIds) + . "\n"; + + if (sizeof($customFieldIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $customFieldIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateCustomFields(); + + // Perform action. + $result = $customFieldService->performCustomFieldAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of custom fields deactivated: ' . $result->numChanges + . "\n"; + } else { + print "No custom fields 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/v201302/CustomFieldService/GetAllCustomFieldsExample.php b/examples/Dfp/v201302/CustomFieldService/GetAllCustomFieldsExample.php new file mode 100755 index 000000000..3436018b4 --- /dev/null +++ b/examples/Dfp/v201302/CustomFieldService/GetAllCustomFieldsExample.php @@ -0,0 +1,87 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201302'); + + // Set defaults for page and statement. + $page = new CustomFieldPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all custom fields. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get custom fields by statement. + $page = $customFieldService->getCustomFieldsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $customField) { + print $i . ') Custom field with ID "' . $customField->id + . '" and name "' . $customField->name . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201302/CustomFieldService/SetLineItemCustomFieldValue.php b/examples/Dfp/v201302/CustomFieldService/SetLineItemCustomFieldValue.php new file mode 100755 index 000000000..0afa8e17c --- /dev/null +++ b/examples/Dfp/v201302/CustomFieldService/SetLineItemCustomFieldValue.php @@ -0,0 +1,128 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201302'); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201302'); + + // Set the IDs of the custom fields, custom field option, and line item. + $customFieldId = "INSERT_CUSTOM_FIELD_ID_HERE"; + $dropDownCustomFieldId = "INSERT_DROP_DOWN_CUSTOM_FIELD_ID_HERE"; + $customFieldOptionId = "INSERT_CUSTOM_FIELD_OPTION_ID_HERE"; + $lineItemId = "INSERT_LINE_ITEM_ID_HERE"; + + // Get the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + + // Create custom field values. + $customFieldValues = array(); + + $customFieldValue = new CustomFieldValue(); + $customFieldValue->customFieldId = $customFieldId; + $customFieldValue->value = new TextValue("Custom field value"); + $customFieldValues[] = $customFieldValue; + + $dropDownCustomFieldValue = new DropDownCustomFieldValue(); + $dropDownCustomFieldValue->customFieldId = $dropDownCustomFieldId; + $dropDownCustomFieldValue->customFieldOptionId = $customFieldOptionId; + $customFieldValues[] = $dropDownCustomFieldValue; + + // Only add existing custom field values for different custom fields than + // the ones you are setting. + if (isset($lineItem->customFieldValues)) { + foreach ($lineItem->customFieldValues as $oldCustomFieldValue) { + if (($oldCustomFieldValue->customFieldId != $customFieldId) && + ($oldCustomFieldValue->customFieldId != $dropDownCustomFieldId)) { + $customFieldValues[] = $oldCustomFieldValue; + } + } + } + + $lineItem->customFieldValues = $customFieldValues; + + // Update the line item on the server. + $lineItems = $lineItemService->updateLineItems($lineItem); + + if (isset($lineItems)) { + foreach ($lineItems as $lineItem) { + $customFieldValueStrings = array(); + foreach ($lineItem->customFieldValues as $baseCustomFieldValue) { + if (($baseCustomFieldValue instanceof CustomFieldValue)) { + $customFieldValueStrings[] = "{ID: '" + . $baseCustomFieldValue->customFieldId . "', value: '" + . $baseCustomFieldValue->value->value . "'}"; + } else if ($baseCustomFieldValue instanceof DropDownCustomFieldValue) { + $customFieldValueStrings[] = "{ID: '" + . $baseCustomFieldValue->customFieldId + . "', custom field option ID: '" + . $baseCustomFieldValue->customFieldOptionId . "'}"; + } + } + print "A line item with ID '" . $lineItem->id + . "' was set with custom field values '" + . join(",", $customFieldValueStrings) . "'."; + } + } + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CustomFieldService/UpdateCustomFieldExample.php b/examples/Dfp/v201302/CustomFieldService/UpdateCustomFieldExample.php new file mode 100755 index 000000000..5c6447a53 --- /dev/null +++ b/examples/Dfp/v201302/CustomFieldService/UpdateCustomFieldExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201302'); + + // Set the ID of the custom field to update. + $customFieldId = "INSERT_CUSTOM_FIELD_ID_HERE"; + + // Get the custom field. + $customField = $customFieldService->getCustomField($customFieldId); + + if (isset($customField)) { + $customField->description = "Description " . time(); + + $customFields = array(); + $customFields[] = $customField; + + // Update the custom field on the server. + $customFields = $customFieldService->updateCustomFields($customFields); + + // Display results. + if (isset($customFields)) { + foreach ($customFields as $customField) { + print 'Custom field with ID "' + . $customField->id . '", name "' . $customField->name + . '", and description "' . $customField->description + . "\" was updated.\n"; + } + } else { + print "No custom fields were updated.\n"; + } + } else { + print "No custom fields 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/v201302/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php b/examples/Dfp/v201302/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php new file mode 100755 index 000000000..d77dfc71d --- /dev/null +++ b/examples/Dfp/v201302/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php @@ -0,0 +1,152 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201302'); + + // Create predefined key. + $genderKey = new CustomTargetingKey(); + $genderKey->displayName = 'gender'; + $genderKey->name = 'g'; + $genderKey->type = 'PREDEFINED'; + + // Create predefined key that may be used for content targeting. + $genreKey = new CustomTargetingKey(); + $genreKey->displayName = 'genre'; + $genreKey->name = 'genre'; + $genreKey->type = 'PREDEFINED'; + + // Create free-form key. + $carModelKey = new CustomTargetingKey(); + $carModelKey->displayName = 'car model'; + $carModelKey->name = 'c'; + $carModelKey->type = 'FREEFORM'; + + // Create the custom targeting keys on the server. + $keys = $customTargetingService->createCustomTargetingKeys( + array($genderKey, $genreKey, $carModelKey)); + + if (isset($keys)) { + foreach ($keys as $key) { + printf("A custom targeting key with ID '%s', name '%s', and display " . + "name '%s' was created.\n", $key->id, $key->name, $key->displayName); + } + } else { + print "No keys were created.\n"; + } + + // Create custom targeting value for the predefined gender key. + $genderMaleValue = new CustomTargetingValue(); + $genderMaleValue->customTargetingKeyId = $keys[0]->id; + $genderMaleValue->displayName = 'male'; + // Name is set to 1 so that the actual name can be hidden from website + // users. + $genderMaleValue->name = '1'; + $genderMaleValue->matchType = 'EXACT'; + + $genderFemaleValue = new CustomTargetingValue(); + $genderFemaleValue->customTargetingKeyId = $keys[0]->id; + $genderFemaleValue->displayName = 'female'; + // Name is set to 2 so that the actual name can be hidden from website + // users. + $genderFemaleValue->name = '2'; + $genderFemaleValue->matchType = 'EXACT'; + + // Create custom targeting value for the predefined genre key. + $genreComedyValue = new CustomTargetingValue(); + $genreComedyValue->customTargetingKeyId = $keys[1]->id; + $genreComedyValue->displayName = 'comedy'; + $genreComedyValue->name = 'comedy'; + $genreComedyValue->matchType = 'EXACT'; + + $genreDramaValue = new CustomTargetingValue(); + $genreDramaValue->customTargetingKeyId = $keys[1]->id; + $genreDramaValue->displayName = 'drama'; + $genreDramaValue->name = 'drama'; + $genreDramaValue->matchType = 'EXACT'; + + // Create custom targeting value for the free-form age key. These are + // values that would be suggested in the UI or can be used when targeting + // with a free-form custom criterion. + $carModelHondaCivicValue = new CustomTargetingValue(); + $carModelHondaCivicValue->customTargetingKeyId = $keys[2]->id; + $carModelHondaCivicValue->displayName = 'honda civic'; + $carModelHondaCivicValue->name = 'honda civic'; + // Setting match type to exact will match exactly 'honda civic'. + $carModelHondaCivicValue->matchType = 'EXACT'; + + // Create the custom targeting values on the server. + $values = $customTargetingService->createCustomTargetingValues(array( + $genderMaleValue, $genderFemaleValue, $genreComedyValue, + $genreDramaValue, $carModelHondaCivicValue)); + + if (isset($values)) { + foreach ($values as $value) { + printf("A custom targeting value with ID '%s', belonging to key " . + "with ID '%s', name '%s', and display name '%s' was created.\n", + $value->id, $value->customTargetingKeyId, $value->name, + $value->displayName); + } + } else { + print "No values were created.\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/v201302/CustomTargetingService/DeleteCustomTargetingKeysExample.php b/examples/Dfp/v201302/CustomTargetingService/DeleteCustomTargetingKeysExample.php new file mode 100755 index 000000000..5646442a2 --- /dev/null +++ b/examples/Dfp/v201302/CustomTargetingService/DeleteCustomTargetingKeysExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201302'); + + // 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'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('name' => new TextValue($keyName))); + + $offset = 0; + $keyIds = array(); + + 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); + + if (isset($page->results)) { + foreach ($page->results as $customTargetingKey) { + $keyIds[] = $customTargetingKey->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + printf("Number of custom targeting keys to be deleted: %d\n", + sizeof($keyIds)); + + if (sizeof($keyIds) > 0) { + // Create action statement. + $filterStatementText = sprintf('WHERE id IN (%s)', implode(',', $keyIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeleteCustomTargetingKeys(); + + // Perform action. + $result = $customTargetingService->performCustomTargetingKeyAction( + $action, $filterStatement); + + // 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"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CustomTargetingService/DeleteCustomTargetingValuesExample.php b/examples/Dfp/v201302/CustomTargetingService/DeleteCustomTargetingValuesExample.php new file mode 100755 index 000000000..8f2a1a8e7 --- /dev/null +++ b/examples/Dfp/v201302/CustomTargetingService/DeleteCustomTargetingValuesExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201302'); + + // 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'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('keyId' => new NumberValue($keyId))); + + $offset = 0; + $valueIds = array(); + + 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); + + if (isset($page->results)) { + foreach ($page->results as $customTargetingValue) { + $valueIds[] = $customTargetingValue->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + printf("Number of custom targeting values to be deleted: %d\n", + sizeof($valueIds)); + + if (sizeof($valueIds) > 0) { + // Create action statement. + $filterStatementText .= sprintf(' AND id IN (%s)', implode(',', $valueIds)); + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeleteCustomTargetingValues(); + + // Perform action. + $result = $customTargetingService->performCustomTargetingValueAction( + $action, $filterStatement); + + // 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"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php b/examples/Dfp/v201302/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php new file mode 100755 index 000000000..4d4ffc31e --- /dev/null +++ b/examples/Dfp/v201302/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php @@ -0,0 +1,137 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201302'); + + $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/v201302/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php b/examples/Dfp/v201302/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php new file mode 100755 index 000000000..fe575d457 --- /dev/null +++ b/examples/Dfp/v201302/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201302'); + + // 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/v201302/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php b/examples/Dfp/v201302/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php new file mode 100755 index 000000000..fe14a3789 --- /dev/null +++ b/examples/Dfp/v201302/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201302'); + + // Set the ID of the custom targeting key to get custom targeting values for. + $keyId = '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($keyId)))); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingValuesByStatement( + $filterStatement); + + // 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++; + } + } + + 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/v201302/CustomTargetingService/UpdateCustomTargetingKeysExample.php b/examples/Dfp/v201302/CustomTargetingService/UpdateCustomTargetingKeysExample.php new file mode 100755 index 000000000..3da6c3021 --- /dev/null +++ b/examples/Dfp/v201302/CustomTargetingService/UpdateCustomTargetingKeysExample.php @@ -0,0 +1,100 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201302'); + + // Create a statement to get all custom targeting keys. + $filterStatement = new Statement('LIMIT 500'); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $filterStatement); + + if (isset($page->results)) { + $keys = $page->results; + + // 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 keys on the server. + $keys = $customTargetingService->updateCustomTargetingKeys($keys); + + // 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"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CustomTargetingService/UpdateCustomTargetingValuesExample.php b/examples/Dfp/v201302/CustomTargetingService/UpdateCustomTargetingValuesExample.php new file mode 100755 index 000000000..34cdca266 --- /dev/null +++ b/examples/Dfp/v201302/CustomTargetingService/UpdateCustomTargetingValuesExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201302'); + + // 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/v201302/ForecastService/GetForecastByIdExample.php b/examples/Dfp/v201302/ForecastService/GetForecastByIdExample.php new file mode 100755 index 000000000..81c8a6676 --- /dev/null +++ b/examples/Dfp/v201302/ForecastService/GetForecastByIdExample.php @@ -0,0 +1,80 @@ +LogDefaults(); + + // Get the ForecastService. + $forecastService = $user->GetService('ForecastService', 'v201302'); + + // Set the line item to get a forecast for. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Get forecast for line item. + $forecast = $forecastService->getForecastById($lineItemId); + + // 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)) { + $percentPossibleUnits = $forecast->possibleUnits / $matchedUnits * 100; + printf("%d%% %s possible.\n", $percentPossibleUnits, $unitType); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/ForecastService/GetForecastExample.php b/examples/Dfp/v201302/ForecastService/GetForecastExample.php new file mode 100755 index 000000000..57df1c109 --- /dev/null +++ b/examples/Dfp/v201302/ForecastService/GetForecastExample.php @@ -0,0 +1,112 @@ +LogDefaults(); + + // Get the ForecastService. + $forecastService = $user->GetService('ForecastService', 'v201302'); + + // Set the placement ID that the prospective line item will target. + $targetPlacementId = 'INSERT_PLACEMENT_ID_HERE'; + + // Create prospective line item. + $lineItem = new LineItem(); + $lineItem->lineItemType = 'SPONSORSHIP'; + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedPlacementIds = array($targetPlacementId); + + // Set targeting for line item. + $targeting = new Targeting(); + $targeting->inventoryTargeting = $inventoryTargeting; + $lineItem->targeting = $targeting; + + // 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 line item's time to be now until the projected end date time. + $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; + + // Set the cost type to match the unit type. + $lineItem->costType = 'CPM'; + + // Get forecast for line item. + $forecast = $forecastService->getForecast($lineItem); + + // 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)) { + $percentPossibleUnits = $forecast->possibleUnits / $matchedUnits * 100; + printf("%d%% %s possible.\n", $percentPossibleUnits, $unitType); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/InventoryService/CreateAdUnitsExample.php b/examples/Dfp/v201302/InventoryService/CreateAdUnitsExample.php new file mode 100755 index 000000000..fd7954d8b --- /dev/null +++ b/examples/Dfp/v201302/InventoryService/CreateAdUnitsExample.php @@ -0,0 +1,105 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201302'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201302'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + // Create an array to store local ad unit objects. + $adUnits = array(); + + for ($i = 0; $i < 5; $i++) { + $adUnit = new AdUnit(); + $adUnit->name = uniqid('Ad_Unit_'); + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + + // Create ad unit size. + $adUnitSize = new AdUnitSize(); + $adUnitSize->size = new Size(300, 250, FALSE); + $adUnitSize->environmentType = 'BROWSER'; + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($adUnitSize); + + $adUnits[] = $adUnit; + } + + // Create the ad units on the server. + $adUnits = $inventoryService->createAdUnits($adUnits); + + // Display results. + if (isset($adUnits)) { + foreach ($adUnits as $adUnit) { + print 'An ad unit with ID "' . $adUnit->id + . '" was created under parent with ID "' . $adUnit->parentId + . "\".\n"; + } + } else { + print "No ad units created.\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/v201302/InventoryService/CreateMobileAdUnitExample.php b/examples/Dfp/v201302/InventoryService/CreateMobileAdUnitExample.php new file mode 100755 index 000000000..a862af90f --- /dev/null +++ b/examples/Dfp/v201302/InventoryService/CreateMobileAdUnitExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201302'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201302'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + $adUnit = new AdUnit(); + $adUnit->name = uniqid('Mobile_Ad_Unit_'); + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + $adUnit->targetPlatform = 'MOBILE'; + $adUnit->mobilePlatform = 'APPLICATION'; + + // Create ad unit size. + $adUnitSize = new AdUnitSize(); + $adUnitSize->size = new Size(400, 300, FALSE); + $adUnitSize->environmentType = 'BROWSER'; + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($adUnitSize); + + // Create the ad unit on the server. + $adUnit = $inventoryService->createAdUnit($adUnit); + + // Display results. + if (isset($adUnit)) { + printf("An ad unit with ID '%s' was created under parent with ID '%s'.\n", + $adUnit->id, $adUnit->parentId); + } else { + print "No ad unit was created.\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/v201302/InventoryService/CreateVideoAdUnitExample.php b/examples/Dfp/v201302/InventoryService/CreateVideoAdUnitExample.php new file mode 100755 index 000000000..3951f50a0 --- /dev/null +++ b/examples/Dfp/v201302/InventoryService/CreateVideoAdUnitExample.php @@ -0,0 +1,111 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201302'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201302'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + // Create local ad unit object. + $adUnit = new AdUnit(); + $adUnit->name = 'Video_Ad_Unit'; + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + $adUnit->explicitlyTargeted = TRUE; + $adUnit->targetPlatform = 'WEB'; + + // Create master ad unit size. + $masterAdUnitSize = new AdUnitSize(); + $masterAdUnitSize->size = new Size(400, 300, FALSE); + $masterAdUnitSize->environmentType = 'VIDEO_PLAYER'; + + // Create companion sizes. + $companionAdUnitSize1 = new AdUnitSize(); + $companionAdUnitSize1->size = new Size(300, 250, FALSE); + $companionAdUnitSize1->environmentType = 'BROWSER'; + + $companionAdUnitSize2 = new AdUnitSize(); + $companionAdUnitSize2->size = new Size(728, 90, FALSE); + $companionAdUnitSize2->environmentType = 'BROWSER'; + + // Add companions to master ad unit size. + $masterAdUnitSize->companions = + array($companionAdUnitSize1, $companionAdUnitSize2); + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($masterAdUnitSize); + + // Create the ad unit on the server. + $adUnit = $inventoryService->createAdUnit($adUnit); + + // Display results. + if (isset($adUnit)) { + printf("An ad unit with ID '%s' was created under parent with ID '%s'.\n", + $adUnit->id, $adUnit->parentId); + } else { + print "No ad unit was created.\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/v201302/InventoryService/DeactivateAdUnitsExample.php b/examples/Dfp/v201302/InventoryService/DeactivateAdUnitsExample.php new file mode 100755 index 000000000..de88ca64d --- /dev/null +++ b/examples/Dfp/v201302/InventoryService/DeactivateAdUnitsExample.php @@ -0,0 +1,113 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201302'); + + // Create statement text to get all active ad units. + $filterStatementText = "WHERE status = 'ACTIVE'"; + + $offset = 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); + + // Display results. + $adUnitIds = array(); + 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 . "\" will be deactivated.\n"; + $i++; + $adUnitIds[] = $adUnit->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of ad units to be deactivated: ' . sizeof($adUnitIds) . "\n"; + + if (sizeof($adUnitIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $adUnitIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateAdUnits(); + + // Perform action. + $result = $inventoryService->performAdUnitAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of ad units deactivated: ' . $result->numChanges . "\n"; + } else { + print "No ad units 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/v201302/InventoryService/GetAdUnitExample.php b/examples/Dfp/v201302/InventoryService/GetAdUnitExample.php new file mode 100755 index 000000000..97af2b987 --- /dev/null +++ b/examples/Dfp/v201302/InventoryService/GetAdUnitExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201302'); + + // Set the ID of the ad unit to get. + $adUnitId = 'INSERT_AD_UNIT_ID_HERE'; + + // Get the ad unit. + $adUnit = $inventoryService->getAdUnit($adUnitId); + + // Display results. + if (isset($adUnit)) { + print 'Ad unit with ID "' . $adUnit->id + . '", name "' . $adUnit->name + . '", and status "' . $adUnit->status . "\" was found.\n"; + } else { + print "No ad unit found for this ID.\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/v201302/InventoryService/GetAdUnitSizesExample.php b/examples/Dfp/v201302/InventoryService/GetAdUnitSizesExample.php new file mode 100755 index 000000000..0dcaedb7e --- /dev/null +++ b/examples/Dfp/v201302/InventoryService/GetAdUnitSizesExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201302'); + + // 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); + + // Get all ad unit sizes by statement. + $adUnitSizes = $inventoryService->getAdUnitSizesByStatement($filterStatement); + + // Display results. + $i = 0; + foreach ($adUnitSizes as $adUnitSize) { + printf("%d) Web ad unit size of dimensions %s was found.\n", $i, + $adUnitSize->fullDisplayString); + $i++; + } + + 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"; +} + diff --git a/examples/Dfp/v201302/InventoryService/GetAdUnitsByStatementExample.php b/examples/Dfp/v201302/InventoryService/GetAdUnitsByStatementExample.php new file mode 100755 index 000000000..872530980 --- /dev/null +++ b/examples/Dfp/v201302/InventoryService/GetAdUnitsByStatementExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201302'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201302'); + + // Get the effective root ad unit's ID. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->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)))); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // 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++; + } + } + + 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/v201302/InventoryService/GetAllAdUnitsExample.php b/examples/Dfp/v201302/InventoryService/GetAllAdUnitsExample.php new file mode 100755 index 000000000..3a9362c48 --- /dev/null +++ b/examples/Dfp/v201302/InventoryService/GetAllAdUnitsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201302'); + + // Set defaults for page and statement. + $page = new AdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201302/InventoryService/GetInventoryTreeExample.php b/examples/Dfp/v201302/InventoryService/GetInventoryTreeExample.php new file mode 100755 index 000000000..163f041bb --- /dev/null +++ b/examples/Dfp/v201302/InventoryService/GetInventoryTreeExample.php @@ -0,0 +1,206 @@ +GetService('InventoryService', 'v201302'); + + // Create array to hold all ad units. + $adUnits = array(); + + // Set defaults for page and statement. + $page = new AdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + $adUnits = array_merge($adUnits, $page->results); + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + return $adUnits; +} + +/** + * Finds the root ad unit for the user. + * @param DfpUser $user the user to get the root ad unit for + * @return the ad unit representing the root ad unit or NULL if one + * is not found. + * @access private + */ +function FindRootAdUnit(DfpUser $user) { + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201302'); + + // Create a statement to only select image creatives. + $filterStatement = new Statement("WHERE parentId IS NULL LIMIT 1"); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + return $page->results[0]; + } else { + return NULL; + } +} + +/** + * Builds and displays an ad unit tree from an array of ad units underneath + * the root ad unit. + * @param AdUnit $root the root ad unit to build the tree under + * @param array $adUnits the array of ad units. + * @access private + */ +function BuildAndDisplayAdUnitTree(AdUnit $root, + array $adUnits) { + $treeMap = array(); + + foreach ($adUnits as $adUnit) { + if (isset($adUnit->parentId)) { + $treeMap[$adUnit->parentId][] = $adUnit; + } + } + + if (isset($root)) { + DisplayInventoryTree($root, $treeMap); + } else { + print "No root unit found.\n"; + } +} + +/** + * Displays the ad unit tree beginning at the root ad unit. + * @param AdUnit $root the root ad unit + * @param array $treeMap the map of id to array of ad units + * @access private + */ +function DisplayInventoryTree(AdUnit $root, array $treeMap) { + DisplayInventoryTreeHelper($root, $treeMap, 0); +} + +/** + * Helper for displaying inventory units. + * @param AdUnit $root the root inventory unit + * @param array $treeMap the map of id to array of inventory units + * @param $depth the depth the tree has reached + * @access private + */ +function DisplayInventoryTreeHelper(AdUnit $root, + array $treeMap, $depth) { + print GenerateTab($depth) . $root->name . ' (' + . $root->id . ")\n"; + + if (isset($treeMap[$root->id])) { + foreach ($treeMap[$root->id] as $child) { + DisplayInventoryTreeHelper($child, + $treeMap, $depth + 1); + } + } +} + +/** + * Generates a string of tabs to represent branching to children. + * @param $depth a depth from 0 to max(depth) + * @return string a string to insert in front of the root unit + * @access private + */ +function GenerateTab($depth) { + $tab = ''; + + if ($depth != 0) { + $tab .= ' '; + } + + for ($i = 1; $i < $depth; $i++) { + $tab .= '| '; + } + + return $tab . '+--'; +} + +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->LogDefaults(); + + $allAdUnits = GetAllAdUnits($user); + + // Find the root ad unit. rootAdUnit can also be set to child unit to + // only build and display a portion of the tree. + // i.e. $adUnit = $inventoryService->getAdUnit("INSERT_AD_UNIT_ID_HERE") + $rootAdUnit = FindRootAdUnit($user); + + if (isset($rootAdUnit)) { + BuildAndDisplayAdUnitTree($rootAdUnit, $allAdUnits); + } else { + print "Could not build tree. No root ad unit found.\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/v201302/InventoryService/UpdateAdUnitsExample.php b/examples/Dfp/v201302/InventoryService/UpdateAdUnitsExample.php new file mode 100755 index 000000000..739323ede --- /dev/null +++ b/examples/Dfp/v201302/InventoryService/UpdateAdUnitsExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201302'); + + // Create a statement to get all ad units. + $filterStatement = new Statement("LIMIT 500"); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + $adUnits = $page->results; + + // Update each local ad unit object by enabling AdSense. + foreach ($adUnits as $adUnit) { + $adUnit->inheritedAdSenseSettings->value->adSenseEnabled = TRUE; + } + + // Update the ad units on the server. + $adUnits = $inventoryService->updateAdUnits($adUnits); + + // 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"; + } + } + } else { + print "No ad units updated.\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/v201302/LabelService/CreateLabelsExample.php b/examples/Dfp/v201302/LabelService/CreateLabelsExample.php new file mode 100755 index 000000000..b1dadd820 --- /dev/null +++ b/examples/Dfp/v201302/LabelService/CreateLabelsExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201302'); + + // Create an array to store local label objects. + $labels = array(); + + for ($i = 0; $i < 5; $i++) { + $label = new Label(); + $label->name = 'Label #' . uniqid(); + $label->types = array('COMPETITIVE_EXCLUSION'); + $labels[] = $label; + } + + // Create the labels on the server. + $labels = $labelService->createLabels($labels); + + // Display results. + if (isset($labels)) { + foreach ($labels as $label) { + printf("A label with ID '%s', name '%s', and types {%s} was created.\n", + $label->id, $label->name, join(',', $label->types)); + } + } else { + print "No labels created.\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/v201302/LabelService/DeactivateLabelsExample.php b/examples/Dfp/v201302/LabelService/DeactivateLabelsExample.php new file mode 100755 index 000000000..a5f30f64d --- /dev/null +++ b/examples/Dfp/v201302/LabelService/DeactivateLabelsExample.php @@ -0,0 +1,111 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201302'); + + // Create statement text to get all active labels. + $filterStatementText = "WHERE isActive = true"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset); + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // Display results. + $labelIds = array(); + if (isset($page->results)) { + 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; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of labels to be deactivated: ' . sizeof($labelIds) . "\n"; + + if (sizeof($labelIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $labelIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateLabels(); + + // Perform action. + $result = $labelService->performLabelAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of labels deactivated: ' . $result->numChanges . "\n"; + } else { + print "No labels 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/v201302/LabelService/GetAllLabelsExample.php b/examples/Dfp/v201302/LabelService/GetAllLabelsExample.php new file mode 100755 index 000000000..d212a2f9e --- /dev/null +++ b/examples/Dfp/v201302/LabelService/GetAllLabelsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201302'); + + // Set defaults for page and statement. + $page = new LabelPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all labels. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201302/LabelService/GetLabelExample.php b/examples/Dfp/v201302/LabelService/GetLabelExample.php new file mode 100755 index 000000000..c98c3f3ed --- /dev/null +++ b/examples/Dfp/v201302/LabelService/GetLabelExample.php @@ -0,0 +1,75 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201302'); + + // Set the ID of the label to get. + $labelId = 'INSERT_LABEL_ID_HERE'; + + // Get the label. + $label = $labelService->getLabel($labelId); + + if (isset($label)) { + printf("Label with ID '%s', name '%s', and type {%s} was found.\n", + $label->id, $label->name, join(",", $label->types)); + } else { + print "No label found for this ID.\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/v201302/LabelService/GetLabelsByStatementExample.php b/examples/Dfp/v201302/LabelService/GetLabelsByStatementExample.php new file mode 100755 index 000000000..185fb5892 --- /dev/null +++ b/examples/Dfp/v201302/LabelService/GetLabelsByStatementExample.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201302'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array()); + + // Create a statement to select labels ordered by name. + $filterStatement = + new Statement("ORDER BY name LIMIT 500", $vars); + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // 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++; + } + } + + 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/v201302/LabelService/UpdateLabelsExample.php b/examples/Dfp/v201302/LabelService/UpdateLabelsExample.php new file mode 100755 index 000000000..3454294ad --- /dev/null +++ b/examples/Dfp/v201302/LabelService/UpdateLabelsExample.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201302'); + + // 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/v201302/LicaService/CreateLicasExample.php b/examples/Dfp/v201302/LicaService/CreateLicasExample.php new file mode 100755 index 000000000..bbe704e25 --- /dev/null +++ b/examples/Dfp/v201302/LicaService/CreateLicasExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201302'); + + // Set the line item ID and creative ID to associate + // them with. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Create local LICA. + $lica = new LineItemCreativeAssociation(); + $lica->creativeId = $creativeId; + $lica->lineItemId = $lineItemId; + + $licas = array($lica); + + // Create the LICAs on the server. + $licas = $licaService->createLineItemCreativeAssociations($licas); + + // Display results. + if (isset($licas)) { + foreach ($licas as $lica) { + print 'A LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" was created.\n"; + } + } else { + print "No LICAs created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/LicaService/DeactivateLicasExample.php b/examples/Dfp/v201302/LicaService/DeactivateLicasExample.php new file mode 100755 index 000000000..be7ef5dfa --- /dev/null +++ b/examples/Dfp/v201302/LicaService/DeactivateLicasExample.php @@ -0,0 +1,127 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201302'); + + // 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 statement text to select active LICAs for a given line item. + $filterStatementText = "WHERE lineItemId = :lineItemId AND status = 'ACTIVE'"; + + $offset = 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); + + // Display results. + $creativeIds = array(); + 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 + . "\" will be deactivated.\n"; + $i++; + $creativeIds[] = $lica->creativeId; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of LICAs to be deactivated: ' . sizeof($lica->creativeId) + . "\n"; + + if (sizeof($lica->creativeId) > 0) { + // Create action statement. + $filterStatementText = sprintf( + 'WHERE lineItemId = :lineItemId AND creativeId IN (%s)', + implode(',', $creativeIds)); + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeactivateLineItemCreativeAssociations(); + + // Perform action. + $result = $licaService->performLineItemCreativeAssociationAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of LICAs deactivated: ' . $result->numChanges . "\n"; + } else { + print "No LICAs 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/v201302/LicaService/GetAllLicasExample.php b/examples/Dfp/v201302/LicaService/GetAllLicasExample.php new file mode 100755 index 000000000..a462d91ef --- /dev/null +++ b/examples/Dfp/v201302/LicaService/GetAllLicasExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201302'); + + // Set defaults for page and statement. + $page = new LineItemCreativeAssociationPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all LICAs. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $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); + } 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); + } + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201302/LicaService/GetLicaExample.php b/examples/Dfp/v201302/LicaService/GetLicaExample.php new file mode 100755 index 000000000..d4e1d3b83 --- /dev/null +++ b/examples/Dfp/v201302/LicaService/GetLicaExample.php @@ -0,0 +1,82 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201302'); + + // Set the line item and creative ID to use to retrieve the LICA. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Get the LICA. + $lica = $licaService->getLineItemCreativeAssociation($lineItemId, + $creativeId); + + // Display results. + if (isset($lica)) { + print 'A LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" was found.\n"; + } else { + print "No LICA found for this ID.\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/v201302/LicaService/GetLicasByStatementExample.php b/examples/Dfp/v201302/LicaService/GetLicasByStatementExample.php new file mode 100755 index 000000000..9a48db8f5 --- /dev/null +++ b/examples/Dfp/v201302/LicaService/GetLicasByStatementExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201302'); + + // 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/v201302/LicaService/UpdateLicasExample.php b/examples/Dfp/v201302/LicaService/UpdateLicasExample.php new file mode 100755 index 000000000..744714325 --- /dev/null +++ b/examples/Dfp/v201302/LicaService/UpdateLicasExample.php @@ -0,0 +1,96 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201302'); + + // Create a statement to get all LICAs. + $filterStatement = new Statement("LIMIT 500"); + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + if (isset($page->results)) { + $licas = $page->results; + + // Update each local LICA object by changing its destination URL. + foreach ($licas as $lica) { + $lica->destinationUrl = 'http://news.google.com'; + } + + // Update the LICAs on the server. + $licas = $licaService->updateLineItemCreativeAssociations($licas); + + // 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"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/LineItemService/ActivateLineItemsExample.php b/examples/Dfp/v201302/LineItemService/ActivateLineItemsExample.php new file mode 100755 index 000000000..18ab80d56 --- /dev/null +++ b/examples/Dfp/v201302/LineItemService/ActivateLineItemsExample.php @@ -0,0 +1,132 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201302'); + + // 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/v201302/LineItemService/AuditLineItemsGeoTargetingExample.php b/examples/Dfp/v201302/LineItemService/AuditLineItemsGeoTargetingExample.php new file mode 100755 index 000000000..022917f20 --- /dev/null +++ b/examples/Dfp/v201302/LineItemService/AuditLineItemsGeoTargetingExample.php @@ -0,0 +1,213 @@ +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/v201302/LineItemService/CreateLineItemsExample.php b/examples/Dfp/v201302/LineItemService/CreateLineItemsExample.php new file mode 100755 index 000000000..6f0c2e59d --- /dev/null +++ b/examples/Dfp/v201302/LineItemService/CreateLineItemsExample.php @@ -0,0 +1,186 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201302'); + + // 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_PLACEMENT_ID_HERE'); + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedPlacementIds = $targetPlacementIds; + + // Create geographical targeting. + $geoTargeting = new GeoTargeting(); + + // Include the US, Quebec (Canada), and postal code B3P (Canada). + $countryLocation = new DfpLocation(); + $countryLocation->id = 2840; + + $regionLocation = new DfpLocation(); + $regionLocation->id = 20123; + + $postalCodeLocation = new PostalCodeLocation(); + $postalCodeLocation->id = 9000093; + + $geoTargeting->targetedLocations = array($countryLocation, $regionLocation); + + // Exclude Chicago and the New York metro area. + $cityLocation = new DfpLocation(); + $cityLocation->id = 1016367; + + $metroLocation = new DfpLocation(); + $metroLocation->id = 200501; + $geoTargeting->excludedLocations = array($cityLocation, $metroLocation); + + // Exclude users from US federal government domains. + $userDomainTargeting = new UserDomainTargeting(array('usa.gov'), FALSE); + + // Target only the weekend in the browser's timezone. + $saturdayDayPart = new DayPart(); + $saturdayDayPart->dayOfWeek = 'SATURDAY'; + $saturdayDayPart->startTime = new TimeOfDay(0, 'ZERO'); + $saturdayDayPart->endTime = new TimeOfDay(24, 'ZERO'); + + $sundayDayPart = new DayPart(); + $sundayDayPart->dayOfWeek = 'SUNDAY'; + $sundayDayPart->startTime = new TimeOfDay(0, 'ZERO'); + $sundayDayPart->endTime = new TimeOfDay(24, 'ZERO'); + + // Create day-part targeting. + $dayPartTargeting = new DayPartTargeting(); + $dayPartTargeting->timeZone = 'BROWSER'; + $dayPartTargeting->dayParts = array($saturdayDayPart, $sundayDayPart); + + // Target just the Chrome browser. + $browserTechnology = new Technology(); + $browserTechnology->id = 500072; + + // Create technology targeting. + $browserTargeting = new BrowserTargeting(); + $browserTargeting->browsers = array($browserTechnology); + $technologyTargeting = new TechnologyTargeting(); + $technologyTargeting->browserTargeting = $browserTargeting; + + // Create targeting. + $targeting = new Targeting(); + $targeting->inventoryTargeting = $inventoryTargeting; + $targeting->geoTargeting = $geoTargeting; + $targeting->userDomainTargeting = $userDomainTargeting; + $targeting->dayPartTargeting = $dayPartTargeting; + $targeting->technologyTargeting = $technologyTargeting; + + // Create an array to store local line item objects. + $lineItems = array(); + + for ($i = 0; $i < 5; $i++) { + $lineItem = new LineItem(); + $lineItem->name = 'Line item #' . uniqid(); + $lineItem->orderId = $orderId; + $lineItem->targeting = $targeting; + $lineItem->lineItemType = 'STANDARD'; + $lineItem->allowOverbook = 'TRUE'; + + // 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 creative rotation type to even. + $lineItem->creativeRotationType = 'EVEN'; + + // 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'; + + $lineItems[] = $lineItem; + } + + // Create the line items on the server. + $lineItems = $lineItemService->createLineItems($lineItems); + + // 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"; + } + } else { + print "No line items created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/LineItemService/CreateMobileLineItemExample.php b/examples/Dfp/v201302/LineItemService/CreateMobileLineItemExample.php new file mode 100755 index 000000000..52ff3c58c --- /dev/null +++ b/examples/Dfp/v201302/LineItemService/CreateMobileLineItemExample.php @@ -0,0 +1,160 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201302'); + + // 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. + $lineItem = $lineItemService->createLineItem($lineItem); + + // Display results. + if (isset($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); + } else { + print "No line item was created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/LineItemService/CreateVideoLineItemExample.php b/examples/Dfp/v201302/LineItemService/CreateVideoLineItemExample.php new file mode 100755 index 000000000..cfebac40e --- /dev/null +++ b/examples/Dfp/v201302/LineItemService/CreateVideoLineItemExample.php @@ -0,0 +1,168 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201302'); + + // 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); + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedAdUnits = + array(new AdUnitTargeting($targetedVideoAdUnitId, TRUE)); + + // Create video position targeting. + $videoPosition = new VideoPosition; + $videoPosition->positionType = 'PREROLL'; + $videoPositionTarget = new VideoPositionTarget(); + $videoPositionTarget->videoPosition = $videoPosition; + $videoPositionTargeting = new VideoPositionTargeting(); + $videoPositionTargeting->targetedPositions = array($videoPositionTarget); + + // Create targeting. + $targeting = new Targeting(); + $targeting->customTargeting = $customCriteriaSet; + $targeting->inventoryTargeting = $inventoryTargeting; + $targeting->videoPositionTargeting = $videoPositionTargeting; + + // Create local line item object. + $lineItem = new LineItem(); + $lineItem->name = sprintf("Video line item #%s", uniqid()); + $lineItem->orderId = $orderId; + $lineItem->targeting = $targeting; + $lineItem->lineItemType = 'SPONSORSHIP'; + $lineItem->allowOverbook = TRUE; + + // Set the environment type to video. + $lineItem->environmentType = 'VIDEO_PLAYER'; + + // Set the creative rotation type to optimized. + $lineItem->creativeRotationType = 'OPTIMIZED'; + + // Create the master creative placeholder. + $creativeMasterPlaceholder = new CreativePlaceholder(); + $creativeMasterPlaceholder->size = new Size(400, 300, FALSE); + + // Create companion creative placeholders. + $companionCreativePlaceholder1 = new CreativePlaceholder(); + $companionCreativePlaceholder1->size = new Size(300, 250, FALSE); + + $companionCreativePlaceholder2 = new CreativePlaceholder(); + $companionCreativePlaceholder2->size = new Size(728, 90, FALSE); + + // Set companion creative placeholders. + $creativeMasterPlaceholder->companions = + array($companionCreativePlaceholder1, $companionCreativePlaceholder2); + + // Set the size of creatives that can be associated with this line item. + $lineItem->creativePlaceholders = array($creativeMasterPlaceholder); + + // Set delivery of video companions to optional. + $lineItem->companionDeliveryOption = 'OPTIONAL'; + + // Set the length of the line item to run. + $lineItem->startDateTimeType = 'IMMEDIATELY'; + $lineItem->endDateTime = + DateTimeUtils::GetDfpDateTime(new DateTime('+1 month')); + + // Set the cost per day to $1. + $lineItem->costType = 'CPD'; + $lineItem->costPerUnit = new Money('USD', 1000000); + + // Set the percentage to be 100%. + $lineItem->unitsBought = 100; + + // 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."); + } +} 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/v201302/LineItemService/GetAllLineItemsExample.php b/examples/Dfp/v201302/LineItemService/GetAllLineItemsExample.php new file mode 100755 index 000000000..39a5dbbf7 --- /dev/null +++ b/examples/Dfp/v201302/LineItemService/GetAllLineItemsExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201302'); + + // Set defaults for page and statement. + $page = new LineItemPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all line items. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201302/LineItemService/GetLineItemExample.php b/examples/Dfp/v201302/LineItemService/GetLineItemExample.php new file mode 100755 index 000000000..10646b6f0 --- /dev/null +++ b/examples/Dfp/v201302/LineItemService/GetLineItemExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201302'); + + // Set the ID of the line item to get. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Get the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + + // Display results. + if (isset($lineItem)) { + print 'Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", and name "' . $lineItem->name + . "\" was found.\n"; + } else { + print "No line item found for this ID.\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/v201302/LineItemService/GetLineItemsByStatementExample.php b/examples/Dfp/v201302/LineItemService/GetLineItemsByStatementExample.php new file mode 100755 index 000000000..63839408a --- /dev/null +++ b/examples/Dfp/v201302/LineItemService/GetLineItemsByStatementExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201302'); + + // 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/v201302/LineItemService/GetRecentlyUpdatedLineItems.php b/examples/Dfp/v201302/LineItemService/GetRecentlyUpdatedLineItems.php new file mode 100755 index 000000000..7138ebd37 --- /dev/null +++ b/examples/Dfp/v201302/LineItemService/GetRecentlyUpdatedLineItems.php @@ -0,0 +1,103 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201302'); + + // 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/v201302/LineItemService/TargetCustomCriteriaExample.php b/examples/Dfp/v201302/LineItemService/TargetCustomCriteriaExample.php new file mode 100755 index 000000000..3bc83946d --- /dev/null +++ b/examples/Dfp/v201302/LineItemService/TargetCustomCriteriaExample.php @@ -0,0 +1,119 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201302'); + + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $customCriteriaIds1 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + $customCriteriaIds2 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + $customCriteriaIds3 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + + // Create custom criteria. + $customCriteria1 = new CustomCriteria(); + $customCriteria1->keyId = $customCriteriaIds1[0]; + $customCriteria1->valueIds = array($customCriteriaIds1[1]); + $customCriteria1->operator = 'IS'; + + $customCriteria2 = new CustomCriteria(); + $customCriteria2->keyId = $customCriteriaIds2[0]; + $customCriteria2->valueIds = array($customCriteriaIds2[1]); + $customCriteria2->operator = 'IS_NOT'; + + $customCriteria3 = new CustomCriteria(); + $customCriteria3->keyId = $customCriteriaIds3[0]; + $customCriteria3->valueIds = array($customCriteriaIds3[1]); + $customCriteria3->operator = 'IS'; + + + // Create the custom criteria set that will resemble: + // + // ($customCriteria1.key == $customCriteria1.value OR + // ($customCriteria2.key != $customCriteria2.value AND + // $customCriteria3.key == $customCriteria3.value)) + $topCustomCriteriaSet = new CustomCriteriaSet(); + $topCustomCriteriaSet->logicalOperator = 'OR'; + + $subCustomCriteriaSet = new CustomCriteriaSet(); + $subCustomCriteriaSet->logicalOperator = 'AND'; + $subCustomCriteriaSet->children = array($customCriteria2, $customCriteria3); + $topCustomCriteriaSet->children = + array($customCriteria1, $subCustomCriteriaSet); + + // Set the custom criteria targeting on the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + $lineItem->targeting->customTargeting = $topCustomCriteriaSet; + + // Update the line items on the server. + $lineItem = $lineItemService->updateLineItem($lineItem); + + // Display results. + if (isset($lineItem)) { + printf("Line item with ID '%s' updated with custom criteria targeting:\n", + $lineItem->id); + print_r($lineItem->targeting->customTargeting); + } else { + print "No line items updated.\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/v201302/LineItemService/UpdateLineItemsExample.php b/examples/Dfp/v201302/LineItemService/UpdateLineItemsExample.php new file mode 100755 index 000000000..1d97eb595 --- /dev/null +++ b/examples/Dfp/v201302/LineItemService/UpdateLineItemsExample.php @@ -0,0 +1,104 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201302'); + + // 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/v201302/NetworkService/GetAllNetworksExample.php b/examples/Dfp/v201302/NetworkService/GetAllNetworksExample.php new file mode 100755 index 000000000..d860390e3 --- /dev/null +++ b/examples/Dfp/v201302/NetworkService/GetAllNetworksExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201302'); + + // Get all networks that you have access to with the current login + // 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++; + } + } + + print 'Number of results found: ' . $i . "\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/v201302/NetworkService/GetCurrentNetworkExample.php b/examples/Dfp/v201302/NetworkService/GetCurrentNetworkExample.php new file mode 100755 index 000000000..0da7c1597 --- /dev/null +++ b/examples/Dfp/v201302/NetworkService/GetCurrentNetworkExample.php @@ -0,0 +1,65 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201302'); + + // Get the current network. + $network = $networkService->getCurrentNetwork(); + + print 'Current network has network code "' . $network->networkCode + . '" and display name "' . $network->displayName . "\".\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/v201302/NetworkService/MakeTestNetworkExample.php b/examples/Dfp/v201302/NetworkService/MakeTestNetworkExample.php new file mode 100755 index 000000000..e30345327 --- /dev/null +++ b/examples/Dfp/v201302/NetworkService/MakeTestNetworkExample.php @@ -0,0 +1,78 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201302'); + + // Make the test network. + $network = $networkService->makeTestNetwork(); + + print 'Test network with network code "' . $network->networkCode + . '" and display name "' . $network->displayName . "\" created.\n" + . ' You may now sign in at http://www.google.com/dfp/main?networkCode=' + . $network->networkCode . "\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/v201302/OrderService/ApproveOrdersExample.php b/examples/Dfp/v201302/OrderService/ApproveOrdersExample.php new file mode 100755 index 000000000..875d43164 --- /dev/null +++ b/examples/Dfp/v201302/OrderService/ApproveOrdersExample.php @@ -0,0 +1,128 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201302'); + + // 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/v201302/OrderService/CreateOrdersExample.php b/examples/Dfp/v201302/OrderService/CreateOrdersExample.php new file mode 100755 index 000000000..c683876a1 --- /dev/null +++ b/examples/Dfp/v201302/OrderService/CreateOrdersExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetOrderService('v201302'); + + // Set the advertiser (company), salesperson, and trafficker to assign to each + // order. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + $salespersonId = 'INSERT_SALESPERSON_ID_HERE'; + $traffickerId = 'INSERT_TRAFFICKER_ID_HERE'; + + // Create an array to store local order objects. + $orders = array(); + + for ($i = 0; $i < 5; $i++) { + $order = new Order(); + $order->name = 'Order #' . $i; + $order->advertiserId = $advertiserId; + $order->salespersonId = $salespersonId; + $order->traffickerId = $traffickerId; + + $orders[] = $order; + } + + // Create the orders on the server. + $orders = $orderService->createOrders($orders); + + // Display results. + if (isset($orders)) { + foreach ($orders as $order) { + print 'An order with with ID "' . $order->id + . '" and name "' . $order->name + . "\" was created.\n"; + } + } else { + print "No orders created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/OrderService/GetAllOrdersExample.php b/examples/Dfp/v201302/OrderService/GetAllOrdersExample.php new file mode 100755 index 000000000..ce77a37e0 --- /dev/null +++ b/examples/Dfp/v201302/OrderService/GetAllOrdersExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201302'); + + // Set defaults for page and statement. + $page = new OrderPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all orders. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201302/OrderService/GetOrderExample.php b/examples/Dfp/v201302/OrderService/GetOrderExample.php new file mode 100755 index 000000000..2952dc8be --- /dev/null +++ b/examples/Dfp/v201302/OrderService/GetOrderExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201302'); + + // Set the ID of the order to get. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Get the order. + $order = $orderService->getOrder($orderId); + + // Display results. + if (isset($order)) { + print 'An order with ID "' . $order->id + . '", name "' . $order->name + . '", and advertiser ID "' . $order->advertiserId + . "\" was found.\n"; + } else { + print "No order found for this ID.\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/v201302/OrderService/GetOrdersByStatementExample.php b/examples/Dfp/v201302/OrderService/GetOrdersByStatementExample.php new file mode 100755 index 000000000..7ea1c2659 --- /dev/null +++ b/examples/Dfp/v201302/OrderService/GetOrdersByStatementExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201302'); + + // 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/v201302/OrderService/UpdateOrdersExample.php b/examples/Dfp/v201302/OrderService/UpdateOrdersExample.php new file mode 100755 index 000000000..966d53412 --- /dev/null +++ b/examples/Dfp/v201302/OrderService/UpdateOrdersExample.php @@ -0,0 +1,99 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201302'); + + // 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/v201302/PlacementService/CreatePlacementsExample.php b/examples/Dfp/v201302/PlacementService/CreatePlacementsExample.php new file mode 100755 index 000000000..055d26d1e --- /dev/null +++ b/examples/Dfp/v201302/PlacementService/CreatePlacementsExample.php @@ -0,0 +1,137 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201302'); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201302'); + + // Create local placement object to store skyscraper ad units. + $skyscraperAdUnitPlacement = new Placement(); + $skyscraperAdUnitPlacement->name = + 'Skyscraper AdUnit Placement #' . time(); + $skyscraperAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 120x600'; + + // Create local placement object to store medium square ad units. + $mediumSquareAdUnitPlacement = new Placement(); + $mediumSquareAdUnitPlacement->name = + 'Medium Square AdUnit Placement #' . time(); + $mediumSquareAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 300x250'; + + // Create local placement object to store banner ad units. + $bannerAdUnitPlacement = new Placement(); + $bannerAdUnitPlacement->name = 'Banner AdUnit Placement #' . time(); + $bannerAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 468x60'; + + $placementList = array(); + + // Get the first 500 ad units. + $filterStatement = new Statement('LIMIT 500'); + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // Separate the ad units by size. + if (isset($page->results)) { + foreach ($page->results as $adUnit) { + if (isset($adUnit->parentId)) { + foreach ((array) $adUnit->adUnitSizes as $adUnitSize) { + $size = $adUnitSize->size; + if ($size->width == 300 && $size->height == 250) { + $mediumSquareAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } else if ($size->width == 120 && $size->height == 600) { + $skyscraperAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } else if ($size->width == 468 && $size->height == 60) { + $bannerAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } + } + } + } + } + + // Only create placements with one or more ad units. + if (count($skyscraperAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $skyscraperAdUnitPlacement; + } + if (count($mediumSquareAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $mediumSquareAdUnitPlacement; + } + if (count($bannerAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $bannerAdUnitPlacement; + } + + // Create the placements on the server. + $placements = $placementService->createPlacements($placementList); + + // Display results. + if (isset($placements)) { + foreach ($placements as $placement) { + print 'A placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and containing ad units {' . + implode(', ', (array) $placement->targetedAdUnitIds) + . "} was created.\n"; + } + } else { + print "No placements created.\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/v201302/PlacementService/DeactivatePlacementsExample.php b/examples/Dfp/v201302/PlacementService/DeactivatePlacementsExample.php new file mode 100755 index 000000000..79fbe7994 --- /dev/null +++ b/examples/Dfp/v201302/PlacementService/DeactivatePlacementsExample.php @@ -0,0 +1,115 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201302'); + + // Create statement text to select active placements. + $filterStatementText = "WHERE status = 'ACTIVE'"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset); + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // Display results. + $placementIds = array(); + 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 + . "\" will be deactivated.\n"; + $i++; + $placementIds[] = $placement->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of placements to be deactivated: ' . sizeof($placementIds) + . "\n"; + + if (sizeof($placementIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $placementIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivatePlacements(); + + // Perform action. + $result = + $placementService->performPlacementAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of placements deactivated: ' . $result->numChanges . "\n"; + } else { + print "No placements 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/v201302/PlacementService/GetAllPlacementsExample.php b/examples/Dfp/v201302/PlacementService/GetAllPlacementsExample.php new file mode 100755 index 000000000..57d1abcb2 --- /dev/null +++ b/examples/Dfp/v201302/PlacementService/GetAllPlacementsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201302'); + + // Set defaults for page and statement. + $page = new PlacementPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all placements. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $placement) { + print $i . ') Placement with ID "' . $placement->id + . '" and name "' . $placement->name + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201302/PlacementService/GetPlacementExample.php b/examples/Dfp/v201302/PlacementService/GetPlacementExample.php new file mode 100755 index 000000000..0c60289e2 --- /dev/null +++ b/examples/Dfp/v201302/PlacementService/GetPlacementExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201302'); + + // Set the ID of the placement to get. + $placementId = 'INSERT_PLACEMENT_ID_HERE'; + + // Get the placement. + $placement = $placementService->getPlacement($placementId); + + // Display results. + if (isset($placement)) { + print 'Placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and status "' . $placement->status . "\" was found.\n"; + } else { + print "No placement found for this ID.\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/v201302/PlacementService/GetPlacementsByStatementExample.php b/examples/Dfp/v201302/PlacementService/GetPlacementsByStatementExample.php new file mode 100755 index 000000000..a77b7f9c1 --- /dev/null +++ b/examples/Dfp/v201302/PlacementService/GetPlacementsByStatementExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201302'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('status' => new TextValue('ACTIVE'))); + + // Create a statement to only select active placements. + $filterStatement = new Statement("WHERE status = :status LIMIT 500", $vars); + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // 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++; + } + } + + 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/v201302/PlacementService/UpdatePlacementsExample.php b/examples/Dfp/v201302/PlacementService/UpdatePlacementsExample.php new file mode 100755 index 000000000..e973262cd --- /dev/null +++ b/examples/Dfp/v201302/PlacementService/UpdatePlacementsExample.php @@ -0,0 +1,102 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201302'); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201302'); + + // 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/v201302/PublisherQueryLanguageService/GetAllCitiesExample.php b/examples/Dfp/v201302/PublisherQueryLanguageService/GetAllCitiesExample.php new file mode 100755 index 000000000..2e98f5841 --- /dev/null +++ b/examples/Dfp/v201302/PublisherQueryLanguageService/GetAllCitiesExample.php @@ -0,0 +1,119 @@ +LogDefaults(); + + // Get the PublisherQueryLanguageService. + $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201302'); + + // Define the number of cities we want to get at a time. + $LIMIT = 500; + + // Create statement to select all targetable cities. + // For criteria that do not have a 'targetable' property, that predicate + // may be left off, i.e. just "SELECT * FROM Browser_Groups LIMIT 500". + $selectStatement = 'SELECT * FROM City WHERE targetable = true LIMIT ' . + $LIMIT; + $offset = 0; + $resultSetSize = 0; + $allRows = array(); + $i = 0; + + $mapColumnTypesToLabelsFn = create_function('$columnType', + 'return $columnType->labelName;'); + $mapRowValueToValueFn = create_function('$value', 'return $value->value;'); + + do { + $selectStatementOffset = + new Statement($selectStatement . ' OFFSET ' . $offset); + + // Get all cities. + $resultSet = $pqlService->select($selectStatementOffset); + + if (isset($resultSet->rows)) { + // Display results. + $columnLabels = array_map($mapColumnTypesToLabelsFn, + $resultSet->columnTypes); + printf("Columns are: %s\n", implode(', ', $columnLabels)); + + foreach($resultSet->rows as $row) { + $values = array_map($mapRowValueToValueFn, $row->values); + + // Collect all cities from each page. + $allRows[] = $values; + + printf("%d) %s\n", $i, implode(', ', $values)); + $i++; + } + + $resultSetSize = count($resultSet->rows); + } + + $offset += $LIMIT; + } while ($resultSetSize == $LIMIT); + + printf("Number of results found: %d\n", count($allRows)); + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201302/ReportService/DisplayReportExample.php b/examples/Dfp/v201302/ReportService/DisplayReportExample.php new file mode 100755 index 000000000..61c2ba0e6 --- /dev/null +++ b/examples/Dfp/v201302/ReportService/DisplayReportExample.php @@ -0,0 +1,78 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201302'); + + // 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; + + $downloadUrl = $reportService->getReportDownloadUrlWithOptions($reportJobId, + $reportDownloadOptions); + + printf("Downloading report from URL '%s'.\n", $downloadUrl); + $report = ReportUtils::DownloadReport($downloadUrl); + printf("\n%s\n", $report); +} 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/v201302/ReportService/DownloadReportExample.php b/examples/Dfp/v201302/ReportService/DownloadReportExample.php new file mode 100755 index 000000000..bd8d5b9c5 --- /dev/null +++ b/examples/Dfp/v201302/ReportService/DownloadReportExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201302'); + + // 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/v201302/ReportService/RunDeliveryReportExample.php b/examples/Dfp/v201302/ReportService/RunDeliveryReportExample.php new file mode 100755 index 000000000..12ac62ef9 --- /dev/null +++ b/examples/Dfp/v201302/ReportService/RunDeliveryReportExample.php @@ -0,0 +1,108 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201302'); + + // 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(); + + // 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; + $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/v201302/ReportService/RunInventoryReportExample.php b/examples/Dfp/v201302/ReportService/RunInventoryReportExample.php new file mode 100755 index 000000000..2815e598d --- /dev/null +++ b/examples/Dfp/v201302/ReportService/RunInventoryReportExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201302'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_WEEK'; + $reportQuery->dimensions = array('DATE', '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'); + $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/v201302/ReportService/RunMergedDeliveryReportExample.php b/examples/Dfp/v201302/ReportService/RunMergedDeliveryReportExample.php new file mode 100755 index 000000000..731ec648e --- /dev/null +++ b/examples/Dfp/v201302/ReportService/RunMergedDeliveryReportExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201302'); + + // Create report job. + $reportJob = new ReportJob(); + + // 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('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'); + $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/v201302/ReportService/RunReachReportExample.php b/examples/Dfp/v201302/ReportService/RunReachReportExample.php new file mode 100755 index 000000000..f8ecf681b --- /dev/null +++ b/examples/Dfp/v201302/ReportService/RunReachReportExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201302'); + + // Create report job. + $reportJob = new ReportJob(); + + // 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', + 'REACH'); + $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) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201302/ReportService/RunReportWithCustomFields.php b/examples/Dfp/v201302/ReportService/RunReportWithCustomFields.php new file mode 100755 index 000000000..251ff625b --- /dev/null +++ b/examples/Dfp/v201302/ReportService/RunReportWithCustomFields.php @@ -0,0 +1,133 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201302'); + + // 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', 'v201302'); + + // 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/v201302/ReportService/RunSalesReportExample.php b/examples/Dfp/v201302/ReportService/RunSalesReportExample.php new file mode 100755 index 000000000..019f56f95 --- /dev/null +++ b/examples/Dfp/v201302/ReportService/RunSalesReportExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201302'); + + // 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/v201302/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php b/examples/Dfp/v201302/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php new file mode 100755 index 000000000..11e37a4d6 --- /dev/null +++ b/examples/Dfp/v201302/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201302'); + + // Set the number of requests to 50 or more. + define('NUMBER_OF_REQUESTS', 50); + + // Create statement text to select all suggested ad units + // that have been requested 50 times or more. + $filterStatementText = 'WHERE numRequests >= ' . NUMBER_OF_REQUESTS; + + // Get all suggested ad units. + $allSuggestedAdUnits = ServiceUtils::GetAllObjects($suggestedAdUnitService, + 'getSuggestedAdUnitsByStatement', $filterStatementText); + + $numSuggestedAdUnits = 0; + foreach ($allSuggestedAdUnits as $suggestedAdUnit) { + $numSuggestedAdUnits++; + printf("%d) Suggested ad unit with ID '%s' and number of requests '%d' " + . "will be approved.\n", $numSuggestedAdUnits, $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + } + + printf("Number of suggested ad units to be approved: %d\n", + $numSuggestedAdUnits); + + if ($numSuggestedAdUnits > 0) { + // Create action statement. + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new ApproveSuggestedAdUnit(); + + // Perform action. + $result = $suggestedAdUnitService->performSuggestedAdUnitAction($action, + $filterStatementText); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of suggested ad units approved: %d\n", + $result->numChanges); + } else { + print "No suggested ad units 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/v201302/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php b/examples/Dfp/v201302/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php new file mode 100755 index 000000000..eff2b080a --- /dev/null +++ b/examples/Dfp/v201302/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201302'); + + // Set defaults for page and statement. + $page = new SuggestedAdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all suggested ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201302/SuggestedAdUnitService/GetSuggestedAdUnitExample.php b/examples/Dfp/v201302/SuggestedAdUnitService/GetSuggestedAdUnitExample.php new file mode 100755 index 000000000..ad07fbb4d --- /dev/null +++ b/examples/Dfp/v201302/SuggestedAdUnitService/GetSuggestedAdUnitExample.php @@ -0,0 +1,79 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201302'); + + // Set the ID of the ad unit to get. + $suggestedAdUnitId = 'INSERT_SUGGESTED_AD_UNIT_ID_HERE'; + + // Get the ad unit. + $suggestedAdUnit = + $suggestedAdUnitService->getSuggestedAdUnit($suggestedAdUnitId); + + // Display results. + if (isset($suggestedAdUnit)) { + printf("Suggested ad unit with ID '%s' and number of requests '%d' " + . "was found.\n", $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + } else { + print "No suggested ad unit found for this ID.\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/v201302/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php b/examples/Dfp/v201302/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php new file mode 100755 index 000000000..fc05f1540 --- /dev/null +++ b/examples/Dfp/v201302/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201302'); + + // 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/v201302/TeamService/CreateTeamsExample.php b/examples/Dfp/v201302/TeamService/CreateTeamsExample.php new file mode 100755 index 000000000..a0180f447 --- /dev/null +++ b/examples/Dfp/v201302/TeamService/CreateTeamsExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201302'); + + // Create an array to store local team objects. + $teams = array(); + + for ($i = 0; $i < 5; $i++) { + $team = new Team(); + $team->name = 'Team #' . uniqid(); + $team->hasAllCompanies = false; + $team->hasAllInventory = false; + $teams[] = $team; + } + + // Create the teams on the server. + $teams = $teamService->createTeams($teams); + + // Display results. + if (isset($teams)) { + foreach ($teams as $team) { + print 'A team with ID "' . $team->id + . '" and name "'. $team->name + . '" was created."' . "\n"; + } + } else { + print "No teams created.\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/v201302/TeamService/GetAllTeamsExample.php b/examples/Dfp/v201302/TeamService/GetAllTeamsExample.php new file mode 100755 index 000000000..367e2aba9 --- /dev/null +++ b/examples/Dfp/v201302/TeamService/GetAllTeamsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201302'); + + // Set defaults for page and statement. + $page = new TeamPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all teams. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get teams by statement. + $page = $teamService->getTeamsByStatement($filterStatement); + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201302/TeamService/GetTeamExample.php b/examples/Dfp/v201302/TeamService/GetTeamExample.php new file mode 100755 index 000000000..ccae3c54f --- /dev/null +++ b/examples/Dfp/v201302/TeamService/GetTeamExample.php @@ -0,0 +1,75 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201302'); + + // Set the ID of the team to get. + $teamId = 'INSERT_TEAM_ID_HERE'; + + // Get the team. + $team = $teamService->getTeam($teamId); + + // Display results. + if (isset($team)) { + print 'Team with ID "' . $team->id + . '" and name "' . $team->name + . "\" was found.\n"; + } else { + print "No team found for this ID.\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/v201302/TeamService/GetTeamsByStatementExample.php b/examples/Dfp/v201302/TeamService/GetTeamsByStatementExample.php new file mode 100755 index 000000000..3396eacf0 --- /dev/null +++ b/examples/Dfp/v201302/TeamService/GetTeamsByStatementExample.php @@ -0,0 +1,83 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201302'); + + // Create a statement to order teams by name. + $filterStatementText = 'ORDER BY name LIMIT 500'; + $filterStatement = new Statement($filterStatementText); + + // Get teams by statement. + $page = $teamService->getTeamsByStatement($filterStatement); + + // 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++; + } + } + + 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/v201302/TeamService/UpdateTeamsExample.php b/examples/Dfp/v201302/TeamService/UpdateTeamsExample.php new file mode 100755 index 000000000..e49e591ef --- /dev/null +++ b/examples/Dfp/v201302/TeamService/UpdateTeamsExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201302'); + + // 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/v201302/ThirdPartySlotService/ArchiveThirdPartySlotsExample.php b/examples/Dfp/v201302/ThirdPartySlotService/ArchiveThirdPartySlotsExample.php new file mode 100755 index 000000000..bfd2012c7 --- /dev/null +++ b/examples/Dfp/v201302/ThirdPartySlotService/ArchiveThirdPartySlotsExample.php @@ -0,0 +1,126 @@ +LogDefaults(); + + // Get the ThirdPartySlotService. + $thirdPartySlotService = + $user->GetService('ThirdPartySlotService', 'v201302'); + + // Set the company that the third party slots to archive belong to. + $companyId = 'INSERT_COMPANY_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array( + 'companyId' => new NumberValue($companyId), + 'status' => new TextValue('ACTIVE'))); + + // Create a statement to only select active third party slots. + $filterStatementText = 'WHERE companyId = :companyId AND status = :status'; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . ' LIMIT 500 OFFSET ' . $offset, + $vars); + + // Get third party slots by statement. + $page = + $thirdPartySlotService->getThirdPartySlotsByStatement($filterStatement); + + // Display results. + $thirdPartySlotIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $thirdPartySlot) { + printf("Third party slot with ID '%s' will be archived.\n", + $thirdPartySlot->id); + $i++; + $thirdPartySlotIds[] = $thirdPartySlot->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + printf("Number of third party slots to be archived: %d\n", + sizeof($thirdPartySlotIds)); + + if (sizeof($thirdPartySlotIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $thirdPartySlotIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new ArchiveThirdPartySlots(); + + // Perform action. + $result = $thirdPartySlotService->performThirdPartySlotAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of third party slots archived: %d\n", + $result->numChanges); + } else { + print "No third party slots were archived.\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/v201302/ThirdPartySlotService/CreateThirdPartySlotExample.php b/examples/Dfp/v201302/ThirdPartySlotService/CreateThirdPartySlotExample.php new file mode 100755 index 000000000..efc284b3a --- /dev/null +++ b/examples/Dfp/v201302/ThirdPartySlotService/CreateThirdPartySlotExample.php @@ -0,0 +1,96 @@ +LogDefaults(); + + // Get the ThirdPartySlotService. + $thirdPartySlotService = + $user->GetService('ThirdPartySlotService', 'v201302'); + + // Set the company ID to associate with this third party slot. + $companyId = 'INSERT_COMPANY_ID_HERE'; + + // Set the external unique ID to associate with this third party slot. + $externalUniqueId = 'INSERT_EXTERNAL_UNIQUE_ID_HERE'; + + // Set the external unique name to associate with this third party slot. + $externalUniqueName = 'INSERT_EXTERNAL_UNIQUE_NAME_HERE'; + + // Set the creative IDs to associate with this third party slot. + $creativeIds = array('INSERT_CREATIVE_ID_HERE'); + + // Create the ThirdPartySlot object. + $thirdPartySlot = new ThirdPartySlot(); + $thirdPartySlot->companyId = $companyId; + $thirdPartySlot->description = 'Third party slot description.'; + $thirdPartySlot->externalUniqueId = $externalUniqueId; + $thirdPartySlot->externalUniqueName = $externalUniqueName; + + // Set the creatives that the third party slot will represent. + $thirdPartySlot->creativeIds = $creativeIds; + + // Create the third party slot on the server. + $thirdPartySlot = + $thirdPartySlotService->createThirdPartySlot($thirdPartySlot); + + // Display results. + if (isset($thirdPartySlot)) { + printf("A third party slot with ID '%s' and name '%s' was created.\n", + $thirdPartySlot->id, $thirdPartySlot->externalUniqueName); + } else { + print "No third party slot was created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/ThirdPartySlotService/GetAllThirdPartySlotsExample.php b/examples/Dfp/v201302/ThirdPartySlotService/GetAllThirdPartySlotsExample.php new file mode 100755 index 000000000..cacbcff1d --- /dev/null +++ b/examples/Dfp/v201302/ThirdPartySlotService/GetAllThirdPartySlotsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the ThirdPartySlotService. + $thirdPartySlotService = + $user->GetService('ThirdPartySlotService', 'v201302'); + + // Set defaults for page and statement. + $page = new ThirdPartySlotPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all third party slots. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get third party slots by statement. + $page = + $thirdPartySlotService->getThirdPartySlotsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $thirdPartySlot) { + printf("Third party slot with ID '%s' was found.\n", + $thirdPartySlot->id); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201302/ThirdPartySlotService/GetThirdPartySlotsByStatementExample.php b/examples/Dfp/v201302/ThirdPartySlotService/GetThirdPartySlotsByStatementExample.php new file mode 100755 index 000000000..4e30d115f --- /dev/null +++ b/examples/Dfp/v201302/ThirdPartySlotService/GetThirdPartySlotsByStatementExample.php @@ -0,0 +1,83 @@ +LogDefaults(); + + // Get the ThirdPartySlotService. + $thirdPartySlotService = + $user->GetService('ThirdPartySlotService', 'v201302'); + + // Create a statement. + $filterStatement = new Statement("WHERE status = :status LIMIT 500", + MapUtils::GetMapEntries(array('status' => new TextValue('ARCHIVED')))); + + // Get third party slots by statement. + $page = + $thirdPartySlotService->getThirdPartySlotsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $thirdPartySlot) { + printf("Third party slot with ID '%s' was found.\n", + $thirdPartySlot->id); + $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/v201302/ThirdPartySlotService/UpdateThirdPartySlotExample.php b/examples/Dfp/v201302/ThirdPartySlotService/UpdateThirdPartySlotExample.php new file mode 100755 index 000000000..e74baebea --- /dev/null +++ b/examples/Dfp/v201302/ThirdPartySlotService/UpdateThirdPartySlotExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ThirdPartySlotService. + $thirdPartySlotService = + $user->GetService('ThirdPartySlotService', 'v201302'); + + // Create a statement to get one active third party slot. + $filterStatement = new Statement('WHERE status = :status LIMIT 1', + MapUtils::GetMapEntries(array('status' => new TextValue('ACTIVE')))); + + // Get third party slots by statement. + $page = + $thirdPartySlotService->getThirdPartySlotsByStatement($filterStatement); + + if (isset($page->results)) { + $thirdPartySlot = $page->results[0]; + + // Update the local third party slot by changing its description. + $thirdPartySlot->description = 'Updated description'; + + // Update the third party slot on the server. + $thirdPartySlot = + $thirdPartySlotService->updateThirdPartySlot($thirdPartySlot); + + // Display results. + if (isset($thirdPartySlot)) { + printf("Third party slot with ID '%s' and description '%s' was " + . "updated.\n", $thirdPartySlot->id, $thirdPartySlot->description); + } else { + print "The third party slot was not updated.\n"; + } + } else { + print "No third party slot was 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/v201302/UserService/CreateUsersExample.php b/examples/Dfp/v201302/UserService/CreateUsersExample.php new file mode 100755 index 000000000..5a8cc21bc --- /dev/null +++ b/examples/Dfp/v201302/UserService/CreateUsersExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201302'); + + // Set the user's email addresses and names. + $emailAndNames = + array(array('INSERT_EMAIL_ADDRESS_HERE', 'INSERT_NAME_HERE'), + array('INSERT_ANOTHER_EMAIL_ADDRESS_HERE', + 'INSERT_ANOTHER_NAME_HERE')); + + // Roles can be obtained by running GetAllRolesExample.php. + $roleId = 'INSERT_ROLE_ID_HERE'; + + // Create an array to store local user objects. + $users = array(); + + for ($i = 0; $i < sizeof($emailAndNames); $i++) { + $newUser = new User(); + $newUser->email = $emailAndNames[$i][0]; + $newUser->name = $emailAndNames[$i][1]; + $newUser->roleId = $roleId; + $newUser->preferredLocale = 'en_US'; + + $users[] = $newUser; + } + + // Create the users on the server. + $users = $userService->createUsers($users); + + // Display results. + if (isset($users)) { + foreach ($users as $user) { + print 'A user with ID "' . $user->id + . '", email "' . $user->email + . '", and role "' . $user->roleName . "\" was created.\n"; + } + } else { + print "No users created.\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/v201302/UserService/DeactivateUserExample.php b/examples/Dfp/v201302/UserService/DeactivateUserExample.php new file mode 100755 index 000000000..bf3f2964f --- /dev/null +++ b/examples/Dfp/v201302/UserService/DeactivateUserExample.php @@ -0,0 +1,121 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201302'); + + // Set the ID of the user to deactivate. + $userId = 'INSERT_USER_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('id' => new NumberValue($userId))); + + // Create statement text to get user by id. + $filterStatementText = "WHERE id = :id"; + + $offset = 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); + + // Display results. + $userIds = array(); + if (isset($page->results)) { + $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; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of users to be deactivated: ' . sizeof($userIds) . "\n"; + + if (sizeof($userIds) > 0) { + // Create action statement. + $filterStatementText = sprintf('WHERE id IN (%s)', implode(',', $userIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateUsers(); + + // Perform action. + $result = $userService->performUserAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of users deactivated: ' . $result->numChanges . "\n"; + } else { + print "No users 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/v201302/UserService/GetAllRolesExample.php b/examples/Dfp/v201302/UserService/GetAllRolesExample.php new file mode 100755 index 000000000..1114a4a3a --- /dev/null +++ b/examples/Dfp/v201302/UserService/GetAllRolesExample.php @@ -0,0 +1,72 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201302'); + + // 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"; + } + } + print 'Number of results found: ' . sizeof($roles) . "\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/v201302/UserService/GetAllUsersExample.php b/examples/Dfp/v201302/UserService/GetAllUsersExample.php new file mode 100755 index 000000000..89fe7bcba --- /dev/null +++ b/examples/Dfp/v201302/UserService/GetAllUsersExample.php @@ -0,0 +1,87 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201302'); + + // Set defaults for page and statement. + $page = new UserPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all users. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201302/UserService/GetCurrentUserExample.php b/examples/Dfp/v201302/UserService/GetCurrentUserExample.php new file mode 100755 index 000000000..f66ee180a --- /dev/null +++ b/examples/Dfp/v201302/UserService/GetCurrentUserExample.php @@ -0,0 +1,65 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201302'); + + // Get the current user. + $usr = $userService->getCurrentUser(); + + printf("User with ID '%s', email '%s', and role '%s' was found.\n", + $usr->id, $usr->email, $usr->roleName); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/UserService/GetUserExample.php b/examples/Dfp/v201302/UserService/GetUserExample.php new file mode 100755 index 000000000..67876a2a1 --- /dev/null +++ b/examples/Dfp/v201302/UserService/GetUserExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201302'); + + // Set the ID of the user to get. + $userId = 'INSERT_USER_ID_HERE'; + + // Get the user. + $usr = $userService->getUser($userId); + + // Display results. + if (isset($usr)) { + print 'User with ID "' . $usr->id + . '", email "' . $usr->email + . '", and role "' . $usr->roleName . "\" was found.\n"; + } else { + print "No user found for this ID.\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/v201302/UserService/GetUsersByStatementExample.php b/examples/Dfp/v201302/UserService/GetUsersByStatementExample.php new file mode 100755 index 000000000..63ef8b061 --- /dev/null +++ b/examples/Dfp/v201302/UserService/GetUsersByStatementExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201302'); + + // 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/v201302/UserService/UpdateUsersExample.php b/examples/Dfp/v201302/UserService/UpdateUsersExample.php new file mode 100755 index 000000000..c2098bd04 --- /dev/null +++ b/examples/Dfp/v201302/UserService/UpdateUsersExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201302'); + + // Create a statement to get all users. + $filterStatement = new Statement('LIMIT 500'); + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + if (isset($page->results)) { + $users = $page->results; + + // Update each local user object by changing its name. + foreach ($users as $usr) { + $usr->name .= ' Sr.'; + } + + // Update the users on the server. + $users = $userService->updateUsers($users); + + // 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"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/UserTeamAssociationService/CreateUserTeamAssociationsExample.php b/examples/Dfp/v201302/UserTeamAssociationService/CreateUserTeamAssociationsExample.php new file mode 100755 index 000000000..18dad7a37 --- /dev/null +++ b/examples/Dfp/v201302/UserTeamAssociationService/CreateUserTeamAssociationsExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201302'); + + // Set the team ID and user IDs to associate together. + $teamId = 'INSERT_TEAM_ID_HERE'; + $userIds = array('INSERT_USER_ID_HERE'); + + // Create an array to store local user team association objects. + $utas = array(); + + // For each user, associate it with the given team. + foreach ($userIds as $userId) { + // Create local user team association. + $uta = new UserTeamAssociation(); + $uta->teamId = $teamId; + $uta->userId = $userId; + $utas[] = $uta; + } + + // Create the user team associations on the server. + $utas = $userTeamAssociationService->createUserTeamAssociations($utas); + + // Display results. + if (isset($utas)) { + foreach ($utas as $uta) { + print 'A user team association between user with ID "' . $uta->userId + . '" and team with ID "' . $uta->teamId + . "\" was created.\n"; + } + } else { + print "No user team associations created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php b/examples/Dfp/v201302/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php new file mode 100755 index 000000000..378d9d0f5 --- /dev/null +++ b/examples/Dfp/v201302/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201302'); + + // Set the user to remove from its teams. + $userId = 'INSERT_USER_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('userId' => new NumberValue($userId))); + + // Create statement text to select user team associations by the user ID. + $filterStatementText = "WHERE userId = :userId "; + + $offset = 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); + + // 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 + . "\" will be deleted.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of user team associations to be deleted: ' . $i . "\n"; + + if ($i > 0) { + // Create action statement. + $filterStatementText = 'WHERE userId = :userId '; + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeleteUserTeamAssociations(); + + // Perform action. + $result = $userTeamAssociationService->performUserTeamAssociationAction( + $action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of user team associations deleted: ' + . $result->numChanges . "\n"; + } else { + print "No user team associations were deleted.\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/v201302/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php b/examples/Dfp/v201302/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php new file mode 100755 index 000000000..91e7fde10 --- /dev/null +++ b/examples/Dfp/v201302/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201302'); + + // Set defaults for page and statement. + $page = new UserTeamAssociationPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all user team associations. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201302/UserTeamAssociationService/GetUserTeamAssociationExample.php b/examples/Dfp/v201302/UserTeamAssociationService/GetUserTeamAssociationExample.php new file mode 100755 index 000000000..ff0d86d9d --- /dev/null +++ b/examples/Dfp/v201302/UserTeamAssociationService/GetUserTeamAssociationExample.php @@ -0,0 +1,79 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201302'); + + // Set the IDs of the user and team to get the association for. + $userId = 'INSERT_USER_ID_HERE'; + $teamId = 'INSERT_TEAM_ID_HERE'; + + // Get the user team association. + $uta = $userTeamAssociationService->getUserTeamAssociation($teamId, + $userId); + + // Display results. + if (isset($uta)) { + print 'User team association between user with ID "' . $uta->userId + . '" and team with ID "' . $uta->teamId + . "\" was found.\n"; + } else { + print "No user team association found for this ID.\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/v201302/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php b/examples/Dfp/v201302/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php new file mode 100755 index 000000000..df71445cf --- /dev/null +++ b/examples/Dfp/v201302/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = $user->GetService('UserTeamAssociationService', + 'v201302'); + + // Get the UserService. + $userService = $user->GetService("UserService", "v201302"); + + // 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/v201302/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php b/examples/Dfp/v201302/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php new file mode 100755 index 000000000..12c99d608 --- /dev/null +++ b/examples/Dfp/v201302/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php @@ -0,0 +1,102 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201302'); + + // Set the user to set to read only access within its teams. + $userId = "INSERT_USER_ID_HERE"; + + // 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); + + $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( + $filterStatement); + + if (isset($page->results)) { + $utas = $page->results; + + // Update each local user team association to read only access. + foreach ($utas as $uta) { + $uta->overriddenTeamAccessType = 'READ_ONLY'; + } + + // Update the user team associations on the server. + $utas = $userTeamAssociationService->updateUserTeamAssociations($utas); + + // 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"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/ActivityGroupService/CreateActivityGroups.php b/examples/Dfp/v201306/ActivityGroupService/CreateActivityGroups.php new file mode 100755 index 000000000..297f3ec00 --- /dev/null +++ b/examples/Dfp/v201306/ActivityGroupService/CreateActivityGroups.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the ActivityGroupService. + $activityGroupService = $user->GetService('ActivityGroupService', 'v201306'); + + // Set the ID of the advertiser company this activity group is associated + // with. + $advertiserCompanyId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create a short-term activity group. + $shortTermActivityGroup = new ActivityGroup(); + $shortTermActivityGroup->name = sprintf('Short-term activity group #%s', + uniqid()); + $shortTermActivityGroup->companyIds = array($advertiserCompanyId); + $shortTermActivityGroup->clicksLookback = 1; + $shortTermActivityGroup->impressionsLookback = 1; + + // Create a long-term activity group. + $longTermActivityGroup = new ActivityGroup(); + $longTermActivityGroup->name = sprintf('Long-term activity group #%s', + uniqid()); + $longTermActivityGroup->companyIds = array($advertiserCompanyId); + $longTermActivityGroup->clicksLookback = 30; + $longTermActivityGroup->impressionsLookback = 30; + + // Create the activity groups on the server. + $activityGroups = $activityGroupService->createActivityGroups( + array($shortTermActivityGroup, $longTermActivityGroup)); + + // Display results. + if (isset($activityGroups)) { + foreach ($activityGroups as $activityGroup) { + printf("An activity group with ID \"%d\" and name \"%s\" was created.\n", + $activityGroup->id, $activityGroup->name); + } + } else { + printf("No activity groups were created.\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/v201306/ActivityGroupService/GetActiveActivityGroups.php b/examples/Dfp/v201306/ActivityGroupService/GetActiveActivityGroups.php new file mode 100755 index 000000000..d693837b2 --- /dev/null +++ b/examples/Dfp/v201306/ActivityGroupService/GetActiveActivityGroups.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ActivityGroupService. + $activityGroupService = $user->GetService('ActivityGroupService', 'v201306'); + + // 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; + + $page = new ActivityGroupPage(); + + 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)); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $activityGroup) { + 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); + + printf("Number of results found: %d\n", $page->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/v201306/ActivityGroupService/GetAllActivityGroups.php b/examples/Dfp/v201306/ActivityGroupService/GetAllActivityGroups.php new file mode 100755 index 000000000..90b4f0841 --- /dev/null +++ b/examples/Dfp/v201306/ActivityGroupService/GetAllActivityGroups.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the ActivityGroupService. + $activityGroupService = $user->GetService('ActivityGroupService', 'v201306'); + + // 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; + + $page = new ActivityGroupPage(); + + do { + // Get activity groups by statement. + $page = $activityGroupService->getActivityGroupsByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $activityGroup) { + 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); + + printf("Number of results found: %d\n", $page->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/v201306/ActivityGroupService/UpdateActivityGroups.php b/examples/Dfp/v201306/ActivityGroupService/UpdateActivityGroups.php new file mode 100755 index 000000000..169ecf089 --- /dev/null +++ b/examples/Dfp/v201306/ActivityGroupService/UpdateActivityGroups.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the ActivityGroupService. + $activityGroupService = $user->GetService('ActivityGroupService', 'v201306'); + + // 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'; + + // Get the activity group. + $activityGroup = $activityGroupService->getActivityGroup($activityGroupId); + + // Update the companies. + $activityGroup->companyIds[] = $advertiserCompanyId; + + // Update the activity groups on the server. + $activityGroups = $activityGroupService->updateActivityGroups(array($activityGroup)); + + // Display results. + if (isset($activityGroups)) { + foreach ($activityGroups as $updatedActivityGroup) { + printf("Activity group with ID \"%d\" and name \"%s\" was updated.\n", + $updatedActivityGroup->id, $updatedActivityGroup->name); + } + } else { + printf("No activity groups were updated.\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/v201306/ActivityService/CreateActivities.php b/examples/Dfp/v201306/ActivityService/CreateActivities.php new file mode 100755 index 000000000..c48c17faa --- /dev/null +++ b/examples/Dfp/v201306/ActivityService/CreateActivities.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201306'); + + // Set the ID of the activity group this activity is associated with. + $activityGroupId = 'INSERT_ACTIVITY_GROUP_ID_HERE'; + + // Create a daily visits activity. + $dailyVisitsActivity = new Activity(); + $dailyVisitsActivity->name = sprintf('Activity #%s', uniqid()); + $dailyVisitsActivity->activityGroupId = $activityGroupId; + $dailyVisitsActivity->type = 'DAILY_VISITS'; + + // Create a custom activity. + $customActivity = new Activity(); + $customActivity->name = sprintf('Activity #%s', uniqid()); + $customActivity->activityGroupId = $activityGroupId; + $customActivity->type = 'CUSTOM'; + + // Create the activities on the server. + $activities = $activityService->createActivities( + array($dailyVisitsActivity, $customActivity)); + + // Display results. + if (isset($activities)) { + foreach ($activities as $activity) { + printf("An activity with ID \"%d\", name \"%s\", and type \"%s\" was " . + "created.\n", $activity->id, $activity->name, $activity->type); + } + } else { + printf("No activities were created.\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/v201306/ActivityService/GetActiveActivities.php b/examples/Dfp/v201306/ActivityService/GetActiveActivities.php new file mode 100755 index 000000000..49aec1e6b --- /dev/null +++ b/examples/Dfp/v201306/ActivityService/GetActiveActivities.php @@ -0,0 +1,96 @@ +LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201306'); + + // Set the ID of the activity group these activities are associated with. + $activityGroupId = 'INSERT_ACTIVITY_GROUP_ID_HERE'; + + // Statement parts to help build a statement that only selects active + // activities. + $pqlTemplate = 'WHERE activityGroupId = :activityGroupId and status = ' . + ':status ORDER BY id LIMIT %d OFFSET %d'; + $STATUS = 'ACTIVE'; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + + $page = new ActivityPage(); + + do { + // Get activities by statement. + $vars = MapUtils::GetMapEntries(array('activityGroupId' => + new NumberValue($activityGroupId), 'status' => new TextValue($STATUS))); + $page = $activityService->getActivitiesByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), $vars)); + + // Display results. + if (isset($page->results)) { + $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); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->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/v201306/ActivityService/GetAllActivities.php b/examples/Dfp/v201306/ActivityService/GetAllActivities.php new file mode 100755 index 000000000..22822397e --- /dev/null +++ b/examples/Dfp/v201306/ActivityService/GetAllActivities.php @@ -0,0 +1,136 @@ +GetService('ActivityGroupService', + 'v201306'); + + // 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; + + $page = new ActivityGroupPage(); + + do { + // Get activity groups by statement. + $page = $activityGroupService->getActivityGroupsByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + + // Display results. + if (isset($page->results)) { + foreach ($page->results as $activityGroup) { + $activityGroupIds[] = $activityGroup->id; + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + return $activityGroupIds; +} + +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->LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201306'); + + // Statement parts to help build a statement to get all activities for an + // activity group. + $pqlTemplate = 'WHERE activityGroupId = :activityGroupId ORDER BY id LIMIT ' . + '%d OFFSET %d'; + $SUGGESTED_PAGE_LIMIT = 500; + + $totalResultsCounter = 0; + + $activityGroupIds = getAllActivityGroupIds($user); + + foreach ($activityGroupIds as $activityGroupId) { + // Set the activity group ID to select from. + $vars = MapUtils::GetMapEntries(array('activityGroupId' => + new NumberValue($activityGroupId))); + + $page = new ActivityPage(); + $offset = 0; + + do { + // Get activities by statement. + $page = $activityService->getActivitiesByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), $vars)); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $activity) { + printf("%d) Activity with ID \"%d\", name \"%s\", type \"%s\", and " . + "activity group ID \"%d\" was found.\n", $totalResultsCounter++, + $activity->id, $activity->name, $activity->type, + $activityGroupId); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->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()); +} + diff --git a/examples/Dfp/v201306/ActivityService/UpdateActivities.php b/examples/Dfp/v201306/ActivityService/UpdateActivities.php new file mode 100755 index 000000000..cdcab1233 --- /dev/null +++ b/examples/Dfp/v201306/ActivityService/UpdateActivities.php @@ -0,0 +1,83 @@ +LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201306'); + + // Set the ID of the activity to update. + $activityId = 'INSERT_ACTIVITY_ID_HERE'; + + // Get the activity. + $activity = $activityService->getActivity($activityId); + + // Update the expected URL. + $activity->expectedURL = 'https://google.com'; + + // Update the activity on the server. + $activities = $activityService->updateActivities(array($activity)); + + // Display results. + if (isset($activities)) { + foreach ($activities as $updatedActivity) { + printf("Activity with ID \"%d\" and name \"%s\" was updated.\n", + $updatedActivity->id, $updatedActivity->name); + } + } else { + printf("No activities were updated.\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/v201306/AudienceSegmentService/GetAllAudienceSegmentsExample.php b/examples/Dfp/v201306/AudienceSegmentService/GetAllAudienceSegmentsExample.php new file mode 100755 index 000000000..e828364c1 --- /dev/null +++ b/examples/Dfp/v201306/AudienceSegmentService/GetAllAudienceSegmentsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the AudienceSegmentService. + $audienceSegmentService = $user->GetService('AudienceSegmentService', + 'v201306'); + + // Set defaults for page and statement. + $page = new AudienceSegmentPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all audience segments. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get audience segments by statement. + $page = $audienceSegmentService->getAudienceSegmentsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $audienceSegment) { + print $i . ') Audience segment with ID "' + . $audienceSegment->id . '", and name "' . $audienceSegment->name + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201306/CompanyService/CreateCompaniesExample.php b/examples/Dfp/v201306/CompanyService/CreateCompaniesExample.php new file mode 100755 index 000000000..413e007e9 --- /dev/null +++ b/examples/Dfp/v201306/CompanyService/CreateCompaniesExample.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201306'); + + // Create an array to store local company objects. + $companies = array(); + + for ($i = 0; $i < 5; $i++) { + $company = new Company(); + $company->name = 'Advertiser #' . $i; + $company->type = 'ADVERTISER'; + + $companies[] = $company; + } + + // Create the companies on the server. + $companies = $companyService->createCompanies($companies); + + // Display results. + if (isset($companies)) { + foreach ($companies as $company) { + print 'A company with ID "' . $company->id + . '", name "'. $company->name + . '", and type "' . $company->type . "\" was created.\n"; + } + } else { + print "No companies created.\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/v201306/CompanyService/GetAllCompaniesExample.php b/examples/Dfp/v201306/CompanyService/GetAllCompaniesExample.php new file mode 100755 index 000000000..b4265f95b --- /dev/null +++ b/examples/Dfp/v201306/CompanyService/GetAllCompaniesExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201306'); + + // Set defaults for page and statement. + $page = new CompanyPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all companies. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get companies by statement. + $page = $companyService->getCompaniesByStatement($filterStatement); + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201306/CompanyService/GetCompaniesByStatementExample.php b/examples/Dfp/v201306/CompanyService/GetCompaniesByStatementExample.php new file mode 100755 index 000000000..9c4f9ef15 --- /dev/null +++ b/examples/Dfp/v201306/CompanyService/GetCompaniesByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201306'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('type' => new TextValue('ADVERTISER'))); + + // 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 companies by statement. + $page = $companyService->getCompaniesByStatement($filterStatement); + + // 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++; + } + } + + 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/v201306/CompanyService/GetCompanyExample.php b/examples/Dfp/v201306/CompanyService/GetCompanyExample.php new file mode 100755 index 000000000..08d843b24 --- /dev/null +++ b/examples/Dfp/v201306/CompanyService/GetCompanyExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201306'); + + // Set the ID of the company to get. + $companyId = 'INSERT_COMPANY_ID_HERE'; + + // Get the company. + $company = $companyService->getCompany($companyId); + + // Display results. + if (isset($company)) { + print 'Company with ID "' . $company->id + . '", name "' . $company->name + . '", and type "' . $company->type . "\" was found.\n"; + } else { + print "No company found for this ID.\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/v201306/CompanyService/UpdateCompaniesExample.php b/examples/Dfp/v201306/CompanyService/UpdateCompaniesExample.php new file mode 100755 index 000000000..795a562e0 --- /dev/null +++ b/examples/Dfp/v201306/CompanyService/UpdateCompaniesExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201306'); + + // 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/v201306/ContactService/CreateContacts.php b/examples/Dfp/v201306/ContactService/CreateContacts.php new file mode 100755 index 000000000..67817b234 --- /dev/null +++ b/examples/Dfp/v201306/ContactService/CreateContacts.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201306'); + + // Set the ID of the advertiser company this contact is associated with. + $advertiserCompanyId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Set the ID of the agency company this contact is associated with. + $agencyCompanyId = 'INSERT_AGENCY_COMPANY_ID_HERE'; + + // Create an advertiser contact. + $advertiserContact = new Contact(); + $advertiserContact->name = sprintf('Mr. Advertiser #%s', uniqid()); + $advertiserContact->email = 'advertiser@advertising.com'; + $advertiserContact->companyId = $advertiserCompanyId; + + // Create an agency contact. + $agencyContact = new Contact(); + $agencyContact->name = sprintf('Ms. Agency #%s', uniqid()); + $agencyContact->email = 'agency@agencies.com'; + $agencyContact->companyId = $agencyCompanyId; + + // Create the contacts on the server. + $contacts = $contactService->createContacts(array($advertiserContact, + $agencyContact)); + + // Display results. + if (isset($contacts)) { + foreach ($contacts as $contact) { + printf("A contact with ID \"%d\" and name \"%s\" was created.\n", + $contact->id, $contact->name); + } + } else { + printf("No contacts were created.\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/v201306/ContactService/GetAllContacts.php b/examples/Dfp/v201306/ContactService/GetAllContacts.php new file mode 100755 index 000000000..68afb5ca5 --- /dev/null +++ b/examples/Dfp/v201306/ContactService/GetAllContacts.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201306'); + + // 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; + + $page = new ContactPage(); + + do { + // Get contacts by statement. + $page = $contactService->getContactsByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $contact) { + 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); + + printf("Number of results found: %d\n", $page->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/v201306/ContactService/GetUninvitedContacts.php b/examples/Dfp/v201306/ContactService/GetUninvitedContacts.php new file mode 100755 index 000000000..c28b29cd0 --- /dev/null +++ b/examples/Dfp/v201306/ContactService/GetUninvitedContacts.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201306'); + + // 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; + + $page = new ContactPage(); + + 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)); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $contact) { + 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); + + printf("Number of results found: %d\n", $page->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/v201306/ContactService/UpdateContacts.php b/examples/Dfp/v201306/ContactService/UpdateContacts.php new file mode 100755 index 000000000..1eedb8abe --- /dev/null +++ b/examples/Dfp/v201306/ContactService/UpdateContacts.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201306'); + + // Set the ID of the contact to update. + $contactId = "INSERT_CONTACT_ID_HERE"; + + // Get the contact. + $contact = $contactService->getContact($contactId); + + // Update the address on the contact. + $contact->address = '123 New Street, New York, NY, 10011'; + + // Update the contact on the server. + $contacts = $contactService->updateContacts(array($contact)); + + // Display results. + if (isset($contacts)) { + foreach ($contacts as $updatedContact) { + printf("Contact with ID \"%d\", name \"%s\", and address \"%s\" was " . + "updated.\n", $updatedContact->id, $updatedContact->name, + $updatedContact->address); + } + } else { + printf("No contacts were updated.\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/v201306/ContentService/GetAllContentExample.php b/examples/Dfp/v201306/ContentService/GetAllContentExample.php new file mode 100755 index 000000000..780599e20 --- /dev/null +++ b/examples/Dfp/v201306/ContentService/GetAllContentExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the ContentService. + $contentService = $user->GetService('ContentService', 'v201306'); + + // Set defaults for page and statement. + $page = new ContentPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all content. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get content by statement. + $page = $contentService->getContentByStatement($filterStatement); + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201306/ContentService/GetContentByCategoryExample.php b/examples/Dfp/v201306/ContentService/GetContentByCategoryExample.php new file mode 100755 index 000000000..867b3c164 --- /dev/null +++ b/examples/Dfp/v201306/ContentService/GetContentByCategoryExample.php @@ -0,0 +1,113 @@ +LogDefaults(); + + // Get the ContentService. + $contentService = $user->GetService('ContentService', 'v201306'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201306'); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201306'); + + // 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/v201306/CreativeService/AssociateCreativeSetToLineItemExample.php b/examples/Dfp/v201306/CreativeService/AssociateCreativeSetToLineItemExample.php new file mode 100755 index 000000000..b948752cd --- /dev/null +++ b/examples/Dfp/v201306/CreativeService/AssociateCreativeSetToLineItemExample.php @@ -0,0 +1,78 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = $user->GetService('LineItemCreativeAssociationService', + 'v201306'); + + // 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/v201306/CreativeService/CreateCreativeFromTemplateExample.php b/examples/Dfp/v201306/CreativeService/CreateCreativeFromTemplateExample.php new file mode 100755 index 000000000..5240fb07c --- /dev/null +++ b/examples/Dfp/v201306/CreativeService/CreateCreativeFromTemplateExample.php @@ -0,0 +1,129 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201306'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Use the image banner with optional third party tracking template. + $creativeTemplateId = 10000680; + + // Create the local custom creative object. + $templateCreative = new TemplateCreative(); + $templateCreative->name = 'Template creative'; + $templateCreative->advertiserId = $advertiserId; + $templateCreative->creativeTemplateId = $creativeTemplateId; + + // Set the creative size. + $templateCreative->size = new Size(300, 250, FALSE); + + // Create the asset variable value. + $assetVariableValue = new AssetCreativeTemplateVariableValue(); + $assetVariableValue->uniqueName = 'Imagefile'; + $assetVariableValue->assetByteArray = MediaUtils::GetBase64Data( + 'http://www.google.com/intl/en/adwords/select/images/samples/inline.jpg'); + // Filenames must be unique. + $assetVariableValue->fileName = sprintf('image%s.jpg', uniqid()); + $templateCreative->creativeTemplateVariableValues[] = $assetVariableValue; + + // Create the image width variable value. + $imageWidthVariableValue = new LongCreativeTemplateVariableValue(); + $imageWidthVariableValue->uniqueName = 'Imagewidth'; + $imageWidthVariableValue->value = 300; + $templateCreative->creativeTemplateVariableValues[] = + $imageWidthVariableValue; + + // Create the image height variable value. + $imageHeightVariableValue = new LongCreativeTemplateVariableValue(); + $imageHeightVariableValue->uniqueName = 'Imageheight'; + $imageHeightVariableValue->value = 250; + $templateCreative->creativeTemplateVariableValues[] = + $imageHeightVariableValue; + + // Create the URL variable value. + $urlVariableValue = new UrlCreativeTemplateVariableValue(); + $urlVariableValue->uniqueName = 'ClickthroughURL'; + $urlVariableValue->value = 'www.google.com'; + $templateCreative->creativeTemplateVariableValues[] = $urlVariableValue; + + // Create the target window variable value. + $targetWindowVariableValue = new StringCreativeTemplateVariableValue(); + $targetWindowVariableValue->uniqueName = 'Targetwindow'; + $targetWindowVariableValue->value = '_blank'; + $templateCreative->creativeTemplateVariableValues[] = + $targetWindowVariableValue; + + // Create the template creative on the server. + $templateCreative = $creativeService->createCreative($templateCreative); + + // Display results. + if (isset($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->previewUrl); + } else { + print "No creative was created.\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/v201306/CreativeService/CreateCreativesExample.php b/examples/Dfp/v201306/CreativeService/CreateCreativesExample.php new file mode 100755 index 000000000..e27a9e636 --- /dev/null +++ b/examples/Dfp/v201306/CreativeService/CreateCreativesExample.php @@ -0,0 +1,119 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201306'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create an array to store local image creative objects. + $imageCreatives = array(); + + for ($i = 0; $i < 5; $i++) { + // Create creative size. + $size = new Size(300, 250); + + // Create an image creative. + $imageCreative = new ImageCreative(); + $imageCreative->name = 'Image creative #' . $i; + $imageCreative->advertiserId = $advertiserId; + $imageCreative->destinationUrl = 'http://google.com'; + $imageCreative->size = $size; + + // Create image asset. + $creativeAsset = new CreativeAsset(); + $creativeAsset->fileName = 'image.jpg'; + $creativeAsset->assetByteArray = + MediaUtils::GetBase64Data('http://www.google.com/intl/en/adwords/' + . 'select/images/samples/inline.jpg'); + $creativeAsset->size = $size; + $imageCreative->primaryImageAsset = $creativeAsset; + + $imageCreatives[] = $imageCreative; + } + + // Create the image creatives on the server. + $imageCreatives = $creativeService->createCreatives($imageCreatives); + + // Display results. + if (isset($imageCreatives)) { + 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"; + } else { + print 'A creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType + . "\" was created.\n"; + } + } + } else { + print "No creatives created.\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/v201306/CreativeService/CreateCustomCreativeExample.php b/examples/Dfp/v201306/CreativeService/CreateCustomCreativeExample.php new file mode 100755 index 000000000..0397dfba7 --- /dev/null +++ b/examples/Dfp/v201306/CreativeService/CreateCustomCreativeExample.php @@ -0,0 +1,103 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201306'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create the local custom creative object. + $customCreative = new CustomCreative(); + $customCreative->name = 'Custom creative'; + $customCreative->advertiserId = $advertiserId; + $customCreative->destinationUrl = 'http://google.com'; + + // Set the custom creative image asset. + $customCreativeAsset = new CustomCreativeAsset(); + $customCreativeAsset->macroName = 'IMAGE_ASSET'; + // Filenames must be unique. + $customCreativeAsset->fileName = sprintf('inline%s.jpg', uniqid()); + $customCreativeAsset->assetByteArray = MediaUtils::GetBase64Data( + 'http://www.google.com/intl/en/adwords/select/images/samples/inline.jpg'); + $customCreative->customCreativeAssets = array($customCreativeAsset); + + // Set the HTML snippet using the custom creative asset macro. + $customCreative->htmlSnippet = '' + . '' + . '
Click above for great deals!'; + + // Set the creative size. + $customCreative->size = new Size(300, 250, FALSE); + + // Create the custom creative on the server. + $customCreative = $creativeService->createCreative($customCreative); + + // Display results. + if (isset($customCreative)) { + printf("A custom creative with ID '%s', name '%s', and size '%sx%s' was " + . "created and can be previewed at: %s\n", $templateCreative->id, + $templateCreative->name, $templateCreative->size->width, + $templateCreative->size->height, $templateCreative->previewUrl); + } else { + print "No creative was created.\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/v201306/CreativeService/GetAllCreativesExample.php b/examples/Dfp/v201306/CreativeService/GetAllCreativesExample.php new file mode 100755 index 000000000..503cd7430 --- /dev/null +++ b/examples/Dfp/v201306/CreativeService/GetAllCreativesExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201306'); + + // Set defaults for page and statement. + $page = new CreativePage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all creatives. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201306/CreativeService/GetCreativeExample.php b/examples/Dfp/v201306/CreativeService/GetCreativeExample.php new file mode 100755 index 000000000..dda390944 --- /dev/null +++ b/examples/Dfp/v201306/CreativeService/GetCreativeExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201306'); + + // Set the ID of the creative to get. + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Get the creative. + $creative = $creativeService->getCreative($creativeId); + + // Display results. + if (isset($creative)) { + print 'Creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType . "\" was found.\n"; + } else { + print "No creative found for this ID.\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/v201306/CreativeService/GetCreativesByStatementExample.php b/examples/Dfp/v201306/CreativeService/GetCreativesByStatementExample.php new file mode 100755 index 000000000..a5fb59495 --- /dev/null +++ b/examples/Dfp/v201306/CreativeService/GetCreativesByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201306'); + + // 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/v201306/CreativeService/UpdateCreativesExample.php b/examples/Dfp/v201306/CreativeService/UpdateCreativesExample.php new file mode 100755 index 000000000..845e6fe16 --- /dev/null +++ b/examples/Dfp/v201306/CreativeService/UpdateCreativesExample.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201306'); + + // Create a statement to get all image creatives. + $filterStatement = + new Statement("WHERE creativeType = 'ImageCreative' LIMIT 500"); + + // Get creatives by statement. + $page = $creativeService->getCreativesByStatement($filterStatement); + + if (isset($page->results)) { + $creatives = $page->results; + + // Update each local creative object by changing its destination URL. + foreach ($creatives as $creative) { + $creative->destinationUrl = 'http://news.google.com'; + } + + // Update the creatives on the server. + $creatives = $creativeService->updateCreatives($creatives); + + // 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"; + } + } else { + print "No creatives 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/v201306/CreativeSetService/CreateCreativeSetExample.php b/examples/Dfp/v201306/CreativeSetService/CreateCreativeSetExample.php new file mode 100755 index 000000000..fb3582225 --- /dev/null +++ b/examples/Dfp/v201306/CreativeSetService/CreateCreativeSetExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201306'); + + // Set the ID of the creatives to associate with this set. + $masterCreativeID = 'INSERT_MASTER_CREATIVE_ID_HERE'; + $companionCreativeID = 'INSERT_COMPANION_CREATIVE_ID_HERE'; + + // Create a local creative set. + $creativeSet = new CreativeSet(); + $creativeSet->name = 'Creative set #' . uniqid(); + $creativeSet->masterCreativeId = $masterCreativeID; + $creativeSet->companionCreativeIds = array(); + $creativeSet->companionCreativeIds[] = $companionCreativeID; + + // Create the creative set on the server. + $creativeSet = $creativeSetService->createCreativeSet($creativeSet); + + // Display results. + if (isset($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)); + } else { + print "No creative set created.\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/v201306/CreativeSetService/GetAllCreativesSetsExample.php b/examples/Dfp/v201306/CreativeSetService/GetAllCreativesSetsExample.php new file mode 100755 index 000000000..e6092f234 --- /dev/null +++ b/examples/Dfp/v201306/CreativeSetService/GetAllCreativesSetsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201306'); + + // Set default offset. + $offset = 0; + $filterStatement = new Statement(); + + do { + // Create a statement to get all creative sets. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201306/CreativeSetService/GetCreativeSetsByStatementExample.php b/examples/Dfp/v201306/CreativeSetService/GetCreativeSetsByStatementExample.php new file mode 100755 index 000000000..77200806f --- /dev/null +++ b/examples/Dfp/v201306/CreativeSetService/GetCreativeSetsByStatementExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201306'); + + $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/v201306/CreativeSetService/UpdateCreativeSetExample.php b/examples/Dfp/v201306/CreativeSetService/UpdateCreativeSetExample.php new file mode 100755 index 000000000..1c1336239 --- /dev/null +++ b/examples/Dfp/v201306/CreativeSetService/UpdateCreativeSetExample.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201306'); + + # Set the ID of the creative set to get. + $creativeSetID = 'INSERT_CREATIVE_SET_ID_HERE'; + $companionCreativeID = 'INSERT_COMPANION_CREATIVE_ID_HERE'; + + # Get creative set. + $creativeSet = $creativeSetService->getCreativeSet($creativeSetID); + + $creativeSet->companionCreativeIds[] = $companionCreativeID; + + # Update the creative set on the server. + $creativeSet = $creativeSetService->updateCreativeSet($creativeSet); + + // Display results. + if (isset($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)); + } else { + print "No creative set 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/v201306/CreativeTemplateService/GetAllCreativeTemplatesExample.php b/examples/Dfp/v201306/CreativeTemplateService/GetAllCreativeTemplatesExample.php new file mode 100755 index 000000000..e667a6826 --- /dev/null +++ b/examples/Dfp/v201306/CreativeTemplateService/GetAllCreativeTemplatesExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201306'); + + // Set defaults for page and statement. + $page = new CreativeTemplatePage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all creative templates. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201306/CreativeTemplateService/GetCreativeTemplateExample.php b/examples/Dfp/v201306/CreativeTemplateService/GetCreativeTemplateExample.php new file mode 100755 index 000000000..5c39bc6c7 --- /dev/null +++ b/examples/Dfp/v201306/CreativeTemplateService/GetCreativeTemplateExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201306'); + + // Set the ID of the creative template to get. + $creativeTemplateId = 'INSERT_CREATIVE_TEMPLATE_ID_HERE'; + + // Get the creative template. + $creativeTemplate = + $creativeTemplateService->getCreativeTemplate($creativeTemplateId); + + // Display results. + if (isset($creativeTemplate)) { + printf("Creative template with ID '%s', name '%s', and type '%s' was " + ."found.\n", $creativeTemplate->id, $creativeTemplate->name, + $creativeTemplate->type); + } else { + print "No creative template found for this ID.\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/v201306/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php b/examples/Dfp/v201306/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php new file mode 100755 index 000000000..c0e3bcef5 --- /dev/null +++ b/examples/Dfp/v201306/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201306'); + + // 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/v201306/CreativeWrapperService/CreateCreativeWrappersExample.php b/examples/Dfp/v201306/CreativeWrapperService/CreateCreativeWrappersExample.php new file mode 100755 index 000000000..704424a7f --- /dev/null +++ b/examples/Dfp/v201306/CreativeWrapperService/CreateCreativeWrappersExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201306'); + + $labelId = 'INSERT_CREATIVE_WRAPPER_LABEL_ID_HERE'; + + // Create creative wrapper objects. + $creativeWrapper = new CreativeWrapper(); + $creativeWrapper->labelId = $labelId; + $creativeWrapper->ordering = 'INNER'; + $creativeWrapper->header = new CreativeWrapperHtmlSnippet; + $creativeWrapper->header->htmlSnippet = 'My creative wrapper header'; + $creativeWrapper->footer = new CreativeWrapperHtmlSnippet; + $creativeWrapper->footer->htmlSnippet = 'My creative wrapper footer'; + + // Create the creative wrappers on the server. + $creativeWrappers = + $creativeWrapperService->CreateCreativeWrappers(array($creativeWrapper)); + + // Display results. + if (isset($creativeWrappers)) { + foreach ($creativeWrappers as $creativeWrapper) { + printf("Creative wrapper with ID '%d' applying to label '%d' was" . + " created.\n", $creativeWrapper->id, $creativeWrapper->labelId); + } + } else { + print "No creative wrappers were created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201306/CreativeWrapperService/DeactivateCreativeWrapperExample.php b/examples/Dfp/v201306/CreativeWrapperService/DeactivateCreativeWrapperExample.php new file mode 100755 index 000000000..491705ca6 --- /dev/null +++ b/examples/Dfp/v201306/CreativeWrapperService/DeactivateCreativeWrapperExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201306'); + + $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/v201306/CreativeWrapperService/GetActiveCreativeWrappersExample.php b/examples/Dfp/v201306/CreativeWrapperService/GetActiveCreativeWrappersExample.php new file mode 100755 index 000000000..36633920f --- /dev/null +++ b/examples/Dfp/v201306/CreativeWrapperService/GetActiveCreativeWrappersExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201306'); + + // Create a statement to select only active creative wrappers. + $vars = MapUtils::GetMapEntries(array('status' => new TextValue('ACTIVE'))); + $filterStatement = + new Statement('WHERE status = :status', $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' 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/v201306/CreativeWrapperService/GetAllCreativeWrappersExample.php b/examples/Dfp/v201306/CreativeWrapperService/GetAllCreativeWrappersExample.php new file mode 100755 index 000000000..4d62235b7 --- /dev/null +++ b/examples/Dfp/v201306/CreativeWrapperService/GetAllCreativeWrappersExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201306'); + + // 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/v201306/CreativeWrapperService/UpdateCreativeWrappersExample.php b/examples/Dfp/v201306/CreativeWrapperService/UpdateCreativeWrappersExample.php new file mode 100755 index 000000000..91bd68209 --- /dev/null +++ b/examples/Dfp/v201306/CreativeWrapperService/UpdateCreativeWrappersExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201306'); + + $creativeWrapperId = 'INSERT_CREATIVE_WRAPPER_ID_HERE'; + + // Get creative wrapper. + $creativeWrapper = + $creativeWrapperService->getCreativeWrapper($creativeWrapperId); + + if (isset($creativeWrapper)) { + $creativeWrapper->ordering = 'OUTER'; + + // Update the creative wrappers on the server. + $creativeWrappers = + $creativeWrapperService-> + updateCreativeWrappers(array($creativeWrapper)); + + // Display results. + if (isset($creativeWrappers)) { + foreach ($creativeWrappers as $creativeWrapper) { + printf("Creative wrapper with ID '%s' and wrapping order '%s' was" . + " updated.\n", $creativeWrapper->id, $creativeWrapper->ordering); + } + } else { + printf('No creative wrappers were updated.'); + } + } else { + print "No creative wrappers found to update."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201306/CustomFieldService/CreateCustomFieldOptions.php b/examples/Dfp/v201306/CustomFieldService/CreateCustomFieldOptions.php new file mode 100755 index 000000000..d55de6db4 --- /dev/null +++ b/examples/Dfp/v201306/CustomFieldService/CreateCustomFieldOptions.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = + $user->GetService('CustomFieldService', 'v201306'); + + // Set the ID of the drop-down custom field to create options for. + $customFieldId = "INSERT_DROP_DOWN_CUSTOM_FIELD_ID_HERE"; + + // Create custom field options. + $customFieldOption1 = new CustomFieldOption(); + $customFieldOption1->displayName = 'Approved'; + $customFieldOption1->customFieldId = $customFieldId; + + $customFieldOption2 = new CustomFieldOption(); + $customFieldOption2->displayName = 'Unapproved'; + $customFieldOption2->customFieldId = $customFieldId; + + // Create the custom targeting keys on the server. + $customFieldOptions = $customFieldService->createCustomFieldOptions( + array($customFieldOption1, $customFieldOption2)); + + // Display results. + if (isset($customFieldOptions)) { + foreach ($customFieldOptions as $customFieldOption) { + printf("A custom field option with ID '%s' and name '%s' was created.\n", + $customFieldOption->id, $customFieldOption->displayName); + } + } else { + print "No custom field options were created.\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/v201306/CustomFieldService/CreateCustomFields.php b/examples/Dfp/v201306/CustomFieldService/CreateCustomFields.php new file mode 100755 index 000000000..ef891ed73 --- /dev/null +++ b/examples/Dfp/v201306/CustomFieldService/CreateCustomFields.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = + $user->GetService('CustomFieldService', 'v201306'); + + // Create custom fields. + $customField1 = new CustomField(); + $customField1->name = 'Customer comments #' . time(); + $customField1->entityType = 'LINE_ITEM'; + $customField1->dataType = 'STRING'; + $customField1->visibility = 'FULL'; + + $customField2 = new CustomField(); + $customField2->name = 'Internal approval status #' . time(); + $customField2->entityType = 'LINE_ITEM'; + $customField2->dataType = 'DROP_DOWN'; + $customField2->visibility = 'FULL'; + + // Create the custom fields on the server. + $customFields = $customFieldService->createCustomFields( + array($customField1, $customField2)); + + // Display results. + if (isset($customFields)) { + foreach ($customFields as $customField) { + printf("A custom field with ID '%s' and name '%s' was created.\n", + $customField->id, $customField->name); + } + } else { + print "No custom fields were created.\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/v201306/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php b/examples/Dfp/v201306/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php new file mode 100755 index 000000000..e18b5c7bc --- /dev/null +++ b/examples/Dfp/v201306/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php @@ -0,0 +1,123 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201306'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('entityType' => new TextValue("LINE_ITEM"), + 'isActive' => new BooleanValue("TRUE"))); + + // Create statement text to select only active custom fields that apply + // to line items. + $filterStatementText = + "WHERE entityType = :entityType and isActive = :isActive"; + $offset = 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); + + // Display results. + $customFieldIds = array(); + if (isset($page->results)) { + $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; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of custom fields to be deactivated: ' . sizeof($customFieldIds) + . "\n"; + + if (sizeof($customFieldIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $customFieldIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateCustomFields(); + + // Perform action. + $result = $customFieldService->performCustomFieldAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of custom fields deactivated: ' . $result->numChanges + . "\n"; + } else { + print "No custom fields 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/v201306/CustomFieldService/GetAllCustomFieldsExample.php b/examples/Dfp/v201306/CustomFieldService/GetAllCustomFieldsExample.php new file mode 100755 index 000000000..32e4ebbb1 --- /dev/null +++ b/examples/Dfp/v201306/CustomFieldService/GetAllCustomFieldsExample.php @@ -0,0 +1,87 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201306'); + + // Set defaults for page and statement. + $page = new CustomFieldPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all custom fields. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get custom fields by statement. + $page = $customFieldService->getCustomFieldsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $customField) { + print $i . ') Custom field with ID "' . $customField->id + . '" and name "' . $customField->name . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201306/CustomFieldService/SetLineItemCustomFieldValue.php b/examples/Dfp/v201306/CustomFieldService/SetLineItemCustomFieldValue.php new file mode 100755 index 000000000..6dcc730a5 --- /dev/null +++ b/examples/Dfp/v201306/CustomFieldService/SetLineItemCustomFieldValue.php @@ -0,0 +1,128 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201306'); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201306'); + + // Set the IDs of the custom fields, custom field option, and line item. + $customFieldId = "INSERT_CUSTOM_FIELD_ID_HERE"; + $dropDownCustomFieldId = "INSERT_DROP_DOWN_CUSTOM_FIELD_ID_HERE"; + $customFieldOptionId = "INSERT_CUSTOM_FIELD_OPTION_ID_HERE"; + $lineItemId = "INSERT_LINE_ITEM_ID_HERE"; + + // Get the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + + // Create custom field values. + $customFieldValues = array(); + + $customFieldValue = new CustomFieldValue(); + $customFieldValue->customFieldId = $customFieldId; + $customFieldValue->value = new TextValue("Custom field value"); + $customFieldValues[] = $customFieldValue; + + $dropDownCustomFieldValue = new DropDownCustomFieldValue(); + $dropDownCustomFieldValue->customFieldId = $dropDownCustomFieldId; + $dropDownCustomFieldValue->customFieldOptionId = $customFieldOptionId; + $customFieldValues[] = $dropDownCustomFieldValue; + + // Only add existing custom field values for different custom fields than + // the ones you are setting. + if (isset($lineItem->customFieldValues)) { + foreach ($lineItem->customFieldValues as $oldCustomFieldValue) { + if (($oldCustomFieldValue->customFieldId != $customFieldId) && + ($oldCustomFieldValue->customFieldId != $dropDownCustomFieldId)) { + $customFieldValues[] = $oldCustomFieldValue; + } + } + } + + $lineItem->customFieldValues = $customFieldValues; + + // Update the line item on the server. + $lineItems = $lineItemService->updateLineItems($lineItem); + + if (isset($lineItems)) { + foreach ($lineItems as $lineItem) { + $customFieldValueStrings = array(); + foreach ($lineItem->customFieldValues as $baseCustomFieldValue) { + if (($baseCustomFieldValue instanceof CustomFieldValue)) { + $customFieldValueStrings[] = "{ID: '" + . $baseCustomFieldValue->customFieldId . "', value: '" + . $baseCustomFieldValue->value->value . "'}"; + } else if ($baseCustomFieldValue instanceof DropDownCustomFieldValue) { + $customFieldValueStrings[] = "{ID: '" + . $baseCustomFieldValue->customFieldId + . "', custom field option ID: '" + . $baseCustomFieldValue->customFieldOptionId . "'}"; + } + } + print "A line item with ID '" . $lineItem->id + . "' was set with custom field values '" + . join(",", $customFieldValueStrings) . "'."; + } + } + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CustomFieldService/UpdateCustomFieldExample.php b/examples/Dfp/v201306/CustomFieldService/UpdateCustomFieldExample.php new file mode 100755 index 000000000..a6b1bf18f --- /dev/null +++ b/examples/Dfp/v201306/CustomFieldService/UpdateCustomFieldExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201306'); + + // Set the ID of the custom field to update. + $customFieldId = "INSERT_CUSTOM_FIELD_ID_HERE"; + + // Get the custom field. + $customField = $customFieldService->getCustomField($customFieldId); + + if (isset($customField)) { + $customField->description = "Description " . time(); + + $customFields = array(); + $customFields[] = $customField; + + // Update the custom field on the server. + $customFields = $customFieldService->updateCustomFields($customFields); + + // Display results. + if (isset($customFields)) { + foreach ($customFields as $customField) { + print 'Custom field with ID "' + . $customField->id . '", name "' . $customField->name + . '", and description "' . $customField->description + . "\" was updated.\n"; + } + } else { + print "No custom fields were updated.\n"; + } + } else { + print "No custom fields 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/v201306/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php b/examples/Dfp/v201306/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php new file mode 100755 index 000000000..60cf1bae3 --- /dev/null +++ b/examples/Dfp/v201306/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php @@ -0,0 +1,152 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201306'); + + // Create predefined key. + $genderKey = new CustomTargetingKey(); + $genderKey->displayName = 'gender'; + $genderKey->name = 'g'; + $genderKey->type = 'PREDEFINED'; + + // Create predefined key that may be used for content targeting. + $genreKey = new CustomTargetingKey(); + $genreKey->displayName = 'genre'; + $genreKey->name = 'genre'; + $genreKey->type = 'PREDEFINED'; + + // Create free-form key. + $carModelKey = new CustomTargetingKey(); + $carModelKey->displayName = 'car model'; + $carModelKey->name = 'c'; + $carModelKey->type = 'FREEFORM'; + + // Create the custom targeting keys on the server. + $keys = $customTargetingService->createCustomTargetingKeys( + array($genderKey, $genreKey, $carModelKey)); + + if (isset($keys)) { + foreach ($keys as $key) { + printf("A custom targeting key with ID '%s', name '%s', and display " . + "name '%s' was created.\n", $key->id, $key->name, $key->displayName); + } + } else { + print "No keys were created.\n"; + } + + // Create custom targeting value for the predefined gender key. + $genderMaleValue = new CustomTargetingValue(); + $genderMaleValue->customTargetingKeyId = $keys[0]->id; + $genderMaleValue->displayName = 'male'; + // Name is set to 1 so that the actual name can be hidden from website + // users. + $genderMaleValue->name = '1'; + $genderMaleValue->matchType = 'EXACT'; + + $genderFemaleValue = new CustomTargetingValue(); + $genderFemaleValue->customTargetingKeyId = $keys[0]->id; + $genderFemaleValue->displayName = 'female'; + // Name is set to 2 so that the actual name can be hidden from website + // users. + $genderFemaleValue->name = '2'; + $genderFemaleValue->matchType = 'EXACT'; + + // Create custom targeting value for the predefined genre key. + $genreComedyValue = new CustomTargetingValue(); + $genreComedyValue->customTargetingKeyId = $keys[1]->id; + $genreComedyValue->displayName = 'comedy'; + $genreComedyValue->name = 'comedy'; + $genreComedyValue->matchType = 'EXACT'; + + $genreDramaValue = new CustomTargetingValue(); + $genreDramaValue->customTargetingKeyId = $keys[1]->id; + $genreDramaValue->displayName = 'drama'; + $genreDramaValue->name = 'drama'; + $genreDramaValue->matchType = 'EXACT'; + + // Create custom targeting value for the free-form age key. These are + // values that would be suggested in the UI or can be used when targeting + // with a free-form custom criterion. + $carModelHondaCivicValue = new CustomTargetingValue(); + $carModelHondaCivicValue->customTargetingKeyId = $keys[2]->id; + $carModelHondaCivicValue->displayName = 'honda civic'; + $carModelHondaCivicValue->name = 'honda civic'; + // Setting match type to exact will match exactly 'honda civic'. + $carModelHondaCivicValue->matchType = 'EXACT'; + + // Create the custom targeting values on the server. + $values = $customTargetingService->createCustomTargetingValues(array( + $genderMaleValue, $genderFemaleValue, $genreComedyValue, + $genreDramaValue, $carModelHondaCivicValue)); + + if (isset($values)) { + foreach ($values as $value) { + printf("A custom targeting value with ID '%s', belonging to key " . + "with ID '%s', name '%s', and display name '%s' was created.\n", + $value->id, $value->customTargetingKeyId, $value->name, + $value->displayName); + } + } else { + print "No values were created.\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/v201306/CustomTargetingService/DeleteCustomTargetingKeysExample.php b/examples/Dfp/v201306/CustomTargetingService/DeleteCustomTargetingKeysExample.php new file mode 100755 index 000000000..420f721fc --- /dev/null +++ b/examples/Dfp/v201306/CustomTargetingService/DeleteCustomTargetingKeysExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201306'); + + // 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'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('name' => new TextValue($keyName))); + + $offset = 0; + $keyIds = array(); + + 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); + + if (isset($page->results)) { + foreach ($page->results as $customTargetingKey) { + $keyIds[] = $customTargetingKey->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + printf("Number of custom targeting keys to be deleted: %d\n", + sizeof($keyIds)); + + if (sizeof($keyIds) > 0) { + // Create action statement. + $filterStatementText = sprintf('WHERE id IN (%s)', implode(',', $keyIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeleteCustomTargetingKeys(); + + // Perform action. + $result = $customTargetingService->performCustomTargetingKeyAction( + $action, $filterStatement); + + // 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"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CustomTargetingService/DeleteCustomTargetingValuesExample.php b/examples/Dfp/v201306/CustomTargetingService/DeleteCustomTargetingValuesExample.php new file mode 100755 index 000000000..0edb8ca4d --- /dev/null +++ b/examples/Dfp/v201306/CustomTargetingService/DeleteCustomTargetingValuesExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201306'); + + // 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'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('keyId' => new NumberValue($keyId))); + + $offset = 0; + $valueIds = array(); + + 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); + + if (isset($page->results)) { + foreach ($page->results as $customTargetingValue) { + $valueIds[] = $customTargetingValue->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + printf("Number of custom targeting values to be deleted: %d\n", + sizeof($valueIds)); + + if (sizeof($valueIds) > 0) { + // Create action statement. + $filterStatementText .= sprintf(' AND id IN (%s)', implode(',', $valueIds)); + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeleteCustomTargetingValues(); + + // Perform action. + $result = $customTargetingService->performCustomTargetingValueAction( + $action, $filterStatement); + + // 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"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php b/examples/Dfp/v201306/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php new file mode 100755 index 000000000..2b09e6caa --- /dev/null +++ b/examples/Dfp/v201306/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php @@ -0,0 +1,137 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201306'); + + $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/v201306/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php b/examples/Dfp/v201306/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php new file mode 100755 index 000000000..8eb511a7f --- /dev/null +++ b/examples/Dfp/v201306/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201306'); + + // 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/v201306/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php b/examples/Dfp/v201306/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php new file mode 100755 index 000000000..ddcc2cadc --- /dev/null +++ b/examples/Dfp/v201306/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201306'); + + // Set the ID of the custom targeting key to get custom targeting values for. + $keyId = '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($keyId)))); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingValuesByStatement( + $filterStatement); + + // 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++; + } + } + + 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/v201306/CustomTargetingService/UpdateCustomTargetingKeysExample.php b/examples/Dfp/v201306/CustomTargetingService/UpdateCustomTargetingKeysExample.php new file mode 100755 index 000000000..965d44cee --- /dev/null +++ b/examples/Dfp/v201306/CustomTargetingService/UpdateCustomTargetingKeysExample.php @@ -0,0 +1,100 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201306'); + + // Create a statement to get all custom targeting keys. + $filterStatement = new Statement('LIMIT 500'); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $filterStatement); + + if (isset($page->results)) { + $keys = $page->results; + + // 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 keys on the server. + $keys = $customTargetingService->updateCustomTargetingKeys($keys); + + // 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"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CustomTargetingService/UpdateCustomTargetingValuesExample.php b/examples/Dfp/v201306/CustomTargetingService/UpdateCustomTargetingValuesExample.php new file mode 100755 index 000000000..ed450f7bc --- /dev/null +++ b/examples/Dfp/v201306/CustomTargetingService/UpdateCustomTargetingValuesExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201306'); + + // 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/v201306/ForecastService/GetForecastByIdExample.php b/examples/Dfp/v201306/ForecastService/GetForecastByIdExample.php new file mode 100755 index 000000000..492703ba3 --- /dev/null +++ b/examples/Dfp/v201306/ForecastService/GetForecastByIdExample.php @@ -0,0 +1,80 @@ +LogDefaults(); + + // Get the ForecastService. + $forecastService = $user->GetService('ForecastService', 'v201306'); + + // Set the line item to get a forecast for. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Get forecast for line item. + $forecast = $forecastService->getForecastById($lineItemId); + + // 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)) { + $percentPossibleUnits = $forecast->possibleUnits / $matchedUnits * 100; + printf("%d%% %s possible.\n", $percentPossibleUnits, $unitType); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/ForecastService/GetForecastExample.php b/examples/Dfp/v201306/ForecastService/GetForecastExample.php new file mode 100755 index 000000000..47d437f8d --- /dev/null +++ b/examples/Dfp/v201306/ForecastService/GetForecastExample.php @@ -0,0 +1,112 @@ +LogDefaults(); + + // Get the ForecastService. + $forecastService = $user->GetService('ForecastService', 'v201306'); + + // Set the placement ID that the prospective line item will target. + $targetPlacementId = 'INSERT_PLACEMENT_ID_HERE'; + + // Create prospective line item. + $lineItem = new LineItem(); + $lineItem->lineItemType = 'SPONSORSHIP'; + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedPlacementIds = array($targetPlacementId); + + // Set targeting for line item. + $targeting = new Targeting(); + $targeting->inventoryTargeting = $inventoryTargeting; + $lineItem->targeting = $targeting; + + // 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 line item's time to be now until the projected end date time. + $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; + + // Set the cost type to match the unit type. + $lineItem->costType = 'CPM'; + + // Get forecast for line item. + $forecast = $forecastService->getForecast($lineItem); + + // 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)) { + $percentPossibleUnits = $forecast->possibleUnits / $matchedUnits * 100; + printf("%d%% %s possible.\n", $percentPossibleUnits, $unitType); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/InventoryService/CreateAdUnitsExample.php b/examples/Dfp/v201306/InventoryService/CreateAdUnitsExample.php new file mode 100755 index 000000000..6696801a4 --- /dev/null +++ b/examples/Dfp/v201306/InventoryService/CreateAdUnitsExample.php @@ -0,0 +1,105 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201306'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201306'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + // Create an array to store local ad unit objects. + $adUnits = array(); + + for ($i = 0; $i < 5; $i++) { + $adUnit = new AdUnit(); + $adUnit->name = uniqid('Ad_Unit_'); + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + + // Create ad unit size. + $adUnitSize = new AdUnitSize(); + $adUnitSize->size = new Size(300, 250, FALSE); + $adUnitSize->environmentType = 'BROWSER'; + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($adUnitSize); + + $adUnits[] = $adUnit; + } + + // Create the ad units on the server. + $adUnits = $inventoryService->createAdUnits($adUnits); + + // Display results. + if (isset($adUnits)) { + foreach ($adUnits as $adUnit) { + print 'An ad unit with ID "' . $adUnit->id + . '" was created under parent with ID "' . $adUnit->parentId + . "\".\n"; + } + } else { + print "No ad units created.\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/v201306/InventoryService/CreateMobileAdUnitExample.php b/examples/Dfp/v201306/InventoryService/CreateMobileAdUnitExample.php new file mode 100755 index 000000000..84d71a9c0 --- /dev/null +++ b/examples/Dfp/v201306/InventoryService/CreateMobileAdUnitExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201306'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201306'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + $adUnit = new AdUnit(); + $adUnit->name = uniqid('Mobile_Ad_Unit_'); + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + $adUnit->targetPlatform = 'MOBILE'; + $adUnit->mobilePlatform = 'APPLICATION'; + + // Create ad unit size. + $adUnitSize = new AdUnitSize(); + $adUnitSize->size = new Size(400, 300, FALSE); + $adUnitSize->environmentType = 'BROWSER'; + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($adUnitSize); + + // Create the ad unit on the server. + $adUnit = $inventoryService->createAdUnit($adUnit); + + // Display results. + if (isset($adUnit)) { + printf("An ad unit with ID '%s' was created under parent with ID '%s'.\n", + $adUnit->id, $adUnit->parentId); + } else { + print "No ad unit was created.\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/v201306/InventoryService/CreateVideoAdUnitExample.php b/examples/Dfp/v201306/InventoryService/CreateVideoAdUnitExample.php new file mode 100755 index 000000000..6c2cfd7ab --- /dev/null +++ b/examples/Dfp/v201306/InventoryService/CreateVideoAdUnitExample.php @@ -0,0 +1,111 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201306'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201306'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + // Create local ad unit object. + $adUnit = new AdUnit(); + $adUnit->name = 'Video_Ad_Unit'; + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + $adUnit->explicitlyTargeted = TRUE; + $adUnit->targetPlatform = 'WEB'; + + // Create master ad unit size. + $masterAdUnitSize = new AdUnitSize(); + $masterAdUnitSize->size = new Size(400, 300, FALSE); + $masterAdUnitSize->environmentType = 'VIDEO_PLAYER'; + + // Create companion sizes. + $companionAdUnitSize1 = new AdUnitSize(); + $companionAdUnitSize1->size = new Size(300, 250, FALSE); + $companionAdUnitSize1->environmentType = 'BROWSER'; + + $companionAdUnitSize2 = new AdUnitSize(); + $companionAdUnitSize2->size = new Size(728, 90, FALSE); + $companionAdUnitSize2->environmentType = 'BROWSER'; + + // Add companions to master ad unit size. + $masterAdUnitSize->companions = + array($companionAdUnitSize1, $companionAdUnitSize2); + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($masterAdUnitSize); + + // Create the ad unit on the server. + $adUnit = $inventoryService->createAdUnit($adUnit); + + // Display results. + if (isset($adUnit)) { + printf("An ad unit with ID '%s' was created under parent with ID '%s'.\n", + $adUnit->id, $adUnit->parentId); + } else { + print "No ad unit was created.\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/v201306/InventoryService/DeactivateAdUnitsExample.php b/examples/Dfp/v201306/InventoryService/DeactivateAdUnitsExample.php new file mode 100755 index 000000000..80e331091 --- /dev/null +++ b/examples/Dfp/v201306/InventoryService/DeactivateAdUnitsExample.php @@ -0,0 +1,113 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201306'); + + // Create statement text to get all active ad units. + $filterStatementText = "WHERE status = 'ACTIVE'"; + + $offset = 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); + + // Display results. + $adUnitIds = array(); + 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 . "\" will be deactivated.\n"; + $i++; + $adUnitIds[] = $adUnit->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of ad units to be deactivated: ' . sizeof($adUnitIds) . "\n"; + + if (sizeof($adUnitIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $adUnitIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateAdUnits(); + + // Perform action. + $result = $inventoryService->performAdUnitAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of ad units deactivated: ' . $result->numChanges . "\n"; + } else { + print "No ad units 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/v201306/InventoryService/GetAdUnitExample.php b/examples/Dfp/v201306/InventoryService/GetAdUnitExample.php new file mode 100755 index 000000000..1b790d01a --- /dev/null +++ b/examples/Dfp/v201306/InventoryService/GetAdUnitExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201306'); + + // Set the ID of the ad unit to get. + $adUnitId = 'INSERT_AD_UNIT_ID_HERE'; + + // Get the ad unit. + $adUnit = $inventoryService->getAdUnit($adUnitId); + + // Display results. + if (isset($adUnit)) { + print 'Ad unit with ID "' . $adUnit->id + . '", name "' . $adUnit->name + . '", and status "' . $adUnit->status . "\" was found.\n"; + } else { + print "No ad unit found for this ID.\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/v201306/InventoryService/GetAdUnitSizesExample.php b/examples/Dfp/v201306/InventoryService/GetAdUnitSizesExample.php new file mode 100755 index 000000000..5b737d750 --- /dev/null +++ b/examples/Dfp/v201306/InventoryService/GetAdUnitSizesExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201306'); + + // 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); + + // Get all ad unit sizes by statement. + $adUnitSizes = $inventoryService->getAdUnitSizesByStatement($filterStatement); + + // Display results. + $i = 0; + foreach ($adUnitSizes as $adUnitSize) { + printf("%d) Web ad unit size of dimensions %s was found.\n", $i, + $adUnitSize->fullDisplayString); + $i++; + } + + 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"; +} + diff --git a/examples/Dfp/v201306/InventoryService/GetAdUnitsByStatementExample.php b/examples/Dfp/v201306/InventoryService/GetAdUnitsByStatementExample.php new file mode 100755 index 000000000..954d9822e --- /dev/null +++ b/examples/Dfp/v201306/InventoryService/GetAdUnitsByStatementExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201306'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201306'); + + // Get the effective root ad unit's ID. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->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)))); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // 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++; + } + } + + 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/v201306/InventoryService/GetAllAdUnitsExample.php b/examples/Dfp/v201306/InventoryService/GetAllAdUnitsExample.php new file mode 100755 index 000000000..c9b75a1e5 --- /dev/null +++ b/examples/Dfp/v201306/InventoryService/GetAllAdUnitsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201306'); + + // Set defaults for page and statement. + $page = new AdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201306/InventoryService/GetInventoryTreeExample.php b/examples/Dfp/v201306/InventoryService/GetInventoryTreeExample.php new file mode 100755 index 000000000..4bd46a65d --- /dev/null +++ b/examples/Dfp/v201306/InventoryService/GetInventoryTreeExample.php @@ -0,0 +1,206 @@ +GetService('InventoryService', 'v201306'); + + // Create array to hold all ad units. + $adUnits = array(); + + // Set defaults for page and statement. + $page = new AdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + $adUnits = array_merge($adUnits, $page->results); + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + return $adUnits; +} + +/** + * Finds the root ad unit for the user. + * @param DfpUser $user the user to get the root ad unit for + * @return the ad unit representing the root ad unit or NULL if one + * is not found. + * @access private + */ +function FindRootAdUnit(DfpUser $user) { + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201306'); + + // Create a statement to only select image creatives. + $filterStatement = new Statement("WHERE parentId IS NULL LIMIT 1"); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + return $page->results[0]; + } else { + return NULL; + } +} + +/** + * Builds and displays an ad unit tree from an array of ad units underneath + * the root ad unit. + * @param AdUnit $root the root ad unit to build the tree under + * @param array $adUnits the array of ad units. + * @access private + */ +function BuildAndDisplayAdUnitTree(AdUnit $root, + array $adUnits) { + $treeMap = array(); + + foreach ($adUnits as $adUnit) { + if (isset($adUnit->parentId)) { + $treeMap[$adUnit->parentId][] = $adUnit; + } + } + + if (isset($root)) { + DisplayInventoryTree($root, $treeMap); + } else { + print "No root unit found.\n"; + } +} + +/** + * Displays the ad unit tree beginning at the root ad unit. + * @param AdUnit $root the root ad unit + * @param array $treeMap the map of id to array of ad units + * @access private + */ +function DisplayInventoryTree(AdUnit $root, array $treeMap) { + DisplayInventoryTreeHelper($root, $treeMap, 0); +} + +/** + * Helper for displaying inventory units. + * @param AdUnit $root the root inventory unit + * @param array $treeMap the map of id to array of inventory units + * @param $depth the depth the tree has reached + * @access private + */ +function DisplayInventoryTreeHelper(AdUnit $root, + array $treeMap, $depth) { + print GenerateTab($depth) . $root->name . ' (' + . $root->id . ")\n"; + + if (isset($treeMap[$root->id])) { + foreach ($treeMap[$root->id] as $child) { + DisplayInventoryTreeHelper($child, + $treeMap, $depth + 1); + } + } +} + +/** + * Generates a string of tabs to represent branching to children. + * @param $depth a depth from 0 to max(depth) + * @return string a string to insert in front of the root unit + * @access private + */ +function GenerateTab($depth) { + $tab = ''; + + if ($depth != 0) { + $tab .= ' '; + } + + for ($i = 1; $i < $depth; $i++) { + $tab .= '| '; + } + + return $tab . '+--'; +} + +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->LogDefaults(); + + $allAdUnits = GetAllAdUnits($user); + + // Find the root ad unit. rootAdUnit can also be set to child unit to + // only build and display a portion of the tree. + // i.e. $adUnit = $inventoryService->getAdUnit("INSERT_AD_UNIT_ID_HERE") + $rootAdUnit = FindRootAdUnit($user); + + if (isset($rootAdUnit)) { + BuildAndDisplayAdUnitTree($rootAdUnit, $allAdUnits); + } else { + print "Could not build tree. No root ad unit found.\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/v201306/InventoryService/UpdateAdUnitsExample.php b/examples/Dfp/v201306/InventoryService/UpdateAdUnitsExample.php new file mode 100755 index 000000000..9fc6c916b --- /dev/null +++ b/examples/Dfp/v201306/InventoryService/UpdateAdUnitsExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201306'); + + // Create a statement to get all ad units. + $filterStatement = new Statement("LIMIT 500"); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + $adUnits = $page->results; + + // Update each local ad unit object by enabling AdSense. + foreach ($adUnits as $adUnit) { + $adUnit->inheritedAdSenseSettings->value->adSenseEnabled = TRUE; + } + + // Update the ad units on the server. + $adUnits = $inventoryService->updateAdUnits($adUnits); + + // 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"; + } + } + } else { + print "No ad units updated.\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/v201306/LabelService/CreateLabelsExample.php b/examples/Dfp/v201306/LabelService/CreateLabelsExample.php new file mode 100755 index 000000000..9b0d2deec --- /dev/null +++ b/examples/Dfp/v201306/LabelService/CreateLabelsExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201306'); + + // Create an array to store local label objects. + $labels = array(); + + for ($i = 0; $i < 5; $i++) { + $label = new Label(); + $label->name = 'Label #' . uniqid(); + $label->types = array('COMPETITIVE_EXCLUSION'); + $labels[] = $label; + } + + // Create the labels on the server. + $labels = $labelService->createLabels($labels); + + // Display results. + if (isset($labels)) { + foreach ($labels as $label) { + printf("A label with ID '%s', name '%s', and types {%s} was created.\n", + $label->id, $label->name, join(',', $label->types)); + } + } else { + print "No labels created.\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/v201306/LabelService/DeactivateLabelsExample.php b/examples/Dfp/v201306/LabelService/DeactivateLabelsExample.php new file mode 100755 index 000000000..5ae9081ad --- /dev/null +++ b/examples/Dfp/v201306/LabelService/DeactivateLabelsExample.php @@ -0,0 +1,111 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201306'); + + // Create statement text to get all active labels. + $filterStatementText = "WHERE isActive = true"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset); + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // Display results. + $labelIds = array(); + if (isset($page->results)) { + 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; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of labels to be deactivated: ' . sizeof($labelIds) . "\n"; + + if (sizeof($labelIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $labelIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateLabels(); + + // Perform action. + $result = $labelService->performLabelAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of labels deactivated: ' . $result->numChanges . "\n"; + } else { + print "No labels 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/v201306/LabelService/GetAllLabelsExample.php b/examples/Dfp/v201306/LabelService/GetAllLabelsExample.php new file mode 100755 index 000000000..123e24cd5 --- /dev/null +++ b/examples/Dfp/v201306/LabelService/GetAllLabelsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201306'); + + // Set defaults for page and statement. + $page = new LabelPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all labels. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201306/LabelService/GetLabelExample.php b/examples/Dfp/v201306/LabelService/GetLabelExample.php new file mode 100755 index 000000000..5b3129ae3 --- /dev/null +++ b/examples/Dfp/v201306/LabelService/GetLabelExample.php @@ -0,0 +1,75 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201306'); + + // Set the ID of the label to get. + $labelId = 'INSERT_LABEL_ID_HERE'; + + // Get the label. + $label = $labelService->getLabel($labelId); + + if (isset($label)) { + printf("Label with ID '%s', name '%s', and type {%s} was found.\n", + $label->id, $label->name, join(",", $label->types)); + } else { + print "No label found for this ID.\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/v201306/LabelService/GetLabelsByStatementExample.php b/examples/Dfp/v201306/LabelService/GetLabelsByStatementExample.php new file mode 100755 index 000000000..c8a7a3298 --- /dev/null +++ b/examples/Dfp/v201306/LabelService/GetLabelsByStatementExample.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201306'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array()); + + // Create a statement to select labels ordered by name. + $filterStatement = + new Statement("ORDER BY name LIMIT 500", $vars); + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // 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++; + } + } + + 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/v201306/LabelService/UpdateLabelsExample.php b/examples/Dfp/v201306/LabelService/UpdateLabelsExample.php new file mode 100755 index 000000000..92eb67720 --- /dev/null +++ b/examples/Dfp/v201306/LabelService/UpdateLabelsExample.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201306'); + + // 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/v201306/LicaService/CreateLicasExample.php b/examples/Dfp/v201306/LicaService/CreateLicasExample.php new file mode 100755 index 000000000..7036194cc --- /dev/null +++ b/examples/Dfp/v201306/LicaService/CreateLicasExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201306'); + + // Set the line item ID and creative ID to associate + // them with. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Create local LICA. + $lica = new LineItemCreativeAssociation(); + $lica->creativeId = $creativeId; + $lica->lineItemId = $lineItemId; + + $licas = array($lica); + + // Create the LICAs on the server. + $licas = $licaService->createLineItemCreativeAssociations($licas); + + // Display results. + if (isset($licas)) { + foreach ($licas as $lica) { + print 'A LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" was created.\n"; + } + } else { + print "No LICAs created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/LicaService/DeactivateLicasExample.php b/examples/Dfp/v201306/LicaService/DeactivateLicasExample.php new file mode 100755 index 000000000..90210e130 --- /dev/null +++ b/examples/Dfp/v201306/LicaService/DeactivateLicasExample.php @@ -0,0 +1,127 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201306'); + + // 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 statement text to select active LICAs for a given line item. + $filterStatementText = "WHERE lineItemId = :lineItemId AND status = 'ACTIVE'"; + + $offset = 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); + + // Display results. + $creativeIds = array(); + 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 + . "\" will be deactivated.\n"; + $i++; + $creativeIds[] = $lica->creativeId; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of LICAs to be deactivated: ' . sizeof($lica->creativeId) + . "\n"; + + if (sizeof($lica->creativeId) > 0) { + // Create action statement. + $filterStatementText = sprintf( + 'WHERE lineItemId = :lineItemId AND creativeId IN (%s)', + implode(',', $creativeIds)); + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeactivateLineItemCreativeAssociations(); + + // Perform action. + $result = $licaService->performLineItemCreativeAssociationAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of LICAs deactivated: ' . $result->numChanges . "\n"; + } else { + print "No LICAs 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/v201306/LicaService/GetAllLicasExample.php b/examples/Dfp/v201306/LicaService/GetAllLicasExample.php new file mode 100755 index 000000000..9e2d2010e --- /dev/null +++ b/examples/Dfp/v201306/LicaService/GetAllLicasExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201306'); + + // Set defaults for page and statement. + $page = new LineItemCreativeAssociationPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all LICAs. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $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); + } 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); + } + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201306/LicaService/GetLicaExample.php b/examples/Dfp/v201306/LicaService/GetLicaExample.php new file mode 100755 index 000000000..d6291222c --- /dev/null +++ b/examples/Dfp/v201306/LicaService/GetLicaExample.php @@ -0,0 +1,82 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201306'); + + // Set the line item and creative ID to use to retrieve the LICA. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Get the LICA. + $lica = $licaService->getLineItemCreativeAssociation($lineItemId, + $creativeId); + + // Display results. + if (isset($lica)) { + print 'A LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" was found.\n"; + } else { + print "No LICA found for this ID.\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/v201306/LicaService/GetLicasByStatementExample.php b/examples/Dfp/v201306/LicaService/GetLicasByStatementExample.php new file mode 100755 index 000000000..f3d8edd1d --- /dev/null +++ b/examples/Dfp/v201306/LicaService/GetLicasByStatementExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201306'); + + // 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/v201306/LicaService/UpdateLicasExample.php b/examples/Dfp/v201306/LicaService/UpdateLicasExample.php new file mode 100755 index 000000000..54dbb9f39 --- /dev/null +++ b/examples/Dfp/v201306/LicaService/UpdateLicasExample.php @@ -0,0 +1,96 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201306'); + + // Create a statement to get all LICAs. + $filterStatement = new Statement("LIMIT 500"); + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + if (isset($page->results)) { + $licas = $page->results; + + // Update each local LICA object by changing its destination URL. + foreach ($licas as $lica) { + $lica->destinationUrl = 'http://news.google.com'; + } + + // Update the LICAs on the server. + $licas = $licaService->updateLineItemCreativeAssociations($licas); + + // 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"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/LineItemService/ActivateLineItemsExample.php b/examples/Dfp/v201306/LineItemService/ActivateLineItemsExample.php new file mode 100755 index 000000000..386b5a92e --- /dev/null +++ b/examples/Dfp/v201306/LineItemService/ActivateLineItemsExample.php @@ -0,0 +1,132 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201306'); + + // 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/v201306/LineItemService/AuditLineItemsGeoTargetingExample.php b/examples/Dfp/v201306/LineItemService/AuditLineItemsGeoTargetingExample.php new file mode 100755 index 000000000..6ce9a4c57 --- /dev/null +++ b/examples/Dfp/v201306/LineItemService/AuditLineItemsGeoTargetingExample.php @@ -0,0 +1,213 @@ +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/v201306/LineItemService/CreateLineItemsExample.php b/examples/Dfp/v201306/LineItemService/CreateLineItemsExample.php new file mode 100755 index 000000000..34a6d91ff --- /dev/null +++ b/examples/Dfp/v201306/LineItemService/CreateLineItemsExample.php @@ -0,0 +1,186 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201306'); + + // 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_PLACEMENT_ID_HERE'); + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedPlacementIds = $targetPlacementIds; + + // Create geographical targeting. + $geoTargeting = new GeoTargeting(); + + // Include the US, Quebec (Canada), and postal code B3P (Canada). + $countryLocation = new DfpLocation(); + $countryLocation->id = 2840; + + $regionLocation = new DfpLocation(); + $regionLocation->id = 20123; + + $postalCodeLocation = new PostalCodeLocation(); + $postalCodeLocation->id = 9000093; + + $geoTargeting->targetedLocations = array($countryLocation, $regionLocation); + + // Exclude Chicago and the New York metro area. + $cityLocation = new DfpLocation(); + $cityLocation->id = 1016367; + + $metroLocation = new DfpLocation(); + $metroLocation->id = 200501; + $geoTargeting->excludedLocations = array($cityLocation, $metroLocation); + + // Exclude users from US federal government domains. + $userDomainTargeting = new UserDomainTargeting(array('usa.gov'), FALSE); + + // Target only the weekend in the browser's timezone. + $saturdayDayPart = new DayPart(); + $saturdayDayPart->dayOfWeek = 'SATURDAY'; + $saturdayDayPart->startTime = new TimeOfDay(0, 'ZERO'); + $saturdayDayPart->endTime = new TimeOfDay(24, 'ZERO'); + + $sundayDayPart = new DayPart(); + $sundayDayPart->dayOfWeek = 'SUNDAY'; + $sundayDayPart->startTime = new TimeOfDay(0, 'ZERO'); + $sundayDayPart->endTime = new TimeOfDay(24, 'ZERO'); + + // Create day-part targeting. + $dayPartTargeting = new DayPartTargeting(); + $dayPartTargeting->timeZone = 'BROWSER'; + $dayPartTargeting->dayParts = array($saturdayDayPart, $sundayDayPart); + + // Target just the Chrome browser. + $browserTechnology = new Technology(); + $browserTechnology->id = 500072; + + // Create technology targeting. + $browserTargeting = new BrowserTargeting(); + $browserTargeting->browsers = array($browserTechnology); + $technologyTargeting = new TechnologyTargeting(); + $technologyTargeting->browserTargeting = $browserTargeting; + + // Create targeting. + $targeting = new Targeting(); + $targeting->inventoryTargeting = $inventoryTargeting; + $targeting->geoTargeting = $geoTargeting; + $targeting->userDomainTargeting = $userDomainTargeting; + $targeting->dayPartTargeting = $dayPartTargeting; + $targeting->technologyTargeting = $technologyTargeting; + + // Create an array to store local line item objects. + $lineItems = array(); + + for ($i = 0; $i < 5; $i++) { + $lineItem = new LineItem(); + $lineItem->name = 'Line item #' . uniqid(); + $lineItem->orderId = $orderId; + $lineItem->targeting = $targeting; + $lineItem->lineItemType = 'STANDARD'; + $lineItem->allowOverbook = 'TRUE'; + + // 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 creative rotation type to even. + $lineItem->creativeRotationType = 'EVEN'; + + // 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'; + + $lineItems[] = $lineItem; + } + + // Create the line items on the server. + $lineItems = $lineItemService->createLineItems($lineItems); + + // 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"; + } + } else { + print "No line items created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/LineItemService/CreateMobileLineItemExample.php b/examples/Dfp/v201306/LineItemService/CreateMobileLineItemExample.php new file mode 100755 index 000000000..f450b29dd --- /dev/null +++ b/examples/Dfp/v201306/LineItemService/CreateMobileLineItemExample.php @@ -0,0 +1,160 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201306'); + + // 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. + $lineItem = $lineItemService->createLineItem($lineItem); + + // Display results. + if (isset($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); + } else { + print "No line item was created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/LineItemService/CreateVideoLineItemExample.php b/examples/Dfp/v201306/LineItemService/CreateVideoLineItemExample.php new file mode 100755 index 000000000..d17b2839e --- /dev/null +++ b/examples/Dfp/v201306/LineItemService/CreateVideoLineItemExample.php @@ -0,0 +1,168 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201306'); + + // 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); + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedAdUnits = + array(new AdUnitTargeting($targetedVideoAdUnitId, TRUE)); + + // Create video position targeting. + $videoPosition = new VideoPosition; + $videoPosition->positionType = 'PREROLL'; + $videoPositionTarget = new VideoPositionTarget(); + $videoPositionTarget->videoPosition = $videoPosition; + $videoPositionTargeting = new VideoPositionTargeting(); + $videoPositionTargeting->targetedPositions = array($videoPositionTarget); + + // Create targeting. + $targeting = new Targeting(); + $targeting->customTargeting = $customCriteriaSet; + $targeting->inventoryTargeting = $inventoryTargeting; + $targeting->videoPositionTargeting = $videoPositionTargeting; + + // Create local line item object. + $lineItem = new LineItem(); + $lineItem->name = sprintf("Video line item #%s", uniqid()); + $lineItem->orderId = $orderId; + $lineItem->targeting = $targeting; + $lineItem->lineItemType = 'SPONSORSHIP'; + $lineItem->allowOverbook = TRUE; + + // Set the environment type to video. + $lineItem->environmentType = 'VIDEO_PLAYER'; + + // Set the creative rotation type to optimized. + $lineItem->creativeRotationType = 'OPTIMIZED'; + + // Create the master creative placeholder. + $creativeMasterPlaceholder = new CreativePlaceholder(); + $creativeMasterPlaceholder->size = new Size(400, 300, FALSE); + + // Create companion creative placeholders. + $companionCreativePlaceholder1 = new CreativePlaceholder(); + $companionCreativePlaceholder1->size = new Size(300, 250, FALSE); + + $companionCreativePlaceholder2 = new CreativePlaceholder(); + $companionCreativePlaceholder2->size = new Size(728, 90, FALSE); + + // Set companion creative placeholders. + $creativeMasterPlaceholder->companions = + array($companionCreativePlaceholder1, $companionCreativePlaceholder2); + + // Set the size of creatives that can be associated with this line item. + $lineItem->creativePlaceholders = array($creativeMasterPlaceholder); + + // Set delivery of video companions to optional. + $lineItem->companionDeliveryOption = 'OPTIONAL'; + + // Set the length of the line item to run. + $lineItem->startDateTimeType = 'IMMEDIATELY'; + $lineItem->endDateTime = + DateTimeUtils::GetDfpDateTime(new DateTime('+1 month')); + + // Set the cost per day to $1. + $lineItem->costType = 'CPD'; + $lineItem->costPerUnit = new Money('USD', 1000000); + + // Set the percentage to be 100%. + $lineItem->unitsBought = 100; + + // 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."); + } +} 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/v201306/LineItemService/GetAllLineItemsExample.php b/examples/Dfp/v201306/LineItemService/GetAllLineItemsExample.php new file mode 100755 index 000000000..784d6973a --- /dev/null +++ b/examples/Dfp/v201306/LineItemService/GetAllLineItemsExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201306'); + + // Set defaults for page and statement. + $page = new LineItemPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all line items. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201306/LineItemService/GetLineItemExample.php b/examples/Dfp/v201306/LineItemService/GetLineItemExample.php new file mode 100755 index 000000000..6ded49f12 --- /dev/null +++ b/examples/Dfp/v201306/LineItemService/GetLineItemExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201306'); + + // Set the ID of the line item to get. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Get the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + + // Display results. + if (isset($lineItem)) { + print 'Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", and name "' . $lineItem->name + . "\" was found.\n"; + } else { + print "No line item found for this ID.\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/v201306/LineItemService/GetLineItemsByStatementExample.php b/examples/Dfp/v201306/LineItemService/GetLineItemsByStatementExample.php new file mode 100755 index 000000000..04fc04dcd --- /dev/null +++ b/examples/Dfp/v201306/LineItemService/GetLineItemsByStatementExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201306'); + + // 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/v201306/LineItemService/GetRecentlyUpdatedLineItems.php b/examples/Dfp/v201306/LineItemService/GetRecentlyUpdatedLineItems.php new file mode 100755 index 000000000..1c8c3d567 --- /dev/null +++ b/examples/Dfp/v201306/LineItemService/GetRecentlyUpdatedLineItems.php @@ -0,0 +1,103 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201306'); + + // 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/v201306/LineItemService/TargetCustomCriteriaExample.php b/examples/Dfp/v201306/LineItemService/TargetCustomCriteriaExample.php new file mode 100755 index 000000000..e6432dbbd --- /dev/null +++ b/examples/Dfp/v201306/LineItemService/TargetCustomCriteriaExample.php @@ -0,0 +1,119 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201306'); + + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $customCriteriaIds1 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + $customCriteriaIds2 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + $customCriteriaIds3 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + + // Create custom criteria. + $customCriteria1 = new CustomCriteria(); + $customCriteria1->keyId = $customCriteriaIds1[0]; + $customCriteria1->valueIds = array($customCriteriaIds1[1]); + $customCriteria1->operator = 'IS'; + + $customCriteria2 = new CustomCriteria(); + $customCriteria2->keyId = $customCriteriaIds2[0]; + $customCriteria2->valueIds = array($customCriteriaIds2[1]); + $customCriteria2->operator = 'IS_NOT'; + + $customCriteria3 = new CustomCriteria(); + $customCriteria3->keyId = $customCriteriaIds3[0]; + $customCriteria3->valueIds = array($customCriteriaIds3[1]); + $customCriteria3->operator = 'IS'; + + + // Create the custom criteria set that will resemble: + // + // ($customCriteria1.key == $customCriteria1.value OR + // ($customCriteria2.key != $customCriteria2.value AND + // $customCriteria3.key == $customCriteria3.value)) + $topCustomCriteriaSet = new CustomCriteriaSet(); + $topCustomCriteriaSet->logicalOperator = 'OR'; + + $subCustomCriteriaSet = new CustomCriteriaSet(); + $subCustomCriteriaSet->logicalOperator = 'AND'; + $subCustomCriteriaSet->children = array($customCriteria2, $customCriteria3); + $topCustomCriteriaSet->children = + array($customCriteria1, $subCustomCriteriaSet); + + // Set the custom criteria targeting on the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + $lineItem->targeting->customTargeting = $topCustomCriteriaSet; + + // Update the line items on the server. + $lineItem = $lineItemService->updateLineItem($lineItem); + + // Display results. + if (isset($lineItem)) { + printf("Line item with ID '%s' updated with custom criteria targeting:\n", + $lineItem->id); + print_r($lineItem->targeting->customTargeting); + } else { + print "No line items updated.\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/v201306/LineItemService/UpdateLineItemsExample.php b/examples/Dfp/v201306/LineItemService/UpdateLineItemsExample.php new file mode 100755 index 000000000..d36df493e --- /dev/null +++ b/examples/Dfp/v201306/LineItemService/UpdateLineItemsExample.php @@ -0,0 +1,104 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201306'); + + // 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/v201306/NetworkService/GetAllNetworksExample.php b/examples/Dfp/v201306/NetworkService/GetAllNetworksExample.php new file mode 100755 index 000000000..c0da0f509 --- /dev/null +++ b/examples/Dfp/v201306/NetworkService/GetAllNetworksExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201306'); + + // Get all networks that you have access to with the current login + // 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++; + } + } + + print 'Number of results found: ' . $i . "\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/v201306/NetworkService/GetCurrentNetworkExample.php b/examples/Dfp/v201306/NetworkService/GetCurrentNetworkExample.php new file mode 100755 index 000000000..551bf74f9 --- /dev/null +++ b/examples/Dfp/v201306/NetworkService/GetCurrentNetworkExample.php @@ -0,0 +1,65 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201306'); + + // Get the current network. + $network = $networkService->getCurrentNetwork(); + + print 'Current network has network code "' . $network->networkCode + . '" and display name "' . $network->displayName . "\".\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/v201306/NetworkService/MakeTestNetworkExample.php b/examples/Dfp/v201306/NetworkService/MakeTestNetworkExample.php new file mode 100755 index 000000000..111f166a2 --- /dev/null +++ b/examples/Dfp/v201306/NetworkService/MakeTestNetworkExample.php @@ -0,0 +1,78 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201306'); + + // Make the test network. + $network = $networkService->makeTestNetwork(); + + print 'Test network with network code "' . $network->networkCode + . '" and display name "' . $network->displayName . "\" created.\n" + . ' You may now sign in at http://www.google.com/dfp/main?networkCode=' + . $network->networkCode . "\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/v201306/OrderService/ApproveOrdersExample.php b/examples/Dfp/v201306/OrderService/ApproveOrdersExample.php new file mode 100755 index 000000000..6e5ecb6a1 --- /dev/null +++ b/examples/Dfp/v201306/OrderService/ApproveOrdersExample.php @@ -0,0 +1,128 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201306'); + + // 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/v201306/OrderService/CreateOrdersExample.php b/examples/Dfp/v201306/OrderService/CreateOrdersExample.php new file mode 100755 index 000000000..b1a4cadd1 --- /dev/null +++ b/examples/Dfp/v201306/OrderService/CreateOrdersExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetOrderService('v201306'); + + // Set the advertiser (company), salesperson, and trafficker to assign to each + // order. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + $salespersonId = 'INSERT_SALESPERSON_ID_HERE'; + $traffickerId = 'INSERT_TRAFFICKER_ID_HERE'; + + // Create an array to store local order objects. + $orders = array(); + + for ($i = 0; $i < 5; $i++) { + $order = new Order(); + $order->name = 'Order #' . $i; + $order->advertiserId = $advertiserId; + $order->salespersonId = $salespersonId; + $order->traffickerId = $traffickerId; + + $orders[] = $order; + } + + // Create the orders on the server. + $orders = $orderService->createOrders($orders); + + // Display results. + if (isset($orders)) { + foreach ($orders as $order) { + print 'An order with with ID "' . $order->id + . '" and name "' . $order->name + . "\" was created.\n"; + } + } else { + print "No orders created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/OrderService/GetAllOrdersExample.php b/examples/Dfp/v201306/OrderService/GetAllOrdersExample.php new file mode 100755 index 000000000..2f52f1f35 --- /dev/null +++ b/examples/Dfp/v201306/OrderService/GetAllOrdersExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201306'); + + // Set defaults for page and statement. + $page = new OrderPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all orders. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201306/OrderService/GetOrderExample.php b/examples/Dfp/v201306/OrderService/GetOrderExample.php new file mode 100755 index 000000000..1bc38c804 --- /dev/null +++ b/examples/Dfp/v201306/OrderService/GetOrderExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201306'); + + // Set the ID of the order to get. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Get the order. + $order = $orderService->getOrder($orderId); + + // Display results. + if (isset($order)) { + print 'An order with ID "' . $order->id + . '", name "' . $order->name + . '", and advertiser ID "' . $order->advertiserId + . "\" was found.\n"; + } else { + print "No order found for this ID.\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/v201306/OrderService/GetOrdersByStatementExample.php b/examples/Dfp/v201306/OrderService/GetOrdersByStatementExample.php new file mode 100755 index 000000000..a50a310da --- /dev/null +++ b/examples/Dfp/v201306/OrderService/GetOrdersByStatementExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201306'); + + // 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/v201306/OrderService/UpdateOrdersExample.php b/examples/Dfp/v201306/OrderService/UpdateOrdersExample.php new file mode 100755 index 000000000..a3734030d --- /dev/null +++ b/examples/Dfp/v201306/OrderService/UpdateOrdersExample.php @@ -0,0 +1,99 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201306'); + + // 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/v201306/PlacementService/CreatePlacementsExample.php b/examples/Dfp/v201306/PlacementService/CreatePlacementsExample.php new file mode 100755 index 000000000..5ebe12947 --- /dev/null +++ b/examples/Dfp/v201306/PlacementService/CreatePlacementsExample.php @@ -0,0 +1,137 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201306'); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201306'); + + // Create local placement object to store skyscraper ad units. + $skyscraperAdUnitPlacement = new Placement(); + $skyscraperAdUnitPlacement->name = + 'Skyscraper AdUnit Placement #' . time(); + $skyscraperAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 120x600'; + + // Create local placement object to store medium square ad units. + $mediumSquareAdUnitPlacement = new Placement(); + $mediumSquareAdUnitPlacement->name = + 'Medium Square AdUnit Placement #' . time(); + $mediumSquareAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 300x250'; + + // Create local placement object to store banner ad units. + $bannerAdUnitPlacement = new Placement(); + $bannerAdUnitPlacement->name = 'Banner AdUnit Placement #' . time(); + $bannerAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 468x60'; + + $placementList = array(); + + // Get the first 500 ad units. + $filterStatement = new Statement('LIMIT 500'); + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // Separate the ad units by size. + if (isset($page->results)) { + foreach ($page->results as $adUnit) { + if (isset($adUnit->parentId)) { + foreach ((array) $adUnit->adUnitSizes as $adUnitSize) { + $size = $adUnitSize->size; + if ($size->width == 300 && $size->height == 250) { + $mediumSquareAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } else if ($size->width == 120 && $size->height == 600) { + $skyscraperAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } else if ($size->width == 468 && $size->height == 60) { + $bannerAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } + } + } + } + } + + // Only create placements with one or more ad units. + if (count($skyscraperAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $skyscraperAdUnitPlacement; + } + if (count($mediumSquareAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $mediumSquareAdUnitPlacement; + } + if (count($bannerAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $bannerAdUnitPlacement; + } + + // Create the placements on the server. + $placements = $placementService->createPlacements($placementList); + + // Display results. + if (isset($placements)) { + foreach ($placements as $placement) { + print 'A placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and containing ad units {' . + implode(', ', (array) $placement->targetedAdUnitIds) + . "} was created.\n"; + } + } else { + print "No placements created.\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/v201306/PlacementService/DeactivatePlacementsExample.php b/examples/Dfp/v201306/PlacementService/DeactivatePlacementsExample.php new file mode 100755 index 000000000..76aedb99a --- /dev/null +++ b/examples/Dfp/v201306/PlacementService/DeactivatePlacementsExample.php @@ -0,0 +1,115 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201306'); + + // Create statement text to select active placements. + $filterStatementText = "WHERE status = 'ACTIVE'"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset); + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // Display results. + $placementIds = array(); + 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 + . "\" will be deactivated.\n"; + $i++; + $placementIds[] = $placement->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of placements to be deactivated: ' . sizeof($placementIds) + . "\n"; + + if (sizeof($placementIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $placementIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivatePlacements(); + + // Perform action. + $result = + $placementService->performPlacementAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of placements deactivated: ' . $result->numChanges . "\n"; + } else { + print "No placements 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/v201306/PlacementService/GetAllPlacementsExample.php b/examples/Dfp/v201306/PlacementService/GetAllPlacementsExample.php new file mode 100755 index 000000000..24bb47af4 --- /dev/null +++ b/examples/Dfp/v201306/PlacementService/GetAllPlacementsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201306'); + + // Set defaults for page and statement. + $page = new PlacementPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all placements. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $placement) { + print $i . ') Placement with ID "' . $placement->id + . '" and name "' . $placement->name + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201306/PlacementService/GetPlacementExample.php b/examples/Dfp/v201306/PlacementService/GetPlacementExample.php new file mode 100755 index 000000000..9f3e38309 --- /dev/null +++ b/examples/Dfp/v201306/PlacementService/GetPlacementExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201306'); + + // Set the ID of the placement to get. + $placementId = 'INSERT_PLACEMENT_ID_HERE'; + + // Get the placement. + $placement = $placementService->getPlacement($placementId); + + // Display results. + if (isset($placement)) { + print 'Placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and status "' . $placement->status . "\" was found.\n"; + } else { + print "No placement found for this ID.\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/v201306/PlacementService/GetPlacementsByStatementExample.php b/examples/Dfp/v201306/PlacementService/GetPlacementsByStatementExample.php new file mode 100755 index 000000000..6c8355201 --- /dev/null +++ b/examples/Dfp/v201306/PlacementService/GetPlacementsByStatementExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201306'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('status' => new TextValue('ACTIVE'))); + + // Create a statement to only select active placements. + $filterStatement = new Statement("WHERE status = :status LIMIT 500", $vars); + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // 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++; + } + } + + 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/v201306/PlacementService/UpdatePlacementsExample.php b/examples/Dfp/v201306/PlacementService/UpdatePlacementsExample.php new file mode 100755 index 000000000..c26329d41 --- /dev/null +++ b/examples/Dfp/v201306/PlacementService/UpdatePlacementsExample.php @@ -0,0 +1,102 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201306'); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201306'); + + // 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/v201306/PublisherQueryLanguageService/GetAllCitiesExample.php b/examples/Dfp/v201306/PublisherQueryLanguageService/GetAllCitiesExample.php new file mode 100755 index 000000000..71a6e6606 --- /dev/null +++ b/examples/Dfp/v201306/PublisherQueryLanguageService/GetAllCitiesExample.php @@ -0,0 +1,119 @@ +LogDefaults(); + + // Get the PublisherQueryLanguageService. + $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201306'); + + // Define the number of cities we want to get at a time. + $LIMIT = 500; + + // Create statement to select all targetable cities. + // For criteria that do not have a 'targetable' property, that predicate + // may be left off, i.e. just "SELECT * FROM Browser_Groups LIMIT 500". + $selectStatement = 'SELECT * FROM City WHERE targetable = true LIMIT ' . + $LIMIT; + $offset = 0; + $resultSetSize = 0; + $allRows = array(); + $i = 0; + + $mapColumnTypesToLabelsFn = create_function('$columnType', + 'return $columnType->labelName;'); + $mapRowValueToValueFn = create_function('$value', 'return $value->value;'); + + do { + $selectStatementOffset = + new Statement($selectStatement . ' OFFSET ' . $offset); + + // Get all cities. + $resultSet = $pqlService->select($selectStatementOffset); + + if (isset($resultSet->rows)) { + // Display results. + $columnLabels = array_map($mapColumnTypesToLabelsFn, + $resultSet->columnTypes); + printf("Columns are: %s\n", implode(', ', $columnLabels)); + + foreach($resultSet->rows as $row) { + $values = array_map($mapRowValueToValueFn, $row->values); + + // Collect all cities from each page. + $allRows[] = $values; + + printf("%d) %s\n", $i, implode(', ', $values)); + $i++; + } + + $resultSetSize = count($resultSet->rows); + } + + $offset += $LIMIT; + } while ($resultSetSize == $LIMIT); + + printf("Number of results found: %d\n", count($allRows)); + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201306/ReportService/DisplayReportExample.php b/examples/Dfp/v201306/ReportService/DisplayReportExample.php new file mode 100755 index 000000000..3e12db1a6 --- /dev/null +++ b/examples/Dfp/v201306/ReportService/DisplayReportExample.php @@ -0,0 +1,78 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201306'); + + // 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; + + $downloadUrl = $reportService->getReportDownloadUrlWithOptions($reportJobId, + $reportDownloadOptions); + + printf("Downloading report from URL '%s'.\n", $downloadUrl); + $report = ReportUtils::DownloadReport($downloadUrl); + printf("\n%s\n", $report); +} 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/v201306/ReportService/DownloadReportExample.php b/examples/Dfp/v201306/ReportService/DownloadReportExample.php new file mode 100755 index 000000000..451354fdc --- /dev/null +++ b/examples/Dfp/v201306/ReportService/DownloadReportExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201306'); + + // 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/v201306/ReportService/RunDeliveryReportExample.php b/examples/Dfp/v201306/ReportService/RunDeliveryReportExample.php new file mode 100755 index 000000000..4b558dea5 --- /dev/null +++ b/examples/Dfp/v201306/ReportService/RunDeliveryReportExample.php @@ -0,0 +1,108 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201306'); + + // 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(); + + // 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; + $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/v201306/ReportService/RunInventoryReportExample.php b/examples/Dfp/v201306/ReportService/RunInventoryReportExample.php new file mode 100755 index 000000000..6c83c506f --- /dev/null +++ b/examples/Dfp/v201306/ReportService/RunInventoryReportExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201306'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_WEEK'; + $reportQuery->dimensions = array('DATE', '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'); + $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/v201306/ReportService/RunMergedDeliveryReportExample.php b/examples/Dfp/v201306/ReportService/RunMergedDeliveryReportExample.php new file mode 100755 index 000000000..e774ed4ac --- /dev/null +++ b/examples/Dfp/v201306/ReportService/RunMergedDeliveryReportExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201306'); + + // Create report job. + $reportJob = new ReportJob(); + + // 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('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'); + $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/v201306/ReportService/RunReachReportExample.php b/examples/Dfp/v201306/ReportService/RunReachReportExample.php new file mode 100755 index 000000000..cfe2bd544 --- /dev/null +++ b/examples/Dfp/v201306/ReportService/RunReachReportExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201306'); + + // Create report job. + $reportJob = new ReportJob(); + + // 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', + 'REACH'); + $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) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201306/ReportService/RunReportWithCustomFields.php b/examples/Dfp/v201306/ReportService/RunReportWithCustomFields.php new file mode 100755 index 000000000..e3915cd28 --- /dev/null +++ b/examples/Dfp/v201306/ReportService/RunReportWithCustomFields.php @@ -0,0 +1,133 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201306'); + + // 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', 'v201306'); + + // 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/v201306/ReportService/RunSalesReportExample.php b/examples/Dfp/v201306/ReportService/RunSalesReportExample.php new file mode 100755 index 000000000..f6149c118 --- /dev/null +++ b/examples/Dfp/v201306/ReportService/RunSalesReportExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201306'); + + // 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/v201306/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php b/examples/Dfp/v201306/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php new file mode 100755 index 000000000..3b6e1bf85 --- /dev/null +++ b/examples/Dfp/v201306/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201306'); + + // Set the number of requests to 50 or more. + define('NUMBER_OF_REQUESTS', 50); + + // Create statement text to select all suggested ad units + // that have been requested 50 times or more. + $filterStatementText = 'WHERE numRequests >= ' . NUMBER_OF_REQUESTS; + + // Get all suggested ad units. + $allSuggestedAdUnits = ServiceUtils::GetAllObjects($suggestedAdUnitService, + 'getSuggestedAdUnitsByStatement', $filterStatementText); + + $numSuggestedAdUnits = 0; + foreach ($allSuggestedAdUnits as $suggestedAdUnit) { + $numSuggestedAdUnits++; + printf("%d) Suggested ad unit with ID '%s' and number of requests '%d' " + . "will be approved.\n", $numSuggestedAdUnits, $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + } + + printf("Number of suggested ad units to be approved: %d\n", + $numSuggestedAdUnits); + + if ($numSuggestedAdUnits > 0) { + // Create action statement. + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new ApproveSuggestedAdUnit(); + + // Perform action. + $result = $suggestedAdUnitService->performSuggestedAdUnitAction($action, + $filterStatementText); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of suggested ad units approved: %d\n", + $result->numChanges); + } else { + print "No suggested ad units 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/v201306/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php b/examples/Dfp/v201306/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php new file mode 100755 index 000000000..0cf518954 --- /dev/null +++ b/examples/Dfp/v201306/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201306'); + + // Set defaults for page and statement. + $page = new SuggestedAdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all suggested ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201306/SuggestedAdUnitService/GetSuggestedAdUnitExample.php b/examples/Dfp/v201306/SuggestedAdUnitService/GetSuggestedAdUnitExample.php new file mode 100755 index 000000000..8e94d42f8 --- /dev/null +++ b/examples/Dfp/v201306/SuggestedAdUnitService/GetSuggestedAdUnitExample.php @@ -0,0 +1,79 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201306'); + + // Set the ID of the ad unit to get. + $suggestedAdUnitId = 'INSERT_SUGGESTED_AD_UNIT_ID_HERE'; + + // Get the ad unit. + $suggestedAdUnit = + $suggestedAdUnitService->getSuggestedAdUnit($suggestedAdUnitId); + + // Display results. + if (isset($suggestedAdUnit)) { + printf("Suggested ad unit with ID '%s' and number of requests '%d' " + . "was found.\n", $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + } else { + print "No suggested ad unit found for this ID.\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/v201306/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php b/examples/Dfp/v201306/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php new file mode 100755 index 000000000..9868523fc --- /dev/null +++ b/examples/Dfp/v201306/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201306'); + + // 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/v201306/TeamService/CreateTeamsExample.php b/examples/Dfp/v201306/TeamService/CreateTeamsExample.php new file mode 100755 index 000000000..7a40475ad --- /dev/null +++ b/examples/Dfp/v201306/TeamService/CreateTeamsExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201306'); + + // Create an array to store local team objects. + $teams = array(); + + for ($i = 0; $i < 5; $i++) { + $team = new Team(); + $team->name = 'Team #' . uniqid(); + $team->hasAllCompanies = false; + $team->hasAllInventory = false; + $teams[] = $team; + } + + // Create the teams on the server. + $teams = $teamService->createTeams($teams); + + // Display results. + if (isset($teams)) { + foreach ($teams as $team) { + print 'A team with ID "' . $team->id + . '" and name "'. $team->name + . '" was created."' . "\n"; + } + } else { + print "No teams created.\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/v201306/TeamService/GetAllTeamsExample.php b/examples/Dfp/v201306/TeamService/GetAllTeamsExample.php new file mode 100755 index 000000000..f2d1b7626 --- /dev/null +++ b/examples/Dfp/v201306/TeamService/GetAllTeamsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201306'); + + // Set defaults for page and statement. + $page = new TeamPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all teams. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get teams by statement. + $page = $teamService->getTeamsByStatement($filterStatement); + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201306/TeamService/GetTeamExample.php b/examples/Dfp/v201306/TeamService/GetTeamExample.php new file mode 100755 index 000000000..e758ee13c --- /dev/null +++ b/examples/Dfp/v201306/TeamService/GetTeamExample.php @@ -0,0 +1,75 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201306'); + + // Set the ID of the team to get. + $teamId = 'INSERT_TEAM_ID_HERE'; + + // Get the team. + $team = $teamService->getTeam($teamId); + + // Display results. + if (isset($team)) { + print 'Team with ID "' . $team->id + . '" and name "' . $team->name + . "\" was found.\n"; + } else { + print "No team found for this ID.\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/v201306/TeamService/GetTeamsByStatementExample.php b/examples/Dfp/v201306/TeamService/GetTeamsByStatementExample.php new file mode 100755 index 000000000..7a69c4986 --- /dev/null +++ b/examples/Dfp/v201306/TeamService/GetTeamsByStatementExample.php @@ -0,0 +1,83 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201306'); + + // Create a statement to order teams by name. + $filterStatementText = 'ORDER BY name LIMIT 500'; + $filterStatement = new Statement($filterStatementText); + + // Get teams by statement. + $page = $teamService->getTeamsByStatement($filterStatement); + + // 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++; + } + } + + 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/v201306/TeamService/UpdateTeamsExample.php b/examples/Dfp/v201306/TeamService/UpdateTeamsExample.php new file mode 100755 index 000000000..9fa19b2b6 --- /dev/null +++ b/examples/Dfp/v201306/TeamService/UpdateTeamsExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201306'); + + // 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/v201306/UserService/CreateUsersExample.php b/examples/Dfp/v201306/UserService/CreateUsersExample.php new file mode 100755 index 000000000..2d2f46c3a --- /dev/null +++ b/examples/Dfp/v201306/UserService/CreateUsersExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201306'); + + // Set the user's email addresses and names. + $emailAndNames = + array(array('INSERT_EMAIL_ADDRESS_HERE', 'INSERT_NAME_HERE'), + array('INSERT_ANOTHER_EMAIL_ADDRESS_HERE', + 'INSERT_ANOTHER_NAME_HERE')); + + // Roles can be obtained by running GetAllRolesExample.php. + $roleId = 'INSERT_ROLE_ID_HERE'; + + // Create an array to store local user objects. + $users = array(); + + for ($i = 0; $i < sizeof($emailAndNames); $i++) { + $newUser = new User(); + $newUser->email = $emailAndNames[$i][0]; + $newUser->name = $emailAndNames[$i][1]; + $newUser->roleId = $roleId; + $newUser->preferredLocale = 'en_US'; + + $users[] = $newUser; + } + + // Create the users on the server. + $users = $userService->createUsers($users); + + // Display results. + if (isset($users)) { + foreach ($users as $user) { + print 'A user with ID "' . $user->id + . '", email "' . $user->email + . '", and role "' . $user->roleName . "\" was created.\n"; + } + } else { + print "No users created.\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/v201306/UserService/DeactivateUserExample.php b/examples/Dfp/v201306/UserService/DeactivateUserExample.php new file mode 100755 index 000000000..04e650c1d --- /dev/null +++ b/examples/Dfp/v201306/UserService/DeactivateUserExample.php @@ -0,0 +1,121 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201306'); + + // Set the ID of the user to deactivate. + $userId = 'INSERT_USER_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('id' => new NumberValue($userId))); + + // Create statement text to get user by id. + $filterStatementText = "WHERE id = :id"; + + $offset = 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); + + // Display results. + $userIds = array(); + if (isset($page->results)) { + $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; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of users to be deactivated: ' . sizeof($userIds) . "\n"; + + if (sizeof($userIds) > 0) { + // Create action statement. + $filterStatementText = sprintf('WHERE id IN (%s)', implode(',', $userIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateUsers(); + + // Perform action. + $result = $userService->performUserAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of users deactivated: ' . $result->numChanges . "\n"; + } else { + print "No users 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/v201306/UserService/GetAllRolesExample.php b/examples/Dfp/v201306/UserService/GetAllRolesExample.php new file mode 100755 index 000000000..e92a130e9 --- /dev/null +++ b/examples/Dfp/v201306/UserService/GetAllRolesExample.php @@ -0,0 +1,72 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201306'); + + // 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"; + } + } + print 'Number of results found: ' . sizeof($roles) . "\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/v201306/UserService/GetAllUsersExample.php b/examples/Dfp/v201306/UserService/GetAllUsersExample.php new file mode 100755 index 000000000..5b4b4415a --- /dev/null +++ b/examples/Dfp/v201306/UserService/GetAllUsersExample.php @@ -0,0 +1,87 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201306'); + + // Set defaults for page and statement. + $page = new UserPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all users. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201306/UserService/GetCurrentUserExample.php b/examples/Dfp/v201306/UserService/GetCurrentUserExample.php new file mode 100755 index 000000000..a20b9deac --- /dev/null +++ b/examples/Dfp/v201306/UserService/GetCurrentUserExample.php @@ -0,0 +1,65 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201306'); + + // Get the current user. + $usr = $userService->getCurrentUser(); + + printf("User with ID '%s', email '%s', and role '%s' was found.\n", + $usr->id, $usr->email, $usr->roleName); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/UserService/GetUserExample.php b/examples/Dfp/v201306/UserService/GetUserExample.php new file mode 100755 index 000000000..0f4db8179 --- /dev/null +++ b/examples/Dfp/v201306/UserService/GetUserExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201306'); + + // Set the ID of the user to get. + $userId = 'INSERT_USER_ID_HERE'; + + // Get the user. + $usr = $userService->getUser($userId); + + // Display results. + if (isset($usr)) { + print 'User with ID "' . $usr->id + . '", email "' . $usr->email + . '", and role "' . $usr->roleName . "\" was found.\n"; + } else { + print "No user found for this ID.\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/v201306/UserService/GetUsersByStatementExample.php b/examples/Dfp/v201306/UserService/GetUsersByStatementExample.php new file mode 100755 index 000000000..8ae9be852 --- /dev/null +++ b/examples/Dfp/v201306/UserService/GetUsersByStatementExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201306'); + + // 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/v201306/UserService/UpdateUsersExample.php b/examples/Dfp/v201306/UserService/UpdateUsersExample.php new file mode 100755 index 000000000..eca26aa38 --- /dev/null +++ b/examples/Dfp/v201306/UserService/UpdateUsersExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201306'); + + // Create a statement to get all users. + $filterStatement = new Statement('LIMIT 500'); + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + if (isset($page->results)) { + $users = $page->results; + + // Update each local user object by changing its name. + foreach ($users as $usr) { + $usr->name .= ' Sr.'; + } + + // Update the users on the server. + $users = $userService->updateUsers($users); + + // 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"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/UserTeamAssociationService/CreateUserTeamAssociationsExample.php b/examples/Dfp/v201306/UserTeamAssociationService/CreateUserTeamAssociationsExample.php new file mode 100755 index 000000000..87f2f6c41 --- /dev/null +++ b/examples/Dfp/v201306/UserTeamAssociationService/CreateUserTeamAssociationsExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201306'); + + // Set the team ID and user IDs to associate together. + $teamId = 'INSERT_TEAM_ID_HERE'; + $userIds = array('INSERT_USER_ID_HERE'); + + // Create an array to store local user team association objects. + $utas = array(); + + // For each user, associate it with the given team. + foreach ($userIds as $userId) { + // Create local user team association. + $uta = new UserTeamAssociation(); + $uta->teamId = $teamId; + $uta->userId = $userId; + $utas[] = $uta; + } + + // Create the user team associations on the server. + $utas = $userTeamAssociationService->createUserTeamAssociations($utas); + + // Display results. + if (isset($utas)) { + foreach ($utas as $uta) { + print 'A user team association between user with ID "' . $uta->userId + . '" and team with ID "' . $uta->teamId + . "\" was created.\n"; + } + } else { + print "No user team associations created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php b/examples/Dfp/v201306/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php new file mode 100755 index 000000000..3acef6ca8 --- /dev/null +++ b/examples/Dfp/v201306/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201306'); + + // Set the user to remove from its teams. + $userId = 'INSERT_USER_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('userId' => new NumberValue($userId))); + + // Create statement text to select user team associations by the user ID. + $filterStatementText = "WHERE userId = :userId "; + + $offset = 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); + + // 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 + . "\" will be deleted.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of user team associations to be deleted: ' . $i . "\n"; + + if ($i > 0) { + // Create action statement. + $filterStatementText = 'WHERE userId = :userId '; + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeleteUserTeamAssociations(); + + // Perform action. + $result = $userTeamAssociationService->performUserTeamAssociationAction( + $action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of user team associations deleted: ' + . $result->numChanges . "\n"; + } else { + print "No user team associations were deleted.\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/v201306/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php b/examples/Dfp/v201306/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php new file mode 100755 index 000000000..c18dfa16e --- /dev/null +++ b/examples/Dfp/v201306/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201306'); + + // Set defaults for page and statement. + $page = new UserTeamAssociationPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all user team associations. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201306/UserTeamAssociationService/GetUserTeamAssociationExample.php b/examples/Dfp/v201306/UserTeamAssociationService/GetUserTeamAssociationExample.php new file mode 100755 index 000000000..c34135a8f --- /dev/null +++ b/examples/Dfp/v201306/UserTeamAssociationService/GetUserTeamAssociationExample.php @@ -0,0 +1,79 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201306'); + + // Set the IDs of the user and team to get the association for. + $userId = 'INSERT_USER_ID_HERE'; + $teamId = 'INSERT_TEAM_ID_HERE'; + + // Get the user team association. + $uta = $userTeamAssociationService->getUserTeamAssociation($teamId, + $userId); + + // Display results. + if (isset($uta)) { + print 'User team association between user with ID "' . $uta->userId + . '" and team with ID "' . $uta->teamId + . "\" was found.\n"; + } else { + print "No user team association found for this ID.\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/v201306/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php b/examples/Dfp/v201306/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php new file mode 100755 index 000000000..c29e37d0e --- /dev/null +++ b/examples/Dfp/v201306/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = $user->GetService('UserTeamAssociationService', + 'v201306'); + + // Get the UserService. + $userService = $user->GetService("UserService", "v201306"); + + // 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/v201306/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php b/examples/Dfp/v201306/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php new file mode 100755 index 000000000..eb2bec3d9 --- /dev/null +++ b/examples/Dfp/v201306/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php @@ -0,0 +1,102 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201306'); + + // Set the user to set to read only access within its teams. + $userId = "INSERT_USER_ID_HERE"; + + // 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); + + $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( + $filterStatement); + + if (isset($page->results)) { + $utas = $page->results; + + // Update each local user team association to read only access. + foreach ($utas as $uta) { + $uta->overriddenTeamAccessType = 'READ_ONLY'; + } + + // Update the user team associations on the server. + $utas = $userTeamAssociationService->updateUserTeamAssociations($utas); + + // 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"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/ActivityGroupService/CreateActivityGroups.php b/examples/Dfp/v201308/ActivityGroupService/CreateActivityGroups.php new file mode 100755 index 000000000..63e9e8b0b --- /dev/null +++ b/examples/Dfp/v201308/ActivityGroupService/CreateActivityGroups.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the ActivityGroupService. + $activityGroupService = $user->GetService('ActivityGroupService', 'v201308'); + + // Set the ID of the advertiser company this activity group is associated + // with. + $advertiserCompanyId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create a short-term activity group. + $shortTermActivityGroup = new ActivityGroup(); + $shortTermActivityGroup->name = sprintf('Short-term activity group #%s', + uniqid()); + $shortTermActivityGroup->companyIds = array($advertiserCompanyId); + $shortTermActivityGroup->clicksLookback = 1; + $shortTermActivityGroup->impressionsLookback = 1; + + // Create a long-term activity group. + $longTermActivityGroup = new ActivityGroup(); + $longTermActivityGroup->name = sprintf('Long-term activity group #%s', + uniqid()); + $longTermActivityGroup->companyIds = array($advertiserCompanyId); + $longTermActivityGroup->clicksLookback = 30; + $longTermActivityGroup->impressionsLookback = 30; + + // Create the activity groups on the server. + $activityGroups = $activityGroupService->createActivityGroups( + array($shortTermActivityGroup, $longTermActivityGroup)); + + // Display results. + if (isset($activityGroups)) { + foreach ($activityGroups as $activityGroup) { + printf("An activity group with ID \"%d\" and name \"%s\" was created.\n", + $activityGroup->id, $activityGroup->name); + } + } else { + printf("No activity groups were created.\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/v201308/ActivityGroupService/GetActiveActivityGroups.php b/examples/Dfp/v201308/ActivityGroupService/GetActiveActivityGroups.php new file mode 100755 index 000000000..5e437baa2 --- /dev/null +++ b/examples/Dfp/v201308/ActivityGroupService/GetActiveActivityGroups.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ActivityGroupService. + $activityGroupService = $user->GetService('ActivityGroupService', 'v201308'); + + // 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; + + $page = new ActivityGroupPage(); + + 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)); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $activityGroup) { + 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); + + printf("Number of results found: %d\n", $page->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/v201308/ActivityGroupService/GetAllActivityGroups.php b/examples/Dfp/v201308/ActivityGroupService/GetAllActivityGroups.php new file mode 100755 index 000000000..086b766df --- /dev/null +++ b/examples/Dfp/v201308/ActivityGroupService/GetAllActivityGroups.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the ActivityGroupService. + $activityGroupService = $user->GetService('ActivityGroupService', 'v201308'); + + // 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; + + $page = new ActivityGroupPage(); + + do { + // Get activity groups by statement. + $page = $activityGroupService->getActivityGroupsByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $activityGroup) { + 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); + + printf("Number of results found: %d\n", $page->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/v201308/ActivityGroupService/UpdateActivityGroups.php b/examples/Dfp/v201308/ActivityGroupService/UpdateActivityGroups.php new file mode 100755 index 000000000..bae994efc --- /dev/null +++ b/examples/Dfp/v201308/ActivityGroupService/UpdateActivityGroups.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the ActivityGroupService. + $activityGroupService = $user->GetService('ActivityGroupService', 'v201308'); + + // 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'; + + // Get the activity group. + $activityGroup = $activityGroupService->getActivityGroup($activityGroupId); + + // Update the companies. + $activityGroup->companyIds[] = $advertiserCompanyId; + + // Update the activity groups on the server. + $activityGroups = $activityGroupService->updateActivityGroups(array($activityGroup)); + + // Display results. + if (isset($activityGroups)) { + foreach ($activityGroups as $updatedActivityGroup) { + printf("Activity group with ID \"%d\" and name \"%s\" was updated.\n", + $updatedActivityGroup->id, $updatedActivityGroup->name); + } + } else { + printf("No activity groups were updated.\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/v201308/ActivityService/CreateActivities.php b/examples/Dfp/v201308/ActivityService/CreateActivities.php new file mode 100755 index 000000000..46713df4b --- /dev/null +++ b/examples/Dfp/v201308/ActivityService/CreateActivities.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201308'); + + // Set the ID of the activity group this activity is associated with. + $activityGroupId = 'INSERT_ACTIVITY_GROUP_ID_HERE'; + + // Create a daily visits activity. + $dailyVisitsActivity = new Activity(); + $dailyVisitsActivity->name = sprintf('Activity #%s', uniqid()); + $dailyVisitsActivity->activityGroupId = $activityGroupId; + $dailyVisitsActivity->type = 'DAILY_VISITS'; + + // Create a custom activity. + $customActivity = new Activity(); + $customActivity->name = sprintf('Activity #%s', uniqid()); + $customActivity->activityGroupId = $activityGroupId; + $customActivity->type = 'CUSTOM'; + + // Create the activities on the server. + $activities = $activityService->createActivities( + array($dailyVisitsActivity, $customActivity)); + + // Display results. + if (isset($activities)) { + foreach ($activities as $activity) { + printf("An activity with ID \"%d\", name \"%s\", and type \"%s\" was " . + "created.\n", $activity->id, $activity->name, $activity->type); + } + } else { + printf("No activities were created.\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/v201308/ActivityService/GetActiveActivities.php b/examples/Dfp/v201308/ActivityService/GetActiveActivities.php new file mode 100755 index 000000000..bb3aa7b5a --- /dev/null +++ b/examples/Dfp/v201308/ActivityService/GetActiveActivities.php @@ -0,0 +1,96 @@ +LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201308'); + + // Set the ID of the activity group these activities are associated with. + $activityGroupId = 'INSERT_ACTIVITY_GROUP_ID_HERE'; + + // Statement parts to help build a statement that only selects active + // activities. + $pqlTemplate = 'WHERE activityGroupId = :activityGroupId and status = ' . + ':status ORDER BY id LIMIT %d OFFSET %d'; + $STATUS = 'ACTIVE'; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + + $page = new ActivityPage(); + + do { + // Get activities by statement. + $vars = MapUtils::GetMapEntries(array('activityGroupId' => + new NumberValue($activityGroupId), 'status' => new TextValue($STATUS))); + $page = $activityService->getActivitiesByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), $vars)); + + // Display results. + if (isset($page->results)) { + $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); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->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/v201308/ActivityService/GetAllActivities.php b/examples/Dfp/v201308/ActivityService/GetAllActivities.php new file mode 100755 index 000000000..0f7865406 --- /dev/null +++ b/examples/Dfp/v201308/ActivityService/GetAllActivities.php @@ -0,0 +1,136 @@ +GetService('ActivityGroupService', + 'v201308'); + + // 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; + + $page = new ActivityGroupPage(); + + do { + // Get activity groups by statement. + $page = $activityGroupService->getActivityGroupsByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + + // Display results. + if (isset($page->results)) { + foreach ($page->results as $activityGroup) { + $activityGroupIds[] = $activityGroup->id; + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + return $activityGroupIds; +} + +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->LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201308'); + + // Statement parts to help build a statement to get all activities for an + // activity group. + $pqlTemplate = 'WHERE activityGroupId = :activityGroupId ORDER BY id LIMIT ' . + '%d OFFSET %d'; + $SUGGESTED_PAGE_LIMIT = 500; + + $totalResultsCounter = 0; + + $activityGroupIds = getAllActivityGroupIds($user); + + foreach ($activityGroupIds as $activityGroupId) { + // Set the activity group ID to select from. + $vars = MapUtils::GetMapEntries(array('activityGroupId' => + new NumberValue($activityGroupId))); + + $page = new ActivityPage(); + $offset = 0; + + do { + // Get activities by statement. + $page = $activityService->getActivitiesByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), $vars)); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $activity) { + printf("%d) Activity with ID \"%d\", name \"%s\", type \"%s\", and " . + "activity group ID \"%d\" was found.\n", $totalResultsCounter++, + $activity->id, $activity->name, $activity->type, + $activityGroupId); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->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()); +} + diff --git a/examples/Dfp/v201308/ActivityService/UpdateActivities.php b/examples/Dfp/v201308/ActivityService/UpdateActivities.php new file mode 100755 index 000000000..3e9b28da7 --- /dev/null +++ b/examples/Dfp/v201308/ActivityService/UpdateActivities.php @@ -0,0 +1,83 @@ +LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201308'); + + // Set the ID of the activity to update. + $activityId = 'INSERT_ACTIVITY_ID_HERE'; + + // Get the activity. + $activity = $activityService->getActivity($activityId); + + // Update the expected URL. + $activity->expectedURL = 'https://google.com'; + + // Update the activity on the server. + $activities = $activityService->updateActivities(array($activity)); + + // Display results. + if (isset($activities)) { + foreach ($activities as $updatedActivity) { + printf("Activity with ID \"%d\" and name \"%s\" was updated.\n", + $updatedActivity->id, $updatedActivity->name); + } + } else { + printf("No activities were updated.\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/v201308/AudienceSegmentService/CreateAudienceSegments.php b/examples/Dfp/v201308/AudienceSegmentService/CreateAudienceSegments.php new file mode 100755 index 000000000..6093d5cc0 --- /dev/null +++ b/examples/Dfp/v201308/AudienceSegmentService/CreateAudienceSegments.php @@ -0,0 +1,118 @@ +LogDefaults(); + + // Get the AudienceSegmentService. + $audienceSegmentService = + $user->GetService('AudienceSegmentService', 'v201308'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201308'); + + // Set the IDs of the custom criteria to be used in the segment rule. + $customTargetingKeyId = 'INSERT_CUSTOM_TARGETING_KEY_ID_HERE'; + $customTargetingValueId = 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'; + + // Get the root ad unit ID used to target the whole site. + $rootAdUnitId = $networkService->getCurrentNetwork()->effectiveRootAdUnitId; + + // Create inventory targeting to be used in the segment rule. + $inventoryTargeting = new InventoryTargeting(); + + // Create ad unit targeting for the root ad unit (i.e. the whole network). + $adUnitTargeting = new AdUnitTargeting(); + $adUnitTargeting->adUnitId = $rootAdUnitId; + $inventoryTargeting->targetedAdUnits = array($adUnitTargeting); + + // Create custom criteria to be used in the segment rule. + $customCriteria = new CustomCriteria(); + $customCriteria->keyId = $customTargetingKeyId; + $customCriteria->valueIds = array($customTargetingValueId); + $customCriteria->operator = 'IS'; + + // Create the custom criteria set that will resemble: + // $customCriteria.key == $customCriteria.value + $topCustomCriteriaSet = new CustomCriteriaSet(); + $topCustomCriteriaSet->logicalOperator = 'AND'; + $topCustomCriteriaSet->children = array($customCriteria); + + // Create the audience segment rule. + $rule = new FirstPartyAudienceSegmentRule(); + $rule->inventoryRule = $inventoryTargeting; + $rule->customCriteriaRule = $topCustomCriteriaSet; + + // Create an audience segment. + $audienceSegment = new RuleBasedFirstPartyAudienceSegment(); + $audienceSegment->name = sprintf('Sports enthusiasts audience segment #%s', + uniqid()); + $audienceSegment->description = 'Sports enthusiasts between the ages of 20 ' + . 'and 30.'; + $audienceSegment->pageViews = 6; + $audienceSegment->recencyDays = 6; + $audienceSegment->membershipExpirationDays = 88; + $audienceSegment->rule = $rule; + + // Create the audience segment on the server. + $audienceSegments = $audienceSegmentService->createAudienceSegments( + array($audienceSegment)); + + // Display results. + foreach ($audienceSegments as $createdAudienceSegment) { + printf("An audience segment with ID \"%d\", name \"%s\", and type \"%s\" " + . "was created.\n", $createdAudienceSegment->id, + $createdAudienceSegment->name, $createdAudienceSegment->type); + } +} 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/v201308/AudienceSegmentService/GetAllAudienceSegments.php b/examples/Dfp/v201308/AudienceSegmentService/GetAllAudienceSegments.php new file mode 100755 index 000000000..03b1d9600 --- /dev/null +++ b/examples/Dfp/v201308/AudienceSegmentService/GetAllAudienceSegments.php @@ -0,0 +1,87 @@ +LogDefaults(); + + // Get the AudienceSegmentService. + $audienceSegmentService = $user->GetService('AudienceSegmentService', + 'v201308'); + + // 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; + + $page = new AudienceSegmentPage(); + + do { + // Get audience segments by statement. + $page = $audienceSegmentService->getAudienceSegmentsByStatement( + new Statement(sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $audienceSegment) { + printf("%d) Audience segment with ID \"%d\" and name \"%s\" was " + . "found.\n", $i++, $audienceSegment->id, $audienceSegment->name); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->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/v201308/AudienceSegmentService/GetFirstPartyAudienceSegments.php b/examples/Dfp/v201308/AudienceSegmentService/GetFirstPartyAudienceSegments.php new file mode 100755 index 000000000..5e221f6cc --- /dev/null +++ b/examples/Dfp/v201308/AudienceSegmentService/GetFirstPartyAudienceSegments.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the AudienceSegmentService. + $audienceSegmentService = $user->GetService('AudienceSegmentService', + 'v201308'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('type' => new TextValue('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(); + + do { + // Get audience segments by statement. + $page = $audienceSegmentService->getAudienceSegmentsByStatement( + new Statement(sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), + $vars)); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $audienceSegment) { + printf("%d) First party audience segment with ID \"%d\" and name " + . "\"%s\" was found.\n", $i++, $audienceSegment->id, + $audienceSegment->name); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->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/v201308/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php b/examples/Dfp/v201308/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php new file mode 100755 index 000000000..51c1e2fa3 --- /dev/null +++ b/examples/Dfp/v201308/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php @@ -0,0 +1,125 @@ +LogDefaults(); + + // Get the AudienceSegmentService. + $audienceSegmentService = + $user->GetService('AudienceSegmentService', 'v201308'); + + $audienceSegmentId = 'INSERT_AUDIENCE_SEGMENT_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('type' => new TextValue('FIRST_PARTY'), + 'audienceSegmentId' => new NumberValue($audienceSegmentId))); + + // 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; + + $page = new AudienceSegmentPage(); + + do { + // Get audience segments by statement. + $page = $audienceSegmentService->getAudienceSegmentsByStatement( + new Statement(sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), + $vars)); + + // Display results. + $audienceSegmentIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $audienceSegment) { + 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); + + printf("Number of audience segments to be populated: %d\n", + sizeof($audienceSegmentIds)); + + if (sizeof($audienceSegmentIds) > 0) { + // Create action statement. + $filterStatementText = sprintf('WHERE id IN (%s)', + implode(',', $audienceSegmentIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new PopulateAudienceSegments(); + + // Perform action. + $result = $audienceSegmentService->performAudienceSegmentAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of audience segments populated: %d\n", + $result->numChanges); + } else { + printf("No audience segments were populated.\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/v201308/AudienceSegmentService/UpdateAudienceSegments.php b/examples/Dfp/v201308/AudienceSegmentService/UpdateAudienceSegments.php new file mode 100755 index 000000000..6efadaaa8 --- /dev/null +++ b/examples/Dfp/v201308/AudienceSegmentService/UpdateAudienceSegments.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the AudienceSegmentService. + $audienceSegmentService = $user->GetService('AudienceSegmentService', + 'v201308'); + + // 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))); + + // Create statement text to select the audience segment to update. + $filterStatementText = "WHERE id = :audienceSegmentId LIMIT 1"; + + // Get the audience segment. + $audienceSegment = $audienceSegmentService->getAudienceSegmentsByStatement( + new Statement($filterStatementText, $vars))->results[0]; + + // Update the member expiration days. + $audienceSegment->membershipExpirationDays = 180; + + // Update the audience segment on the server. + $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"); + } +} 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/v201308/CompanyService/CreateCompaniesExample.php b/examples/Dfp/v201308/CompanyService/CreateCompaniesExample.php new file mode 100755 index 000000000..16091d0a3 --- /dev/null +++ b/examples/Dfp/v201308/CompanyService/CreateCompaniesExample.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201308'); + + // Create an array to store local company objects. + $companies = array(); + + for ($i = 0; $i < 5; $i++) { + $company = new Company(); + $company->name = 'Advertiser #' . $i; + $company->type = 'ADVERTISER'; + + $companies[] = $company; + } + + // Create the companies on the server. + $companies = $companyService->createCompanies($companies); + + // Display results. + if (isset($companies)) { + foreach ($companies as $company) { + print 'A company with ID "' . $company->id + . '", name "'. $company->name + . '", and type "' . $company->type . "\" was created.\n"; + } + } else { + print "No companies created.\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/v201308/CompanyService/GetAllCompaniesExample.php b/examples/Dfp/v201308/CompanyService/GetAllCompaniesExample.php new file mode 100755 index 000000000..3682a14b5 --- /dev/null +++ b/examples/Dfp/v201308/CompanyService/GetAllCompaniesExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201308'); + + // Set defaults for page and statement. + $page = new CompanyPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all companies. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get companies by statement. + $page = $companyService->getCompaniesByStatement($filterStatement); + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201308/CompanyService/GetCompaniesByStatementExample.php b/examples/Dfp/v201308/CompanyService/GetCompaniesByStatementExample.php new file mode 100755 index 000000000..35447406b --- /dev/null +++ b/examples/Dfp/v201308/CompanyService/GetCompaniesByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201308'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('type' => new TextValue('ADVERTISER'))); + + // 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 companies by statement. + $page = $companyService->getCompaniesByStatement($filterStatement); + + // 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++; + } + } + + 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/v201308/CompanyService/GetCompanyExample.php b/examples/Dfp/v201308/CompanyService/GetCompanyExample.php new file mode 100755 index 000000000..23a42b57a --- /dev/null +++ b/examples/Dfp/v201308/CompanyService/GetCompanyExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201308'); + + // Set the ID of the company to get. + $companyId = 'INSERT_COMPANY_ID_HERE'; + + // Get the company. + $company = $companyService->getCompany($companyId); + + // Display results. + if (isset($company)) { + print 'Company with ID "' . $company->id + . '", name "' . $company->name + . '", and type "' . $company->type . "\" was found.\n"; + } else { + print "No company found for this ID.\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/v201308/CompanyService/UpdateCompaniesExample.php b/examples/Dfp/v201308/CompanyService/UpdateCompaniesExample.php new file mode 100755 index 000000000..e3e577c3d --- /dev/null +++ b/examples/Dfp/v201308/CompanyService/UpdateCompaniesExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201308'); + + // 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/v201308/ContactService/CreateContacts.php b/examples/Dfp/v201308/ContactService/CreateContacts.php new file mode 100755 index 000000000..7fc2157bc --- /dev/null +++ b/examples/Dfp/v201308/ContactService/CreateContacts.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201308'); + + // Set the ID of the advertiser company this contact is associated with. + $advertiserCompanyId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Set the ID of the agency company this contact is associated with. + $agencyCompanyId = 'INSERT_AGENCY_COMPANY_ID_HERE'; + + // Create an advertiser contact. + $advertiserContact = new Contact(); + $advertiserContact->name = sprintf('Mr. Advertiser #%s', uniqid()); + $advertiserContact->email = 'advertiser@advertising.com'; + $advertiserContact->companyId = $advertiserCompanyId; + + // Create an agency contact. + $agencyContact = new Contact(); + $agencyContact->name = sprintf('Ms. Agency #%s', uniqid()); + $agencyContact->email = 'agency@agencies.com'; + $agencyContact->companyId = $agencyCompanyId; + + // Create the contacts on the server. + $contacts = $contactService->createContacts(array($advertiserContact, + $agencyContact)); + + // Display results. + if (isset($contacts)) { + foreach ($contacts as $contact) { + printf("A contact with ID \"%d\" and name \"%s\" was created.\n", + $contact->id, $contact->name); + } + } else { + printf("No contacts were created.\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/v201308/ContactService/GetAllContacts.php b/examples/Dfp/v201308/ContactService/GetAllContacts.php new file mode 100755 index 000000000..a396b98f9 --- /dev/null +++ b/examples/Dfp/v201308/ContactService/GetAllContacts.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201308'); + + // 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; + + $page = new ContactPage(); + + do { + // Get contacts by statement. + $page = $contactService->getContactsByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $contact) { + 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); + + printf("Number of results found: %d\n", $page->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/v201308/ContactService/GetUninvitedContacts.php b/examples/Dfp/v201308/ContactService/GetUninvitedContacts.php new file mode 100755 index 000000000..c8c95b84f --- /dev/null +++ b/examples/Dfp/v201308/ContactService/GetUninvitedContacts.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201308'); + + // 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; + + $page = new ContactPage(); + + 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)); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $contact) { + 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); + + printf("Number of results found: %d\n", $page->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/v201308/ContactService/UpdateContacts.php b/examples/Dfp/v201308/ContactService/UpdateContacts.php new file mode 100755 index 000000000..56f98e92d --- /dev/null +++ b/examples/Dfp/v201308/ContactService/UpdateContacts.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201308'); + + // Set the ID of the contact to update. + $contactId = "INSERT_CONTACT_ID_HERE"; + + // Get the contact. + $contact = $contactService->getContact($contactId); + + // Update the address on the contact. + $contact->address = '123 New Street, New York, NY, 10011'; + + // Update the contact on the server. + $contacts = $contactService->updateContacts(array($contact)); + + // Display results. + if (isset($contacts)) { + foreach ($contacts as $updatedContact) { + printf("Contact with ID \"%d\", name \"%s\", and address \"%s\" was " . + "updated.\n", $updatedContact->id, $updatedContact->name, + $updatedContact->address); + } + } else { + printf("No contacts were updated.\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/v201308/ContentService/GetAllContentExample.php b/examples/Dfp/v201308/ContentService/GetAllContentExample.php new file mode 100755 index 000000000..f2c7038fe --- /dev/null +++ b/examples/Dfp/v201308/ContentService/GetAllContentExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the ContentService. + $contentService = $user->GetService('ContentService', 'v201308'); + + // Set defaults for page and statement. + $page = new ContentPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all content. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get content by statement. + $page = $contentService->getContentByStatement($filterStatement); + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201308/ContentService/GetContentByCategoryExample.php b/examples/Dfp/v201308/ContentService/GetContentByCategoryExample.php new file mode 100755 index 000000000..0e786d07c --- /dev/null +++ b/examples/Dfp/v201308/ContentService/GetContentByCategoryExample.php @@ -0,0 +1,113 @@ +LogDefaults(); + + // Get the ContentService. + $contentService = $user->GetService('ContentService', 'v201308'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201308'); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201308'); + + // 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/v201308/CreativeService/AssociateCreativeSetToLineItemExample.php b/examples/Dfp/v201308/CreativeService/AssociateCreativeSetToLineItemExample.php new file mode 100755 index 000000000..2d33b1d76 --- /dev/null +++ b/examples/Dfp/v201308/CreativeService/AssociateCreativeSetToLineItemExample.php @@ -0,0 +1,78 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = $user->GetService('LineItemCreativeAssociationService', + 'v201308'); + + // 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/v201308/CreativeService/CreateCreativeFromTemplateExample.php b/examples/Dfp/v201308/CreativeService/CreateCreativeFromTemplateExample.php new file mode 100755 index 000000000..a533bbd42 --- /dev/null +++ b/examples/Dfp/v201308/CreativeService/CreateCreativeFromTemplateExample.php @@ -0,0 +1,129 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201308'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Use the image banner with optional third party tracking template. + $creativeTemplateId = 10000680; + + // Create the local custom creative object. + $templateCreative = new TemplateCreative(); + $templateCreative->name = 'Template creative'; + $templateCreative->advertiserId = $advertiserId; + $templateCreative->creativeTemplateId = $creativeTemplateId; + + // Set the creative size. + $templateCreative->size = new Size(300, 250, FALSE); + + // Create the asset variable value. + $assetVariableValue = new AssetCreativeTemplateVariableValue(); + $assetVariableValue->uniqueName = 'Imagefile'; + $assetVariableValue->assetByteArray = MediaUtils::GetBase64Data( + 'http://www.google.com/intl/en/adwords/select/images/samples/inline.jpg'); + // Filenames must be unique. + $assetVariableValue->fileName = sprintf('image%s.jpg', uniqid()); + $templateCreative->creativeTemplateVariableValues[] = $assetVariableValue; + + // Create the image width variable value. + $imageWidthVariableValue = new LongCreativeTemplateVariableValue(); + $imageWidthVariableValue->uniqueName = 'Imagewidth'; + $imageWidthVariableValue->value = 300; + $templateCreative->creativeTemplateVariableValues[] = + $imageWidthVariableValue; + + // Create the image height variable value. + $imageHeightVariableValue = new LongCreativeTemplateVariableValue(); + $imageHeightVariableValue->uniqueName = 'Imageheight'; + $imageHeightVariableValue->value = 250; + $templateCreative->creativeTemplateVariableValues[] = + $imageHeightVariableValue; + + // Create the URL variable value. + $urlVariableValue = new UrlCreativeTemplateVariableValue(); + $urlVariableValue->uniqueName = 'ClickthroughURL'; + $urlVariableValue->value = 'www.google.com'; + $templateCreative->creativeTemplateVariableValues[] = $urlVariableValue; + + // Create the target window variable value. + $targetWindowVariableValue = new StringCreativeTemplateVariableValue(); + $targetWindowVariableValue->uniqueName = 'Targetwindow'; + $targetWindowVariableValue->value = '_blank'; + $templateCreative->creativeTemplateVariableValues[] = + $targetWindowVariableValue; + + // Create the template creative on the server. + $templateCreative = $creativeService->createCreative($templateCreative); + + // Display results. + if (isset($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->previewUrl); + } else { + print "No creative was created.\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/v201308/CreativeService/CreateCreativesExample.php b/examples/Dfp/v201308/CreativeService/CreateCreativesExample.php new file mode 100755 index 000000000..8469fe5e3 --- /dev/null +++ b/examples/Dfp/v201308/CreativeService/CreateCreativesExample.php @@ -0,0 +1,119 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201308'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create an array to store local image creative objects. + $imageCreatives = array(); + + for ($i = 0; $i < 5; $i++) { + // Create creative size. + $size = new Size(300, 250); + + // Create an image creative. + $imageCreative = new ImageCreative(); + $imageCreative->name = 'Image creative #' . $i; + $imageCreative->advertiserId = $advertiserId; + $imageCreative->destinationUrl = 'http://google.com'; + $imageCreative->size = $size; + + // Create image asset. + $creativeAsset = new CreativeAsset(); + $creativeAsset->fileName = 'image.jpg'; + $creativeAsset->assetByteArray = + MediaUtils::GetBase64Data('http://www.google.com/intl/en/adwords/' + . 'select/images/samples/inline.jpg'); + $creativeAsset->size = $size; + $imageCreative->primaryImageAsset = $creativeAsset; + + $imageCreatives[] = $imageCreative; + } + + // Create the image creatives on the server. + $imageCreatives = $creativeService->createCreatives($imageCreatives); + + // Display results. + if (isset($imageCreatives)) { + 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"; + } else { + print 'A creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType + . "\" was created.\n"; + } + } + } else { + print "No creatives created.\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/v201308/CreativeService/CreateCustomCreativeExample.php b/examples/Dfp/v201308/CreativeService/CreateCustomCreativeExample.php new file mode 100755 index 000000000..bee0ca630 --- /dev/null +++ b/examples/Dfp/v201308/CreativeService/CreateCustomCreativeExample.php @@ -0,0 +1,103 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201308'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create the local custom creative object. + $customCreative = new CustomCreative(); + $customCreative->name = 'Custom creative'; + $customCreative->advertiserId = $advertiserId; + $customCreative->destinationUrl = 'http://google.com'; + + // Set the custom creative image asset. + $customCreativeAsset = new CustomCreativeAsset(); + $customCreativeAsset->macroName = 'IMAGE_ASSET'; + // Filenames must be unique. + $customCreativeAsset->fileName = sprintf('inline%s.jpg', uniqid()); + $customCreativeAsset->assetByteArray = MediaUtils::GetBase64Data( + 'http://www.google.com/intl/en/adwords/select/images/samples/inline.jpg'); + $customCreative->customCreativeAssets = array($customCreativeAsset); + + // Set the HTML snippet using the custom creative asset macro. + $customCreative->htmlSnippet = '' + . '' + . '
Click above for great deals!'; + + // Set the creative size. + $customCreative->size = new Size(300, 250, FALSE); + + // Create the custom creative on the server. + $customCreative = $creativeService->createCreative($customCreative); + + // Display results. + if (isset($customCreative)) { + printf("A custom creative with ID '%s', name '%s', and size '%sx%s' was " + . "created and can be previewed at: %s\n", $templateCreative->id, + $templateCreative->name, $templateCreative->size->width, + $templateCreative->size->height, $templateCreative->previewUrl); + } else { + print "No creative was created.\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/v201308/CreativeService/GetAllCreativesExample.php b/examples/Dfp/v201308/CreativeService/GetAllCreativesExample.php new file mode 100755 index 000000000..864bf3bb5 --- /dev/null +++ b/examples/Dfp/v201308/CreativeService/GetAllCreativesExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201308'); + + // Set defaults for page and statement. + $page = new CreativePage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all creatives. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201308/CreativeService/GetCreativeExample.php b/examples/Dfp/v201308/CreativeService/GetCreativeExample.php new file mode 100755 index 000000000..3c5ba106e --- /dev/null +++ b/examples/Dfp/v201308/CreativeService/GetCreativeExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201308'); + + // Set the ID of the creative to get. + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Get the creative. + $creative = $creativeService->getCreative($creativeId); + + // Display results. + if (isset($creative)) { + print 'Creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType . "\" was found.\n"; + } else { + print "No creative found for this ID.\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/v201308/CreativeService/GetCreativesByStatementExample.php b/examples/Dfp/v201308/CreativeService/GetCreativesByStatementExample.php new file mode 100755 index 000000000..fcc7458bf --- /dev/null +++ b/examples/Dfp/v201308/CreativeService/GetCreativesByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201308'); + + // 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/v201308/CreativeService/UpdateCreativesExample.php b/examples/Dfp/v201308/CreativeService/UpdateCreativesExample.php new file mode 100755 index 000000000..5112d9cda --- /dev/null +++ b/examples/Dfp/v201308/CreativeService/UpdateCreativesExample.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201308'); + + // Create a statement to get all image creatives. + $filterStatement = + new Statement("WHERE creativeType = 'ImageCreative' LIMIT 500"); + + // Get creatives by statement. + $page = $creativeService->getCreativesByStatement($filterStatement); + + if (isset($page->results)) { + $creatives = $page->results; + + // Update each local creative object by changing its destination URL. + foreach ($creatives as $creative) { + $creative->destinationUrl = 'http://news.google.com'; + } + + // Update the creatives on the server. + $creatives = $creativeService->updateCreatives($creatives); + + // 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"; + } + } else { + print "No creatives 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/v201308/CreativeSetService/CreateCreativeSetExample.php b/examples/Dfp/v201308/CreativeSetService/CreateCreativeSetExample.php new file mode 100755 index 000000000..767692d09 --- /dev/null +++ b/examples/Dfp/v201308/CreativeSetService/CreateCreativeSetExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201308'); + + // Set the ID of the creatives to associate with this set. + $masterCreativeID = 'INSERT_MASTER_CREATIVE_ID_HERE'; + $companionCreativeID = 'INSERT_COMPANION_CREATIVE_ID_HERE'; + + // Create a local creative set. + $creativeSet = new CreativeSet(); + $creativeSet->name = 'Creative set #' . uniqid(); + $creativeSet->masterCreativeId = $masterCreativeID; + $creativeSet->companionCreativeIds = array(); + $creativeSet->companionCreativeIds[] = $companionCreativeID; + + // Create the creative set on the server. + $creativeSet = $creativeSetService->createCreativeSet($creativeSet); + + // Display results. + if (isset($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)); + } else { + print "No creative set created.\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/v201308/CreativeSetService/GetAllCreativesSetsExample.php b/examples/Dfp/v201308/CreativeSetService/GetAllCreativesSetsExample.php new file mode 100755 index 000000000..bbcb51286 --- /dev/null +++ b/examples/Dfp/v201308/CreativeSetService/GetAllCreativesSetsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201308'); + + // Set default offset. + $offset = 0; + $filterStatement = new Statement(); + + do { + // Create a statement to get all creative sets. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201308/CreativeSetService/GetCreativeSetsByStatementExample.php b/examples/Dfp/v201308/CreativeSetService/GetCreativeSetsByStatementExample.php new file mode 100755 index 000000000..4201ed385 --- /dev/null +++ b/examples/Dfp/v201308/CreativeSetService/GetCreativeSetsByStatementExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201308'); + + $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/v201308/CreativeSetService/UpdateCreativeSetExample.php b/examples/Dfp/v201308/CreativeSetService/UpdateCreativeSetExample.php new file mode 100755 index 000000000..5a22cd924 --- /dev/null +++ b/examples/Dfp/v201308/CreativeSetService/UpdateCreativeSetExample.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201308'); + + # Set the ID of the creative set to get. + $creativeSetID = 'INSERT_CREATIVE_SET_ID_HERE'; + $companionCreativeID = 'INSERT_COMPANION_CREATIVE_ID_HERE'; + + # Get creative set. + $creativeSet = $creativeSetService->getCreativeSet($creativeSetID); + + $creativeSet->companionCreativeIds[] = $companionCreativeID; + + # Update the creative set on the server. + $creativeSet = $creativeSetService->updateCreativeSet($creativeSet); + + // Display results. + if (isset($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)); + } else { + print "No creative set 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/v201308/CreativeTemplateService/GetAllCreativeTemplatesExample.php b/examples/Dfp/v201308/CreativeTemplateService/GetAllCreativeTemplatesExample.php new file mode 100755 index 000000000..21070c3aa --- /dev/null +++ b/examples/Dfp/v201308/CreativeTemplateService/GetAllCreativeTemplatesExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201308'); + + // Set defaults for page and statement. + $page = new CreativeTemplatePage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all creative templates. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201308/CreativeTemplateService/GetCreativeTemplateExample.php b/examples/Dfp/v201308/CreativeTemplateService/GetCreativeTemplateExample.php new file mode 100755 index 000000000..88b2b487d --- /dev/null +++ b/examples/Dfp/v201308/CreativeTemplateService/GetCreativeTemplateExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201308'); + + // Set the ID of the creative template to get. + $creativeTemplateId = 'INSERT_CREATIVE_TEMPLATE_ID_HERE'; + + // Get the creative template. + $creativeTemplate = + $creativeTemplateService->getCreativeTemplate($creativeTemplateId); + + // Display results. + if (isset($creativeTemplate)) { + printf("Creative template with ID '%s', name '%s', and type '%s' was " + ."found.\n", $creativeTemplate->id, $creativeTemplate->name, + $creativeTemplate->type); + } else { + print "No creative template found for this ID.\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/v201308/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php b/examples/Dfp/v201308/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php new file mode 100755 index 000000000..e674ca19a --- /dev/null +++ b/examples/Dfp/v201308/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201308'); + + // 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/v201308/CreativeWrapperService/CreateCreativeWrappersExample.php b/examples/Dfp/v201308/CreativeWrapperService/CreateCreativeWrappersExample.php new file mode 100755 index 000000000..0778e67b4 --- /dev/null +++ b/examples/Dfp/v201308/CreativeWrapperService/CreateCreativeWrappersExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201308'); + + $labelId = 'INSERT_CREATIVE_WRAPPER_LABEL_ID_HERE'; + + // Create creative wrapper objects. + $creativeWrapper = new CreativeWrapper(); + $creativeWrapper->labelId = $labelId; + $creativeWrapper->ordering = 'INNER'; + $creativeWrapper->header = new CreativeWrapperHtmlSnippet; + $creativeWrapper->header->htmlSnippet = 'My creative wrapper header'; + $creativeWrapper->footer = new CreativeWrapperHtmlSnippet; + $creativeWrapper->footer->htmlSnippet = 'My creative wrapper footer'; + + // Create the creative wrappers on the server. + $creativeWrappers = + $creativeWrapperService->CreateCreativeWrappers(array($creativeWrapper)); + + // Display results. + if (isset($creativeWrappers)) { + foreach ($creativeWrappers as $creativeWrapper) { + printf("Creative wrapper with ID '%d' applying to label '%d' was" . + " created.\n", $creativeWrapper->id, $creativeWrapper->labelId); + } + } else { + print "No creative wrappers were created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201308/CreativeWrapperService/DeactivateCreativeWrapperExample.php b/examples/Dfp/v201308/CreativeWrapperService/DeactivateCreativeWrapperExample.php new file mode 100755 index 000000000..ed81a549f --- /dev/null +++ b/examples/Dfp/v201308/CreativeWrapperService/DeactivateCreativeWrapperExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201308'); + + $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/v201308/CreativeWrapperService/GetActiveCreativeWrappersExample.php b/examples/Dfp/v201308/CreativeWrapperService/GetActiveCreativeWrappersExample.php new file mode 100755 index 000000000..c333812b4 --- /dev/null +++ b/examples/Dfp/v201308/CreativeWrapperService/GetActiveCreativeWrappersExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201308'); + + // Create a statement to select only active creative wrappers. + $vars = MapUtils::GetMapEntries(array('status' => new TextValue('ACTIVE'))); + $filterStatement = + new Statement('WHERE status = :status', $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' 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/v201308/CreativeWrapperService/GetAllCreativeWrappersExample.php b/examples/Dfp/v201308/CreativeWrapperService/GetAllCreativeWrappersExample.php new file mode 100755 index 000000000..8af97c1db --- /dev/null +++ b/examples/Dfp/v201308/CreativeWrapperService/GetAllCreativeWrappersExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201308'); + + // 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/v201308/CreativeWrapperService/UpdateCreativeWrappersExample.php b/examples/Dfp/v201308/CreativeWrapperService/UpdateCreativeWrappersExample.php new file mode 100755 index 000000000..bc815731b --- /dev/null +++ b/examples/Dfp/v201308/CreativeWrapperService/UpdateCreativeWrappersExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201308'); + + $creativeWrapperId = 'INSERT_CREATIVE_WRAPPER_ID_HERE'; + + // Get creative wrapper. + $creativeWrapper = + $creativeWrapperService->getCreativeWrapper($creativeWrapperId); + + if (isset($creativeWrapper)) { + $creativeWrapper->ordering = 'OUTER'; + + // Update the creative wrappers on the server. + $creativeWrappers = + $creativeWrapperService-> + updateCreativeWrappers(array($creativeWrapper)); + + // Display results. + if (isset($creativeWrappers)) { + foreach ($creativeWrappers as $creativeWrapper) { + printf("Creative wrapper with ID '%s' and wrapping order '%s' was" . + " updated.\n", $creativeWrapper->id, $creativeWrapper->ordering); + } + } else { + printf('No creative wrappers were updated.'); + } + } else { + print "No creative wrappers found to update."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201308/CustomFieldService/CreateCustomFieldOptions.php b/examples/Dfp/v201308/CustomFieldService/CreateCustomFieldOptions.php new file mode 100755 index 000000000..63d49c469 --- /dev/null +++ b/examples/Dfp/v201308/CustomFieldService/CreateCustomFieldOptions.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = + $user->GetService('CustomFieldService', 'v201308'); + + // Set the ID of the drop-down custom field to create options for. + $customFieldId = "INSERT_DROP_DOWN_CUSTOM_FIELD_ID_HERE"; + + // Create custom field options. + $customFieldOption1 = new CustomFieldOption(); + $customFieldOption1->displayName = 'Approved'; + $customFieldOption1->customFieldId = $customFieldId; + + $customFieldOption2 = new CustomFieldOption(); + $customFieldOption2->displayName = 'Unapproved'; + $customFieldOption2->customFieldId = $customFieldId; + + // Create the custom targeting keys on the server. + $customFieldOptions = $customFieldService->createCustomFieldOptions( + array($customFieldOption1, $customFieldOption2)); + + // Display results. + if (isset($customFieldOptions)) { + foreach ($customFieldOptions as $customFieldOption) { + printf("A custom field option with ID '%s' and name '%s' was created.\n", + $customFieldOption->id, $customFieldOption->displayName); + } + } else { + print "No custom field options were created.\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/v201308/CustomFieldService/CreateCustomFields.php b/examples/Dfp/v201308/CustomFieldService/CreateCustomFields.php new file mode 100755 index 000000000..2c2c3112c --- /dev/null +++ b/examples/Dfp/v201308/CustomFieldService/CreateCustomFields.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = + $user->GetService('CustomFieldService', 'v201308'); + + // Create custom fields. + $customField1 = new CustomField(); + $customField1->name = 'Customer comments #' . time(); + $customField1->entityType = 'LINE_ITEM'; + $customField1->dataType = 'STRING'; + $customField1->visibility = 'FULL'; + + $customField2 = new CustomField(); + $customField2->name = 'Internal approval status #' . time(); + $customField2->entityType = 'LINE_ITEM'; + $customField2->dataType = 'DROP_DOWN'; + $customField2->visibility = 'FULL'; + + // Create the custom fields on the server. + $customFields = $customFieldService->createCustomFields( + array($customField1, $customField2)); + + // Display results. + if (isset($customFields)) { + foreach ($customFields as $customField) { + printf("A custom field with ID '%s' and name '%s' was created.\n", + $customField->id, $customField->name); + } + } else { + print "No custom fields were created.\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/v201308/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php b/examples/Dfp/v201308/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php new file mode 100755 index 000000000..b15989577 --- /dev/null +++ b/examples/Dfp/v201308/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php @@ -0,0 +1,123 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201308'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('entityType' => new TextValue("LINE_ITEM"), + 'isActive' => new BooleanValue("TRUE"))); + + // Create statement text to select only active custom fields that apply + // to line items. + $filterStatementText = + "WHERE entityType = :entityType and isActive = :isActive"; + $offset = 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); + + // Display results. + $customFieldIds = array(); + if (isset($page->results)) { + $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; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of custom fields to be deactivated: ' . sizeof($customFieldIds) + . "\n"; + + if (sizeof($customFieldIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $customFieldIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateCustomFields(); + + // Perform action. + $result = $customFieldService->performCustomFieldAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of custom fields deactivated: ' . $result->numChanges + . "\n"; + } else { + print "No custom fields 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/v201308/CustomFieldService/GetAllCustomFieldsExample.php b/examples/Dfp/v201308/CustomFieldService/GetAllCustomFieldsExample.php new file mode 100755 index 000000000..87493c16f --- /dev/null +++ b/examples/Dfp/v201308/CustomFieldService/GetAllCustomFieldsExample.php @@ -0,0 +1,87 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201308'); + + // Set defaults for page and statement. + $page = new CustomFieldPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all custom fields. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get custom fields by statement. + $page = $customFieldService->getCustomFieldsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $customField) { + print $i . ') Custom field with ID "' . $customField->id + . '" and name "' . $customField->name . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201308/CustomFieldService/SetLineItemCustomFieldValue.php b/examples/Dfp/v201308/CustomFieldService/SetLineItemCustomFieldValue.php new file mode 100755 index 000000000..40b166612 --- /dev/null +++ b/examples/Dfp/v201308/CustomFieldService/SetLineItemCustomFieldValue.php @@ -0,0 +1,128 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201308'); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201308'); + + // Set the IDs of the custom fields, custom field option, and line item. + $customFieldId = "INSERT_CUSTOM_FIELD_ID_HERE"; + $dropDownCustomFieldId = "INSERT_DROP_DOWN_CUSTOM_FIELD_ID_HERE"; + $customFieldOptionId = "INSERT_CUSTOM_FIELD_OPTION_ID_HERE"; + $lineItemId = "INSERT_LINE_ITEM_ID_HERE"; + + // Get the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + + // Create custom field values. + $customFieldValues = array(); + + $customFieldValue = new CustomFieldValue(); + $customFieldValue->customFieldId = $customFieldId; + $customFieldValue->value = new TextValue("Custom field value"); + $customFieldValues[] = $customFieldValue; + + $dropDownCustomFieldValue = new DropDownCustomFieldValue(); + $dropDownCustomFieldValue->customFieldId = $dropDownCustomFieldId; + $dropDownCustomFieldValue->customFieldOptionId = $customFieldOptionId; + $customFieldValues[] = $dropDownCustomFieldValue; + + // Only add existing custom field values for different custom fields than + // the ones you are setting. + if (isset($lineItem->customFieldValues)) { + foreach ($lineItem->customFieldValues as $oldCustomFieldValue) { + if (($oldCustomFieldValue->customFieldId != $customFieldId) && + ($oldCustomFieldValue->customFieldId != $dropDownCustomFieldId)) { + $customFieldValues[] = $oldCustomFieldValue; + } + } + } + + $lineItem->customFieldValues = $customFieldValues; + + // Update the line item on the server. + $lineItems = $lineItemService->updateLineItems($lineItem); + + if (isset($lineItems)) { + foreach ($lineItems as $lineItem) { + $customFieldValueStrings = array(); + foreach ($lineItem->customFieldValues as $baseCustomFieldValue) { + if (($baseCustomFieldValue instanceof CustomFieldValue)) { + $customFieldValueStrings[] = "{ID: '" + . $baseCustomFieldValue->customFieldId . "', value: '" + . $baseCustomFieldValue->value->value . "'}"; + } else if ($baseCustomFieldValue instanceof DropDownCustomFieldValue) { + $customFieldValueStrings[] = "{ID: '" + . $baseCustomFieldValue->customFieldId + . "', custom field option ID: '" + . $baseCustomFieldValue->customFieldOptionId . "'}"; + } + } + print "A line item with ID '" . $lineItem->id + . "' was set with custom field values '" + . join(",", $customFieldValueStrings) . "'."; + } + } + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CustomFieldService/UpdateCustomFieldExample.php b/examples/Dfp/v201308/CustomFieldService/UpdateCustomFieldExample.php new file mode 100755 index 000000000..e69f19f30 --- /dev/null +++ b/examples/Dfp/v201308/CustomFieldService/UpdateCustomFieldExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201308'); + + // Set the ID of the custom field to update. + $customFieldId = "INSERT_CUSTOM_FIELD_ID_HERE"; + + // Get the custom field. + $customField = $customFieldService->getCustomField($customFieldId); + + if (isset($customField)) { + $customField->description = "Description " . time(); + + $customFields = array(); + $customFields[] = $customField; + + // Update the custom field on the server. + $customFields = $customFieldService->updateCustomFields($customFields); + + // Display results. + if (isset($customFields)) { + foreach ($customFields as $customField) { + print 'Custom field with ID "' + . $customField->id . '", name "' . $customField->name + . '", and description "' . $customField->description + . "\" was updated.\n"; + } + } else { + print "No custom fields were updated.\n"; + } + } else { + print "No custom fields 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/v201308/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php b/examples/Dfp/v201308/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php new file mode 100755 index 000000000..00346ad93 --- /dev/null +++ b/examples/Dfp/v201308/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php @@ -0,0 +1,152 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201308'); + + // Create predefined key. + $genderKey = new CustomTargetingKey(); + $genderKey->displayName = 'gender'; + $genderKey->name = 'g'; + $genderKey->type = 'PREDEFINED'; + + // Create predefined key that may be used for content targeting. + $genreKey = new CustomTargetingKey(); + $genreKey->displayName = 'genre'; + $genreKey->name = 'genre'; + $genreKey->type = 'PREDEFINED'; + + // Create free-form key. + $carModelKey = new CustomTargetingKey(); + $carModelKey->displayName = 'car model'; + $carModelKey->name = 'c'; + $carModelKey->type = 'FREEFORM'; + + // Create the custom targeting keys on the server. + $keys = $customTargetingService->createCustomTargetingKeys( + array($genderKey, $genreKey, $carModelKey)); + + if (isset($keys)) { + foreach ($keys as $key) { + printf("A custom targeting key with ID '%s', name '%s', and display " . + "name '%s' was created.\n", $key->id, $key->name, $key->displayName); + } + } else { + print "No keys were created.\n"; + } + + // Create custom targeting value for the predefined gender key. + $genderMaleValue = new CustomTargetingValue(); + $genderMaleValue->customTargetingKeyId = $keys[0]->id; + $genderMaleValue->displayName = 'male'; + // Name is set to 1 so that the actual name can be hidden from website + // users. + $genderMaleValue->name = '1'; + $genderMaleValue->matchType = 'EXACT'; + + $genderFemaleValue = new CustomTargetingValue(); + $genderFemaleValue->customTargetingKeyId = $keys[0]->id; + $genderFemaleValue->displayName = 'female'; + // Name is set to 2 so that the actual name can be hidden from website + // users. + $genderFemaleValue->name = '2'; + $genderFemaleValue->matchType = 'EXACT'; + + // Create custom targeting value for the predefined genre key. + $genreComedyValue = new CustomTargetingValue(); + $genreComedyValue->customTargetingKeyId = $keys[1]->id; + $genreComedyValue->displayName = 'comedy'; + $genreComedyValue->name = 'comedy'; + $genreComedyValue->matchType = 'EXACT'; + + $genreDramaValue = new CustomTargetingValue(); + $genreDramaValue->customTargetingKeyId = $keys[1]->id; + $genreDramaValue->displayName = 'drama'; + $genreDramaValue->name = 'drama'; + $genreDramaValue->matchType = 'EXACT'; + + // Create custom targeting value for the free-form age key. These are + // values that would be suggested in the UI or can be used when targeting + // with a free-form custom criterion. + $carModelHondaCivicValue = new CustomTargetingValue(); + $carModelHondaCivicValue->customTargetingKeyId = $keys[2]->id; + $carModelHondaCivicValue->displayName = 'honda civic'; + $carModelHondaCivicValue->name = 'honda civic'; + // Setting match type to exact will match exactly 'honda civic'. + $carModelHondaCivicValue->matchType = 'EXACT'; + + // Create the custom targeting values on the server. + $values = $customTargetingService->createCustomTargetingValues(array( + $genderMaleValue, $genderFemaleValue, $genreComedyValue, + $genreDramaValue, $carModelHondaCivicValue)); + + if (isset($values)) { + foreach ($values as $value) { + printf("A custom targeting value with ID '%s', belonging to key " . + "with ID '%s', name '%s', and display name '%s' was created.\n", + $value->id, $value->customTargetingKeyId, $value->name, + $value->displayName); + } + } else { + print "No values were created.\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/v201308/CustomTargetingService/DeleteCustomTargetingKeysExample.php b/examples/Dfp/v201308/CustomTargetingService/DeleteCustomTargetingKeysExample.php new file mode 100755 index 000000000..73bcb8a56 --- /dev/null +++ b/examples/Dfp/v201308/CustomTargetingService/DeleteCustomTargetingKeysExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201308'); + + // 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'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('name' => new TextValue($keyName))); + + $offset = 0; + $keyIds = array(); + + 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); + + if (isset($page->results)) { + foreach ($page->results as $customTargetingKey) { + $keyIds[] = $customTargetingKey->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + printf("Number of custom targeting keys to be deleted: %d\n", + sizeof($keyIds)); + + if (sizeof($keyIds) > 0) { + // Create action statement. + $filterStatementText = sprintf('WHERE id IN (%s)', implode(',', $keyIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeleteCustomTargetingKeys(); + + // Perform action. + $result = $customTargetingService->performCustomTargetingKeyAction( + $action, $filterStatement); + + // 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"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CustomTargetingService/DeleteCustomTargetingValuesExample.php b/examples/Dfp/v201308/CustomTargetingService/DeleteCustomTargetingValuesExample.php new file mode 100755 index 000000000..e09dd25be --- /dev/null +++ b/examples/Dfp/v201308/CustomTargetingService/DeleteCustomTargetingValuesExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201308'); + + // 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'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('keyId' => new NumberValue($keyId))); + + $offset = 0; + $valueIds = array(); + + 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); + + if (isset($page->results)) { + foreach ($page->results as $customTargetingValue) { + $valueIds[] = $customTargetingValue->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + printf("Number of custom targeting values to be deleted: %d\n", + sizeof($valueIds)); + + if (sizeof($valueIds) > 0) { + // Create action statement. + $filterStatementText .= sprintf(' AND id IN (%s)', implode(',', $valueIds)); + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeleteCustomTargetingValues(); + + // Perform action. + $result = $customTargetingService->performCustomTargetingValueAction( + $action, $filterStatement); + + // 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"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php b/examples/Dfp/v201308/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php new file mode 100755 index 000000000..510a7d74f --- /dev/null +++ b/examples/Dfp/v201308/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php @@ -0,0 +1,137 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201308'); + + $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/v201308/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php b/examples/Dfp/v201308/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php new file mode 100755 index 000000000..8015c484a --- /dev/null +++ b/examples/Dfp/v201308/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201308'); + + // 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/v201308/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php b/examples/Dfp/v201308/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php new file mode 100755 index 000000000..0f58355de --- /dev/null +++ b/examples/Dfp/v201308/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201308'); + + // Set the ID of the custom targeting key to get custom targeting values for. + $keyId = '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($keyId)))); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingValuesByStatement( + $filterStatement); + + // 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++; + } + } + + 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/v201308/CustomTargetingService/UpdateCustomTargetingKeysExample.php b/examples/Dfp/v201308/CustomTargetingService/UpdateCustomTargetingKeysExample.php new file mode 100755 index 000000000..5643dddfd --- /dev/null +++ b/examples/Dfp/v201308/CustomTargetingService/UpdateCustomTargetingKeysExample.php @@ -0,0 +1,100 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201308'); + + // Create a statement to get all custom targeting keys. + $filterStatement = new Statement('LIMIT 500'); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $filterStatement); + + if (isset($page->results)) { + $keys = $page->results; + + // 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 keys on the server. + $keys = $customTargetingService->updateCustomTargetingKeys($keys); + + // 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"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CustomTargetingService/UpdateCustomTargetingValuesExample.php b/examples/Dfp/v201308/CustomTargetingService/UpdateCustomTargetingValuesExample.php new file mode 100755 index 000000000..c61a47c1d --- /dev/null +++ b/examples/Dfp/v201308/CustomTargetingService/UpdateCustomTargetingValuesExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201308'); + + // 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/v201308/ForecastService/GetForecastByIdExample.php b/examples/Dfp/v201308/ForecastService/GetForecastByIdExample.php new file mode 100755 index 000000000..414a9d2ae --- /dev/null +++ b/examples/Dfp/v201308/ForecastService/GetForecastByIdExample.php @@ -0,0 +1,83 @@ +LogDefaults(); + + // Get the ForecastService. + $forecastService = $user->GetService('ForecastService', 'v201308'); + + // Set the line item to get a forecast for. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Get forecast for line item. + $forecast = $forecastService->getForecastById($lineItemId); + + // 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)) { + $percentPossibleUnits = $forecast->possibleUnits / $matchedUnits * 100; + printf("%d%% %s possible.\n", $percentPossibleUnits, $unitType); + } + + printf("%d contending line items.\n", count($forecast->contendingLineItems)); +} 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/v201308/ForecastService/GetForecastExample.php b/examples/Dfp/v201308/ForecastService/GetForecastExample.php new file mode 100755 index 000000000..ac99eaa15 --- /dev/null +++ b/examples/Dfp/v201308/ForecastService/GetForecastExample.php @@ -0,0 +1,115 @@ +LogDefaults(); + + // Get the ForecastService. + $forecastService = $user->GetService('ForecastService', 'v201308'); + + // Set the placement ID that the prospective line item will target. + $targetPlacementId = 'INSERT_PLACEMENT_ID_HERE'; + + // Create prospective line item. + $lineItem = new LineItem(); + $lineItem->lineItemType = 'SPONSORSHIP'; + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedPlacementIds = array($targetPlacementId); + + // Set targeting for line item. + $targeting = new Targeting(); + $targeting->inventoryTargeting = $inventoryTargeting; + $lineItem->targeting = $targeting; + + // 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 line item's time to be now until the projected end date time. + $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; + + // Set the cost type to match the unit type. + $lineItem->costType = 'CPM'; + + // Get forecast for line item. + $forecast = $forecastService->getForecast($lineItem); + + // 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)) { + $percentPossibleUnits = $forecast->possibleUnits / $matchedUnits * 100; + printf("%d%% %s possible.\n", $percentPossibleUnits, $unitType); + } + + printf("%d contending line items.\n", count($forecast->contendingLineItems)); +} 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/v201308/InventoryService/CreateAdUnitsExample.php b/examples/Dfp/v201308/InventoryService/CreateAdUnitsExample.php new file mode 100755 index 000000000..f088dd92e --- /dev/null +++ b/examples/Dfp/v201308/InventoryService/CreateAdUnitsExample.php @@ -0,0 +1,105 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201308'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201308'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + // Create an array to store local ad unit objects. + $adUnits = array(); + + for ($i = 0; $i < 5; $i++) { + $adUnit = new AdUnit(); + $adUnit->name = uniqid('Ad_Unit_'); + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + + // Create ad unit size. + $adUnitSize = new AdUnitSize(); + $adUnitSize->size = new Size(300, 250, FALSE); + $adUnitSize->environmentType = 'BROWSER'; + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($adUnitSize); + + $adUnits[] = $adUnit; + } + + // Create the ad units on the server. + $adUnits = $inventoryService->createAdUnits($adUnits); + + // Display results. + if (isset($adUnits)) { + foreach ($adUnits as $adUnit) { + print 'An ad unit with ID "' . $adUnit->id + . '" was created under parent with ID "' . $adUnit->parentId + . "\".\n"; + } + } else { + print "No ad units created.\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/v201308/InventoryService/CreateMobileAdUnitExample.php b/examples/Dfp/v201308/InventoryService/CreateMobileAdUnitExample.php new file mode 100755 index 000000000..0cc347212 --- /dev/null +++ b/examples/Dfp/v201308/InventoryService/CreateMobileAdUnitExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201308'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201308'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + $adUnit = new AdUnit(); + $adUnit->name = uniqid('Mobile_Ad_Unit_'); + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + $adUnit->targetPlatform = 'MOBILE'; + $adUnit->mobilePlatform = 'APPLICATION'; + + // Create ad unit size. + $adUnitSize = new AdUnitSize(); + $adUnitSize->size = new Size(400, 300, FALSE); + $adUnitSize->environmentType = 'BROWSER'; + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($adUnitSize); + + // Create the ad unit on the server. + $adUnit = $inventoryService->createAdUnit($adUnit); + + // Display results. + if (isset($adUnit)) { + printf("An ad unit with ID '%s' was created under parent with ID '%s'.\n", + $adUnit->id, $adUnit->parentId); + } else { + print "No ad unit was created.\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/v201308/InventoryService/CreateVideoAdUnitExample.php b/examples/Dfp/v201308/InventoryService/CreateVideoAdUnitExample.php new file mode 100755 index 000000000..50ac7445f --- /dev/null +++ b/examples/Dfp/v201308/InventoryService/CreateVideoAdUnitExample.php @@ -0,0 +1,111 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201308'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201308'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + // Create local ad unit object. + $adUnit = new AdUnit(); + $adUnit->name = 'Video_Ad_Unit'; + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + $adUnit->explicitlyTargeted = TRUE; + $adUnit->targetPlatform = 'WEB'; + + // Create master ad unit size. + $masterAdUnitSize = new AdUnitSize(); + $masterAdUnitSize->size = new Size(400, 300, FALSE); + $masterAdUnitSize->environmentType = 'VIDEO_PLAYER'; + + // Create companion sizes. + $companionAdUnitSize1 = new AdUnitSize(); + $companionAdUnitSize1->size = new Size(300, 250, FALSE); + $companionAdUnitSize1->environmentType = 'BROWSER'; + + $companionAdUnitSize2 = new AdUnitSize(); + $companionAdUnitSize2->size = new Size(728, 90, FALSE); + $companionAdUnitSize2->environmentType = 'BROWSER'; + + // Add companions to master ad unit size. + $masterAdUnitSize->companions = + array($companionAdUnitSize1, $companionAdUnitSize2); + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($masterAdUnitSize); + + // Create the ad unit on the server. + $adUnit = $inventoryService->createAdUnit($adUnit); + + // Display results. + if (isset($adUnit)) { + printf("An ad unit with ID '%s' was created under parent with ID '%s'.\n", + $adUnit->id, $adUnit->parentId); + } else { + print "No ad unit was created.\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/v201308/InventoryService/DeactivateAdUnitsExample.php b/examples/Dfp/v201308/InventoryService/DeactivateAdUnitsExample.php new file mode 100755 index 000000000..c064df752 --- /dev/null +++ b/examples/Dfp/v201308/InventoryService/DeactivateAdUnitsExample.php @@ -0,0 +1,113 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201308'); + + // Create statement text to get all active ad units. + $filterStatementText = "WHERE status = 'ACTIVE'"; + + $offset = 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); + + // Display results. + $adUnitIds = array(); + 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 . "\" will be deactivated.\n"; + $i++; + $adUnitIds[] = $adUnit->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of ad units to be deactivated: ' . sizeof($adUnitIds) . "\n"; + + if (sizeof($adUnitIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $adUnitIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateAdUnits(); + + // Perform action. + $result = $inventoryService->performAdUnitAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of ad units deactivated: ' . $result->numChanges . "\n"; + } else { + print "No ad units 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/v201308/InventoryService/GetAdUnitExample.php b/examples/Dfp/v201308/InventoryService/GetAdUnitExample.php new file mode 100755 index 000000000..68940afa7 --- /dev/null +++ b/examples/Dfp/v201308/InventoryService/GetAdUnitExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201308'); + + // Set the ID of the ad unit to get. + $adUnitId = 'INSERT_AD_UNIT_ID_HERE'; + + // Get the ad unit. + $adUnit = $inventoryService->getAdUnit($adUnitId); + + // Display results. + if (isset($adUnit)) { + print 'Ad unit with ID "' . $adUnit->id + . '", name "' . $adUnit->name + . '", and status "' . $adUnit->status . "\" was found.\n"; + } else { + print "No ad unit found for this ID.\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/v201308/InventoryService/GetAdUnitSizesExample.php b/examples/Dfp/v201308/InventoryService/GetAdUnitSizesExample.php new file mode 100755 index 000000000..4bb98064b --- /dev/null +++ b/examples/Dfp/v201308/InventoryService/GetAdUnitSizesExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201308'); + + // 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); + + // Get all ad unit sizes by statement. + $adUnitSizes = $inventoryService->getAdUnitSizesByStatement($filterStatement); + + // Display results. + $i = 0; + foreach ($adUnitSizes as $adUnitSize) { + printf("%d) Web ad unit size of dimensions %s was found.\n", $i, + $adUnitSize->fullDisplayString); + $i++; + } + + 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"; +} + diff --git a/examples/Dfp/v201308/InventoryService/GetAdUnitsByStatementExample.php b/examples/Dfp/v201308/InventoryService/GetAdUnitsByStatementExample.php new file mode 100755 index 000000000..7524e2b97 --- /dev/null +++ b/examples/Dfp/v201308/InventoryService/GetAdUnitsByStatementExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201308'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201308'); + + // Get the effective root ad unit's ID. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->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)))); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // 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++; + } + } + + 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/v201308/InventoryService/GetAllAdUnitsExample.php b/examples/Dfp/v201308/InventoryService/GetAllAdUnitsExample.php new file mode 100755 index 000000000..fc4285af9 --- /dev/null +++ b/examples/Dfp/v201308/InventoryService/GetAllAdUnitsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201308'); + + // Set defaults for page and statement. + $page = new AdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201308/InventoryService/GetInventoryTreeExample.php b/examples/Dfp/v201308/InventoryService/GetInventoryTreeExample.php new file mode 100755 index 000000000..e1f76b506 --- /dev/null +++ b/examples/Dfp/v201308/InventoryService/GetInventoryTreeExample.php @@ -0,0 +1,206 @@ +GetService('InventoryService', 'v201308'); + + // Create array to hold all ad units. + $adUnits = array(); + + // Set defaults for page and statement. + $page = new AdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + $adUnits = array_merge($adUnits, $page->results); + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + return $adUnits; +} + +/** + * Finds the root ad unit for the user. + * @param DfpUser $user the user to get the root ad unit for + * @return the ad unit representing the root ad unit or NULL if one + * is not found. + * @access private + */ +function FindRootAdUnit(DfpUser $user) { + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201308'); + + // Create a statement to only select image creatives. + $filterStatement = new Statement("WHERE parentId IS NULL LIMIT 1"); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + return $page->results[0]; + } else { + return NULL; + } +} + +/** + * Builds and displays an ad unit tree from an array of ad units underneath + * the root ad unit. + * @param AdUnit $root the root ad unit to build the tree under + * @param array $adUnits the array of ad units. + * @access private + */ +function BuildAndDisplayAdUnitTree(AdUnit $root, + array $adUnits) { + $treeMap = array(); + + foreach ($adUnits as $adUnit) { + if (isset($adUnit->parentId)) { + $treeMap[$adUnit->parentId][] = $adUnit; + } + } + + if (isset($root)) { + DisplayInventoryTree($root, $treeMap); + } else { + print "No root unit found.\n"; + } +} + +/** + * Displays the ad unit tree beginning at the root ad unit. + * @param AdUnit $root the root ad unit + * @param array $treeMap the map of id to array of ad units + * @access private + */ +function DisplayInventoryTree(AdUnit $root, array $treeMap) { + DisplayInventoryTreeHelper($root, $treeMap, 0); +} + +/** + * Helper for displaying inventory units. + * @param AdUnit $root the root inventory unit + * @param array $treeMap the map of id to array of inventory units + * @param $depth the depth the tree has reached + * @access private + */ +function DisplayInventoryTreeHelper(AdUnit $root, + array $treeMap, $depth) { + print GenerateTab($depth) . $root->name . ' (' + . $root->id . ")\n"; + + if (isset($treeMap[$root->id])) { + foreach ($treeMap[$root->id] as $child) { + DisplayInventoryTreeHelper($child, + $treeMap, $depth + 1); + } + } +} + +/** + * Generates a string of tabs to represent branching to children. + * @param $depth a depth from 0 to max(depth) + * @return string a string to insert in front of the root unit + * @access private + */ +function GenerateTab($depth) { + $tab = ''; + + if ($depth != 0) { + $tab .= ' '; + } + + for ($i = 1; $i < $depth; $i++) { + $tab .= '| '; + } + + return $tab . '+--'; +} + +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->LogDefaults(); + + $allAdUnits = GetAllAdUnits($user); + + // Find the root ad unit. rootAdUnit can also be set to child unit to + // only build and display a portion of the tree. + // i.e. $adUnit = $inventoryService->getAdUnit("INSERT_AD_UNIT_ID_HERE") + $rootAdUnit = FindRootAdUnit($user); + + if (isset($rootAdUnit)) { + BuildAndDisplayAdUnitTree($rootAdUnit, $allAdUnits); + } else { + print "Could not build tree. No root ad unit found.\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/v201308/InventoryService/UpdateAdUnitsExample.php b/examples/Dfp/v201308/InventoryService/UpdateAdUnitsExample.php new file mode 100755 index 000000000..1f59bb912 --- /dev/null +++ b/examples/Dfp/v201308/InventoryService/UpdateAdUnitsExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201308'); + + // Create a statement to get all ad units. + $filterStatement = new Statement("LIMIT 500"); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + $adUnits = $page->results; + + // Update each local ad unit object by enabling AdSense. + foreach ($adUnits as $adUnit) { + $adUnit->inheritedAdSenseSettings->value->adSenseEnabled = TRUE; + } + + // Update the ad units on the server. + $adUnits = $inventoryService->updateAdUnits($adUnits); + + // 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"; + } + } + } else { + print "No ad units updated.\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/v201308/LabelService/CreateLabelsExample.php b/examples/Dfp/v201308/LabelService/CreateLabelsExample.php new file mode 100755 index 000000000..9642bebc4 --- /dev/null +++ b/examples/Dfp/v201308/LabelService/CreateLabelsExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201308'); + + // Create an array to store local label objects. + $labels = array(); + + for ($i = 0; $i < 5; $i++) { + $label = new Label(); + $label->name = 'Label #' . uniqid(); + $label->types = array('COMPETITIVE_EXCLUSION'); + $labels[] = $label; + } + + // Create the labels on the server. + $labels = $labelService->createLabels($labels); + + // Display results. + if (isset($labels)) { + foreach ($labels as $label) { + printf("A label with ID '%s', name '%s', and types {%s} was created.\n", + $label->id, $label->name, join(',', $label->types)); + } + } else { + print "No labels created.\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/v201308/LabelService/DeactivateLabelsExample.php b/examples/Dfp/v201308/LabelService/DeactivateLabelsExample.php new file mode 100755 index 000000000..f8dc3c838 --- /dev/null +++ b/examples/Dfp/v201308/LabelService/DeactivateLabelsExample.php @@ -0,0 +1,111 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201308'); + + // Create statement text to get all active labels. + $filterStatementText = "WHERE isActive = true"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset); + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // Display results. + $labelIds = array(); + if (isset($page->results)) { + 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; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of labels to be deactivated: ' . sizeof($labelIds) . "\n"; + + if (sizeof($labelIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $labelIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateLabels(); + + // Perform action. + $result = $labelService->performLabelAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of labels deactivated: ' . $result->numChanges . "\n"; + } else { + print "No labels 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/v201308/LabelService/GetAllLabelsExample.php b/examples/Dfp/v201308/LabelService/GetAllLabelsExample.php new file mode 100755 index 000000000..43c1855e6 --- /dev/null +++ b/examples/Dfp/v201308/LabelService/GetAllLabelsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201308'); + + // Set defaults for page and statement. + $page = new LabelPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all labels. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201308/LabelService/GetLabelExample.php b/examples/Dfp/v201308/LabelService/GetLabelExample.php new file mode 100755 index 000000000..cbc3b8c2c --- /dev/null +++ b/examples/Dfp/v201308/LabelService/GetLabelExample.php @@ -0,0 +1,75 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201308'); + + // Set the ID of the label to get. + $labelId = 'INSERT_LABEL_ID_HERE'; + + // Get the label. + $label = $labelService->getLabel($labelId); + + if (isset($label)) { + printf("Label with ID '%s', name '%s', and type {%s} was found.\n", + $label->id, $label->name, join(",", $label->types)); + } else { + print "No label found for this ID.\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/v201308/LabelService/GetLabelsByStatementExample.php b/examples/Dfp/v201308/LabelService/GetLabelsByStatementExample.php new file mode 100755 index 000000000..cd8c41075 --- /dev/null +++ b/examples/Dfp/v201308/LabelService/GetLabelsByStatementExample.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201308'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array()); + + // Create a statement to select labels ordered by name. + $filterStatement = + new Statement("ORDER BY name LIMIT 500", $vars); + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // 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++; + } + } + + 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/v201308/LabelService/UpdateLabelsExample.php b/examples/Dfp/v201308/LabelService/UpdateLabelsExample.php new file mode 100755 index 000000000..69a8269fe --- /dev/null +++ b/examples/Dfp/v201308/LabelService/UpdateLabelsExample.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201308'); + + // 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/v201308/LicaService/CreateLicasExample.php b/examples/Dfp/v201308/LicaService/CreateLicasExample.php new file mode 100755 index 000000000..933eab1bc --- /dev/null +++ b/examples/Dfp/v201308/LicaService/CreateLicasExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201308'); + + // Set the line item ID and creative ID to associate + // them with. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Create local LICA. + $lica = new LineItemCreativeAssociation(); + $lica->creativeId = $creativeId; + $lica->lineItemId = $lineItemId; + + $licas = array($lica); + + // Create the LICAs on the server. + $licas = $licaService->createLineItemCreativeAssociations($licas); + + // Display results. + if (isset($licas)) { + foreach ($licas as $lica) { + print 'A LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" was created.\n"; + } + } else { + print "No LICAs created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/LicaService/DeactivateLicasExample.php b/examples/Dfp/v201308/LicaService/DeactivateLicasExample.php new file mode 100755 index 000000000..ffe93130a --- /dev/null +++ b/examples/Dfp/v201308/LicaService/DeactivateLicasExample.php @@ -0,0 +1,127 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201308'); + + // 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 statement text to select active LICAs for a given line item. + $filterStatementText = "WHERE lineItemId = :lineItemId AND status = 'ACTIVE'"; + + $offset = 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); + + // Display results. + $creativeIds = array(); + 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 + . "\" will be deactivated.\n"; + $i++; + $creativeIds[] = $lica->creativeId; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of LICAs to be deactivated: ' . sizeof($lica->creativeId) + . "\n"; + + if (sizeof($lica->creativeId) > 0) { + // Create action statement. + $filterStatementText = sprintf( + 'WHERE lineItemId = :lineItemId AND creativeId IN (%s)', + implode(',', $creativeIds)); + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeactivateLineItemCreativeAssociations(); + + // Perform action. + $result = $licaService->performLineItemCreativeAssociationAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of LICAs deactivated: ' . $result->numChanges . "\n"; + } else { + print "No LICAs 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/v201308/LicaService/GetAllLicasExample.php b/examples/Dfp/v201308/LicaService/GetAllLicasExample.php new file mode 100755 index 000000000..750f1b284 --- /dev/null +++ b/examples/Dfp/v201308/LicaService/GetAllLicasExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201308'); + + // Set defaults for page and statement. + $page = new LineItemCreativeAssociationPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all LICAs. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $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); + } 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); + } + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201308/LicaService/GetLicaExample.php b/examples/Dfp/v201308/LicaService/GetLicaExample.php new file mode 100755 index 000000000..1cd991710 --- /dev/null +++ b/examples/Dfp/v201308/LicaService/GetLicaExample.php @@ -0,0 +1,82 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201308'); + + // Set the line item and creative ID to use to retrieve the LICA. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Get the LICA. + $lica = $licaService->getLineItemCreativeAssociation($lineItemId, + $creativeId); + + // Display results. + if (isset($lica)) { + print 'A LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" was found.\n"; + } else { + print "No LICA found for this ID.\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/v201308/LicaService/GetLicasByStatementExample.php b/examples/Dfp/v201308/LicaService/GetLicasByStatementExample.php new file mode 100755 index 000000000..1460d9be1 --- /dev/null +++ b/examples/Dfp/v201308/LicaService/GetLicasByStatementExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201308'); + + // 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/v201308/LicaService/UpdateLicasExample.php b/examples/Dfp/v201308/LicaService/UpdateLicasExample.php new file mode 100755 index 000000000..5a1b08d49 --- /dev/null +++ b/examples/Dfp/v201308/LicaService/UpdateLicasExample.php @@ -0,0 +1,96 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201308'); + + // Create a statement to get all LICAs. + $filterStatement = new Statement("LIMIT 500"); + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + if (isset($page->results)) { + $licas = $page->results; + + // Update each local LICA object by changing its destination URL. + foreach ($licas as $lica) { + $lica->destinationUrl = 'http://news.google.com'; + } + + // Update the LICAs on the server. + $licas = $licaService->updateLineItemCreativeAssociations($licas); + + // 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"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/LineItemService/ActivateLineItemsExample.php b/examples/Dfp/v201308/LineItemService/ActivateLineItemsExample.php new file mode 100755 index 000000000..1dd76b8d7 --- /dev/null +++ b/examples/Dfp/v201308/LineItemService/ActivateLineItemsExample.php @@ -0,0 +1,132 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201308'); + + // 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/v201308/LineItemService/AuditLineItemsGeoTargetingExample.php b/examples/Dfp/v201308/LineItemService/AuditLineItemsGeoTargetingExample.php new file mode 100755 index 000000000..88e7b3b4c --- /dev/null +++ b/examples/Dfp/v201308/LineItemService/AuditLineItemsGeoTargetingExample.php @@ -0,0 +1,213 @@ +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/v201308/LineItemService/CreateLineItemsExample.php b/examples/Dfp/v201308/LineItemService/CreateLineItemsExample.php new file mode 100755 index 000000000..41b3b3c88 --- /dev/null +++ b/examples/Dfp/v201308/LineItemService/CreateLineItemsExample.php @@ -0,0 +1,186 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201308'); + + // 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_PLACEMENT_ID_HERE'); + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedPlacementIds = $targetPlacementIds; + + // Create geographical targeting. + $geoTargeting = new GeoTargeting(); + + // Include the US, Quebec (Canada), and postal code B3P (Canada). + $countryLocation = new DfpLocation(); + $countryLocation->id = 2840; + + $regionLocation = new DfpLocation(); + $regionLocation->id = 20123; + + $postalCodeLocation = new PostalCodeLocation(); + $postalCodeLocation->id = 9000093; + + $geoTargeting->targetedLocations = array($countryLocation, $regionLocation); + + // Exclude Chicago and the New York metro area. + $cityLocation = new DfpLocation(); + $cityLocation->id = 1016367; + + $metroLocation = new DfpLocation(); + $metroLocation->id = 200501; + $geoTargeting->excludedLocations = array($cityLocation, $metroLocation); + + // Exclude users from US federal government domains. + $userDomainTargeting = new UserDomainTargeting(array('usa.gov'), FALSE); + + // Target only the weekend in the browser's timezone. + $saturdayDayPart = new DayPart(); + $saturdayDayPart->dayOfWeek = 'SATURDAY'; + $saturdayDayPart->startTime = new TimeOfDay(0, 'ZERO'); + $saturdayDayPart->endTime = new TimeOfDay(24, 'ZERO'); + + $sundayDayPart = new DayPart(); + $sundayDayPart->dayOfWeek = 'SUNDAY'; + $sundayDayPart->startTime = new TimeOfDay(0, 'ZERO'); + $sundayDayPart->endTime = new TimeOfDay(24, 'ZERO'); + + // Create day-part targeting. + $dayPartTargeting = new DayPartTargeting(); + $dayPartTargeting->timeZone = 'BROWSER'; + $dayPartTargeting->dayParts = array($saturdayDayPart, $sundayDayPart); + + // Target just the Chrome browser. + $browserTechnology = new Technology(); + $browserTechnology->id = 500072; + + // Create technology targeting. + $browserTargeting = new BrowserTargeting(); + $browserTargeting->browsers = array($browserTechnology); + $technologyTargeting = new TechnologyTargeting(); + $technologyTargeting->browserTargeting = $browserTargeting; + + // Create targeting. + $targeting = new Targeting(); + $targeting->inventoryTargeting = $inventoryTargeting; + $targeting->geoTargeting = $geoTargeting; + $targeting->userDomainTargeting = $userDomainTargeting; + $targeting->dayPartTargeting = $dayPartTargeting; + $targeting->technologyTargeting = $technologyTargeting; + + // Create an array to store local line item objects. + $lineItems = array(); + + for ($i = 0; $i < 5; $i++) { + $lineItem = new LineItem(); + $lineItem->name = 'Line item #' . uniqid(); + $lineItem->orderId = $orderId; + $lineItem->targeting = $targeting; + $lineItem->lineItemType = 'STANDARD'; + $lineItem->allowOverbook = 'TRUE'; + + // 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 creative rotation type to even. + $lineItem->creativeRotationType = 'EVEN'; + + // 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'; + + $lineItems[] = $lineItem; + } + + // Create the line items on the server. + $lineItems = $lineItemService->createLineItems($lineItems); + + // 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"; + } + } else { + print "No line items created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/LineItemService/CreateMobileLineItemExample.php b/examples/Dfp/v201308/LineItemService/CreateMobileLineItemExample.php new file mode 100755 index 000000000..4e26ed294 --- /dev/null +++ b/examples/Dfp/v201308/LineItemService/CreateMobileLineItemExample.php @@ -0,0 +1,160 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201308'); + + // 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. + $lineItem = $lineItemService->createLineItem($lineItem); + + // Display results. + if (isset($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); + } else { + print "No line item was created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/LineItemService/CreateVideoLineItemExample.php b/examples/Dfp/v201308/LineItemService/CreateVideoLineItemExample.php new file mode 100755 index 000000000..1547d2ff3 --- /dev/null +++ b/examples/Dfp/v201308/LineItemService/CreateVideoLineItemExample.php @@ -0,0 +1,168 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201308'); + + // 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); + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedAdUnits = + array(new AdUnitTargeting($targetedVideoAdUnitId, TRUE)); + + // Create video position targeting. + $videoPosition = new VideoPosition; + $videoPosition->positionType = 'PREROLL'; + $videoPositionTarget = new VideoPositionTarget(); + $videoPositionTarget->videoPosition = $videoPosition; + $videoPositionTargeting = new VideoPositionTargeting(); + $videoPositionTargeting->targetedPositions = array($videoPositionTarget); + + // Create targeting. + $targeting = new Targeting(); + $targeting->customTargeting = $customCriteriaSet; + $targeting->inventoryTargeting = $inventoryTargeting; + $targeting->videoPositionTargeting = $videoPositionTargeting; + + // Create local line item object. + $lineItem = new LineItem(); + $lineItem->name = sprintf("Video line item #%s", uniqid()); + $lineItem->orderId = $orderId; + $lineItem->targeting = $targeting; + $lineItem->lineItemType = 'SPONSORSHIP'; + $lineItem->allowOverbook = TRUE; + + // Set the environment type to video. + $lineItem->environmentType = 'VIDEO_PLAYER'; + + // Set the creative rotation type to optimized. + $lineItem->creativeRotationType = 'OPTIMIZED'; + + // Create the master creative placeholder. + $creativeMasterPlaceholder = new CreativePlaceholder(); + $creativeMasterPlaceholder->size = new Size(400, 300, FALSE); + + // Create companion creative placeholders. + $companionCreativePlaceholder1 = new CreativePlaceholder(); + $companionCreativePlaceholder1->size = new Size(300, 250, FALSE); + + $companionCreativePlaceholder2 = new CreativePlaceholder(); + $companionCreativePlaceholder2->size = new Size(728, 90, FALSE); + + // Set companion creative placeholders. + $creativeMasterPlaceholder->companions = + array($companionCreativePlaceholder1, $companionCreativePlaceholder2); + + // Set the size of creatives that can be associated with this line item. + $lineItem->creativePlaceholders = array($creativeMasterPlaceholder); + + // Set delivery of video companions to optional. + $lineItem->companionDeliveryOption = 'OPTIONAL'; + + // Set the length of the line item to run. + $lineItem->startDateTimeType = 'IMMEDIATELY'; + $lineItem->endDateTime = + DateTimeUtils::GetDfpDateTime(new DateTime('+1 month')); + + // Set the cost per day to $1. + $lineItem->costType = 'CPD'; + $lineItem->costPerUnit = new Money('USD', 1000000); + + // Set the percentage to be 100%. + $lineItem->unitsBought = 100; + + // 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."); + } +} 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/v201308/LineItemService/GetAllLineItemsExample.php b/examples/Dfp/v201308/LineItemService/GetAllLineItemsExample.php new file mode 100755 index 000000000..e826b1adb --- /dev/null +++ b/examples/Dfp/v201308/LineItemService/GetAllLineItemsExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201308'); + + // Set defaults for page and statement. + $page = new LineItemPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all line items. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201308/LineItemService/GetLineItemExample.php b/examples/Dfp/v201308/LineItemService/GetLineItemExample.php new file mode 100755 index 000000000..d9e98983f --- /dev/null +++ b/examples/Dfp/v201308/LineItemService/GetLineItemExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201308'); + + // Set the ID of the line item to get. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Get the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + + // Display results. + if (isset($lineItem)) { + print 'Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", and name "' . $lineItem->name + . "\" was found.\n"; + } else { + print "No line item found for this ID.\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/v201308/LineItemService/GetLineItemsByStatementExample.php b/examples/Dfp/v201308/LineItemService/GetLineItemsByStatementExample.php new file mode 100755 index 000000000..a31070589 --- /dev/null +++ b/examples/Dfp/v201308/LineItemService/GetLineItemsByStatementExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201308'); + + // 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/v201308/LineItemService/GetRecentlyUpdatedLineItems.php b/examples/Dfp/v201308/LineItemService/GetRecentlyUpdatedLineItems.php new file mode 100755 index 000000000..1723c6910 --- /dev/null +++ b/examples/Dfp/v201308/LineItemService/GetRecentlyUpdatedLineItems.php @@ -0,0 +1,103 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201308'); + + // 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/v201308/LineItemService/TargetCustomCriteriaExample.php b/examples/Dfp/v201308/LineItemService/TargetCustomCriteriaExample.php new file mode 100755 index 000000000..f7249fbc2 --- /dev/null +++ b/examples/Dfp/v201308/LineItemService/TargetCustomCriteriaExample.php @@ -0,0 +1,119 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201308'); + + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $customCriteriaIds1 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + $customCriteriaIds2 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + $customCriteriaIds3 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + + // Create custom criteria. + $customCriteria1 = new CustomCriteria(); + $customCriteria1->keyId = $customCriteriaIds1[0]; + $customCriteria1->valueIds = array($customCriteriaIds1[1]); + $customCriteria1->operator = 'IS'; + + $customCriteria2 = new CustomCriteria(); + $customCriteria2->keyId = $customCriteriaIds2[0]; + $customCriteria2->valueIds = array($customCriteriaIds2[1]); + $customCriteria2->operator = 'IS_NOT'; + + $customCriteria3 = new CustomCriteria(); + $customCriteria3->keyId = $customCriteriaIds3[0]; + $customCriteria3->valueIds = array($customCriteriaIds3[1]); + $customCriteria3->operator = 'IS'; + + + // Create the custom criteria set that will resemble: + // + // ($customCriteria1.key == $customCriteria1.value OR + // ($customCriteria2.key != $customCriteria2.value AND + // $customCriteria3.key == $customCriteria3.value)) + $topCustomCriteriaSet = new CustomCriteriaSet(); + $topCustomCriteriaSet->logicalOperator = 'OR'; + + $subCustomCriteriaSet = new CustomCriteriaSet(); + $subCustomCriteriaSet->logicalOperator = 'AND'; + $subCustomCriteriaSet->children = array($customCriteria2, $customCriteria3); + $topCustomCriteriaSet->children = + array($customCriteria1, $subCustomCriteriaSet); + + // Set the custom criteria targeting on the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + $lineItem->targeting->customTargeting = $topCustomCriteriaSet; + + // Update the line items on the server. + $lineItem = $lineItemService->updateLineItem($lineItem); + + // Display results. + if (isset($lineItem)) { + printf("Line item with ID '%s' updated with custom criteria targeting:\n", + $lineItem->id); + print_r($lineItem->targeting->customTargeting); + } else { + print "No line items updated.\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/v201308/LineItemService/UpdateLineItemsExample.php b/examples/Dfp/v201308/LineItemService/UpdateLineItemsExample.php new file mode 100755 index 000000000..552f380bc --- /dev/null +++ b/examples/Dfp/v201308/LineItemService/UpdateLineItemsExample.php @@ -0,0 +1,104 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201308'); + + // 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/v201308/NetworkService/GetAllNetworksExample.php b/examples/Dfp/v201308/NetworkService/GetAllNetworksExample.php new file mode 100755 index 000000000..54a4e6875 --- /dev/null +++ b/examples/Dfp/v201308/NetworkService/GetAllNetworksExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201308'); + + // Get all networks that you have access to with the current login + // 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++; + } + } + + print 'Number of results found: ' . $i . "\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/v201308/NetworkService/GetCurrentNetworkExample.php b/examples/Dfp/v201308/NetworkService/GetCurrentNetworkExample.php new file mode 100755 index 000000000..709024929 --- /dev/null +++ b/examples/Dfp/v201308/NetworkService/GetCurrentNetworkExample.php @@ -0,0 +1,65 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201308'); + + // Get the current network. + $network = $networkService->getCurrentNetwork(); + + print 'Current network has network code "' . $network->networkCode + . '" and display name "' . $network->displayName . "\".\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/v201308/NetworkService/MakeTestNetworkExample.php b/examples/Dfp/v201308/NetworkService/MakeTestNetworkExample.php new file mode 100755 index 000000000..9b0ea4f99 --- /dev/null +++ b/examples/Dfp/v201308/NetworkService/MakeTestNetworkExample.php @@ -0,0 +1,78 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201308'); + + // Make the test network. + $network = $networkService->makeTestNetwork(); + + print 'Test network with network code "' . $network->networkCode + . '" and display name "' . $network->displayName . "\" created.\n" + . ' You may now sign in at http://www.google.com/dfp/main?networkCode=' + . $network->networkCode . "\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/v201308/OrderService/ApproveOrdersExample.php b/examples/Dfp/v201308/OrderService/ApproveOrdersExample.php new file mode 100755 index 000000000..0c1710f95 --- /dev/null +++ b/examples/Dfp/v201308/OrderService/ApproveOrdersExample.php @@ -0,0 +1,128 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201308'); + + // 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/v201308/OrderService/CreateOrdersExample.php b/examples/Dfp/v201308/OrderService/CreateOrdersExample.php new file mode 100755 index 000000000..0c45298a1 --- /dev/null +++ b/examples/Dfp/v201308/OrderService/CreateOrdersExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetOrderService('v201308'); + + // Set the advertiser (company), salesperson, and trafficker to assign to each + // order. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + $salespersonId = 'INSERT_SALESPERSON_ID_HERE'; + $traffickerId = 'INSERT_TRAFFICKER_ID_HERE'; + + // Create an array to store local order objects. + $orders = array(); + + for ($i = 0; $i < 5; $i++) { + $order = new Order(); + $order->name = 'Order #' . $i; + $order->advertiserId = $advertiserId; + $order->salespersonId = $salespersonId; + $order->traffickerId = $traffickerId; + + $orders[] = $order; + } + + // Create the orders on the server. + $orders = $orderService->createOrders($orders); + + // Display results. + if (isset($orders)) { + foreach ($orders as $order) { + print 'An order with with ID "' . $order->id + . '" and name "' . $order->name + . "\" was created.\n"; + } + } else { + print "No orders created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/OrderService/GetAllOrdersExample.php b/examples/Dfp/v201308/OrderService/GetAllOrdersExample.php new file mode 100755 index 000000000..9d6bf2c6f --- /dev/null +++ b/examples/Dfp/v201308/OrderService/GetAllOrdersExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201308'); + + // Set defaults for page and statement. + $page = new OrderPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all orders. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201308/OrderService/GetOrderExample.php b/examples/Dfp/v201308/OrderService/GetOrderExample.php new file mode 100755 index 000000000..b9058161c --- /dev/null +++ b/examples/Dfp/v201308/OrderService/GetOrderExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201308'); + + // Set the ID of the order to get. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Get the order. + $order = $orderService->getOrder($orderId); + + // Display results. + if (isset($order)) { + print 'An order with ID "' . $order->id + . '", name "' . $order->name + . '", and advertiser ID "' . $order->advertiserId + . "\" was found.\n"; + } else { + print "No order found for this ID.\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/v201308/OrderService/GetOrdersByStatementExample.php b/examples/Dfp/v201308/OrderService/GetOrdersByStatementExample.php new file mode 100755 index 000000000..06968b88d --- /dev/null +++ b/examples/Dfp/v201308/OrderService/GetOrdersByStatementExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201308'); + + // 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/v201308/OrderService/UpdateOrdersExample.php b/examples/Dfp/v201308/OrderService/UpdateOrdersExample.php new file mode 100755 index 000000000..31414acbf --- /dev/null +++ b/examples/Dfp/v201308/OrderService/UpdateOrdersExample.php @@ -0,0 +1,99 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201308'); + + // 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/v201308/PlacementService/CreatePlacementsExample.php b/examples/Dfp/v201308/PlacementService/CreatePlacementsExample.php new file mode 100755 index 000000000..2e4fbb54d --- /dev/null +++ b/examples/Dfp/v201308/PlacementService/CreatePlacementsExample.php @@ -0,0 +1,137 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201308'); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201308'); + + // Create local placement object to store skyscraper ad units. + $skyscraperAdUnitPlacement = new Placement(); + $skyscraperAdUnitPlacement->name = + 'Skyscraper AdUnit Placement #' . time(); + $skyscraperAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 120x600'; + + // Create local placement object to store medium square ad units. + $mediumSquareAdUnitPlacement = new Placement(); + $mediumSquareAdUnitPlacement->name = + 'Medium Square AdUnit Placement #' . time(); + $mediumSquareAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 300x250'; + + // Create local placement object to store banner ad units. + $bannerAdUnitPlacement = new Placement(); + $bannerAdUnitPlacement->name = 'Banner AdUnit Placement #' . time(); + $bannerAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 468x60'; + + $placementList = array(); + + // Get the first 500 ad units. + $filterStatement = new Statement('LIMIT 500'); + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // Separate the ad units by size. + if (isset($page->results)) { + foreach ($page->results as $adUnit) { + if (isset($adUnit->parentId)) { + foreach ((array) $adUnit->adUnitSizes as $adUnitSize) { + $size = $adUnitSize->size; + if ($size->width == 300 && $size->height == 250) { + $mediumSquareAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } else if ($size->width == 120 && $size->height == 600) { + $skyscraperAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } else if ($size->width == 468 && $size->height == 60) { + $bannerAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } + } + } + } + } + + // Only create placements with one or more ad units. + if (count($skyscraperAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $skyscraperAdUnitPlacement; + } + if (count($mediumSquareAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $mediumSquareAdUnitPlacement; + } + if (count($bannerAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $bannerAdUnitPlacement; + } + + // Create the placements on the server. + $placements = $placementService->createPlacements($placementList); + + // Display results. + if (isset($placements)) { + foreach ($placements as $placement) { + print 'A placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and containing ad units {' . + implode(', ', (array) $placement->targetedAdUnitIds) + . "} was created.\n"; + } + } else { + print "No placements created.\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/v201308/PlacementService/DeactivatePlacementsExample.php b/examples/Dfp/v201308/PlacementService/DeactivatePlacementsExample.php new file mode 100755 index 000000000..d08530d45 --- /dev/null +++ b/examples/Dfp/v201308/PlacementService/DeactivatePlacementsExample.php @@ -0,0 +1,115 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201308'); + + // Create statement text to select active placements. + $filterStatementText = "WHERE status = 'ACTIVE'"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset); + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // Display results. + $placementIds = array(); + 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 + . "\" will be deactivated.\n"; + $i++; + $placementIds[] = $placement->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of placements to be deactivated: ' . sizeof($placementIds) + . "\n"; + + if (sizeof($placementIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $placementIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivatePlacements(); + + // Perform action. + $result = + $placementService->performPlacementAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of placements deactivated: ' . $result->numChanges . "\n"; + } else { + print "No placements 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/v201308/PlacementService/GetAllPlacementsExample.php b/examples/Dfp/v201308/PlacementService/GetAllPlacementsExample.php new file mode 100755 index 000000000..021ad2bf5 --- /dev/null +++ b/examples/Dfp/v201308/PlacementService/GetAllPlacementsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201308'); + + // Set defaults for page and statement. + $page = new PlacementPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all placements. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $placement) { + print $i . ') Placement with ID "' . $placement->id + . '" and name "' . $placement->name + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201308/PlacementService/GetPlacementExample.php b/examples/Dfp/v201308/PlacementService/GetPlacementExample.php new file mode 100755 index 000000000..38a3edc3c --- /dev/null +++ b/examples/Dfp/v201308/PlacementService/GetPlacementExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201308'); + + // Set the ID of the placement to get. + $placementId = 'INSERT_PLACEMENT_ID_HERE'; + + // Get the placement. + $placement = $placementService->getPlacement($placementId); + + // Display results. + if (isset($placement)) { + print 'Placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and status "' . $placement->status . "\" was found.\n"; + } else { + print "No placement found for this ID.\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/v201308/PlacementService/GetPlacementsByStatementExample.php b/examples/Dfp/v201308/PlacementService/GetPlacementsByStatementExample.php new file mode 100755 index 000000000..e79d16419 --- /dev/null +++ b/examples/Dfp/v201308/PlacementService/GetPlacementsByStatementExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201308'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('status' => new TextValue('ACTIVE'))); + + // Create a statement to only select active placements. + $filterStatement = new Statement("WHERE status = :status LIMIT 500", $vars); + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // 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++; + } + } + + 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/v201308/PlacementService/UpdatePlacementsExample.php b/examples/Dfp/v201308/PlacementService/UpdatePlacementsExample.php new file mode 100755 index 000000000..e7fd2f079 --- /dev/null +++ b/examples/Dfp/v201308/PlacementService/UpdatePlacementsExample.php @@ -0,0 +1,102 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201308'); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201308'); + + // 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/v201308/PublisherQueryLanguageService/GetAllLineItems.php b/examples/Dfp/v201308/PublisherQueryLanguageService/GetAllLineItems.php new file mode 100755 index 000000000..4a2fb6771 --- /dev/null +++ b/examples/Dfp/v201308/PublisherQueryLanguageService/GetAllLineItems.php @@ -0,0 +1,105 @@ +LogDefaults(); + + // Get the PublisherQueryLanguageService. + $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201308'); + + // Statement parts to help build a statement to select all line items. + $pqlTemplate = 'SELECT Id, Name, Status FROM Line_Item ORDER BY Id ASC LIMIT ' + . '%d OFFSET %d'; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + $i = 0; + + do { + // Get all line items. + $resultSet = $pqlService->select(new Statement(sprintf($pqlTemplate, + $SUGGESTED_PAGE_LIMIT, $offset))); + + // Combine result sets with previous ones. + $combinedResultSet = (!isset($combinedResultSet)) + ? $resultSet + : Pql::CombineResultSets($combinedResultSet, $resultSet); + + printf("%d) %d line items beginning at offset %d were found.\n", $i++, + count($resultSet->rows), $offset); + + $offset += $SUGGESTED_PAGE_LIMIT; + } while (isset($resultSet->rows) && count($resultSet->rows) > 0); + + // Change to your file location. + $filePath = sprintf("%s/Line-Items-%s.csv", sys_get_temp_dir(), uniqid()); + ob_start(); + $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); + ob_end_clean(); + + printf("Line items 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/v201308/PublisherQueryLanguageService/GetGeoTargets.php b/examples/Dfp/v201308/PublisherQueryLanguageService/GetGeoTargets.php new file mode 100755 index 000000000..2625f7601 --- /dev/null +++ b/examples/Dfp/v201308/PublisherQueryLanguageService/GetGeoTargets.php @@ -0,0 +1,116 @@ +LogDefaults(); + + // Get the PublisherQueryLanguageService. + $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201308'); + + // 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; + $i = 0; + + do { + // Get all cities. + $resultSet = $pqlService->select(new Statement(sprintf($pqlTemplate, + $SUGGESTED_PAGE_LIMIT, $offset), $vars)); + + // Combine result sets with previous ones. + $combinedResultSet = (!isset($combinedResultSet)) + ? $resultSet + : Pql::CombineResultSets($combinedResultSet, $resultSet); + + printf("%d) %d geo targets beginning at offset %d were found.\n", $i++, + count($resultSet->rows), $offset); + + $offset += $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. + fputcsv($fp, Pql::GetColumnLabels($combinedResultSet)); + foreach ($combinedResultSet->rows as $row) { + fputcsv($fp, Pql::GetRowStringValues($row)); + } + fclose($fp); + ob_end_clean(); + + printf("Geo targets 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/v201308/PublisherQueryLanguageService/GetLineItemsNamedLike.php b/examples/Dfp/v201308/PublisherQueryLanguageService/GetLineItemsNamedLike.php new file mode 100755 index 000000000..487bd64e3 --- /dev/null +++ b/examples/Dfp/v201308/PublisherQueryLanguageService/GetLineItemsNamedLike.php @@ -0,0 +1,104 @@ +LogDefaults(); + + // Get the PublisherQueryLanguageService. + $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201308'); + + // 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; + $i = 0; + + do { + // Get line items like 'line item%'. + $resultSet = $pqlService->select(new Statement(sprintf($pqlTemplate, + $SUGGESTED_PAGE_LIMIT, $offset))); + + // Combine result sets with previous ones. + $combinedResultSet = (!isset($combinedResultSet)) + ? $resultSet + : Pql::CombineResultSets($combinedResultSet, $resultSet); + + printf("%d) %d line items beginning at offset %d were found.\n", $i++, + count($resultSet->rows), $offset); + + $offset += $SUGGESTED_PAGE_LIMIT; + } while (isset($resultSet->rows) && count($resultSet->rows) > 0); + + // Change to your file location. + $filePath = sprintf("%s/Line-Items-Named-Like-%s.csv", sys_get_temp_dir(), + uniqid()); + ob_start(); + $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); + ob_end_clean(); + + printf("Line items 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/v201308/ReportService/DisplayReportExample.php b/examples/Dfp/v201308/ReportService/DisplayReportExample.php new file mode 100755 index 000000000..0633155d3 --- /dev/null +++ b/examples/Dfp/v201308/ReportService/DisplayReportExample.php @@ -0,0 +1,78 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201308'); + + // 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; + + $downloadUrl = $reportService->getReportDownloadUrlWithOptions($reportJobId, + $reportDownloadOptions); + + printf("Downloading report from URL '%s'.\n", $downloadUrl); + $report = ReportUtils::DownloadReport($downloadUrl); + printf("\n%s\n", $report); +} 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/v201308/ReportService/DownloadReportExample.php b/examples/Dfp/v201308/ReportService/DownloadReportExample.php new file mode 100755 index 000000000..5f3b5ec47 --- /dev/null +++ b/examples/Dfp/v201308/ReportService/DownloadReportExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201308'); + + // 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/v201308/ReportService/RunDeliveryReportExample.php b/examples/Dfp/v201308/ReportService/RunDeliveryReportExample.php new file mode 100755 index 000000000..b486c0e52 --- /dev/null +++ b/examples/Dfp/v201308/ReportService/RunDeliveryReportExample.php @@ -0,0 +1,108 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201308'); + + // 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(); + + // 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; + $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/v201308/ReportService/RunInventoryReportExample.php b/examples/Dfp/v201308/ReportService/RunInventoryReportExample.php new file mode 100755 index 000000000..10c14a4b3 --- /dev/null +++ b/examples/Dfp/v201308/ReportService/RunInventoryReportExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201308'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_WEEK'; + $reportQuery->dimensions = array('DATE', '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'); + $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/v201308/ReportService/RunMergedDeliveryReportExample.php b/examples/Dfp/v201308/ReportService/RunMergedDeliveryReportExample.php new file mode 100755 index 000000000..843b3e231 --- /dev/null +++ b/examples/Dfp/v201308/ReportService/RunMergedDeliveryReportExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201308'); + + // Create report job. + $reportJob = new ReportJob(); + + // 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('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'); + $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/v201308/ReportService/RunReachReportExample.php b/examples/Dfp/v201308/ReportService/RunReachReportExample.php new file mode 100755 index 000000000..13457b58a --- /dev/null +++ b/examples/Dfp/v201308/ReportService/RunReachReportExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201308'); + + // Create report job. + $reportJob = new ReportJob(); + + // 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', + 'REACH'); + $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) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201308/ReportService/RunReportWithCustomFields.php b/examples/Dfp/v201308/ReportService/RunReportWithCustomFields.php new file mode 100755 index 000000000..82832a190 --- /dev/null +++ b/examples/Dfp/v201308/ReportService/RunReportWithCustomFields.php @@ -0,0 +1,133 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201308'); + + // 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', 'v201308'); + + // 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/v201308/ReportService/RunSalesReportExample.php b/examples/Dfp/v201308/ReportService/RunSalesReportExample.php new file mode 100755 index 000000000..e45559dc2 --- /dev/null +++ b/examples/Dfp/v201308/ReportService/RunSalesReportExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201308'); + + // 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/v201308/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php b/examples/Dfp/v201308/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php new file mode 100755 index 000000000..32f9696a5 --- /dev/null +++ b/examples/Dfp/v201308/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201308'); + + // Set the number of requests to 50 or more. + define('NUMBER_OF_REQUESTS', 50); + + // Create statement text to select all suggested ad units + // that have been requested 50 times or more. + $filterStatementText = 'WHERE numRequests >= ' . NUMBER_OF_REQUESTS; + + // Get all suggested ad units. + $allSuggestedAdUnits = ServiceUtils::GetAllObjects($suggestedAdUnitService, + 'getSuggestedAdUnitsByStatement', $filterStatementText); + + $numSuggestedAdUnits = 0; + foreach ($allSuggestedAdUnits as $suggestedAdUnit) { + $numSuggestedAdUnits++; + printf("%d) Suggested ad unit with ID '%s' and number of requests '%d' " + . "will be approved.\n", $numSuggestedAdUnits, $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + } + + printf("Number of suggested ad units to be approved: %d\n", + $numSuggestedAdUnits); + + if ($numSuggestedAdUnits > 0) { + // Create action statement. + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new ApproveSuggestedAdUnit(); + + // Perform action. + $result = $suggestedAdUnitService->performSuggestedAdUnitAction($action, + $filterStatementText); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of suggested ad units approved: %d\n", + $result->numChanges); + } else { + print "No suggested ad units 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/v201308/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php b/examples/Dfp/v201308/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php new file mode 100755 index 000000000..2a310ebb0 --- /dev/null +++ b/examples/Dfp/v201308/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201308'); + + // Set defaults for page and statement. + $page = new SuggestedAdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all suggested ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201308/SuggestedAdUnitService/GetSuggestedAdUnitExample.php b/examples/Dfp/v201308/SuggestedAdUnitService/GetSuggestedAdUnitExample.php new file mode 100755 index 000000000..7fdbf9964 --- /dev/null +++ b/examples/Dfp/v201308/SuggestedAdUnitService/GetSuggestedAdUnitExample.php @@ -0,0 +1,79 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201308'); + + // Set the ID of the ad unit to get. + $suggestedAdUnitId = 'INSERT_SUGGESTED_AD_UNIT_ID_HERE'; + + // Get the ad unit. + $suggestedAdUnit = + $suggestedAdUnitService->getSuggestedAdUnit($suggestedAdUnitId); + + // Display results. + if (isset($suggestedAdUnit)) { + printf("Suggested ad unit with ID '%s' and number of requests '%d' " + . "was found.\n", $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + } else { + print "No suggested ad unit found for this ID.\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/v201308/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php b/examples/Dfp/v201308/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php new file mode 100755 index 000000000..353acb3fd --- /dev/null +++ b/examples/Dfp/v201308/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201308'); + + // 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/v201308/TeamService/CreateTeamsExample.php b/examples/Dfp/v201308/TeamService/CreateTeamsExample.php new file mode 100755 index 000000000..ef47733b5 --- /dev/null +++ b/examples/Dfp/v201308/TeamService/CreateTeamsExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201308'); + + // Create an array to store local team objects. + $teams = array(); + + for ($i = 0; $i < 5; $i++) { + $team = new Team(); + $team->name = 'Team #' . uniqid(); + $team->hasAllCompanies = false; + $team->hasAllInventory = false; + $teams[] = $team; + } + + // Create the teams on the server. + $teams = $teamService->createTeams($teams); + + // Display results. + if (isset($teams)) { + foreach ($teams as $team) { + print 'A team with ID "' . $team->id + . '" and name "'. $team->name + . '" was created."' . "\n"; + } + } else { + print "No teams created.\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/v201308/TeamService/GetAllTeamsExample.php b/examples/Dfp/v201308/TeamService/GetAllTeamsExample.php new file mode 100755 index 000000000..862af447b --- /dev/null +++ b/examples/Dfp/v201308/TeamService/GetAllTeamsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201308'); + + // Set defaults for page and statement. + $page = new TeamPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all teams. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get teams by statement. + $page = $teamService->getTeamsByStatement($filterStatement); + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201308/TeamService/GetTeamExample.php b/examples/Dfp/v201308/TeamService/GetTeamExample.php new file mode 100755 index 000000000..fc0614128 --- /dev/null +++ b/examples/Dfp/v201308/TeamService/GetTeamExample.php @@ -0,0 +1,75 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201308'); + + // Set the ID of the team to get. + $teamId = 'INSERT_TEAM_ID_HERE'; + + // Get the team. + $team = $teamService->getTeam($teamId); + + // Display results. + if (isset($team)) { + print 'Team with ID "' . $team->id + . '" and name "' . $team->name + . "\" was found.\n"; + } else { + print "No team found for this ID.\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/v201308/TeamService/GetTeamsByStatementExample.php b/examples/Dfp/v201308/TeamService/GetTeamsByStatementExample.php new file mode 100755 index 000000000..2e69663bf --- /dev/null +++ b/examples/Dfp/v201308/TeamService/GetTeamsByStatementExample.php @@ -0,0 +1,83 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201308'); + + // Create a statement to order teams by name. + $filterStatementText = 'ORDER BY name LIMIT 500'; + $filterStatement = new Statement($filterStatementText); + + // Get teams by statement. + $page = $teamService->getTeamsByStatement($filterStatement); + + // 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++; + } + } + + 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/v201308/TeamService/UpdateTeamsExample.php b/examples/Dfp/v201308/TeamService/UpdateTeamsExample.php new file mode 100755 index 000000000..795144c80 --- /dev/null +++ b/examples/Dfp/v201308/TeamService/UpdateTeamsExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201308'); + + // 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/v201308/UserService/CreateUsersExample.php b/examples/Dfp/v201308/UserService/CreateUsersExample.php new file mode 100755 index 000000000..58257a534 --- /dev/null +++ b/examples/Dfp/v201308/UserService/CreateUsersExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201308'); + + // Set the user's email addresses and names. + $emailAndNames = + array(array('INSERT_EMAIL_ADDRESS_HERE', 'INSERT_NAME_HERE'), + array('INSERT_ANOTHER_EMAIL_ADDRESS_HERE', + 'INSERT_ANOTHER_NAME_HERE')); + + // Roles can be obtained by running GetAllRolesExample.php. + $roleId = 'INSERT_ROLE_ID_HERE'; + + // Create an array to store local user objects. + $users = array(); + + for ($i = 0; $i < sizeof($emailAndNames); $i++) { + $newUser = new User(); + $newUser->email = $emailAndNames[$i][0]; + $newUser->name = $emailAndNames[$i][1]; + $newUser->roleId = $roleId; + $newUser->preferredLocale = 'en_US'; + + $users[] = $newUser; + } + + // Create the users on the server. + $users = $userService->createUsers($users); + + // Display results. + if (isset($users)) { + foreach ($users as $user) { + print 'A user with ID "' . $user->id + . '", email "' . $user->email + . '", and role "' . $user->roleName . "\" was created.\n"; + } + } else { + print "No users created.\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/v201308/UserService/DeactivateUserExample.php b/examples/Dfp/v201308/UserService/DeactivateUserExample.php new file mode 100755 index 000000000..7c552f8a1 --- /dev/null +++ b/examples/Dfp/v201308/UserService/DeactivateUserExample.php @@ -0,0 +1,121 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201308'); + + // Set the ID of the user to deactivate. + $userId = 'INSERT_USER_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('id' => new NumberValue($userId))); + + // Create statement text to get user by id. + $filterStatementText = "WHERE id = :id"; + + $offset = 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); + + // Display results. + $userIds = array(); + if (isset($page->results)) { + $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; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of users to be deactivated: ' . sizeof($userIds) . "\n"; + + if (sizeof($userIds) > 0) { + // Create action statement. + $filterStatementText = sprintf('WHERE id IN (%s)', implode(',', $userIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateUsers(); + + // Perform action. + $result = $userService->performUserAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of users deactivated: ' . $result->numChanges . "\n"; + } else { + print "No users 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/v201308/UserService/GetAllRolesExample.php b/examples/Dfp/v201308/UserService/GetAllRolesExample.php new file mode 100755 index 000000000..36b4b4511 --- /dev/null +++ b/examples/Dfp/v201308/UserService/GetAllRolesExample.php @@ -0,0 +1,72 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201308'); + + // 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"; + } + } + print 'Number of results found: ' . sizeof($roles) . "\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/v201308/UserService/GetAllUsersExample.php b/examples/Dfp/v201308/UserService/GetAllUsersExample.php new file mode 100755 index 000000000..329e5b210 --- /dev/null +++ b/examples/Dfp/v201308/UserService/GetAllUsersExample.php @@ -0,0 +1,87 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201308'); + + // Set defaults for page and statement. + $page = new UserPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all users. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201308/UserService/GetCurrentUserExample.php b/examples/Dfp/v201308/UserService/GetCurrentUserExample.php new file mode 100755 index 000000000..e32c96d4a --- /dev/null +++ b/examples/Dfp/v201308/UserService/GetCurrentUserExample.php @@ -0,0 +1,65 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201308'); + + // Get the current user. + $usr = $userService->getCurrentUser(); + + printf("User with ID '%s', email '%s', and role '%s' was found.\n", + $usr->id, $usr->email, $usr->roleName); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/UserService/GetUserExample.php b/examples/Dfp/v201308/UserService/GetUserExample.php new file mode 100755 index 000000000..5fd25d6e1 --- /dev/null +++ b/examples/Dfp/v201308/UserService/GetUserExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201308'); + + // Set the ID of the user to get. + $userId = 'INSERT_USER_ID_HERE'; + + // Get the user. + $usr = $userService->getUser($userId); + + // Display results. + if (isset($usr)) { + print 'User with ID "' . $usr->id + . '", email "' . $usr->email + . '", and role "' . $usr->roleName . "\" was found.\n"; + } else { + print "No user found for this ID.\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/v201308/UserService/GetUsersByStatementExample.php b/examples/Dfp/v201308/UserService/GetUsersByStatementExample.php new file mode 100755 index 000000000..dd5e2e319 --- /dev/null +++ b/examples/Dfp/v201308/UserService/GetUsersByStatementExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201308'); + + // 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/v201308/UserService/UpdateUsersExample.php b/examples/Dfp/v201308/UserService/UpdateUsersExample.php new file mode 100755 index 000000000..cfba5fa73 --- /dev/null +++ b/examples/Dfp/v201308/UserService/UpdateUsersExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201308'); + + // Create a statement to get all users. + $filterStatement = new Statement('LIMIT 500'); + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + if (isset($page->results)) { + $users = $page->results; + + // Update each local user object by changing its name. + foreach ($users as $usr) { + $usr->name .= ' Sr.'; + } + + // Update the users on the server. + $users = $userService->updateUsers($users); + + // 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"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/UserTeamAssociationService/CreateUserTeamAssociationsExample.php b/examples/Dfp/v201308/UserTeamAssociationService/CreateUserTeamAssociationsExample.php new file mode 100755 index 000000000..c06d7ba99 --- /dev/null +++ b/examples/Dfp/v201308/UserTeamAssociationService/CreateUserTeamAssociationsExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201308'); + + // Set the team ID and user IDs to associate together. + $teamId = 'INSERT_TEAM_ID_HERE'; + $userIds = array('INSERT_USER_ID_HERE'); + + // Create an array to store local user team association objects. + $utas = array(); + + // For each user, associate it with the given team. + foreach ($userIds as $userId) { + // Create local user team association. + $uta = new UserTeamAssociation(); + $uta->teamId = $teamId; + $uta->userId = $userId; + $utas[] = $uta; + } + + // Create the user team associations on the server. + $utas = $userTeamAssociationService->createUserTeamAssociations($utas); + + // Display results. + if (isset($utas)) { + foreach ($utas as $uta) { + print 'A user team association between user with ID "' . $uta->userId + . '" and team with ID "' . $uta->teamId + . "\" was created.\n"; + } + } else { + print "No user team associations created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php b/examples/Dfp/v201308/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php new file mode 100755 index 000000000..86c8ad69a --- /dev/null +++ b/examples/Dfp/v201308/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201308'); + + // Set the user to remove from its teams. + $userId = 'INSERT_USER_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('userId' => new NumberValue($userId))); + + // Create statement text to select user team associations by the user ID. + $filterStatementText = "WHERE userId = :userId "; + + $offset = 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); + + // 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 + . "\" will be deleted.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of user team associations to be deleted: ' . $i . "\n"; + + if ($i > 0) { + // Create action statement. + $filterStatementText = 'WHERE userId = :userId '; + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeleteUserTeamAssociations(); + + // Perform action. + $result = $userTeamAssociationService->performUserTeamAssociationAction( + $action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of user team associations deleted: ' + . $result->numChanges . "\n"; + } else { + print "No user team associations were deleted.\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/v201308/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php b/examples/Dfp/v201308/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php new file mode 100755 index 000000000..25f2e2ad1 --- /dev/null +++ b/examples/Dfp/v201308/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201308'); + + // Set defaults for page and statement. + $page = new UserTeamAssociationPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all user team associations. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201308/UserTeamAssociationService/GetUserTeamAssociationExample.php b/examples/Dfp/v201308/UserTeamAssociationService/GetUserTeamAssociationExample.php new file mode 100755 index 000000000..0b2651d3f --- /dev/null +++ b/examples/Dfp/v201308/UserTeamAssociationService/GetUserTeamAssociationExample.php @@ -0,0 +1,79 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201308'); + + // Set the IDs of the user and team to get the association for. + $userId = 'INSERT_USER_ID_HERE'; + $teamId = 'INSERT_TEAM_ID_HERE'; + + // Get the user team association. + $uta = $userTeamAssociationService->getUserTeamAssociation($teamId, + $userId); + + // Display results. + if (isset($uta)) { + print 'User team association between user with ID "' . $uta->userId + . '" and team with ID "' . $uta->teamId + . "\" was found.\n"; + } else { + print "No user team association found for this ID.\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/v201308/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php b/examples/Dfp/v201308/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php new file mode 100755 index 000000000..9eafe44f7 --- /dev/null +++ b/examples/Dfp/v201308/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = $user->GetService('UserTeamAssociationService', + 'v201308'); + + // Get the UserService. + $userService = $user->GetService("UserService", "v201308"); + + // 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/v201308/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php b/examples/Dfp/v201308/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php new file mode 100755 index 000000000..4c83ffec9 --- /dev/null +++ b/examples/Dfp/v201308/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php @@ -0,0 +1,102 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201308'); + + // Set the user to set to read only access within its teams. + $userId = "INSERT_USER_ID_HERE"; + + // 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); + + $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( + $filterStatement); + + if (isset($page->results)) { + $utas = $page->results; + + // Update each local user team association to read only access. + foreach ($utas as $uta) { + $uta->overriddenTeamAccessType = 'READ_ONLY'; + } + + // Update the user team associations on the server. + $utas = $userTeamAssociationService->updateUserTeamAssociations($utas); + + // 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"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/ActivityGroupService/CreateActivityGroups.php b/examples/Dfp/v201311/ActivityGroupService/CreateActivityGroups.php new file mode 100755 index 000000000..a2b16c82b --- /dev/null +++ b/examples/Dfp/v201311/ActivityGroupService/CreateActivityGroups.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the ActivityGroupService. + $activityGroupService = $user->GetService('ActivityGroupService', 'v201311'); + + // Set the ID of the advertiser company this activity group is associated + // with. + $advertiserCompanyId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create a short-term activity group. + $shortTermActivityGroup = new ActivityGroup(); + $shortTermActivityGroup->name = sprintf('Short-term activity group #%s', + uniqid()); + $shortTermActivityGroup->companyIds = array($advertiserCompanyId); + $shortTermActivityGroup->clicksLookback = 1; + $shortTermActivityGroup->impressionsLookback = 1; + + // Create a long-term activity group. + $longTermActivityGroup = new ActivityGroup(); + $longTermActivityGroup->name = sprintf('Long-term activity group #%s', + uniqid()); + $longTermActivityGroup->companyIds = array($advertiserCompanyId); + $longTermActivityGroup->clicksLookback = 30; + $longTermActivityGroup->impressionsLookback = 30; + + // Create the activity groups on the server. + $activityGroups = $activityGroupService->createActivityGroups( + array($shortTermActivityGroup, $longTermActivityGroup)); + + // Display results. + if (isset($activityGroups)) { + foreach ($activityGroups as $activityGroup) { + printf("An activity group with ID \"%d\" and name \"%s\" was created.\n", + $activityGroup->id, $activityGroup->name); + } + } else { + printf("No activity groups were created.\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/v201311/ActivityGroupService/GetActiveActivityGroups.php b/examples/Dfp/v201311/ActivityGroupService/GetActiveActivityGroups.php new file mode 100755 index 000000000..712c2883c --- /dev/null +++ b/examples/Dfp/v201311/ActivityGroupService/GetActiveActivityGroups.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ActivityGroupService. + $activityGroupService = $user->GetService('ActivityGroupService', 'v201311'); + + // 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; + + $page = new ActivityGroupPage(); + + 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)); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $activityGroup) { + 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); + + printf("Number of results found: %d\n", $page->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/v201311/ActivityGroupService/GetAllActivityGroups.php b/examples/Dfp/v201311/ActivityGroupService/GetAllActivityGroups.php new file mode 100755 index 000000000..c071e8f1e --- /dev/null +++ b/examples/Dfp/v201311/ActivityGroupService/GetAllActivityGroups.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the ActivityGroupService. + $activityGroupService = $user->GetService('ActivityGroupService', 'v201311'); + + // 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; + + $page = new ActivityGroupPage(); + + do { + // Get activity groups by statement. + $page = $activityGroupService->getActivityGroupsByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $activityGroup) { + 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); + + printf("Number of results found: %d\n", $page->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/v201311/ActivityGroupService/UpdateActivityGroups.php b/examples/Dfp/v201311/ActivityGroupService/UpdateActivityGroups.php new file mode 100755 index 000000000..1a190f9c7 --- /dev/null +++ b/examples/Dfp/v201311/ActivityGroupService/UpdateActivityGroups.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the ActivityGroupService. + $activityGroupService = $user->GetService('ActivityGroupService', 'v201311'); + + // 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'; + + // Get the activity group. + $activityGroup = $activityGroupService->getActivityGroup($activityGroupId); + + // Update the companies. + $activityGroup->companyIds[] = $advertiserCompanyId; + + // Update the activity groups on the server. + $activityGroups = $activityGroupService->updateActivityGroups(array($activityGroup)); + + // Display results. + if (isset($activityGroups)) { + foreach ($activityGroups as $updatedActivityGroup) { + printf("Activity group with ID \"%d\" and name \"%s\" was updated.\n", + $updatedActivityGroup->id, $updatedActivityGroup->name); + } + } else { + printf("No activity groups were updated.\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/v201311/ActivityService/CreateActivities.php b/examples/Dfp/v201311/ActivityService/CreateActivities.php new file mode 100755 index 000000000..e97123f6b --- /dev/null +++ b/examples/Dfp/v201311/ActivityService/CreateActivities.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201311'); + + // Set the ID of the activity group this activity is associated with. + $activityGroupId = 'INSERT_ACTIVITY_GROUP_ID_HERE'; + + // Create a daily visits activity. + $dailyVisitsActivity = new Activity(); + $dailyVisitsActivity->name = sprintf('Activity #%s', uniqid()); + $dailyVisitsActivity->activityGroupId = $activityGroupId; + $dailyVisitsActivity->type = 'DAILY_VISITS'; + + // Create a custom activity. + $customActivity = new Activity(); + $customActivity->name = sprintf('Activity #%s', uniqid()); + $customActivity->activityGroupId = $activityGroupId; + $customActivity->type = 'CUSTOM'; + + // Create the activities on the server. + $activities = $activityService->createActivities( + array($dailyVisitsActivity, $customActivity)); + + // Display results. + if (isset($activities)) { + foreach ($activities as $activity) { + printf("An activity with ID \"%d\", name \"%s\", and type \"%s\" was " . + "created.\n", $activity->id, $activity->name, $activity->type); + } + } else { + printf("No activities were created.\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/v201311/ActivityService/GetActiveActivities.php b/examples/Dfp/v201311/ActivityService/GetActiveActivities.php new file mode 100755 index 000000000..6d21c5305 --- /dev/null +++ b/examples/Dfp/v201311/ActivityService/GetActiveActivities.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201311'); + + // 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; + + $page = new ActivityPage(); + + 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)); + + // Display results. + if (isset($page->results)) { + $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); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->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/v201311/ActivityService/GetAllActivities.php b/examples/Dfp/v201311/ActivityService/GetAllActivities.php new file mode 100755 index 000000000..ab4896cdd --- /dev/null +++ b/examples/Dfp/v201311/ActivityService/GetAllActivities.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201311'); + + // 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; + + $page = new ActivityPage(); + + do { + // Get activities by statement. + $page = $activityService->getActivitiesByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + + // Display results. + if (isset($page->results)) { + $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); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->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/v201311/ActivityService/UpdateActivities.php b/examples/Dfp/v201311/ActivityService/UpdateActivities.php new file mode 100755 index 000000000..8847706fb --- /dev/null +++ b/examples/Dfp/v201311/ActivityService/UpdateActivities.php @@ -0,0 +1,83 @@ +LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201311'); + + // Set the ID of the activity to update. + $activityId = 'INSERT_ACTIVITY_ID_HERE'; + + // Get the activity. + $activity = $activityService->getActivity($activityId); + + // Update the expected URL. + $activity->expectedURL = 'https://google.com'; + + // Update the activity on the server. + $activities = $activityService->updateActivities(array($activity)); + + // Display results. + if (isset($activities)) { + foreach ($activities as $updatedActivity) { + printf("Activity with ID \"%d\" and name \"%s\" was updated.\n", + $updatedActivity->id, $updatedActivity->name); + } + } else { + printf("No activities were updated.\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/v201311/AudienceSegmentService/CreateAudienceSegments.php b/examples/Dfp/v201311/AudienceSegmentService/CreateAudienceSegments.php new file mode 100755 index 000000000..a178494d3 --- /dev/null +++ b/examples/Dfp/v201311/AudienceSegmentService/CreateAudienceSegments.php @@ -0,0 +1,118 @@ +LogDefaults(); + + // Get the AudienceSegmentService. + $audienceSegmentService = + $user->GetService('AudienceSegmentService', 'v201311'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201311'); + + // Set the IDs of the custom criteria to be used in the segment rule. + $customTargetingKeyId = 'INSERT_CUSTOM_TARGETING_KEY_ID_HERE'; + $customTargetingValueId = 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'; + + // Get the root ad unit ID used to target the whole site. + $rootAdUnitId = $networkService->getCurrentNetwork()->effectiveRootAdUnitId; + + // Create inventory targeting to be used in the segment rule. + $inventoryTargeting = new InventoryTargeting(); + + // Create ad unit targeting for the root ad unit (i.e. the whole network). + $adUnitTargeting = new AdUnitTargeting(); + $adUnitTargeting->adUnitId = $rootAdUnitId; + $inventoryTargeting->targetedAdUnits = array($adUnitTargeting); + + // Create custom criteria to be used in the segment rule. + $customCriteria = new CustomCriteria(); + $customCriteria->keyId = $customTargetingKeyId; + $customCriteria->valueIds = array($customTargetingValueId); + $customCriteria->operator = 'IS'; + + // Create the custom criteria set that will resemble: + // $customCriteria.key == $customCriteria.value + $topCustomCriteriaSet = new CustomCriteriaSet(); + $topCustomCriteriaSet->logicalOperator = 'AND'; + $topCustomCriteriaSet->children = array($customCriteria); + + // Create the audience segment rule. + $rule = new FirstPartyAudienceSegmentRule(); + $rule->inventoryRule = $inventoryTargeting; + $rule->customCriteriaRule = $topCustomCriteriaSet; + + // Create an audience segment. + $audienceSegment = new RuleBasedFirstPartyAudienceSegment(); + $audienceSegment->name = sprintf('Sports enthusiasts audience segment #%s', + uniqid()); + $audienceSegment->description = 'Sports enthusiasts between the ages of 20 ' + . 'and 30.'; + $audienceSegment->pageViews = 6; + $audienceSegment->recencyDays = 6; + $audienceSegment->membershipExpirationDays = 88; + $audienceSegment->rule = $rule; + + // Create the audience segment on the server. + $audienceSegments = $audienceSegmentService->createAudienceSegments( + array($audienceSegment)); + + // Display results. + foreach ($audienceSegments as $createdAudienceSegment) { + printf("An audience segment with ID \"%d\", name \"%s\", and type \"%s\" " + . "was created.\n", $createdAudienceSegment->id, + $createdAudienceSegment->name, $createdAudienceSegment->type); + } +} 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/v201311/AudienceSegmentService/GetAllAudienceSegments.php b/examples/Dfp/v201311/AudienceSegmentService/GetAllAudienceSegments.php new file mode 100755 index 000000000..e9614a2c5 --- /dev/null +++ b/examples/Dfp/v201311/AudienceSegmentService/GetAllAudienceSegments.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the AudienceSegmentService. + $audienceSegmentService = $user->GetService('AudienceSegmentService', + 'v201311'); + + // 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; + + $page = new AudienceSegmentPage(); + + do { + // Get audience segments by statement. + $page = $audienceSegmentService->getAudienceSegmentsByStatement( + new Statement(sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + + // Display results. + if (isset($page->results)) { + $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); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->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/v201311/AudienceSegmentService/GetFirstPartyAudienceSegments.php b/examples/Dfp/v201311/AudienceSegmentService/GetFirstPartyAudienceSegments.php new file mode 100755 index 000000000..2e529571e --- /dev/null +++ b/examples/Dfp/v201311/AudienceSegmentService/GetFirstPartyAudienceSegments.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the AudienceSegmentService. + $audienceSegmentService = $user->GetService('AudienceSegmentService', + 'v201311'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('type' => new TextValue('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(); + + do { + // Get audience segments by statement. + $page = $audienceSegmentService->getAudienceSegmentsByStatement( + new Statement(sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), + $vars)); + + // Display results. + if (isset($page->results)) { + $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, + $audienceSegment->size); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->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/v201311/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php b/examples/Dfp/v201311/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php new file mode 100755 index 000000000..745620880 --- /dev/null +++ b/examples/Dfp/v201311/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php @@ -0,0 +1,125 @@ +LogDefaults(); + + // Get the AudienceSegmentService. + $audienceSegmentService = + $user->GetService('AudienceSegmentService', 'v201311'); + + $audienceSegmentId = 'INSERT_AUDIENCE_SEGMENT_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('type' => new TextValue('FIRST_PARTY'), + 'audienceSegmentId' => new NumberValue($audienceSegmentId))); + + // 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; + + $page = new AudienceSegmentPage(); + + do { + // Get audience segments by statement. + $page = $audienceSegmentService->getAudienceSegmentsByStatement( + new Statement(sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), + $vars)); + + // Display results. + $audienceSegmentIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $audienceSegment) { + 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); + + printf("Number of audience segments to be populated: %d\n", + sizeof($audienceSegmentIds)); + + if (sizeof($audienceSegmentIds) > 0) { + // Create action statement. + $filterStatementText = sprintf('WHERE id IN (%s)', + implode(',', $audienceSegmentIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new PopulateAudienceSegments(); + + // Perform action. + $result = $audienceSegmentService->performAudienceSegmentAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of audience segments populated: %d\n", + $result->numChanges); + } else { + printf("No audience segments were populated.\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/v201311/AudienceSegmentService/UpdateAudienceSegments.php b/examples/Dfp/v201311/AudienceSegmentService/UpdateAudienceSegments.php new file mode 100755 index 000000000..24d199a98 --- /dev/null +++ b/examples/Dfp/v201311/AudienceSegmentService/UpdateAudienceSegments.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the AudienceSegmentService. + $audienceSegmentService = $user->GetService('AudienceSegmentService', + 'v201311'); + + // 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))); + + // Create statement text to select the audience segment to update. + $filterStatementText = "WHERE id = :audienceSegmentId LIMIT 1"; + + // Get the audience segment. + $audienceSegment = $audienceSegmentService->getAudienceSegmentsByStatement( + new Statement($filterStatementText, $vars))->results[0]; + + // Update the member expiration days. + $audienceSegment->membershipExpirationDays = 180; + + // Update the audience segment on the server. + $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"); + } +} 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/v201311/CompanyService/CreateCompaniesExample.php b/examples/Dfp/v201311/CompanyService/CreateCompaniesExample.php new file mode 100755 index 000000000..3d50e775e --- /dev/null +++ b/examples/Dfp/v201311/CompanyService/CreateCompaniesExample.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201311'); + + // Create an array to store local company objects. + $companies = array(); + + for ($i = 0; $i < 5; $i++) { + $company = new Company(); + $company->name = 'Advertiser #' . $i; + $company->type = 'ADVERTISER'; + + $companies[] = $company; + } + + // Create the companies on the server. + $companies = $companyService->createCompanies($companies); + + // Display results. + if (isset($companies)) { + foreach ($companies as $company) { + print 'A company with ID "' . $company->id + . '", name "'. $company->name + . '", and type "' . $company->type . "\" was created.\n"; + } + } else { + print "No companies created.\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/v201311/CompanyService/GetAllCompaniesExample.php b/examples/Dfp/v201311/CompanyService/GetAllCompaniesExample.php new file mode 100755 index 000000000..0368344b2 --- /dev/null +++ b/examples/Dfp/v201311/CompanyService/GetAllCompaniesExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201311'); + + // Set defaults for page and statement. + $page = new CompanyPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all companies. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get companies by statement. + $page = $companyService->getCompaniesByStatement($filterStatement); + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201311/CompanyService/GetCompaniesByStatementExample.php b/examples/Dfp/v201311/CompanyService/GetCompaniesByStatementExample.php new file mode 100755 index 000000000..00216fbb5 --- /dev/null +++ b/examples/Dfp/v201311/CompanyService/GetCompaniesByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201311'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('type' => new TextValue('ADVERTISER'))); + + // 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 companies by statement. + $page = $companyService->getCompaniesByStatement($filterStatement); + + // 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++; + } + } + + 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/v201311/CompanyService/GetCompanyExample.php b/examples/Dfp/v201311/CompanyService/GetCompanyExample.php new file mode 100755 index 000000000..877da2f24 --- /dev/null +++ b/examples/Dfp/v201311/CompanyService/GetCompanyExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201311'); + + // Set the ID of the company to get. + $companyId = 'INSERT_COMPANY_ID_HERE'; + + // Get the company. + $company = $companyService->getCompany($companyId); + + // Display results. + if (isset($company)) { + print 'Company with ID "' . $company->id + . '", name "' . $company->name + . '", and type "' . $company->type . "\" was found.\n"; + } else { + print "No company found for this ID.\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/v201311/CompanyService/UpdateCompaniesExample.php b/examples/Dfp/v201311/CompanyService/UpdateCompaniesExample.php new file mode 100755 index 000000000..49bce4d45 --- /dev/null +++ b/examples/Dfp/v201311/CompanyService/UpdateCompaniesExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201311'); + + // 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/v201311/ContactService/CreateContacts.php b/examples/Dfp/v201311/ContactService/CreateContacts.php new file mode 100755 index 000000000..a245c0daf --- /dev/null +++ b/examples/Dfp/v201311/ContactService/CreateContacts.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201311'); + + // Set the ID of the advertiser company this contact is associated with. + $advertiserCompanyId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Set the ID of the agency company this contact is associated with. + $agencyCompanyId = 'INSERT_AGENCY_COMPANY_ID_HERE'; + + // Create an advertiser contact. + $advertiserContact = new Contact(); + $advertiserContact->name = sprintf('Mr. Advertiser #%s', uniqid()); + $advertiserContact->email = 'advertiser@advertising.com'; + $advertiserContact->companyId = $advertiserCompanyId; + + // Create an agency contact. + $agencyContact = new Contact(); + $agencyContact->name = sprintf('Ms. Agency #%s', uniqid()); + $agencyContact->email = 'agency@agencies.com'; + $agencyContact->companyId = $agencyCompanyId; + + // Create the contacts on the server. + $contacts = $contactService->createContacts(array($advertiserContact, + $agencyContact)); + + // Display results. + if (isset($contacts)) { + foreach ($contacts as $contact) { + printf("A contact with ID \"%d\" and name \"%s\" was created.\n", + $contact->id, $contact->name); + } + } else { + printf("No contacts were created.\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/v201311/ContactService/GetAllContacts.php b/examples/Dfp/v201311/ContactService/GetAllContacts.php new file mode 100755 index 000000000..e3e752af3 --- /dev/null +++ b/examples/Dfp/v201311/ContactService/GetAllContacts.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201311'); + + // 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; + + $page = new ContactPage(); + + do { + // Get contacts by statement. + $page = $contactService->getContactsByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $contact) { + 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); + + printf("Number of results found: %d\n", $page->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/v201311/ContactService/GetUninvitedContacts.php b/examples/Dfp/v201311/ContactService/GetUninvitedContacts.php new file mode 100755 index 000000000..d239da894 --- /dev/null +++ b/examples/Dfp/v201311/ContactService/GetUninvitedContacts.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201311'); + + // 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; + + $page = new ContactPage(); + + 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)); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $contact) { + 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); + + printf("Number of results found: %d\n", $page->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/v201311/ContactService/UpdateContacts.php b/examples/Dfp/v201311/ContactService/UpdateContacts.php new file mode 100755 index 000000000..e62030f76 --- /dev/null +++ b/examples/Dfp/v201311/ContactService/UpdateContacts.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201311'); + + // Set the ID of the contact to update. + $contactId = "INSERT_CONTACT_ID_HERE"; + + // Get the contact. + $contact = $contactService->getContact($contactId); + + // Update the address on the contact. + $contact->address = '123 New Street, New York, NY, 10011'; + + // Update the contact on the server. + $contacts = $contactService->updateContacts(array($contact)); + + // Display results. + if (isset($contacts)) { + foreach ($contacts as $updatedContact) { + printf("Contact with ID \"%d\", name \"%s\", and address \"%s\" was " . + "updated.\n", $updatedContact->id, $updatedContact->name, + $updatedContact->address); + } + } else { + printf("No contacts were updated.\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/v201311/ContentService/GetAllContentExample.php b/examples/Dfp/v201311/ContentService/GetAllContentExample.php new file mode 100755 index 000000000..e65e07ffe --- /dev/null +++ b/examples/Dfp/v201311/ContentService/GetAllContentExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the ContentService. + $contentService = $user->GetService('ContentService', 'v201311'); + + // Set defaults for page and statement. + $page = new ContentPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all content. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get content by statement. + $page = $contentService->getContentByStatement($filterStatement); + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201311/ContentService/GetContentByCategoryExample.php b/examples/Dfp/v201311/ContentService/GetContentByCategoryExample.php new file mode 100755 index 000000000..78da1662f --- /dev/null +++ b/examples/Dfp/v201311/ContentService/GetContentByCategoryExample.php @@ -0,0 +1,113 @@ +LogDefaults(); + + // Get the ContentService. + $contentService = $user->GetService('ContentService', 'v201311'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201311'); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201311'); + + // 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/v201311/CreativeService/AssociateCreativeSetToLineItemExample.php b/examples/Dfp/v201311/CreativeService/AssociateCreativeSetToLineItemExample.php new file mode 100755 index 000000000..2b85d29f2 --- /dev/null +++ b/examples/Dfp/v201311/CreativeService/AssociateCreativeSetToLineItemExample.php @@ -0,0 +1,78 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = $user->GetService('LineItemCreativeAssociationService', + 'v201311'); + + // 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/v201311/CreativeService/CreateCreativeFromTemplateExample.php b/examples/Dfp/v201311/CreativeService/CreateCreativeFromTemplateExample.php new file mode 100755 index 000000000..7fcbcccfc --- /dev/null +++ b/examples/Dfp/v201311/CreativeService/CreateCreativeFromTemplateExample.php @@ -0,0 +1,129 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201311'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Use the image banner with optional third party tracking template. + $creativeTemplateId = 10000680; + + // Create the local custom creative object. + $templateCreative = new TemplateCreative(); + $templateCreative->name = 'Template creative'; + $templateCreative->advertiserId = $advertiserId; + $templateCreative->creativeTemplateId = $creativeTemplateId; + + // Set the creative size. + $templateCreative->size = new Size(300, 250, FALSE); + + // Create the asset variable value. + $assetVariableValue = new AssetCreativeTemplateVariableValue(); + $assetVariableValue->uniqueName = 'Imagefile'; + $assetVariableValue->assetByteArray = MediaUtils::GetBase64Data( + 'http://www.google.com/intl/en/adwords/select/images/samples/inline.jpg'); + // Filenames must be unique. + $assetVariableValue->fileName = sprintf('image%s.jpg', uniqid()); + $templateCreative->creativeTemplateVariableValues[] = $assetVariableValue; + + // Create the image width variable value. + $imageWidthVariableValue = new LongCreativeTemplateVariableValue(); + $imageWidthVariableValue->uniqueName = 'Imagewidth'; + $imageWidthVariableValue->value = 300; + $templateCreative->creativeTemplateVariableValues[] = + $imageWidthVariableValue; + + // Create the image height variable value. + $imageHeightVariableValue = new LongCreativeTemplateVariableValue(); + $imageHeightVariableValue->uniqueName = 'Imageheight'; + $imageHeightVariableValue->value = 250; + $templateCreative->creativeTemplateVariableValues[] = + $imageHeightVariableValue; + + // Create the URL variable value. + $urlVariableValue = new UrlCreativeTemplateVariableValue(); + $urlVariableValue->uniqueName = 'ClickthroughURL'; + $urlVariableValue->value = 'www.google.com'; + $templateCreative->creativeTemplateVariableValues[] = $urlVariableValue; + + // Create the target window variable value. + $targetWindowVariableValue = new StringCreativeTemplateVariableValue(); + $targetWindowVariableValue->uniqueName = 'Targetwindow'; + $targetWindowVariableValue->value = '_blank'; + $templateCreative->creativeTemplateVariableValues[] = + $targetWindowVariableValue; + + // Create the template creative on the server. + $templateCreative = $creativeService->createCreative($templateCreative); + + // Display results. + if (isset($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->previewUrl); + } else { + print "No creative was created.\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/v201311/CreativeService/CreateCreativesExample.php b/examples/Dfp/v201311/CreativeService/CreateCreativesExample.php new file mode 100755 index 000000000..491396c49 --- /dev/null +++ b/examples/Dfp/v201311/CreativeService/CreateCreativesExample.php @@ -0,0 +1,119 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201311'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create an array to store local image creative objects. + $imageCreatives = array(); + + for ($i = 0; $i < 5; $i++) { + // Create creative size. + $size = new Size(300, 250); + + // Create an image creative. + $imageCreative = new ImageCreative(); + $imageCreative->name = 'Image creative #' . $i; + $imageCreative->advertiserId = $advertiserId; + $imageCreative->destinationUrl = 'http://google.com'; + $imageCreative->size = $size; + + // Create image asset. + $creativeAsset = new CreativeAsset(); + $creativeAsset->fileName = 'image.jpg'; + $creativeAsset->assetByteArray = + MediaUtils::GetBase64Data('http://www.google.com/intl/en/adwords/' + . 'select/images/samples/inline.jpg'); + $creativeAsset->size = $size; + $imageCreative->primaryImageAsset = $creativeAsset; + + $imageCreatives[] = $imageCreative; + } + + // Create the image creatives on the server. + $imageCreatives = $creativeService->createCreatives($imageCreatives); + + // Display results. + if (isset($imageCreatives)) { + 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"; + } else { + print 'A creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType + . "\" was created.\n"; + } + } + } else { + print "No creatives created.\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/v201311/CreativeService/CreateCustomCreativeExample.php b/examples/Dfp/v201311/CreativeService/CreateCustomCreativeExample.php new file mode 100755 index 000000000..ba8401972 --- /dev/null +++ b/examples/Dfp/v201311/CreativeService/CreateCustomCreativeExample.php @@ -0,0 +1,103 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201311'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create the local custom creative object. + $customCreative = new CustomCreative(); + $customCreative->name = 'Custom creative'; + $customCreative->advertiserId = $advertiserId; + $customCreative->destinationUrl = 'http://google.com'; + + // Set the custom creative image asset. + $customCreativeAsset = new CustomCreativeAsset(); + $customCreativeAsset->macroName = 'IMAGE_ASSET'; + // Filenames must be unique. + $customCreativeAsset->fileName = sprintf('inline%s.jpg', uniqid()); + $customCreativeAsset->assetByteArray = MediaUtils::GetBase64Data( + 'http://www.google.com/intl/en/adwords/select/images/samples/inline.jpg'); + $customCreative->customCreativeAssets = array($customCreativeAsset); + + // Set the HTML snippet using the custom creative asset macro. + $customCreative->htmlSnippet = '' + . '' + . '
Click above for great deals!'; + + // Set the creative size. + $customCreative->size = new Size(300, 250, FALSE); + + // Create the custom creative on the server. + $customCreative = $creativeService->createCreative($customCreative); + + // Display results. + if (isset($customCreative)) { + printf("A custom creative with ID '%s', name '%s', and size '%sx%s' was " + . "created and can be previewed at: %s\n", $templateCreative->id, + $templateCreative->name, $templateCreative->size->width, + $templateCreative->size->height, $templateCreative->previewUrl); + } else { + print "No creative was created.\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/v201311/CreativeService/GetAllCreativesExample.php b/examples/Dfp/v201311/CreativeService/GetAllCreativesExample.php new file mode 100755 index 000000000..8d736c984 --- /dev/null +++ b/examples/Dfp/v201311/CreativeService/GetAllCreativesExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201311'); + + // Set defaults for page and statement. + $page = new CreativePage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all creatives. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201311/CreativeService/GetCreativeExample.php b/examples/Dfp/v201311/CreativeService/GetCreativeExample.php new file mode 100755 index 000000000..479c4917c --- /dev/null +++ b/examples/Dfp/v201311/CreativeService/GetCreativeExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201311'); + + // Set the ID of the creative to get. + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Get the creative. + $creative = $creativeService->getCreative($creativeId); + + // Display results. + if (isset($creative)) { + print 'Creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType . "\" was found.\n"; + } else { + print "No creative found for this ID.\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/v201311/CreativeService/GetCreativesByStatementExample.php b/examples/Dfp/v201311/CreativeService/GetCreativesByStatementExample.php new file mode 100755 index 000000000..56911b7ae --- /dev/null +++ b/examples/Dfp/v201311/CreativeService/GetCreativesByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201311'); + + // 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/v201311/CreativeService/UpdateCreativesExample.php b/examples/Dfp/v201311/CreativeService/UpdateCreativesExample.php new file mode 100755 index 000000000..bd747366e --- /dev/null +++ b/examples/Dfp/v201311/CreativeService/UpdateCreativesExample.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201311'); + + // Create a statement to get all image creatives. + $filterStatement = + new Statement("WHERE creativeType = 'ImageCreative' LIMIT 500"); + + // Get creatives by statement. + $page = $creativeService->getCreativesByStatement($filterStatement); + + if (isset($page->results)) { + $creatives = $page->results; + + // Update each local creative object by changing its destination URL. + foreach ($creatives as $creative) { + $creative->destinationUrl = 'http://news.google.com'; + } + + // Update the creatives on the server. + $creatives = $creativeService->updateCreatives($creatives); + + // 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"; + } + } else { + print "No creatives 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/v201311/CreativeSetService/CreateCreativeSetExample.php b/examples/Dfp/v201311/CreativeSetService/CreateCreativeSetExample.php new file mode 100755 index 000000000..3db4ee394 --- /dev/null +++ b/examples/Dfp/v201311/CreativeSetService/CreateCreativeSetExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201311'); + + // Set the ID of the creatives to associate with this set. + $masterCreativeID = 'INSERT_MASTER_CREATIVE_ID_HERE'; + $companionCreativeID = 'INSERT_COMPANION_CREATIVE_ID_HERE'; + + // Create a local creative set. + $creativeSet = new CreativeSet(); + $creativeSet->name = 'Creative set #' . uniqid(); + $creativeSet->masterCreativeId = $masterCreativeID; + $creativeSet->companionCreativeIds = array(); + $creativeSet->companionCreativeIds[] = $companionCreativeID; + + // Create the creative set on the server. + $creativeSet = $creativeSetService->createCreativeSet($creativeSet); + + // Display results. + if (isset($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)); + } else { + print "No creative set created.\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/v201311/CreativeSetService/GetAllCreativesSetsExample.php b/examples/Dfp/v201311/CreativeSetService/GetAllCreativesSetsExample.php new file mode 100755 index 000000000..430a037db --- /dev/null +++ b/examples/Dfp/v201311/CreativeSetService/GetAllCreativesSetsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201311'); + + // Set default offset. + $offset = 0; + $filterStatement = new Statement(); + + do { + // Create a statement to get all creative sets. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201311/CreativeSetService/GetCreativeSetsByStatementExample.php b/examples/Dfp/v201311/CreativeSetService/GetCreativeSetsByStatementExample.php new file mode 100755 index 000000000..2d2ce2411 --- /dev/null +++ b/examples/Dfp/v201311/CreativeSetService/GetCreativeSetsByStatementExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201311'); + + $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/v201311/CreativeSetService/UpdateCreativeSetExample.php b/examples/Dfp/v201311/CreativeSetService/UpdateCreativeSetExample.php new file mode 100755 index 000000000..8bf9b984c --- /dev/null +++ b/examples/Dfp/v201311/CreativeSetService/UpdateCreativeSetExample.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201311'); + + # Set the ID of the creative set to get. + $creativeSetID = 'INSERT_CREATIVE_SET_ID_HERE'; + $companionCreativeID = 'INSERT_COMPANION_CREATIVE_ID_HERE'; + + # Get creative set. + $creativeSet = $creativeSetService->getCreativeSet($creativeSetID); + + $creativeSet->companionCreativeIds[] = $companionCreativeID; + + # Update the creative set on the server. + $creativeSet = $creativeSetService->updateCreativeSet($creativeSet); + + // Display results. + if (isset($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)); + } else { + print "No creative set 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/v201311/CreativeTemplateService/GetAllCreativeTemplatesExample.php b/examples/Dfp/v201311/CreativeTemplateService/GetAllCreativeTemplatesExample.php new file mode 100755 index 000000000..f8c040603 --- /dev/null +++ b/examples/Dfp/v201311/CreativeTemplateService/GetAllCreativeTemplatesExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201311'); + + // Set defaults for page and statement. + $page = new CreativeTemplatePage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all creative templates. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201311/CreativeTemplateService/GetCreativeTemplateExample.php b/examples/Dfp/v201311/CreativeTemplateService/GetCreativeTemplateExample.php new file mode 100755 index 000000000..dbadd82a2 --- /dev/null +++ b/examples/Dfp/v201311/CreativeTemplateService/GetCreativeTemplateExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201311'); + + // Set the ID of the creative template to get. + $creativeTemplateId = 'INSERT_CREATIVE_TEMPLATE_ID_HERE'; + + // Get the creative template. + $creativeTemplate = + $creativeTemplateService->getCreativeTemplate($creativeTemplateId); + + // Display results. + if (isset($creativeTemplate)) { + printf("Creative template with ID '%s', name '%s', and type '%s' was " + ."found.\n", $creativeTemplate->id, $creativeTemplate->name, + $creativeTemplate->type); + } else { + print "No creative template found for this ID.\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/v201311/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php b/examples/Dfp/v201311/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php new file mode 100755 index 000000000..6e26ce94c --- /dev/null +++ b/examples/Dfp/v201311/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201311'); + + // 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/v201311/CreativeWrapperService/CreateCreativeWrappersExample.php b/examples/Dfp/v201311/CreativeWrapperService/CreateCreativeWrappersExample.php new file mode 100755 index 000000000..4597e636a --- /dev/null +++ b/examples/Dfp/v201311/CreativeWrapperService/CreateCreativeWrappersExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201311'); + + $labelId = 'INSERT_CREATIVE_WRAPPER_LABEL_ID_HERE'; + + // Create creative wrapper objects. + $creativeWrapper = new CreativeWrapper(); + $creativeWrapper->labelId = $labelId; + $creativeWrapper->ordering = 'INNER'; + $creativeWrapper->header = new CreativeWrapperHtmlSnippet; + $creativeWrapper->header->htmlSnippet = 'My creative wrapper header'; + $creativeWrapper->footer = new CreativeWrapperHtmlSnippet; + $creativeWrapper->footer->htmlSnippet = 'My creative wrapper footer'; + + // Create the creative wrappers on the server. + $creativeWrappers = + $creativeWrapperService->CreateCreativeWrappers(array($creativeWrapper)); + + // Display results. + if (isset($creativeWrappers)) { + foreach ($creativeWrappers as $creativeWrapper) { + printf("Creative wrapper with ID '%d' applying to label '%d' was" . + " created.\n", $creativeWrapper->id, $creativeWrapper->labelId); + } + } else { + print "No creative wrappers were created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201311/CreativeWrapperService/DeactivateCreativeWrapperExample.php b/examples/Dfp/v201311/CreativeWrapperService/DeactivateCreativeWrapperExample.php new file mode 100755 index 000000000..1a1ec94fc --- /dev/null +++ b/examples/Dfp/v201311/CreativeWrapperService/DeactivateCreativeWrapperExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201311'); + + $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/v201311/CreativeWrapperService/GetActiveCreativeWrappersExample.php b/examples/Dfp/v201311/CreativeWrapperService/GetActiveCreativeWrappersExample.php new file mode 100755 index 000000000..dd47b0d28 --- /dev/null +++ b/examples/Dfp/v201311/CreativeWrapperService/GetActiveCreativeWrappersExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201311'); + + // Create a statement to select only active creative wrappers. + $vars = MapUtils::GetMapEntries(array('status' => new TextValue('ACTIVE'))); + $filterStatement = + new Statement('WHERE status = :status', $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' 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/v201311/CreativeWrapperService/GetAllCreativeWrappersExample.php b/examples/Dfp/v201311/CreativeWrapperService/GetAllCreativeWrappersExample.php new file mode 100755 index 000000000..ba10eb1f0 --- /dev/null +++ b/examples/Dfp/v201311/CreativeWrapperService/GetAllCreativeWrappersExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201311'); + + // 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/v201311/CreativeWrapperService/UpdateCreativeWrappersExample.php b/examples/Dfp/v201311/CreativeWrapperService/UpdateCreativeWrappersExample.php new file mode 100755 index 000000000..99af2fb9d --- /dev/null +++ b/examples/Dfp/v201311/CreativeWrapperService/UpdateCreativeWrappersExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201311'); + + $creativeWrapperId = 'INSERT_CREATIVE_WRAPPER_ID_HERE'; + + // Get creative wrapper. + $creativeWrapper = + $creativeWrapperService->getCreativeWrapper($creativeWrapperId); + + if (isset($creativeWrapper)) { + $creativeWrapper->ordering = 'OUTER'; + + // Update the creative wrappers on the server. + $creativeWrappers = + $creativeWrapperService-> + updateCreativeWrappers(array($creativeWrapper)); + + // Display results. + if (isset($creativeWrappers)) { + foreach ($creativeWrappers as $creativeWrapper) { + printf("Creative wrapper with ID '%s' and wrapping order '%s' was" . + " updated.\n", $creativeWrapper->id, $creativeWrapper->ordering); + } + } else { + printf('No creative wrappers were updated.'); + } + } else { + print "No creative wrappers found to update."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201311/CustomFieldService/CreateCustomFieldOptions.php b/examples/Dfp/v201311/CustomFieldService/CreateCustomFieldOptions.php new file mode 100755 index 000000000..f1d865bb6 --- /dev/null +++ b/examples/Dfp/v201311/CustomFieldService/CreateCustomFieldOptions.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = + $user->GetService('CustomFieldService', 'v201311'); + + // Set the ID of the drop-down custom field to create options for. + $customFieldId = "INSERT_DROP_DOWN_CUSTOM_FIELD_ID_HERE"; + + // Create custom field options. + $customFieldOption1 = new CustomFieldOption(); + $customFieldOption1->displayName = 'Approved'; + $customFieldOption1->customFieldId = $customFieldId; + + $customFieldOption2 = new CustomFieldOption(); + $customFieldOption2->displayName = 'Unapproved'; + $customFieldOption2->customFieldId = $customFieldId; + + // Create the custom targeting keys on the server. + $customFieldOptions = $customFieldService->createCustomFieldOptions( + array($customFieldOption1, $customFieldOption2)); + + // Display results. + if (isset($customFieldOptions)) { + foreach ($customFieldOptions as $customFieldOption) { + printf("A custom field option with ID '%s' and name '%s' was created.\n", + $customFieldOption->id, $customFieldOption->displayName); + } + } else { + print "No custom field options were created.\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/v201311/CustomFieldService/CreateCustomFields.php b/examples/Dfp/v201311/CustomFieldService/CreateCustomFields.php new file mode 100755 index 000000000..8fe721a38 --- /dev/null +++ b/examples/Dfp/v201311/CustomFieldService/CreateCustomFields.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = + $user->GetService('CustomFieldService', 'v201311'); + + // Create custom fields. + $customField1 = new CustomField(); + $customField1->name = 'Customer comments #' . time(); + $customField1->entityType = 'LINE_ITEM'; + $customField1->dataType = 'STRING'; + $customField1->visibility = 'FULL'; + + $customField2 = new CustomField(); + $customField2->name = 'Internal approval status #' . time(); + $customField2->entityType = 'LINE_ITEM'; + $customField2->dataType = 'DROP_DOWN'; + $customField2->visibility = 'FULL'; + + // Create the custom fields on the server. + $customFields = $customFieldService->createCustomFields( + array($customField1, $customField2)); + + // Display results. + if (isset($customFields)) { + foreach ($customFields as $customField) { + printf("A custom field with ID '%s' and name '%s' was created.\n", + $customField->id, $customField->name); + } + } else { + print "No custom fields were created.\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/v201311/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php b/examples/Dfp/v201311/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php new file mode 100755 index 000000000..595ed14ec --- /dev/null +++ b/examples/Dfp/v201311/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php @@ -0,0 +1,123 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201311'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('entityType' => new TextValue("LINE_ITEM"), + 'isActive' => new BooleanValue("TRUE"))); + + // Create statement text to select only active custom fields that apply + // to line items. + $filterStatementText = + "WHERE entityType = :entityType and isActive = :isActive"; + $offset = 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); + + // Display results. + $customFieldIds = array(); + if (isset($page->results)) { + $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; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of custom fields to be deactivated: ' . sizeof($customFieldIds) + . "\n"; + + if (sizeof($customFieldIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $customFieldIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateCustomFields(); + + // Perform action. + $result = $customFieldService->performCustomFieldAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of custom fields deactivated: ' . $result->numChanges + . "\n"; + } else { + print "No custom fields 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/v201311/CustomFieldService/GetAllCustomFieldsExample.php b/examples/Dfp/v201311/CustomFieldService/GetAllCustomFieldsExample.php new file mode 100755 index 000000000..b38c16733 --- /dev/null +++ b/examples/Dfp/v201311/CustomFieldService/GetAllCustomFieldsExample.php @@ -0,0 +1,87 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201311'); + + // Set defaults for page and statement. + $page = new CustomFieldPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all custom fields. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get custom fields by statement. + $page = $customFieldService->getCustomFieldsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $customField) { + print $i . ') Custom field with ID "' . $customField->id + . '" and name "' . $customField->name . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201311/CustomFieldService/SetLineItemCustomFieldValue.php b/examples/Dfp/v201311/CustomFieldService/SetLineItemCustomFieldValue.php new file mode 100755 index 000000000..981aef259 --- /dev/null +++ b/examples/Dfp/v201311/CustomFieldService/SetLineItemCustomFieldValue.php @@ -0,0 +1,128 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201311'); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201311'); + + // Set the IDs of the custom fields, custom field option, and line item. + $customFieldId = "INSERT_CUSTOM_FIELD_ID_HERE"; + $dropDownCustomFieldId = "INSERT_DROP_DOWN_CUSTOM_FIELD_ID_HERE"; + $customFieldOptionId = "INSERT_CUSTOM_FIELD_OPTION_ID_HERE"; + $lineItemId = "INSERT_LINE_ITEM_ID_HERE"; + + // Get the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + + // Create custom field values. + $customFieldValues = array(); + + $customFieldValue = new CustomFieldValue(); + $customFieldValue->customFieldId = $customFieldId; + $customFieldValue->value = new TextValue("Custom field value"); + $customFieldValues[] = $customFieldValue; + + $dropDownCustomFieldValue = new DropDownCustomFieldValue(); + $dropDownCustomFieldValue->customFieldId = $dropDownCustomFieldId; + $dropDownCustomFieldValue->customFieldOptionId = $customFieldOptionId; + $customFieldValues[] = $dropDownCustomFieldValue; + + // Only add existing custom field values for different custom fields than + // the ones you are setting. + if (isset($lineItem->customFieldValues)) { + foreach ($lineItem->customFieldValues as $oldCustomFieldValue) { + if (($oldCustomFieldValue->customFieldId != $customFieldId) && + ($oldCustomFieldValue->customFieldId != $dropDownCustomFieldId)) { + $customFieldValues[] = $oldCustomFieldValue; + } + } + } + + $lineItem->customFieldValues = $customFieldValues; + + // Update the line item on the server. + $lineItems = $lineItemService->updateLineItems($lineItem); + + if (isset($lineItems)) { + foreach ($lineItems as $lineItem) { + $customFieldValueStrings = array(); + foreach ($lineItem->customFieldValues as $baseCustomFieldValue) { + if (($baseCustomFieldValue instanceof CustomFieldValue)) { + $customFieldValueStrings[] = "{ID: '" + . $baseCustomFieldValue->customFieldId . "', value: '" + . $baseCustomFieldValue->value->value . "'}"; + } else if ($baseCustomFieldValue instanceof DropDownCustomFieldValue) { + $customFieldValueStrings[] = "{ID: '" + . $baseCustomFieldValue->customFieldId + . "', custom field option ID: '" + . $baseCustomFieldValue->customFieldOptionId . "'}"; + } + } + print "A line item with ID '" . $lineItem->id + . "' was set with custom field values '" + . join(",", $customFieldValueStrings) . "'."; + } + } + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CustomFieldService/UpdateCustomFieldExample.php b/examples/Dfp/v201311/CustomFieldService/UpdateCustomFieldExample.php new file mode 100755 index 000000000..4bb23f5e5 --- /dev/null +++ b/examples/Dfp/v201311/CustomFieldService/UpdateCustomFieldExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201311'); + + // Set the ID of the custom field to update. + $customFieldId = "INSERT_CUSTOM_FIELD_ID_HERE"; + + // Get the custom field. + $customField = $customFieldService->getCustomField($customFieldId); + + if (isset($customField)) { + $customField->description = "Description " . time(); + + $customFields = array(); + $customFields[] = $customField; + + // Update the custom field on the server. + $customFields = $customFieldService->updateCustomFields($customFields); + + // Display results. + if (isset($customFields)) { + foreach ($customFields as $customField) { + print 'Custom field with ID "' + . $customField->id . '", name "' . $customField->name + . '", and description "' . $customField->description + . "\" was updated.\n"; + } + } else { + print "No custom fields were updated.\n"; + } + } else { + print "No custom fields 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/v201311/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php b/examples/Dfp/v201311/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php new file mode 100755 index 000000000..1f2ec5f4b --- /dev/null +++ b/examples/Dfp/v201311/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php @@ -0,0 +1,152 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201311'); + + // Create predefined key. + $genderKey = new CustomTargetingKey(); + $genderKey->displayName = 'gender'; + $genderKey->name = 'g'; + $genderKey->type = 'PREDEFINED'; + + // Create predefined key that may be used for content targeting. + $genreKey = new CustomTargetingKey(); + $genreKey->displayName = 'genre'; + $genreKey->name = 'genre'; + $genreKey->type = 'PREDEFINED'; + + // Create free-form key. + $carModelKey = new CustomTargetingKey(); + $carModelKey->displayName = 'car model'; + $carModelKey->name = 'c'; + $carModelKey->type = 'FREEFORM'; + + // Create the custom targeting keys on the server. + $keys = $customTargetingService->createCustomTargetingKeys( + array($genderKey, $genreKey, $carModelKey)); + + if (isset($keys)) { + foreach ($keys as $key) { + printf("A custom targeting key with ID '%s', name '%s', and display " . + "name '%s' was created.\n", $key->id, $key->name, $key->displayName); + } + } else { + print "No keys were created.\n"; + } + + // Create custom targeting value for the predefined gender key. + $genderMaleValue = new CustomTargetingValue(); + $genderMaleValue->customTargetingKeyId = $keys[0]->id; + $genderMaleValue->displayName = 'male'; + // Name is set to 1 so that the actual name can be hidden from website + // users. + $genderMaleValue->name = '1'; + $genderMaleValue->matchType = 'EXACT'; + + $genderFemaleValue = new CustomTargetingValue(); + $genderFemaleValue->customTargetingKeyId = $keys[0]->id; + $genderFemaleValue->displayName = 'female'; + // Name is set to 2 so that the actual name can be hidden from website + // users. + $genderFemaleValue->name = '2'; + $genderFemaleValue->matchType = 'EXACT'; + + // Create custom targeting value for the predefined genre key. + $genreComedyValue = new CustomTargetingValue(); + $genreComedyValue->customTargetingKeyId = $keys[1]->id; + $genreComedyValue->displayName = 'comedy'; + $genreComedyValue->name = 'comedy'; + $genreComedyValue->matchType = 'EXACT'; + + $genreDramaValue = new CustomTargetingValue(); + $genreDramaValue->customTargetingKeyId = $keys[1]->id; + $genreDramaValue->displayName = 'drama'; + $genreDramaValue->name = 'drama'; + $genreDramaValue->matchType = 'EXACT'; + + // Create custom targeting value for the free-form age key. These are + // values that would be suggested in the UI or can be used when targeting + // with a free-form custom criterion. + $carModelHondaCivicValue = new CustomTargetingValue(); + $carModelHondaCivicValue->customTargetingKeyId = $keys[2]->id; + $carModelHondaCivicValue->displayName = 'honda civic'; + $carModelHondaCivicValue->name = 'honda civic'; + // Setting match type to exact will match exactly 'honda civic'. + $carModelHondaCivicValue->matchType = 'EXACT'; + + // Create the custom targeting values on the server. + $values = $customTargetingService->createCustomTargetingValues(array( + $genderMaleValue, $genderFemaleValue, $genreComedyValue, + $genreDramaValue, $carModelHondaCivicValue)); + + if (isset($values)) { + foreach ($values as $value) { + printf("A custom targeting value with ID '%s', belonging to key " . + "with ID '%s', name '%s', and display name '%s' was created.\n", + $value->id, $value->customTargetingKeyId, $value->name, + $value->displayName); + } + } else { + print "No values were created.\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/v201311/CustomTargetingService/DeleteCustomTargetingKeysExample.php b/examples/Dfp/v201311/CustomTargetingService/DeleteCustomTargetingKeysExample.php new file mode 100755 index 000000000..afd7f7b26 --- /dev/null +++ b/examples/Dfp/v201311/CustomTargetingService/DeleteCustomTargetingKeysExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201311'); + + // 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'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('name' => new TextValue($keyName))); + + $offset = 0; + $keyIds = array(); + + 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); + + if (isset($page->results)) { + foreach ($page->results as $customTargetingKey) { + $keyIds[] = $customTargetingKey->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + printf("Number of custom targeting keys to be deleted: %d\n", + sizeof($keyIds)); + + if (sizeof($keyIds) > 0) { + // Create action statement. + $filterStatementText = sprintf('WHERE id IN (%s)', implode(',', $keyIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeleteCustomTargetingKeys(); + + // Perform action. + $result = $customTargetingService->performCustomTargetingKeyAction( + $action, $filterStatement); + + // 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"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CustomTargetingService/DeleteCustomTargetingValuesExample.php b/examples/Dfp/v201311/CustomTargetingService/DeleteCustomTargetingValuesExample.php new file mode 100755 index 000000000..56d5a1234 --- /dev/null +++ b/examples/Dfp/v201311/CustomTargetingService/DeleteCustomTargetingValuesExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201311'); + + // 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'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('keyId' => new NumberValue($keyId))); + + $offset = 0; + $valueIds = array(); + + 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); + + if (isset($page->results)) { + foreach ($page->results as $customTargetingValue) { + $valueIds[] = $customTargetingValue->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + printf("Number of custom targeting values to be deleted: %d\n", + sizeof($valueIds)); + + if (sizeof($valueIds) > 0) { + // Create action statement. + $filterStatementText .= sprintf(' AND id IN (%s)', implode(',', $valueIds)); + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeleteCustomTargetingValues(); + + // Perform action. + $result = $customTargetingService->performCustomTargetingValueAction( + $action, $filterStatement); + + // 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"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php b/examples/Dfp/v201311/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php new file mode 100755 index 000000000..a9edf1569 --- /dev/null +++ b/examples/Dfp/v201311/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php @@ -0,0 +1,137 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201311'); + + $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/v201311/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php b/examples/Dfp/v201311/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php new file mode 100755 index 000000000..c048c2c99 --- /dev/null +++ b/examples/Dfp/v201311/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201311'); + + // 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/v201311/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php b/examples/Dfp/v201311/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php new file mode 100755 index 000000000..8c509a5ac --- /dev/null +++ b/examples/Dfp/v201311/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201311'); + + // Set the ID of the custom targeting key to get custom targeting values for. + $keyId = '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($keyId)))); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingValuesByStatement( + $filterStatement); + + // 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++; + } + } + + 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/v201311/CustomTargetingService/UpdateCustomTargetingKeysExample.php b/examples/Dfp/v201311/CustomTargetingService/UpdateCustomTargetingKeysExample.php new file mode 100755 index 000000000..db218b070 --- /dev/null +++ b/examples/Dfp/v201311/CustomTargetingService/UpdateCustomTargetingKeysExample.php @@ -0,0 +1,100 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201311'); + + // Create a statement to get all custom targeting keys. + $filterStatement = new Statement('LIMIT 500'); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $filterStatement); + + if (isset($page->results)) { + $keys = $page->results; + + // 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 keys on the server. + $keys = $customTargetingService->updateCustomTargetingKeys($keys); + + // 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"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CustomTargetingService/UpdateCustomTargetingValuesExample.php b/examples/Dfp/v201311/CustomTargetingService/UpdateCustomTargetingValuesExample.php new file mode 100755 index 000000000..f6d8b51ff --- /dev/null +++ b/examples/Dfp/v201311/CustomTargetingService/UpdateCustomTargetingValuesExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201311'); + + // 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/v201311/ForecastService/GetForecastByIdExample.php b/examples/Dfp/v201311/ForecastService/GetForecastByIdExample.php new file mode 100755 index 000000000..e7198b8ab --- /dev/null +++ b/examples/Dfp/v201311/ForecastService/GetForecastByIdExample.php @@ -0,0 +1,83 @@ +LogDefaults(); + + // Get the ForecastService. + $forecastService = $user->GetService('ForecastService', 'v201311'); + + // Set the line item to get a forecast for. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Get forecast for line item. + $forecast = $forecastService->getForecastById($lineItemId); + + // 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)) { + $percentPossibleUnits = $forecast->possibleUnits / $matchedUnits * 100; + printf("%d%% %s possible.\n", $percentPossibleUnits, $unitType); + } + + printf("%d contending line items.\n", count($forecast->contendingLineItems)); +} 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/v201311/ForecastService/GetForecastExample.php b/examples/Dfp/v201311/ForecastService/GetForecastExample.php new file mode 100755 index 000000000..1974fc459 --- /dev/null +++ b/examples/Dfp/v201311/ForecastService/GetForecastExample.php @@ -0,0 +1,115 @@ +LogDefaults(); + + // Get the ForecastService. + $forecastService = $user->GetService('ForecastService', 'v201311'); + + // Set the placement ID that the prospective line item will target. + $targetPlacementId = 'INSERT_PLACEMENT_ID_HERE'; + + // Create prospective line item. + $lineItem = new LineItem(); + $lineItem->lineItemType = 'SPONSORSHIP'; + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedPlacementIds = array($targetPlacementId); + + // Set targeting for line item. + $targeting = new Targeting(); + $targeting->inventoryTargeting = $inventoryTargeting; + $lineItem->targeting = $targeting; + + // 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 line item's time to be now until the projected end date time. + $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; + + // Set the cost type to match the unit type. + $lineItem->costType = 'CPM'; + + // Get forecast for line item. + $forecast = $forecastService->getForecast($lineItem); + + // 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)) { + $percentPossibleUnits = $forecast->possibleUnits / $matchedUnits * 100; + printf("%d%% %s possible.\n", $percentPossibleUnits, $unitType); + } + + printf("%d contending line items.\n", count($forecast->contendingLineItems)); +} 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/v201311/InventoryService/CreateAdUnitsExample.php b/examples/Dfp/v201311/InventoryService/CreateAdUnitsExample.php new file mode 100755 index 000000000..1c53674df --- /dev/null +++ b/examples/Dfp/v201311/InventoryService/CreateAdUnitsExample.php @@ -0,0 +1,105 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201311'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201311'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + // Create an array to store local ad unit objects. + $adUnits = array(); + + for ($i = 0; $i < 5; $i++) { + $adUnit = new AdUnit(); + $adUnit->name = uniqid('Ad_Unit_'); + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + + // Create ad unit size. + $adUnitSize = new AdUnitSize(); + $adUnitSize->size = new Size(300, 250, FALSE); + $adUnitSize->environmentType = 'BROWSER'; + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($adUnitSize); + + $adUnits[] = $adUnit; + } + + // Create the ad units on the server. + $adUnits = $inventoryService->createAdUnits($adUnits); + + // Display results. + if (isset($adUnits)) { + foreach ($adUnits as $adUnit) { + print 'An ad unit with ID "' . $adUnit->id + . '" was created under parent with ID "' . $adUnit->parentId + . "\".\n"; + } + } else { + print "No ad units created.\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/v201311/InventoryService/CreateMobileAdUnitExample.php b/examples/Dfp/v201311/InventoryService/CreateMobileAdUnitExample.php new file mode 100755 index 000000000..f64663d27 --- /dev/null +++ b/examples/Dfp/v201311/InventoryService/CreateMobileAdUnitExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201311'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201311'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + $adUnit = new AdUnit(); + $adUnit->name = uniqid('Mobile_Ad_Unit_'); + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + $adUnit->targetPlatform = 'MOBILE'; + $adUnit->mobilePlatform = 'APPLICATION'; + + // Create ad unit size. + $adUnitSize = new AdUnitSize(); + $adUnitSize->size = new Size(400, 300, FALSE); + $adUnitSize->environmentType = 'BROWSER'; + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($adUnitSize); + + // Create the ad unit on the server. + $adUnit = $inventoryService->createAdUnit($adUnit); + + // Display results. + if (isset($adUnit)) { + printf("An ad unit with ID '%s' was created under parent with ID '%s'.\n", + $adUnit->id, $adUnit->parentId); + } else { + print "No ad unit was created.\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/v201311/InventoryService/CreateVideoAdUnitExample.php b/examples/Dfp/v201311/InventoryService/CreateVideoAdUnitExample.php new file mode 100755 index 000000000..956f9b4e7 --- /dev/null +++ b/examples/Dfp/v201311/InventoryService/CreateVideoAdUnitExample.php @@ -0,0 +1,111 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201311'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201311'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + // Create local ad unit object. + $adUnit = new AdUnit(); + $adUnit->name = 'Video_Ad_Unit'; + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + $adUnit->explicitlyTargeted = TRUE; + $adUnit->targetPlatform = 'WEB'; + + // Create master ad unit size. + $masterAdUnitSize = new AdUnitSize(); + $masterAdUnitSize->size = new Size(400, 300, FALSE); + $masterAdUnitSize->environmentType = 'VIDEO_PLAYER'; + + // Create companion sizes. + $companionAdUnitSize1 = new AdUnitSize(); + $companionAdUnitSize1->size = new Size(300, 250, FALSE); + $companionAdUnitSize1->environmentType = 'BROWSER'; + + $companionAdUnitSize2 = new AdUnitSize(); + $companionAdUnitSize2->size = new Size(728, 90, FALSE); + $companionAdUnitSize2->environmentType = 'BROWSER'; + + // Add companions to master ad unit size. + $masterAdUnitSize->companions = + array($companionAdUnitSize1, $companionAdUnitSize2); + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($masterAdUnitSize); + + // Create the ad unit on the server. + $adUnit = $inventoryService->createAdUnit($adUnit); + + // Display results. + if (isset($adUnit)) { + printf("An ad unit with ID '%s' was created under parent with ID '%s'.\n", + $adUnit->id, $adUnit->parentId); + } else { + print "No ad unit was created.\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/v201311/InventoryService/DeactivateAdUnitsExample.php b/examples/Dfp/v201311/InventoryService/DeactivateAdUnitsExample.php new file mode 100755 index 000000000..bba851767 --- /dev/null +++ b/examples/Dfp/v201311/InventoryService/DeactivateAdUnitsExample.php @@ -0,0 +1,113 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201311'); + + // Create statement text to get all active ad units. + $filterStatementText = "WHERE status = 'ACTIVE'"; + + $offset = 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); + + // Display results. + $adUnitIds = array(); + 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 . "\" will be deactivated.\n"; + $i++; + $adUnitIds[] = $adUnit->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of ad units to be deactivated: ' . sizeof($adUnitIds) . "\n"; + + if (sizeof($adUnitIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $adUnitIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateAdUnits(); + + // Perform action. + $result = $inventoryService->performAdUnitAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of ad units deactivated: ' . $result->numChanges . "\n"; + } else { + print "No ad units 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/v201311/InventoryService/GetAdUnitExample.php b/examples/Dfp/v201311/InventoryService/GetAdUnitExample.php new file mode 100755 index 000000000..0c0c9ee6a --- /dev/null +++ b/examples/Dfp/v201311/InventoryService/GetAdUnitExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201311'); + + // Set the ID of the ad unit to get. + $adUnitId = 'INSERT_AD_UNIT_ID_HERE'; + + // Get the ad unit. + $adUnit = $inventoryService->getAdUnit($adUnitId); + + // Display results. + if (isset($adUnit)) { + print 'Ad unit with ID "' . $adUnit->id + . '", name "' . $adUnit->name + . '", and status "' . $adUnit->status . "\" was found.\n"; + } else { + print "No ad unit found for this ID.\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/v201311/InventoryService/GetAdUnitSizesExample.php b/examples/Dfp/v201311/InventoryService/GetAdUnitSizesExample.php new file mode 100755 index 000000000..2ab53007d --- /dev/null +++ b/examples/Dfp/v201311/InventoryService/GetAdUnitSizesExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201311'); + + // 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); + + // Get all ad unit sizes by statement. + $adUnitSizes = $inventoryService->getAdUnitSizesByStatement($filterStatement); + + // Display results. + $i = 0; + foreach ($adUnitSizes as $adUnitSize) { + printf("%d) Web ad unit size of dimensions %s was found.\n", $i, + $adUnitSize->fullDisplayString); + $i++; + } + + 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"; +} + diff --git a/examples/Dfp/v201311/InventoryService/GetAdUnitsByStatementExample.php b/examples/Dfp/v201311/InventoryService/GetAdUnitsByStatementExample.php new file mode 100755 index 000000000..952094d0d --- /dev/null +++ b/examples/Dfp/v201311/InventoryService/GetAdUnitsByStatementExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201311'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201311'); + + // Get the effective root ad unit's ID. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->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)))); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // 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++; + } + } + + 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/v201311/InventoryService/GetAllAdUnitsExample.php b/examples/Dfp/v201311/InventoryService/GetAllAdUnitsExample.php new file mode 100755 index 000000000..afacd5a8f --- /dev/null +++ b/examples/Dfp/v201311/InventoryService/GetAllAdUnitsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201311'); + + // Set defaults for page and statement. + $page = new AdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201311/InventoryService/GetInventoryTreeExample.php b/examples/Dfp/v201311/InventoryService/GetInventoryTreeExample.php new file mode 100755 index 000000000..20c438b85 --- /dev/null +++ b/examples/Dfp/v201311/InventoryService/GetInventoryTreeExample.php @@ -0,0 +1,206 @@ +GetService('InventoryService', 'v201311'); + + // Create array to hold all ad units. + $adUnits = array(); + + // Set defaults for page and statement. + $page = new AdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + $adUnits = array_merge($adUnits, $page->results); + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + return $adUnits; +} + +/** + * Finds the root ad unit for the user. + * @param DfpUser $user the user to get the root ad unit for + * @return the ad unit representing the root ad unit or NULL if one + * is not found. + * @access private + */ +function FindRootAdUnit(DfpUser $user) { + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201311'); + + // Create a statement to only select image creatives. + $filterStatement = new Statement("WHERE parentId IS NULL LIMIT 1"); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + return $page->results[0]; + } else { + return NULL; + } +} + +/** + * Builds and displays an ad unit tree from an array of ad units underneath + * the root ad unit. + * @param AdUnit $root the root ad unit to build the tree under + * @param array $adUnits the array of ad units. + * @access private + */ +function BuildAndDisplayAdUnitTree(AdUnit $root, + array $adUnits) { + $treeMap = array(); + + foreach ($adUnits as $adUnit) { + if (isset($adUnit->parentId)) { + $treeMap[$adUnit->parentId][] = $adUnit; + } + } + + if (isset($root)) { + DisplayInventoryTree($root, $treeMap); + } else { + print "No root unit found.\n"; + } +} + +/** + * Displays the ad unit tree beginning at the root ad unit. + * @param AdUnit $root the root ad unit + * @param array $treeMap the map of id to array of ad units + * @access private + */ +function DisplayInventoryTree(AdUnit $root, array $treeMap) { + DisplayInventoryTreeHelper($root, $treeMap, 0); +} + +/** + * Helper for displaying inventory units. + * @param AdUnit $root the root inventory unit + * @param array $treeMap the map of id to array of inventory units + * @param $depth the depth the tree has reached + * @access private + */ +function DisplayInventoryTreeHelper(AdUnit $root, + array $treeMap, $depth) { + print GenerateTab($depth) . $root->name . ' (' + . $root->id . ")\n"; + + if (isset($treeMap[$root->id])) { + foreach ($treeMap[$root->id] as $child) { + DisplayInventoryTreeHelper($child, + $treeMap, $depth + 1); + } + } +} + +/** + * Generates a string of tabs to represent branching to children. + * @param $depth a depth from 0 to max(depth) + * @return string a string to insert in front of the root unit + * @access private + */ +function GenerateTab($depth) { + $tab = ''; + + if ($depth != 0) { + $tab .= ' '; + } + + for ($i = 1; $i < $depth; $i++) { + $tab .= '| '; + } + + return $tab . '+--'; +} + +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->LogDefaults(); + + $allAdUnits = GetAllAdUnits($user); + + // Find the root ad unit. rootAdUnit can also be set to child unit to + // only build and display a portion of the tree. + // i.e. $adUnit = $inventoryService->getAdUnit("INSERT_AD_UNIT_ID_HERE") + $rootAdUnit = FindRootAdUnit($user); + + if (isset($rootAdUnit)) { + BuildAndDisplayAdUnitTree($rootAdUnit, $allAdUnits); + } else { + print "Could not build tree. No root ad unit found.\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/v201311/InventoryService/UpdateAdUnitsExample.php b/examples/Dfp/v201311/InventoryService/UpdateAdUnitsExample.php new file mode 100755 index 000000000..8aa06d9cd --- /dev/null +++ b/examples/Dfp/v201311/InventoryService/UpdateAdUnitsExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201311'); + + // Create a statement to get all ad units. + $filterStatement = new Statement("LIMIT 500"); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + $adUnits = $page->results; + + // Update each local ad unit object by enabling AdSense. + foreach ($adUnits as $adUnit) { + $adUnit->inheritedAdSenseSettings->value->adSenseEnabled = TRUE; + } + + // Update the ad units on the server. + $adUnits = $inventoryService->updateAdUnits($adUnits); + + // 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"; + } + } + } else { + print "No ad units updated.\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/v201311/LabelService/CreateLabelsExample.php b/examples/Dfp/v201311/LabelService/CreateLabelsExample.php new file mode 100755 index 000000000..870c4f722 --- /dev/null +++ b/examples/Dfp/v201311/LabelService/CreateLabelsExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201311'); + + // Create an array to store local label objects. + $labels = array(); + + for ($i = 0; $i < 5; $i++) { + $label = new Label(); + $label->name = 'Label #' . uniqid(); + $label->types = array('COMPETITIVE_EXCLUSION'); + $labels[] = $label; + } + + // Create the labels on the server. + $labels = $labelService->createLabels($labels); + + // Display results. + if (isset($labels)) { + foreach ($labels as $label) { + printf("A label with ID '%s', name '%s', and types {%s} was created.\n", + $label->id, $label->name, join(',', $label->types)); + } + } else { + print "No labels created.\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/v201311/LabelService/DeactivateLabelsExample.php b/examples/Dfp/v201311/LabelService/DeactivateLabelsExample.php new file mode 100755 index 000000000..67fa5eac2 --- /dev/null +++ b/examples/Dfp/v201311/LabelService/DeactivateLabelsExample.php @@ -0,0 +1,111 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201311'); + + // Create statement text to get all active labels. + $filterStatementText = "WHERE isActive = true"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset); + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // Display results. + $labelIds = array(); + if (isset($page->results)) { + 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; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of labels to be deactivated: ' . sizeof($labelIds) . "\n"; + + if (sizeof($labelIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $labelIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateLabels(); + + // Perform action. + $result = $labelService->performLabelAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of labels deactivated: ' . $result->numChanges . "\n"; + } else { + print "No labels 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/v201311/LabelService/GetAllLabelsExample.php b/examples/Dfp/v201311/LabelService/GetAllLabelsExample.php new file mode 100755 index 000000000..b3a587ef5 --- /dev/null +++ b/examples/Dfp/v201311/LabelService/GetAllLabelsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201311'); + + // Set defaults for page and statement. + $page = new LabelPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all labels. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201311/LabelService/GetLabelExample.php b/examples/Dfp/v201311/LabelService/GetLabelExample.php new file mode 100755 index 000000000..60ea01d78 --- /dev/null +++ b/examples/Dfp/v201311/LabelService/GetLabelExample.php @@ -0,0 +1,75 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201311'); + + // Set the ID of the label to get. + $labelId = 'INSERT_LABEL_ID_HERE'; + + // Get the label. + $label = $labelService->getLabel($labelId); + + if (isset($label)) { + printf("Label with ID '%s', name '%s', and type {%s} was found.\n", + $label->id, $label->name, join(",", $label->types)); + } else { + print "No label found for this ID.\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/v201311/LabelService/GetLabelsByStatementExample.php b/examples/Dfp/v201311/LabelService/GetLabelsByStatementExample.php new file mode 100755 index 000000000..b7c94f089 --- /dev/null +++ b/examples/Dfp/v201311/LabelService/GetLabelsByStatementExample.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201311'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array()); + + // Create a statement to select labels ordered by name. + $filterStatement = + new Statement("ORDER BY name LIMIT 500", $vars); + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // 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++; + } + } + + 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/v201311/LabelService/UpdateLabelsExample.php b/examples/Dfp/v201311/LabelService/UpdateLabelsExample.php new file mode 100755 index 000000000..68d0e537b --- /dev/null +++ b/examples/Dfp/v201311/LabelService/UpdateLabelsExample.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201311'); + + // 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/v201311/LicaService/CreateLicasExample.php b/examples/Dfp/v201311/LicaService/CreateLicasExample.php new file mode 100755 index 000000000..7a99effa4 --- /dev/null +++ b/examples/Dfp/v201311/LicaService/CreateLicasExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201311'); + + // Set the line item ID and creative ID to associate + // them with. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Create local LICA. + $lica = new LineItemCreativeAssociation(); + $lica->creativeId = $creativeId; + $lica->lineItemId = $lineItemId; + + $licas = array($lica); + + // Create the LICAs on the server. + $licas = $licaService->createLineItemCreativeAssociations($licas); + + // Display results. + if (isset($licas)) { + foreach ($licas as $lica) { + print 'A LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" was created.\n"; + } + } else { + print "No LICAs created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/LicaService/DeactivateLicasExample.php b/examples/Dfp/v201311/LicaService/DeactivateLicasExample.php new file mode 100755 index 000000000..40831ed7d --- /dev/null +++ b/examples/Dfp/v201311/LicaService/DeactivateLicasExample.php @@ -0,0 +1,127 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201311'); + + // 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 statement text to select active LICAs for a given line item. + $filterStatementText = "WHERE lineItemId = :lineItemId AND status = 'ACTIVE'"; + + $offset = 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); + + // Display results. + $creativeIds = array(); + 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 + . "\" will be deactivated.\n"; + $i++; + $creativeIds[] = $lica->creativeId; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of LICAs to be deactivated: ' . sizeof($lica->creativeId) + . "\n"; + + if (sizeof($lica->creativeId) > 0) { + // Create action statement. + $filterStatementText = sprintf( + 'WHERE lineItemId = :lineItemId AND creativeId IN (%s)', + implode(',', $creativeIds)); + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeactivateLineItemCreativeAssociations(); + + // Perform action. + $result = $licaService->performLineItemCreativeAssociationAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of LICAs deactivated: ' . $result->numChanges . "\n"; + } else { + print "No LICAs 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/v201311/LicaService/GetAllLicasExample.php b/examples/Dfp/v201311/LicaService/GetAllLicasExample.php new file mode 100755 index 000000000..d95d17223 --- /dev/null +++ b/examples/Dfp/v201311/LicaService/GetAllLicasExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201311'); + + // Set defaults for page and statement. + $page = new LineItemCreativeAssociationPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all LICAs. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $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); + } 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); + } + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201311/LicaService/GetLicaExample.php b/examples/Dfp/v201311/LicaService/GetLicaExample.php new file mode 100755 index 000000000..577ce5053 --- /dev/null +++ b/examples/Dfp/v201311/LicaService/GetLicaExample.php @@ -0,0 +1,82 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201311'); + + // Set the line item and creative ID to use to retrieve the LICA. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Get the LICA. + $lica = $licaService->getLineItemCreativeAssociation($lineItemId, + $creativeId); + + // Display results. + if (isset($lica)) { + print 'A LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" was found.\n"; + } else { + print "No LICA found for this ID.\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/v201311/LicaService/GetLicasByStatementExample.php b/examples/Dfp/v201311/LicaService/GetLicasByStatementExample.php new file mode 100755 index 000000000..a771d3a1a --- /dev/null +++ b/examples/Dfp/v201311/LicaService/GetLicasByStatementExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201311'); + + // 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/v201311/LicaService/UpdateLicasExample.php b/examples/Dfp/v201311/LicaService/UpdateLicasExample.php new file mode 100755 index 000000000..6beb79bd0 --- /dev/null +++ b/examples/Dfp/v201311/LicaService/UpdateLicasExample.php @@ -0,0 +1,96 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201311'); + + // Create a statement to get all LICAs. + $filterStatement = new Statement("LIMIT 500"); + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + if (isset($page->results)) { + $licas = $page->results; + + // Update each local LICA object by changing its destination URL. + foreach ($licas as $lica) { + $lica->destinationUrl = 'http://news.google.com'; + } + + // Update the LICAs on the server. + $licas = $licaService->updateLineItemCreativeAssociations($licas); + + // 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"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/LineItemService/ActivateLineItemsExample.php b/examples/Dfp/v201311/LineItemService/ActivateLineItemsExample.php new file mode 100755 index 000000000..f615bd19b --- /dev/null +++ b/examples/Dfp/v201311/LineItemService/ActivateLineItemsExample.php @@ -0,0 +1,132 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201311'); + + // 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/v201311/LineItemService/AuditLineItemsGeoTargetingExample.php b/examples/Dfp/v201311/LineItemService/AuditLineItemsGeoTargetingExample.php new file mode 100755 index 000000000..da2219805 --- /dev/null +++ b/examples/Dfp/v201311/LineItemService/AuditLineItemsGeoTargetingExample.php @@ -0,0 +1,213 @@ +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/v201311/LineItemService/CreateLineItemsExample.php b/examples/Dfp/v201311/LineItemService/CreateLineItemsExample.php new file mode 100755 index 000000000..63940a266 --- /dev/null +++ b/examples/Dfp/v201311/LineItemService/CreateLineItemsExample.php @@ -0,0 +1,186 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201311'); + + // 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_PLACEMENT_ID_HERE'); + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedPlacementIds = $targetPlacementIds; + + // Create geographical targeting. + $geoTargeting = new GeoTargeting(); + + // Include the US, Quebec (Canada), and postal code B3P (Canada). + $countryLocation = new DfpLocation(); + $countryLocation->id = 2840; + + $regionLocation = new DfpLocation(); + $regionLocation->id = 20123; + + $postalCodeLocation = new DfpLocation(); + $postalCodeLocation->id = 9000093; + + $geoTargeting->targetedLocations = array($countryLocation, $regionLocation); + + // Exclude Chicago and the New York metro area. + $cityLocation = new DfpLocation(); + $cityLocation->id = 1016367; + + $metroLocation = new DfpLocation(); + $metroLocation->id = 200501; + $geoTargeting->excludedLocations = array($cityLocation, $metroLocation); + + // Exclude users from US federal government domains. + $userDomainTargeting = new UserDomainTargeting(array('usa.gov'), FALSE); + + // Target only the weekend in the browser's timezone. + $saturdayDayPart = new DayPart(); + $saturdayDayPart->dayOfWeek = 'SATURDAY'; + $saturdayDayPart->startTime = new TimeOfDay(0, 'ZERO'); + $saturdayDayPart->endTime = new TimeOfDay(24, 'ZERO'); + + $sundayDayPart = new DayPart(); + $sundayDayPart->dayOfWeek = 'SUNDAY'; + $sundayDayPart->startTime = new TimeOfDay(0, 'ZERO'); + $sundayDayPart->endTime = new TimeOfDay(24, 'ZERO'); + + // Create day-part targeting. + $dayPartTargeting = new DayPartTargeting(); + $dayPartTargeting->timeZone = 'BROWSER'; + $dayPartTargeting->dayParts = array($saturdayDayPart, $sundayDayPart); + + // Target just the Chrome browser. + $browserTechnology = new Technology(); + $browserTechnology->id = 500072; + + // Create technology targeting. + $browserTargeting = new BrowserTargeting(); + $browserTargeting->browsers = array($browserTechnology); + $technologyTargeting = new TechnologyTargeting(); + $technologyTargeting->browserTargeting = $browserTargeting; + + // Create targeting. + $targeting = new Targeting(); + $targeting->inventoryTargeting = $inventoryTargeting; + $targeting->geoTargeting = $geoTargeting; + $targeting->userDomainTargeting = $userDomainTargeting; + $targeting->dayPartTargeting = $dayPartTargeting; + $targeting->technologyTargeting = $technologyTargeting; + + // Create an array to store local line item objects. + $lineItems = array(); + + for ($i = 0; $i < 5; $i++) { + $lineItem = new LineItem(); + $lineItem->name = 'Line item #' . uniqid(); + $lineItem->orderId = $orderId; + $lineItem->targeting = $targeting; + $lineItem->lineItemType = 'STANDARD'; + $lineItem->allowOverbook = 'TRUE'; + + // 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 creative rotation type to even. + $lineItem->creativeRotationType = 'EVEN'; + + // 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'; + + $lineItems[] = $lineItem; + } + + // Create the line items on the server. + $lineItems = $lineItemService->createLineItems($lineItems); + + // 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"; + } + } else { + print "No line items created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/LineItemService/CreateMobileLineItemExample.php b/examples/Dfp/v201311/LineItemService/CreateMobileLineItemExample.php new file mode 100755 index 000000000..d85257d50 --- /dev/null +++ b/examples/Dfp/v201311/LineItemService/CreateMobileLineItemExample.php @@ -0,0 +1,160 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201311'); + + // 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. + $lineItem = $lineItemService->createLineItem($lineItem); + + // Display results. + if (isset($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); + } else { + print "No line item was created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/LineItemService/CreateVideoLineItemExample.php b/examples/Dfp/v201311/LineItemService/CreateVideoLineItemExample.php new file mode 100755 index 000000000..cf43a146c --- /dev/null +++ b/examples/Dfp/v201311/LineItemService/CreateVideoLineItemExample.php @@ -0,0 +1,168 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201311'); + + // 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); + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedAdUnits = + array(new AdUnitTargeting($targetedVideoAdUnitId, TRUE)); + + // Create video position targeting. + $videoPosition = new VideoPosition; + $videoPosition->positionType = 'PREROLL'; + $videoPositionTarget = new VideoPositionTarget(); + $videoPositionTarget->videoPosition = $videoPosition; + $videoPositionTargeting = new VideoPositionTargeting(); + $videoPositionTargeting->targetedPositions = array($videoPositionTarget); + + // Create targeting. + $targeting = new Targeting(); + $targeting->customTargeting = $customCriteriaSet; + $targeting->inventoryTargeting = $inventoryTargeting; + $targeting->videoPositionTargeting = $videoPositionTargeting; + + // Create local line item object. + $lineItem = new LineItem(); + $lineItem->name = sprintf("Video line item #%s", uniqid()); + $lineItem->orderId = $orderId; + $lineItem->targeting = $targeting; + $lineItem->lineItemType = 'SPONSORSHIP'; + $lineItem->allowOverbook = TRUE; + + // Set the environment type to video. + $lineItem->environmentType = 'VIDEO_PLAYER'; + + // Set the creative rotation type to optimized. + $lineItem->creativeRotationType = 'OPTIMIZED'; + + // Create the master creative placeholder. + $creativeMasterPlaceholder = new CreativePlaceholder(); + $creativeMasterPlaceholder->size = new Size(400, 300, FALSE); + + // Create companion creative placeholders. + $companionCreativePlaceholder1 = new CreativePlaceholder(); + $companionCreativePlaceholder1->size = new Size(300, 250, FALSE); + + $companionCreativePlaceholder2 = new CreativePlaceholder(); + $companionCreativePlaceholder2->size = new Size(728, 90, FALSE); + + // Set companion creative placeholders. + $creativeMasterPlaceholder->companions = + array($companionCreativePlaceholder1, $companionCreativePlaceholder2); + + // Set the size of creatives that can be associated with this line item. + $lineItem->creativePlaceholders = array($creativeMasterPlaceholder); + + // Set delivery of video companions to optional. + $lineItem->companionDeliveryOption = 'OPTIONAL'; + + // Set the length of the line item to run. + $lineItem->startDateTimeType = 'IMMEDIATELY'; + $lineItem->endDateTime = + DateTimeUtils::GetDfpDateTime(new DateTime('+1 month')); + + // Set the cost per day to $1. + $lineItem->costType = 'CPD'; + $lineItem->costPerUnit = new Money('USD', 1000000); + + // Set the percentage to be 100%. + $lineItem->unitsBought = 100; + + // 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."); + } +} 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/v201311/LineItemService/GetAllLineItemsExample.php b/examples/Dfp/v201311/LineItemService/GetAllLineItemsExample.php new file mode 100755 index 000000000..2c4a0c6a3 --- /dev/null +++ b/examples/Dfp/v201311/LineItemService/GetAllLineItemsExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201311'); + + // Set defaults for page and statement. + $page = new LineItemPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all line items. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201311/LineItemService/GetLineItemExample.php b/examples/Dfp/v201311/LineItemService/GetLineItemExample.php new file mode 100755 index 000000000..50ba2b28f --- /dev/null +++ b/examples/Dfp/v201311/LineItemService/GetLineItemExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201311'); + + // Set the ID of the line item to get. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Get the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + + // Display results. + if (isset($lineItem)) { + print 'Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", and name "' . $lineItem->name + . "\" was found.\n"; + } else { + print "No line item found for this ID.\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/v201311/LineItemService/GetLineItemsByStatementExample.php b/examples/Dfp/v201311/LineItemService/GetLineItemsByStatementExample.php new file mode 100755 index 000000000..57b522b45 --- /dev/null +++ b/examples/Dfp/v201311/LineItemService/GetLineItemsByStatementExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201311'); + + // 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/v201311/LineItemService/GetRecentlyUpdatedLineItems.php b/examples/Dfp/v201311/LineItemService/GetRecentlyUpdatedLineItems.php new file mode 100755 index 000000000..91a053c99 --- /dev/null +++ b/examples/Dfp/v201311/LineItemService/GetRecentlyUpdatedLineItems.php @@ -0,0 +1,103 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201311'); + + // 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/v201311/LineItemService/TargetCustomCriteriaExample.php b/examples/Dfp/v201311/LineItemService/TargetCustomCriteriaExample.php new file mode 100755 index 000000000..25c78c08a --- /dev/null +++ b/examples/Dfp/v201311/LineItemService/TargetCustomCriteriaExample.php @@ -0,0 +1,119 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201311'); + + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $customCriteriaIds1 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + $customCriteriaIds2 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + $customCriteriaIds3 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + + // Create custom criteria. + $customCriteria1 = new CustomCriteria(); + $customCriteria1->keyId = $customCriteriaIds1[0]; + $customCriteria1->valueIds = array($customCriteriaIds1[1]); + $customCriteria1->operator = 'IS'; + + $customCriteria2 = new CustomCriteria(); + $customCriteria2->keyId = $customCriteriaIds2[0]; + $customCriteria2->valueIds = array($customCriteriaIds2[1]); + $customCriteria2->operator = 'IS_NOT'; + + $customCriteria3 = new CustomCriteria(); + $customCriteria3->keyId = $customCriteriaIds3[0]; + $customCriteria3->valueIds = array($customCriteriaIds3[1]); + $customCriteria3->operator = 'IS'; + + + // Create the custom criteria set that will resemble: + // + // ($customCriteria1.key == $customCriteria1.value OR + // ($customCriteria2.key != $customCriteria2.value AND + // $customCriteria3.key == $customCriteria3.value)) + $topCustomCriteriaSet = new CustomCriteriaSet(); + $topCustomCriteriaSet->logicalOperator = 'OR'; + + $subCustomCriteriaSet = new CustomCriteriaSet(); + $subCustomCriteriaSet->logicalOperator = 'AND'; + $subCustomCriteriaSet->children = array($customCriteria2, $customCriteria3); + $topCustomCriteriaSet->children = + array($customCriteria1, $subCustomCriteriaSet); + + // Set the custom criteria targeting on the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + $lineItem->targeting->customTargeting = $topCustomCriteriaSet; + + // Update the line items on the server. + $lineItem = $lineItemService->updateLineItem($lineItem); + + // Display results. + if (isset($lineItem)) { + printf("Line item with ID '%s' updated with custom criteria targeting:\n", + $lineItem->id); + print_r($lineItem->targeting->customTargeting); + } else { + print "No line items updated.\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/v201311/LineItemService/UpdateLineItemsExample.php b/examples/Dfp/v201311/LineItemService/UpdateLineItemsExample.php new file mode 100755 index 000000000..2bc39320e --- /dev/null +++ b/examples/Dfp/v201311/LineItemService/UpdateLineItemsExample.php @@ -0,0 +1,104 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201311'); + + // 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/v201311/NetworkService/GetAllNetworksExample.php b/examples/Dfp/v201311/NetworkService/GetAllNetworksExample.php new file mode 100755 index 000000000..2f1d7b7e5 --- /dev/null +++ b/examples/Dfp/v201311/NetworkService/GetAllNetworksExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201311'); + + // Get all networks that you have access to with the current login + // 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++; + } + } + + print 'Number of results found: ' . $i . "\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/v201311/NetworkService/GetCurrentNetworkExample.php b/examples/Dfp/v201311/NetworkService/GetCurrentNetworkExample.php new file mode 100755 index 000000000..08c5d0a76 --- /dev/null +++ b/examples/Dfp/v201311/NetworkService/GetCurrentNetworkExample.php @@ -0,0 +1,65 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201311'); + + // Get the current network. + $network = $networkService->getCurrentNetwork(); + + print 'Current network has network code "' . $network->networkCode + . '" and display name "' . $network->displayName . "\".\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/v201311/NetworkService/MakeTestNetworkExample.php b/examples/Dfp/v201311/NetworkService/MakeTestNetworkExample.php new file mode 100755 index 000000000..1a76a4362 --- /dev/null +++ b/examples/Dfp/v201311/NetworkService/MakeTestNetworkExample.php @@ -0,0 +1,78 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201311'); + + // Make the test network. + $network = $networkService->makeTestNetwork(); + + print 'Test network with network code "' . $network->networkCode + . '" and display name "' . $network->displayName . "\" created.\n" + . ' You may now sign in at http://www.google.com/dfp/main?networkCode=' + . $network->networkCode . "\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/v201311/OrderService/ApproveOrdersExample.php b/examples/Dfp/v201311/OrderService/ApproveOrdersExample.php new file mode 100755 index 000000000..46b8a4d33 --- /dev/null +++ b/examples/Dfp/v201311/OrderService/ApproveOrdersExample.php @@ -0,0 +1,128 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201311'); + + // 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/v201311/OrderService/CreateOrdersExample.php b/examples/Dfp/v201311/OrderService/CreateOrdersExample.php new file mode 100755 index 000000000..7eafcd8a6 --- /dev/null +++ b/examples/Dfp/v201311/OrderService/CreateOrdersExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetOrderService('v201311'); + + // Set the advertiser (company), salesperson, and trafficker to assign to each + // order. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + $salespersonId = 'INSERT_SALESPERSON_ID_HERE'; + $traffickerId = 'INSERT_TRAFFICKER_ID_HERE'; + + // Create an array to store local order objects. + $orders = array(); + + for ($i = 0; $i < 5; $i++) { + $order = new Order(); + $order->name = 'Order #' . $i; + $order->advertiserId = $advertiserId; + $order->salespersonId = $salespersonId; + $order->traffickerId = $traffickerId; + + $orders[] = $order; + } + + // Create the orders on the server. + $orders = $orderService->createOrders($orders); + + // Display results. + if (isset($orders)) { + foreach ($orders as $order) { + print 'An order with with ID "' . $order->id + . '" and name "' . $order->name + . "\" was created.\n"; + } + } else { + print "No orders created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/OrderService/GetAllOrdersExample.php b/examples/Dfp/v201311/OrderService/GetAllOrdersExample.php new file mode 100755 index 000000000..ef563d1a8 --- /dev/null +++ b/examples/Dfp/v201311/OrderService/GetAllOrdersExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201311'); + + // Set defaults for page and statement. + $page = new OrderPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all orders. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201311/OrderService/GetOrderExample.php b/examples/Dfp/v201311/OrderService/GetOrderExample.php new file mode 100755 index 000000000..a7966087c --- /dev/null +++ b/examples/Dfp/v201311/OrderService/GetOrderExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201311'); + + // Set the ID of the order to get. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Get the order. + $order = $orderService->getOrder($orderId); + + // Display results. + if (isset($order)) { + print 'An order with ID "' . $order->id + . '", name "' . $order->name + . '", and advertiser ID "' . $order->advertiserId + . "\" was found.\n"; + } else { + print "No order found for this ID.\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/v201311/OrderService/GetOrdersByStatementExample.php b/examples/Dfp/v201311/OrderService/GetOrdersByStatementExample.php new file mode 100755 index 000000000..cbea6d23d --- /dev/null +++ b/examples/Dfp/v201311/OrderService/GetOrdersByStatementExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201311'); + + // 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/v201311/OrderService/UpdateOrdersExample.php b/examples/Dfp/v201311/OrderService/UpdateOrdersExample.php new file mode 100755 index 000000000..8d547088b --- /dev/null +++ b/examples/Dfp/v201311/OrderService/UpdateOrdersExample.php @@ -0,0 +1,99 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201311'); + + // 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/v201311/PlacementService/CreatePlacementsExample.php b/examples/Dfp/v201311/PlacementService/CreatePlacementsExample.php new file mode 100755 index 000000000..7ec02925f --- /dev/null +++ b/examples/Dfp/v201311/PlacementService/CreatePlacementsExample.php @@ -0,0 +1,137 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201311'); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201311'); + + // Create local placement object to store skyscraper ad units. + $skyscraperAdUnitPlacement = new Placement(); + $skyscraperAdUnitPlacement->name = + 'Skyscraper AdUnit Placement #' . time(); + $skyscraperAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 120x600'; + + // Create local placement object to store medium square ad units. + $mediumSquareAdUnitPlacement = new Placement(); + $mediumSquareAdUnitPlacement->name = + 'Medium Square AdUnit Placement #' . time(); + $mediumSquareAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 300x250'; + + // Create local placement object to store banner ad units. + $bannerAdUnitPlacement = new Placement(); + $bannerAdUnitPlacement->name = 'Banner AdUnit Placement #' . time(); + $bannerAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 468x60'; + + $placementList = array(); + + // Get the first 500 ad units. + $filterStatement = new Statement('LIMIT 500'); + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // Separate the ad units by size. + if (isset($page->results)) { + foreach ($page->results as $adUnit) { + if (isset($adUnit->parentId)) { + foreach ((array) $adUnit->adUnitSizes as $adUnitSize) { + $size = $adUnitSize->size; + if ($size->width == 300 && $size->height == 250) { + $mediumSquareAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } else if ($size->width == 120 && $size->height == 600) { + $skyscraperAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } else if ($size->width == 468 && $size->height == 60) { + $bannerAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } + } + } + } + } + + // Only create placements with one or more ad units. + if (count($skyscraperAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $skyscraperAdUnitPlacement; + } + if (count($mediumSquareAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $mediumSquareAdUnitPlacement; + } + if (count($bannerAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $bannerAdUnitPlacement; + } + + // Create the placements on the server. + $placements = $placementService->createPlacements($placementList); + + // Display results. + if (isset($placements)) { + foreach ($placements as $placement) { + print 'A placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and containing ad units {' . + implode(', ', (array) $placement->targetedAdUnitIds) + . "} was created.\n"; + } + } else { + print "No placements created.\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/v201311/PlacementService/DeactivatePlacementsExample.php b/examples/Dfp/v201311/PlacementService/DeactivatePlacementsExample.php new file mode 100755 index 000000000..8b0866cbf --- /dev/null +++ b/examples/Dfp/v201311/PlacementService/DeactivatePlacementsExample.php @@ -0,0 +1,115 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201311'); + + // Create statement text to select active placements. + $filterStatementText = "WHERE status = 'ACTIVE'"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset); + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // Display results. + $placementIds = array(); + 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 + . "\" will be deactivated.\n"; + $i++; + $placementIds[] = $placement->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of placements to be deactivated: ' . sizeof($placementIds) + . "\n"; + + if (sizeof($placementIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $placementIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivatePlacements(); + + // Perform action. + $result = + $placementService->performPlacementAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of placements deactivated: ' . $result->numChanges . "\n"; + } else { + print "No placements 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/v201311/PlacementService/GetAllPlacementsExample.php b/examples/Dfp/v201311/PlacementService/GetAllPlacementsExample.php new file mode 100755 index 000000000..d3658df69 --- /dev/null +++ b/examples/Dfp/v201311/PlacementService/GetAllPlacementsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201311'); + + // Set defaults for page and statement. + $page = new PlacementPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all placements. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $placement) { + print $i . ') Placement with ID "' . $placement->id + . '" and name "' . $placement->name + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201311/PlacementService/GetPlacementExample.php b/examples/Dfp/v201311/PlacementService/GetPlacementExample.php new file mode 100755 index 000000000..58ec4d073 --- /dev/null +++ b/examples/Dfp/v201311/PlacementService/GetPlacementExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201311'); + + // Set the ID of the placement to get. + $placementId = 'INSERT_PLACEMENT_ID_HERE'; + + // Get the placement. + $placement = $placementService->getPlacement($placementId); + + // Display results. + if (isset($placement)) { + print 'Placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and status "' . $placement->status . "\" was found.\n"; + } else { + print "No placement found for this ID.\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/v201311/PlacementService/GetPlacementsByStatementExample.php b/examples/Dfp/v201311/PlacementService/GetPlacementsByStatementExample.php new file mode 100755 index 000000000..974b33924 --- /dev/null +++ b/examples/Dfp/v201311/PlacementService/GetPlacementsByStatementExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201311'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('status' => new TextValue('ACTIVE'))); + + // Create a statement to only select active placements. + $filterStatement = new Statement("WHERE status = :status LIMIT 500", $vars); + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // 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++; + } + } + + 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/v201311/PlacementService/UpdatePlacementsExample.php b/examples/Dfp/v201311/PlacementService/UpdatePlacementsExample.php new file mode 100755 index 000000000..18e4be9b0 --- /dev/null +++ b/examples/Dfp/v201311/PlacementService/UpdatePlacementsExample.php @@ -0,0 +1,102 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201311'); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201311'); + + // 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/v201311/PublisherQueryLanguageService/FetchMatchTables.php b/examples/Dfp/v201311/PublisherQueryLanguageService/FetchMatchTables.php new file mode 100755 index 000000000..4e1aa5dd8 --- /dev/null +++ b/examples/Dfp/v201311/PublisherQueryLanguageService/FetchMatchTables.php @@ -0,0 +1,116 @@ +LogDefaults(); + + // Get the PublisherQueryLanguageService. + $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201311'); + + // 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, + "Line-Item-Matchtable"); + $adUnitFilePath = fetchMatchTable($adUnitPqlTemplate, $pqlService, + "Ad-Unit-Matchtable"); + + printf("Line items saved to %s\n", $lineItemFilePath); + printf("Ad units saved to %s\n", $adUnitFilePath); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + +/** + * 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; + + do { + $resultSet = $pqlService->select(new Statement(sprintf($pqlTemplate, + $SUGGESTED_PAGE_LIMIT, $offset))); + + // Combine result sets with previous ones. + $combinedResultSet = (!isset($combinedResultSet)) + ? $resultSet + : Pql::CombineResultSets($combinedResultSet, $resultSet); + + $offset += $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(), $fileName, 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); + + return $filePath; +} + diff --git a/examples/Dfp/v201311/PublisherQueryLanguageService/GetGeoTargets.php b/examples/Dfp/v201311/PublisherQueryLanguageService/GetGeoTargets.php new file mode 100755 index 000000000..df2536cb1 --- /dev/null +++ b/examples/Dfp/v201311/PublisherQueryLanguageService/GetGeoTargets.php @@ -0,0 +1,116 @@ +LogDefaults(); + + // Get the PublisherQueryLanguageService. + $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201311'); + + // 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; + $i = 0; + + do { + // Get all cities. + $resultSet = $pqlService->select(new Statement(sprintf($pqlTemplate, + $SUGGESTED_PAGE_LIMIT, $offset), $vars)); + + // Combine result sets with previous ones. + $combinedResultSet = (!isset($combinedResultSet)) + ? $resultSet + : Pql::CombineResultSets($combinedResultSet, $resultSet); + + printf("%d) %d geo targets beginning at offset %d were found.\n", $i++, + count($resultSet->rows), $offset); + + $offset += $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. + fputcsv($fp, Pql::GetColumnLabels($combinedResultSet)); + foreach ($combinedResultSet->rows as $row) { + fputcsv($fp, Pql::GetRowStringValues($row)); + } + fclose($fp); + ob_end_clean(); + + printf("Geo targets 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/v201311/PublisherQueryLanguageService/GetLineItemsNamedLike.php b/examples/Dfp/v201311/PublisherQueryLanguageService/GetLineItemsNamedLike.php new file mode 100755 index 000000000..2e05257f1 --- /dev/null +++ b/examples/Dfp/v201311/PublisherQueryLanguageService/GetLineItemsNamedLike.php @@ -0,0 +1,104 @@ +LogDefaults(); + + // Get the PublisherQueryLanguageService. + $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201311'); + + // 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; + $i = 0; + + do { + // Get line items like 'line item%'. + $resultSet = $pqlService->select(new Statement(sprintf($pqlTemplate, + $SUGGESTED_PAGE_LIMIT, $offset))); + + // Combine result sets with previous ones. + $combinedResultSet = (!isset($combinedResultSet)) + ? $resultSet + : Pql::CombineResultSets($combinedResultSet, $resultSet); + + printf("%d) %d line items beginning at offset %d were found.\n", $i++, + count($resultSet->rows), $offset); + + $offset += $SUGGESTED_PAGE_LIMIT; + } while (isset($resultSet->rows) && count($resultSet->rows) > 0); + + // Change to your file location. + $filePath = sprintf("%s/Line-Items-Named-Like-%s.csv", sys_get_temp_dir(), + uniqid()); + ob_start(); + $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); + ob_end_clean(); + + printf("Line items 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/v201311/ReportService/DisplayReportExample.php b/examples/Dfp/v201311/ReportService/DisplayReportExample.php new file mode 100755 index 000000000..3fc1cf386 --- /dev/null +++ b/examples/Dfp/v201311/ReportService/DisplayReportExample.php @@ -0,0 +1,78 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201311'); + + // 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; + + $downloadUrl = $reportService->getReportDownloadUrlWithOptions($reportJobId, + $reportDownloadOptions); + + printf("Downloading report from URL '%s'.\n", $downloadUrl); + $report = ReportUtils::DownloadReport($downloadUrl); + printf("\n%s\n", $report); +} 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/v201311/ReportService/DownloadReportExample.php b/examples/Dfp/v201311/ReportService/DownloadReportExample.php new file mode 100755 index 000000000..22a0efa4e --- /dev/null +++ b/examples/Dfp/v201311/ReportService/DownloadReportExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201311'); + + // 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/v201311/ReportService/RunDeliveryReportExample.php b/examples/Dfp/v201311/ReportService/RunDeliveryReportExample.php new file mode 100755 index 000000000..1d7c8bafe --- /dev/null +++ b/examples/Dfp/v201311/ReportService/RunDeliveryReportExample.php @@ -0,0 +1,108 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201311'); + + // 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(); + + // 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; + $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/v201311/ReportService/RunInventoryReportExample.php b/examples/Dfp/v201311/ReportService/RunInventoryReportExample.php new file mode 100755 index 000000000..3823107a9 --- /dev/null +++ b/examples/Dfp/v201311/ReportService/RunInventoryReportExample.php @@ -0,0 +1,113 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201311'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201311'); + + // 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 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; + $reportQuery->adUnitView = 'HIERARCHICAL'; + $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/v201311/ReportService/RunMergedDeliveryReportExample.php b/examples/Dfp/v201311/ReportService/RunMergedDeliveryReportExample.php new file mode 100755 index 000000000..c5860b455 --- /dev/null +++ b/examples/Dfp/v201311/ReportService/RunMergedDeliveryReportExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201311'); + + // Create report job. + $reportJob = new ReportJob(); + + // 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('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'); + $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/v201311/ReportService/RunReachReportExample.php b/examples/Dfp/v201311/ReportService/RunReachReportExample.php new file mode 100755 index 000000000..e7a90dd61 --- /dev/null +++ b/examples/Dfp/v201311/ReportService/RunReachReportExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201311'); + + // Create report job. + $reportJob = new ReportJob(); + + // 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', + 'REACH'); + $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) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201311/ReportService/RunReportWithCustomFields.php b/examples/Dfp/v201311/ReportService/RunReportWithCustomFields.php new file mode 100755 index 000000000..9e79a1b69 --- /dev/null +++ b/examples/Dfp/v201311/ReportService/RunReportWithCustomFields.php @@ -0,0 +1,133 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201311'); + + // 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', 'v201311'); + + // 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/v201311/ReportService/RunSalesReportExample.php b/examples/Dfp/v201311/ReportService/RunSalesReportExample.php new file mode 100755 index 000000000..03e4a657f --- /dev/null +++ b/examples/Dfp/v201311/ReportService/RunSalesReportExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201311'); + + // 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/v201311/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php b/examples/Dfp/v201311/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php new file mode 100755 index 000000000..43b4ec646 --- /dev/null +++ b/examples/Dfp/v201311/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201311'); + + // Set the number of requests to 50 or more. + define('NUMBER_OF_REQUESTS', 50); + + // Create statement text to select all suggested ad units + // that have been requested 50 times or more. + $filterStatementText = 'WHERE numRequests >= ' . NUMBER_OF_REQUESTS; + + // Get all suggested ad units. + $allSuggestedAdUnits = ServiceUtils::GetAllObjects($suggestedAdUnitService, + 'getSuggestedAdUnitsByStatement', $filterStatementText); + + $numSuggestedAdUnits = 0; + foreach ($allSuggestedAdUnits as $suggestedAdUnit) { + $numSuggestedAdUnits++; + printf("%d) Suggested ad unit with ID '%s' and number of requests '%d' " + . "will be approved.\n", $numSuggestedAdUnits, $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + } + + printf("Number of suggested ad units to be approved: %d\n", + $numSuggestedAdUnits); + + if ($numSuggestedAdUnits > 0) { + // Create action statement. + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new ApproveSuggestedAdUnit(); + + // Perform action. + $result = $suggestedAdUnitService->performSuggestedAdUnitAction($action, + $filterStatementText); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of suggested ad units approved: %d\n", + $result->numChanges); + } else { + print "No suggested ad units 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/v201311/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php b/examples/Dfp/v201311/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php new file mode 100755 index 000000000..ea0943b74 --- /dev/null +++ b/examples/Dfp/v201311/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201311'); + + // Set defaults for page and statement. + $page = new SuggestedAdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all suggested ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201311/SuggestedAdUnitService/GetSuggestedAdUnitExample.php b/examples/Dfp/v201311/SuggestedAdUnitService/GetSuggestedAdUnitExample.php new file mode 100755 index 000000000..757cbcd0a --- /dev/null +++ b/examples/Dfp/v201311/SuggestedAdUnitService/GetSuggestedAdUnitExample.php @@ -0,0 +1,79 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201311'); + + // Set the ID of the ad unit to get. + $suggestedAdUnitId = 'INSERT_SUGGESTED_AD_UNIT_ID_HERE'; + + // Get the ad unit. + $suggestedAdUnit = + $suggestedAdUnitService->getSuggestedAdUnit($suggestedAdUnitId); + + // Display results. + if (isset($suggestedAdUnit)) { + printf("Suggested ad unit with ID '%s' and number of requests '%d' " + . "was found.\n", $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + } else { + print "No suggested ad unit found for this ID.\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/v201311/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php b/examples/Dfp/v201311/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php new file mode 100755 index 000000000..966da06a1 --- /dev/null +++ b/examples/Dfp/v201311/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201311'); + + // 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/v201311/TeamService/CreateTeamsExample.php b/examples/Dfp/v201311/TeamService/CreateTeamsExample.php new file mode 100755 index 000000000..f996130ea --- /dev/null +++ b/examples/Dfp/v201311/TeamService/CreateTeamsExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201311'); + + // Create an array to store local team objects. + $teams = array(); + + for ($i = 0; $i < 5; $i++) { + $team = new Team(); + $team->name = 'Team #' . uniqid(); + $team->hasAllCompanies = false; + $team->hasAllInventory = false; + $teams[] = $team; + } + + // Create the teams on the server. + $teams = $teamService->createTeams($teams); + + // Display results. + if (isset($teams)) { + foreach ($teams as $team) { + print 'A team with ID "' . $team->id + . '" and name "'. $team->name + . '" was created."' . "\n"; + } + } else { + print "No teams created.\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/v201311/TeamService/GetAllTeamsExample.php b/examples/Dfp/v201311/TeamService/GetAllTeamsExample.php new file mode 100755 index 000000000..003ce82c5 --- /dev/null +++ b/examples/Dfp/v201311/TeamService/GetAllTeamsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201311'); + + // Set defaults for page and statement. + $page = new TeamPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all teams. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get teams by statement. + $page = $teamService->getTeamsByStatement($filterStatement); + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201311/TeamService/GetTeamExample.php b/examples/Dfp/v201311/TeamService/GetTeamExample.php new file mode 100755 index 000000000..660ec685c --- /dev/null +++ b/examples/Dfp/v201311/TeamService/GetTeamExample.php @@ -0,0 +1,75 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201311'); + + // Set the ID of the team to get. + $teamId = 'INSERT_TEAM_ID_HERE'; + + // Get the team. + $team = $teamService->getTeam($teamId); + + // Display results. + if (isset($team)) { + print 'Team with ID "' . $team->id + . '" and name "' . $team->name + . "\" was found.\n"; + } else { + print "No team found for this ID.\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/v201311/TeamService/GetTeamsByStatementExample.php b/examples/Dfp/v201311/TeamService/GetTeamsByStatementExample.php new file mode 100755 index 000000000..5f126823a --- /dev/null +++ b/examples/Dfp/v201311/TeamService/GetTeamsByStatementExample.php @@ -0,0 +1,83 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201311'); + + // Create a statement to order teams by name. + $filterStatementText = 'ORDER BY name LIMIT 500'; + $filterStatement = new Statement($filterStatementText); + + // Get teams by statement. + $page = $teamService->getTeamsByStatement($filterStatement); + + // 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++; + } + } + + 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/v201311/TeamService/UpdateTeamsExample.php b/examples/Dfp/v201311/TeamService/UpdateTeamsExample.php new file mode 100755 index 000000000..fba96e679 --- /dev/null +++ b/examples/Dfp/v201311/TeamService/UpdateTeamsExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201311'); + + // 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/v201311/UserService/CreateUsersExample.php b/examples/Dfp/v201311/UserService/CreateUsersExample.php new file mode 100755 index 000000000..ff73e65a4 --- /dev/null +++ b/examples/Dfp/v201311/UserService/CreateUsersExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201311'); + + // Set the user's email addresses and names. + $emailAndNames = + array(array('INSERT_EMAIL_ADDRESS_HERE', 'INSERT_NAME_HERE'), + array('INSERT_ANOTHER_EMAIL_ADDRESS_HERE', + 'INSERT_ANOTHER_NAME_HERE')); + + // Roles can be obtained by running GetAllRolesExample.php. + $roleId = 'INSERT_ROLE_ID_HERE'; + + // Create an array to store local user objects. + $users = array(); + + for ($i = 0; $i < sizeof($emailAndNames); $i++) { + $newUser = new User(); + $newUser->email = $emailAndNames[$i][0]; + $newUser->name = $emailAndNames[$i][1]; + $newUser->roleId = $roleId; + $newUser->preferredLocale = 'en_US'; + + $users[] = $newUser; + } + + // Create the users on the server. + $users = $userService->createUsers($users); + + // Display results. + if (isset($users)) { + foreach ($users as $user) { + print 'A user with ID "' . $user->id + . '", email "' . $user->email + . '", and role "' . $user->roleName . "\" was created.\n"; + } + } else { + print "No users created.\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/v201311/UserService/DeactivateUserExample.php b/examples/Dfp/v201311/UserService/DeactivateUserExample.php new file mode 100755 index 000000000..373c1c1cd --- /dev/null +++ b/examples/Dfp/v201311/UserService/DeactivateUserExample.php @@ -0,0 +1,121 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201311'); + + // Set the ID of the user to deactivate. + $userId = 'INSERT_USER_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('id' => new NumberValue($userId))); + + // Create statement text to get user by id. + $filterStatementText = "WHERE id = :id"; + + $offset = 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); + + // Display results. + $userIds = array(); + if (isset($page->results)) { + $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; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of users to be deactivated: ' . sizeof($userIds) . "\n"; + + if (sizeof($userIds) > 0) { + // Create action statement. + $filterStatementText = sprintf('WHERE id IN (%s)', implode(',', $userIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateUsers(); + + // Perform action. + $result = $userService->performUserAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of users deactivated: ' . $result->numChanges . "\n"; + } else { + print "No users 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/v201311/UserService/GetAllRolesExample.php b/examples/Dfp/v201311/UserService/GetAllRolesExample.php new file mode 100755 index 000000000..18a7eae42 --- /dev/null +++ b/examples/Dfp/v201311/UserService/GetAllRolesExample.php @@ -0,0 +1,72 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201311'); + + // 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"; + } + } + print 'Number of results found: ' . sizeof($roles) . "\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/v201311/UserService/GetAllUsersExample.php b/examples/Dfp/v201311/UserService/GetAllUsersExample.php new file mode 100755 index 000000000..7c5b009bc --- /dev/null +++ b/examples/Dfp/v201311/UserService/GetAllUsersExample.php @@ -0,0 +1,87 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201311'); + + // Set defaults for page and statement. + $page = new UserPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all users. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201311/UserService/GetCurrentUserExample.php b/examples/Dfp/v201311/UserService/GetCurrentUserExample.php new file mode 100755 index 000000000..1a93f2595 --- /dev/null +++ b/examples/Dfp/v201311/UserService/GetCurrentUserExample.php @@ -0,0 +1,65 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201311'); + + // Get the current user. + $usr = $userService->getCurrentUser(); + + printf("User with ID '%s', email '%s', and role '%s' was found.\n", + $usr->id, $usr->email, $usr->roleName); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/UserService/GetUserExample.php b/examples/Dfp/v201311/UserService/GetUserExample.php new file mode 100755 index 000000000..a43d12cc7 --- /dev/null +++ b/examples/Dfp/v201311/UserService/GetUserExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201311'); + + // Set the ID of the user to get. + $userId = 'INSERT_USER_ID_HERE'; + + // Get the user. + $usr = $userService->getUser($userId); + + // Display results. + if (isset($usr)) { + print 'User with ID "' . $usr->id + . '", email "' . $usr->email + . '", and role "' . $usr->roleName . "\" was found.\n"; + } else { + print "No user found for this ID.\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/v201311/UserService/GetUsersByStatementExample.php b/examples/Dfp/v201311/UserService/GetUsersByStatementExample.php new file mode 100755 index 000000000..cef9a61f5 --- /dev/null +++ b/examples/Dfp/v201311/UserService/GetUsersByStatementExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201311'); + + // 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/v201311/UserService/UpdateUsersExample.php b/examples/Dfp/v201311/UserService/UpdateUsersExample.php new file mode 100755 index 000000000..f361df659 --- /dev/null +++ b/examples/Dfp/v201311/UserService/UpdateUsersExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201311'); + + // Create a statement to get all users. + $filterStatement = new Statement('LIMIT 500'); + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + if (isset($page->results)) { + $users = $page->results; + + // Update each local user object by changing its name. + foreach ($users as $usr) { + $usr->name .= ' Sr.'; + } + + // Update the users on the server. + $users = $userService->updateUsers($users); + + // 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"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/UserTeamAssociationService/CreateUserTeamAssociationsExample.php b/examples/Dfp/v201311/UserTeamAssociationService/CreateUserTeamAssociationsExample.php new file mode 100755 index 000000000..52dfa0562 --- /dev/null +++ b/examples/Dfp/v201311/UserTeamAssociationService/CreateUserTeamAssociationsExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201311'); + + // Set the team ID and user IDs to associate together. + $teamId = 'INSERT_TEAM_ID_HERE'; + $userIds = array('INSERT_USER_ID_HERE'); + + // Create an array to store local user team association objects. + $utas = array(); + + // For each user, associate it with the given team. + foreach ($userIds as $userId) { + // Create local user team association. + $uta = new UserTeamAssociation(); + $uta->teamId = $teamId; + $uta->userId = $userId; + $utas[] = $uta; + } + + // Create the user team associations on the server. + $utas = $userTeamAssociationService->createUserTeamAssociations($utas); + + // Display results. + if (isset($utas)) { + foreach ($utas as $uta) { + print 'A user team association between user with ID "' . $uta->userId + . '" and team with ID "' . $uta->teamId + . "\" was created.\n"; + } + } else { + print "No user team associations created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php b/examples/Dfp/v201311/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php new file mode 100755 index 000000000..c871ff8ea --- /dev/null +++ b/examples/Dfp/v201311/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201311'); + + // Set the user to remove from its teams. + $userId = 'INSERT_USER_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('userId' => new NumberValue($userId))); + + // Create statement text to select user team associations by the user ID. + $filterStatementText = "WHERE userId = :userId "; + + $offset = 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); + + // 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 + . "\" will be deleted.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of user team associations to be deleted: ' . $i . "\n"; + + if ($i > 0) { + // Create action statement. + $filterStatementText = 'WHERE userId = :userId '; + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeleteUserTeamAssociations(); + + // Perform action. + $result = $userTeamAssociationService->performUserTeamAssociationAction( + $action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of user team associations deleted: ' + . $result->numChanges . "\n"; + } else { + print "No user team associations were deleted.\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/v201311/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php b/examples/Dfp/v201311/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php new file mode 100755 index 000000000..d41d50de2 --- /dev/null +++ b/examples/Dfp/v201311/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201311'); + + // Set defaults for page and statement. + $page = new UserTeamAssociationPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all user team associations. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/v201311/UserTeamAssociationService/GetUserTeamAssociationExample.php b/examples/Dfp/v201311/UserTeamAssociationService/GetUserTeamAssociationExample.php new file mode 100755 index 000000000..d8c1660e6 --- /dev/null +++ b/examples/Dfp/v201311/UserTeamAssociationService/GetUserTeamAssociationExample.php @@ -0,0 +1,79 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201311'); + + // Set the IDs of the user and team to get the association for. + $userId = 'INSERT_USER_ID_HERE'; + $teamId = 'INSERT_TEAM_ID_HERE'; + + // Get the user team association. + $uta = $userTeamAssociationService->getUserTeamAssociation($teamId, + $userId); + + // Display results. + if (isset($uta)) { + print 'User team association between user with ID "' . $uta->userId + . '" and team with ID "' . $uta->teamId + . "\" was found.\n"; + } else { + print "No user team association found for this ID.\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/v201311/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php b/examples/Dfp/v201311/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php new file mode 100755 index 000000000..91473efbe --- /dev/null +++ b/examples/Dfp/v201311/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = $user->GetService('UserTeamAssociationService', + 'v201311'); + + // Get the UserService. + $userService = $user->GetService("UserService", "v201311"); + + // 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/v201311/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php b/examples/Dfp/v201311/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php new file mode 100755 index 000000000..cfb3b72ef --- /dev/null +++ b/examples/Dfp/v201311/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php @@ -0,0 +1,102 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201311'); + + // Set the user to set to read only access within its teams. + $userId = "INSERT_USER_ID_HERE"; + + // 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); + + $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( + $filterStatement); + + if (isset($page->results)) { + $utas = $page->results; + + // Update each local user team association to read only access. + foreach ($utas as $uta) { + $uta->overriddenTeamAccessType = 'READ_ONLY'; + } + + // Update the user team associations on the server. + $utas = $userTeamAssociationService->updateUserTeamAssociations($utas); + + // 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"; + } +} 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/v201403/ActivityGroupService/CreateActivityGroups.php new file mode 100755 index 000000000..021c4750c --- /dev/null +++ b/examples/Dfp/v201403/ActivityGroupService/CreateActivityGroups.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the ActivityGroupService. + $activityGroupService = $user->GetService('ActivityGroupService', 'v201403'); + + // Set the ID of the advertiser company this activity group is associated + // with. + $advertiserCompanyId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create a short-term activity group. + $shortTermActivityGroup = new ActivityGroup(); + $shortTermActivityGroup->name = sprintf('Short-term activity group #%s', + uniqid()); + $shortTermActivityGroup->companyIds = array($advertiserCompanyId); + $shortTermActivityGroup->clicksLookback = 1; + $shortTermActivityGroup->impressionsLookback = 1; + + // Create a long-term activity group. + $longTermActivityGroup = new ActivityGroup(); + $longTermActivityGroup->name = sprintf('Long-term activity group #%s', + uniqid()); + $longTermActivityGroup->companyIds = array($advertiserCompanyId); + $longTermActivityGroup->clicksLookback = 30; + $longTermActivityGroup->impressionsLookback = 30; + + // Create the activity groups on the server. + $activityGroups = $activityGroupService->createActivityGroups( + array($shortTermActivityGroup, $longTermActivityGroup)); + + // Display results. + if (isset($activityGroups)) { + foreach ($activityGroups as $activityGroup) { + printf("An activity group with ID \"%d\" and name \"%s\" was created.\n", + $activityGroup->id, $activityGroup->name); + } + } else { + printf("No activity groups were created.\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/ActivityGroupService/GetActiveActivityGroups.php b/examples/Dfp/v201403/ActivityGroupService/GetActiveActivityGroups.php new file mode 100755 index 000000000..b17c4e544 --- /dev/null +++ b/examples/Dfp/v201403/ActivityGroupService/GetActiveActivityGroups.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ActivityGroupService. + $activityGroupService = $user->GetService('ActivityGroupService', 'v201403'); + + // 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; + + $page = new ActivityGroupPage(); + + 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)); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $activityGroup) { + 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); + + printf("Number of results found: %d\n", $page->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/ActivityGroupService/GetAllActivityGroups.php b/examples/Dfp/v201403/ActivityGroupService/GetAllActivityGroups.php new file mode 100755 index 000000000..2ea0779dd --- /dev/null +++ b/examples/Dfp/v201403/ActivityGroupService/GetAllActivityGroups.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the ActivityGroupService. + $activityGroupService = $user->GetService('ActivityGroupService', 'v201403'); + + // 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; + + $page = new ActivityGroupPage(); + + do { + // Get activity groups by statement. + $page = $activityGroupService->getActivityGroupsByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $activityGroup) { + 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); + + printf("Number of results found: %d\n", $page->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/ActivityGroupService/UpdateActivityGroups.php b/examples/Dfp/v201403/ActivityGroupService/UpdateActivityGroups.php new file mode 100755 index 000000000..b4f976e88 --- /dev/null +++ b/examples/Dfp/v201403/ActivityGroupService/UpdateActivityGroups.php @@ -0,0 +1,88 @@ +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'; + + // 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); + + // Get the activity group. + $page = $activityGroupService->getActivityGroupsByStatement($filterStatement); + $activityGroup = $page->results[0]; + + // Update the companies. + $activityGroup->companyIds[] = $advertiserCompanyId; + + // Update the activity group on the server. + $activityGroups = + $activityGroupService->updateActivityGroups(array($activityGroup)); + + // Display results. + foreach ($activityGroups as $updatedActivityGroup) { + printf("Activity group with ID '%d' and name '%s' was updated.\n", + $updatedActivityGroup->id, $updatedActivityGroup->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/ActivityService/CreateActivities.php b/examples/Dfp/v201403/ActivityService/CreateActivities.php new file mode 100755 index 000000000..662e0ac69 --- /dev/null +++ b/examples/Dfp/v201403/ActivityService/CreateActivities.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201403'); + + // Set the ID of the activity group this activity is associated with. + $activityGroupId = 'INSERT_ACTIVITY_GROUP_ID_HERE'; + + // Create a daily visits activity. + $dailyVisitsActivity = new Activity(); + $dailyVisitsActivity->name = sprintf('Activity #%s', uniqid()); + $dailyVisitsActivity->activityGroupId = $activityGroupId; + $dailyVisitsActivity->type = 'DAILY_VISITS'; + + // Create a custom activity. + $customActivity = new Activity(); + $customActivity->name = sprintf('Activity #%s', uniqid()); + $customActivity->activityGroupId = $activityGroupId; + $customActivity->type = 'CUSTOM'; + + // Create the activities on the server. + $activities = $activityService->createActivities( + array($dailyVisitsActivity, $customActivity)); + + // Display results. + if (isset($activities)) { + foreach ($activities as $activity) { + printf("An activity with ID \"%d\", name \"%s\", and type \"%s\" was " . + "created.\n", $activity->id, $activity->name, $activity->type); + } + } else { + printf("No activities were created.\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/ActivityService/GetActiveActivities.php b/examples/Dfp/v201403/ActivityService/GetActiveActivities.php new file mode 100755 index 000000000..caba7046f --- /dev/null +++ b/examples/Dfp/v201403/ActivityService/GetActiveActivities.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201403'); + + // 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; + + $page = new ActivityPage(); + + 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)); + + // Display results. + if (isset($page->results)) { + $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); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->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/ActivityService/GetAllActivities.php b/examples/Dfp/v201403/ActivityService/GetAllActivities.php new file mode 100755 index 000000000..334ea005d --- /dev/null +++ b/examples/Dfp/v201403/ActivityService/GetAllActivities.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201403'); + + // 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; + + $page = new ActivityPage(); + + do { + // Get activities by statement. + $page = $activityService->getActivitiesByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + + // Display results. + if (isset($page->results)) { + $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); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->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/ActivityService/UpdateActivities.php b/examples/Dfp/v201403/ActivityService/UpdateActivities.php new file mode 100755 index 000000000..717f68057 --- /dev/null +++ b/examples/Dfp/v201403/ActivityService/UpdateActivities.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201403'); + + // Set the ID of the activity to update. + $activityId = 'INSERT_ACTIVITY_ID_HERE'; + + // 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); + + // Get the activity. + $page = $activityService->getActivitiesByStatement($filterStatement); + $activity = $page->results[0]; + + // Update the expected URL. + $activity->expectedURL = 'https://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", + $updatedActivity->id, $updatedActivity->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/AudienceSegmentService/CreateAudienceSegments.php b/examples/Dfp/v201403/AudienceSegmentService/CreateAudienceSegments.php new file mode 100755 index 000000000..cc2631985 --- /dev/null +++ b/examples/Dfp/v201403/AudienceSegmentService/CreateAudienceSegments.php @@ -0,0 +1,118 @@ +LogDefaults(); + + // Get the AudienceSegmentService. + $audienceSegmentService = + $user->GetService('AudienceSegmentService', 'v201403'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201403'); + + // Set the IDs of the custom criteria to be used in the segment rule. + $customTargetingKeyId = 'INSERT_CUSTOM_TARGETING_KEY_ID_HERE'; + $customTargetingValueId = 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'; + + // Get the root ad unit ID used to target the whole site. + $rootAdUnitId = $networkService->getCurrentNetwork()->effectiveRootAdUnitId; + + // Create inventory targeting to be used in the segment rule. + $inventoryTargeting = new InventoryTargeting(); + + // Create ad unit targeting for the root ad unit (i.e. the whole network). + $adUnitTargeting = new AdUnitTargeting(); + $adUnitTargeting->adUnitId = $rootAdUnitId; + $inventoryTargeting->targetedAdUnits = array($adUnitTargeting); + + // Create custom criteria to be used in the segment rule. + $customCriteria = new CustomCriteria(); + $customCriteria->keyId = $customTargetingKeyId; + $customCriteria->valueIds = array($customTargetingValueId); + $customCriteria->operator = 'IS'; + + // Create the custom criteria set that will resemble: + // $customCriteria.key == $customCriteria.value + $topCustomCriteriaSet = new CustomCriteriaSet(); + $topCustomCriteriaSet->logicalOperator = 'AND'; + $topCustomCriteriaSet->children = array($customCriteria); + + // Create the audience segment rule. + $rule = new FirstPartyAudienceSegmentRule(); + $rule->inventoryRule = $inventoryTargeting; + $rule->customCriteriaRule = $topCustomCriteriaSet; + + // Create an audience segment. + $audienceSegment = new RuleBasedFirstPartyAudienceSegment(); + $audienceSegment->name = sprintf('Sports enthusiasts audience segment #%s', + uniqid()); + $audienceSegment->description = 'Sports enthusiasts between the ages of 20 ' + . 'and 30.'; + $audienceSegment->pageViews = 6; + $audienceSegment->recencyDays = 6; + $audienceSegment->membershipExpirationDays = 88; + $audienceSegment->rule = $rule; + + // Create the audience segment on the server. + $audienceSegments = $audienceSegmentService->createAudienceSegments( + array($audienceSegment)); + + // Display results. + foreach ($audienceSegments as $createdAudienceSegment) { + printf("An audience segment with ID \"%d\", name \"%s\", and type \"%s\" " + . "was created.\n", $createdAudienceSegment->id, + $createdAudienceSegment->name, $createdAudienceSegment->type); + } +} 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/AudienceSegmentService/GetAllAudienceSegments.php b/examples/Dfp/v201403/AudienceSegmentService/GetAllAudienceSegments.php new file mode 100755 index 000000000..ffba9441b --- /dev/null +++ b/examples/Dfp/v201403/AudienceSegmentService/GetAllAudienceSegments.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the AudienceSegmentService. + $audienceSegmentService = $user->GetService('AudienceSegmentService', + 'v201403'); + + // 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; + + $page = new AudienceSegmentPage(); + + do { + // Get audience segments by statement. + $page = $audienceSegmentService->getAudienceSegmentsByStatement( + new Statement(sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + + // Display results. + if (isset($page->results)) { + $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); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->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/AudienceSegmentService/GetFirstPartyAudienceSegments.php b/examples/Dfp/v201403/AudienceSegmentService/GetFirstPartyAudienceSegments.php new file mode 100755 index 000000000..0e9d1216d --- /dev/null +++ b/examples/Dfp/v201403/AudienceSegmentService/GetFirstPartyAudienceSegments.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the AudienceSegmentService. + $audienceSegmentService = $user->GetService('AudienceSegmentService', + 'v201403'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('type' => new TextValue('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(); + + do { + // Get audience segments by statement. + $page = $audienceSegmentService->getAudienceSegmentsByStatement( + new Statement(sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), + $vars)); + + // Display results. + if (isset($page->results)) { + $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, + $audienceSegment->size); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->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/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php b/examples/Dfp/v201403/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php new file mode 100755 index 000000000..c80ccd700 --- /dev/null +++ b/examples/Dfp/v201403/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php @@ -0,0 +1,125 @@ +LogDefaults(); + + // Get the AudienceSegmentService. + $audienceSegmentService = + $user->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))); + + // 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; + + $page = new AudienceSegmentPage(); + + do { + // Get audience segments by statement. + $page = $audienceSegmentService->getAudienceSegmentsByStatement( + new Statement(sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), + $vars)); + + // Display results. + $audienceSegmentIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $audienceSegment) { + 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); + + printf("Number of audience segments to be populated: %d\n", + sizeof($audienceSegmentIds)); + + if (sizeof($audienceSegmentIds) > 0) { + // Create action statement. + $filterStatementText = sprintf('WHERE id IN (%s)', + implode(',', $audienceSegmentIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new PopulateAudienceSegments(); + + // Perform action. + $result = $audienceSegmentService->performAudienceSegmentAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of audience segments populated: %d\n", + $result->numChanges); + } else { + printf("No audience segments were populated.\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/AudienceSegmentService/UpdateAudienceSegments.php b/examples/Dfp/v201403/AudienceSegmentService/UpdateAudienceSegments.php new file mode 100755 index 000000000..a3b3ee984 --- /dev/null +++ b/examples/Dfp/v201403/AudienceSegmentService/UpdateAudienceSegments.php @@ -0,0 +1,94 @@ +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))); + + // Create statement text to select the audience segment to update. + $filterStatementText = "WHERE id = :audienceSegmentId LIMIT 1"; + + // Get the audience segment. + $audienceSegment = $audienceSegmentService->getAudienceSegmentsByStatement( + new Statement($filterStatementText, $vars))->results[0]; + + // Update the member expiration days. + $audienceSegment->membershipExpirationDays = 180; + + // Update the audience segment on the server. + $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"); + } +} 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/v201403/CompanyService/CreateCompaniesExample.php new file mode 100755 index 000000000..5eee3fcbc --- /dev/null +++ b/examples/Dfp/v201403/CompanyService/CreateCompaniesExample.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201403'); + + // Create an array to store local company objects. + $companies = array(); + + for ($i = 0; $i < 5; $i++) { + $company = new Company(); + $company->name = 'Advertiser #' . $i; + $company->type = 'ADVERTISER'; + + $companies[] = $company; + } + + // Create the companies on the server. + $companies = $companyService->createCompanies($companies); + + // Display results. + if (isset($companies)) { + foreach ($companies as $company) { + print 'A company with ID "' . $company->id + . '", name "'. $company->name + . '", and type "' . $company->type . "\" was created.\n"; + } + } else { + print "No companies created.\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/CompanyService/GetAllCompaniesExample.php b/examples/Dfp/v201403/CompanyService/GetAllCompaniesExample.php new file mode 100755 index 000000000..85f80d6a9 --- /dev/null +++ b/examples/Dfp/v201403/CompanyService/GetAllCompaniesExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201403'); + + // Set defaults for page and statement. + $page = new CompanyPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all companies. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get companies by statement. + $page = $companyService->getCompaniesByStatement($filterStatement); + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/CompanyService/GetCompaniesByStatementExample.php b/examples/Dfp/v201403/CompanyService/GetCompaniesByStatementExample.php new file mode 100755 index 000000000..7a38beca3 --- /dev/null +++ b/examples/Dfp/v201403/CompanyService/GetCompaniesByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201403'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('type' => new TextValue('ADVERTISER'))); + + // 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 companies by statement. + $page = $companyService->getCompaniesByStatement($filterStatement); + + // 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++; + } + } + + 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/CompanyService/UpdateCompaniesExample.php b/examples/Dfp/v201403/CompanyService/UpdateCompaniesExample.php new file mode 100755 index 000000000..2fea6c18c --- /dev/null +++ b/examples/Dfp/v201403/CompanyService/UpdateCompaniesExample.php @@ -0,0 +1,93 @@ +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/ContactService/CreateContacts.php b/examples/Dfp/v201403/ContactService/CreateContacts.php new file mode 100755 index 000000000..bafb12d13 --- /dev/null +++ b/examples/Dfp/v201403/ContactService/CreateContacts.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201403'); + + // Set the ID of the advertiser company this contact is associated with. + $advertiserCompanyId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Set the ID of the agency company this contact is associated with. + $agencyCompanyId = 'INSERT_AGENCY_COMPANY_ID_HERE'; + + // Create an advertiser contact. + $advertiserContact = new Contact(); + $advertiserContact->name = sprintf('Mr. Advertiser #%s', uniqid()); + $advertiserContact->email = 'advertiser@advertising.com'; + $advertiserContact->companyId = $advertiserCompanyId; + + // Create an agency contact. + $agencyContact = new Contact(); + $agencyContact->name = sprintf('Ms. Agency #%s', uniqid()); + $agencyContact->email = 'agency@agencies.com'; + $agencyContact->companyId = $agencyCompanyId; + + // Create the contacts on the server. + $contacts = $contactService->createContacts(array($advertiserContact, + $agencyContact)); + + // Display results. + if (isset($contacts)) { + foreach ($contacts as $contact) { + printf("A contact with ID \"%d\" and name \"%s\" was created.\n", + $contact->id, $contact->name); + } + } else { + printf("No contacts were created.\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/ContactService/GetAllContacts.php b/examples/Dfp/v201403/ContactService/GetAllContacts.php new file mode 100755 index 000000000..aa1581309 --- /dev/null +++ b/examples/Dfp/v201403/ContactService/GetAllContacts.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201403'); + + // 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; + + $page = new ContactPage(); + + do { + // Get contacts by statement. + $page = $contactService->getContactsByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $contact) { + 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); + + printf("Number of results found: %d\n", $page->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/ContactService/GetUninvitedContacts.php b/examples/Dfp/v201403/ContactService/GetUninvitedContacts.php new file mode 100755 index 000000000..7ce6ab85c --- /dev/null +++ b/examples/Dfp/v201403/ContactService/GetUninvitedContacts.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201403'); + + // 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; + + $page = new ContactPage(); + + 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)); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $contact) { + 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); + + printf("Number of results found: %d\n", $page->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/ContactService/UpdateContacts.php b/examples/Dfp/v201403/ContactService/UpdateContacts.php new file mode 100755 index 000000000..e32ffc940 --- /dev/null +++ b/examples/Dfp/v201403/ContactService/UpdateContacts.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201403'); + + // Set the ID of the contact to update. + $contactId = "INSERT_CONTACT_ID_HERE"; + + // 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); + + // Get the contact. + $page = $contactService->getContactsByStatement($filterStatement); + $contact = $page->results[0]; + + // Update the address on 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); + } +} 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/CreateContentMetadataKeyHierarchiesExample.php b/examples/Dfp/v201403/ContentMetadataKeyHierarchyService/CreateContentMetadataKeyHierarchiesExample.php new file mode 100755 index 000000000..8f4bb160b --- /dev/null +++ b/examples/Dfp/v201403/ContentMetadataKeyHierarchyService/CreateContentMetadataKeyHierarchiesExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the ContentMetadataKeyHierarchyService. + $contentMetadataKeyHierarchyService = + $user->GetService('ContentMetadataKeyHierarchyService', 'v201403'); + + // Set the IDs of the custom targeting keys for the hierarchy. + $customTargetingKeyId1 = "INSERT_LEVEL_ONE_CUSTOM_TARGETING_KEY_ID_HERE"; + $customTargetingKeyId2 = "INSERT_LEVEL_ONE_CUSTOM_TARGETING_KEY_ID_HERE"; + + $hierarchyLevel1 = new ContentMetadataKeyHierarchyLevel(); + $hierarchyLevel1->customTargetingKeyId = $customTargetingKeyId1; + $hierarchyLevel1->hierarchyLevel = 1; + + $hierarchyLevel2 = new ContentMetadataKeyHierarchyLevel(); + $hierarchyLevel2->customTargetingKeyId = $customTargetingKeyId2; + $hierarchyLevel2->hierarchyLevel = 2; + + $contentMetadataKeyHierarchy = new ContentMetadataKeyHierarchy(); + $contentMetadataKeyHierarchy->name = sprintf("Content hierarchy #%s", + uniqid()); + $contentMetadataKeyHierarchy->hierarchyLevels = array($hierarchyLevel1, + $hierarchyLevel2); + + // Create the content metadata key hierarchy on the server. + $contentMetadataKeyHierarchies = $contentMetadataKeyHierarchyService-> + createContentMetadataKeyHierarchies(array($contentMetadataKeyHierarchy)); + + foreach ($contentMetadataKeyHierarchies as $contentMetadataKeyHierarchy) { + printf("Content metadata key hierarchy with ID '%d', name '%s', and %d " + . "levels was created.\n", $contentMetadataKeyHierarchy->id, + $contentMetadataKeyHierarchy->name, + count($contentMetadataKeyHierarchy->hierarchyLevels)); + } +} 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/v201403/ContentMetadataKeyHierarchyService/DeleteContentMetadataKeyHierarchiesExample.php new file mode 100755 index 000000000..3c72041f8 --- /dev/null +++ b/examples/Dfp/v201403/ContentMetadataKeyHierarchyService/DeleteContentMetadataKeyHierarchiesExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ContentMetadataKeyHierarchyService. + $contentMetadataKeyHierarchyService = + $user->GetService('ContentMetadataKeyHierarchyService', 'v201403'); + + // Set the ID of the content metadata key hierarchy to delete. + $contentMetadataKeyHierarchyId = + "INSERT_CONTENT_METADATA_KEY_HIERARCHY_ID_HERE"; + + // 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); + + // Get the content metadata key hierarchy. + $page = $contentMetadataKeyHierarchyService-> + getContentMetadataKeyHierarchiesByStatement($filterStatement); + $contentMetadataKeyHierarchy = $page->results[0]; + + printf("Content metadata key hierarchy with ID '%d' will be deleted.\n", + $contentMetadataKeyHierarchy->id); + + // Create and perform the delete action. + $filterStatement = new Statement("WHERE id = :id", $vars); + $deleteAction = new DeleteContentMetadataKeyHierarchies(); + $result = $contentMetadataKeyHierarchyService-> + performContentMetadataKeyHierarchyAction($deleteAction, $filterStatement); + + printf("Number of content metadata key hierarchies deleted: %d.\n", + $result->numChanges); +} 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/v201403/ContentMetadataKeyHierarchyService/GetAllContentMetadataKeyHierarchiesExample.php new file mode 100755 index 000000000..a110d641c --- /dev/null +++ b/examples/Dfp/v201403/ContentMetadataKeyHierarchyService/GetAllContentMetadataKeyHierarchiesExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ContentMetadataKeyHierarchyService. + $contentMetadataKeyHierarchyService = + $user->GetService('ContentMetadataKeyHierarchyService', 'v201403'); + + // 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; + + $page = new ContentMetadataKeyHierarchyPage(); + + do { + // Get content metadata key hierarchies by statement. + $page = $contentMetadataKeyHierarchyService-> + getContentMetadataKeyHierarchiesByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $contentMetadataKeyHierarchy) { + 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); + + printf("Number of results found: %d\n", $page->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/ContentMetadataKeyHierarchyService/UpdateContentMetadataKeyHierarchiesExample.php b/examples/Dfp/v201403/ContentMetadataKeyHierarchyService/UpdateContentMetadataKeyHierarchiesExample.php new file mode 100755 index 000000000..e75828884 --- /dev/null +++ b/examples/Dfp/v201403/ContentMetadataKeyHierarchyService/UpdateContentMetadataKeyHierarchiesExample.php @@ -0,0 +1,99 @@ +LogDefaults(); + + // 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"; + + // 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); + + // Get the content metadata key hierarchy. + $page = $contentMetadataKeyHierarchyService-> + getContentMetadataKeyHierarchiesByStatement($filterStatement); + $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; + + // Update the content metadata key hierarchy on the server. + $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); + } +} 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/ContentService/GetAllContentExample.php b/examples/Dfp/v201403/ContentService/GetAllContentExample.php new file mode 100755 index 000000000..b52407117 --- /dev/null +++ b/examples/Dfp/v201403/ContentService/GetAllContentExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the ContentService. + $contentService = $user->GetService('ContentService', 'v201403'); + + // Set defaults for page and statement. + $page = new ContentPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all content. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get content by statement. + $page = $contentService->getContentByStatement($filterStatement); + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/ContentService/GetContentByCategoryExample.php b/examples/Dfp/v201403/ContentService/GetContentByCategoryExample.php new file mode 100755 index 000000000..63a87bac2 --- /dev/null +++ b/examples/Dfp/v201403/ContentService/GetContentByCategoryExample.php @@ -0,0 +1,113 @@ +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 new file mode 100755 index 000000000..25b39fea7 --- /dev/null +++ b/examples/Dfp/v201403/CreativeService/AssociateCreativeSetToLineItemExample.php @@ -0,0 +1,78 @@ +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/CreateCreativeFromTemplateExample.php b/examples/Dfp/v201403/CreativeService/CreateCreativeFromTemplateExample.php new file mode 100755 index 000000000..27dc05654 --- /dev/null +++ b/examples/Dfp/v201403/CreativeService/CreateCreativeFromTemplateExample.php @@ -0,0 +1,127 @@ +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'; + + // Use the image banner with optional third party tracking template. + $creativeTemplateId = 10000680; + + // Create the local custom creative object. + $templateCreative = new TemplateCreative(); + $templateCreative->name = 'Template creative'; + $templateCreative->advertiserId = $advertiserId; + $templateCreative->creativeTemplateId = $creativeTemplateId; + + // Set the creative size. + $templateCreative->size = new Size(300, 250, FALSE); + + // Create the asset variable value. + $assetVariableValue = new AssetCreativeTemplateVariableValue(); + $assetVariableValue->uniqueName = 'Imagefile'; + $assetVariableValue->assetByteArray = MediaUtils::GetBase64Data( + 'http://www.google.com/intl/en/adwords/select/images/samples/inline.jpg'); + // Filenames must be unique. + $assetVariableValue->fileName = sprintf('image%s.jpg', uniqid()); + $templateCreative->creativeTemplateVariableValues[] = $assetVariableValue; + + // Create the image width variable value. + $imageWidthVariableValue = new LongCreativeTemplateVariableValue(); + $imageWidthVariableValue->uniqueName = 'Imagewidth'; + $imageWidthVariableValue->value = 300; + $templateCreative->creativeTemplateVariableValues[] = + $imageWidthVariableValue; + + // Create the image height variable value. + $imageHeightVariableValue = new LongCreativeTemplateVariableValue(); + $imageHeightVariableValue->uniqueName = 'Imageheight'; + $imageHeightVariableValue->value = 250; + $templateCreative->creativeTemplateVariableValues[] = + $imageHeightVariableValue; + + // Create the URL variable value. + $urlVariableValue = new UrlCreativeTemplateVariableValue(); + $urlVariableValue->uniqueName = 'ClickthroughURL'; + $urlVariableValue->value = 'www.google.com'; + $templateCreative->creativeTemplateVariableValues[] = $urlVariableValue; + + // Create the target window variable value. + $targetWindowVariableValue = new StringCreativeTemplateVariableValue(); + $targetWindowVariableValue->uniqueName = 'Targetwindow'; + $targetWindowVariableValue->value = '_blank'; + $templateCreative->creativeTemplateVariableValues[] = + $targetWindowVariableValue; + + // Create the template creative on the server. + $templateCreatives = + $creativeService->createCreatives(array($templateCreative)); + + 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->previewUrl); + } +} 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/CreateCreativesExample.php b/examples/Dfp/v201403/CreativeService/CreateCreativesExample.php new file mode 100755 index 000000000..b739bb53d --- /dev/null +++ b/examples/Dfp/v201403/CreativeService/CreateCreativesExample.php @@ -0,0 +1,119 @@ +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'; + + // Create an array to store local image creative objects. + $imageCreatives = array(); + + for ($i = 0; $i < 5; $i++) { + // Create creative size. + $size = new Size(300, 250); + + // Create an image creative. + $imageCreative = new ImageCreative(); + $imageCreative->name = 'Image creative #' . $i; + $imageCreative->advertiserId = $advertiserId; + $imageCreative->destinationUrl = 'http://google.com'; + $imageCreative->size = $size; + + // Create image asset. + $creativeAsset = new CreativeAsset(); + $creativeAsset->fileName = 'image.jpg'; + $creativeAsset->assetByteArray = + MediaUtils::GetBase64Data('http://www.google.com/intl/en/adwords/' + . 'select/images/samples/inline.jpg'); + $creativeAsset->size = $size; + $imageCreative->primaryImageAsset = $creativeAsset; + + $imageCreatives[] = $imageCreative; + } + + // Create the image creatives on the server. + $imageCreatives = $creativeService->createCreatives($imageCreatives); + + // Display results. + if (isset($imageCreatives)) { + 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"; + } else { + print 'A creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType + . "\" was created.\n"; + } + } + } else { + print "No creatives created.\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/CreateCustomCreativeExample.php b/examples/Dfp/v201403/CreativeService/CreateCustomCreativeExample.php new file mode 100755 index 000000000..3a9977fcd --- /dev/null +++ b/examples/Dfp/v201403/CreativeService/CreateCustomCreativeExample.php @@ -0,0 +1,100 @@ +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'; + + // Create the local custom creative object. + $customCreative = new CustomCreative(); + $customCreative->name = 'Custom creative'; + $customCreative->advertiserId = $advertiserId; + $customCreative->destinationUrl = 'http://google.com'; + + // Set the custom creative image asset. + $customCreativeAsset = new CustomCreativeAsset(); + $customCreativeAsset->macroName = 'IMAGE_ASSET'; + // Filenames must be unique. + $customCreativeAsset->fileName = sprintf('inline%s.jpg', uniqid()); + $customCreativeAsset->assetByteArray = MediaUtils::GetBase64Data( + 'http://www.google.com/intl/en/adwords/select/images/samples/inline.jpg'); + $customCreative->customCreativeAssets = array($customCreativeAsset); + + // Set the HTML snippet using the custom creative asset macro. + $customCreative->htmlSnippet = '' + . '' + . '
Click above for great deals!'; + + // Set the creative size. + $customCreative->size = new Size(300, 250, FALSE); + + // Create the custom creative on the server. + $customCreatives = $creativeService->createCreatives(array($customCreative)); + + foreach ($customCreatives as $customCreative) { + printf("A custom creative with ID '%s', name '%s', and size '%sx%s' was " + . "created and can be previewed at: %s\n", $templateCreative->id, + $templateCreative->name, $templateCreative->size->width, + $templateCreative->size->height, $templateCreative->previewUrl); + } +} 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/GetAllCreativesExample.php b/examples/Dfp/v201403/CreativeService/GetAllCreativesExample.php new file mode 100755 index 000000000..0133a689e --- /dev/null +++ b/examples/Dfp/v201403/CreativeService/GetAllCreativesExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201403'); + + // Set defaults for page and statement. + $page = new CreativePage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all creatives. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/GetCreativesByStatementExample.php b/examples/Dfp/v201403/CreativeService/GetCreativesByStatementExample.php new file mode 100755 index 000000000..995cf5c1a --- /dev/null +++ b/examples/Dfp/v201403/CreativeService/GetCreativesByStatementExample.php @@ -0,0 +1,88 @@ +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/CreativeService/UpdateCreativesExample.php b/examples/Dfp/v201403/CreativeService/UpdateCreativesExample.php new file mode 100755 index 000000000..65da4c7c3 --- /dev/null +++ b/examples/Dfp/v201403/CreativeService/UpdateCreativesExample.php @@ -0,0 +1,95 @@ +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"); + + // Get creatives by statement. + $page = $creativeService->getCreativesByStatement($filterStatement); + + if (isset($page->results)) { + $creatives = $page->results; + + // Update each local creative object by changing its destination URL. + foreach ($creatives as $creative) { + $creative->destinationUrl = 'http://news.google.com'; + } + + // Update the creatives on the server. + $creatives = $creativeService->updateCreatives($creatives); + + // 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"; + } + } else { + print "No creatives 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/CreativeSetService/CreateCreativeSetsExample.php b/examples/Dfp/v201403/CreativeSetService/CreateCreativeSetsExample.php new file mode 100755 index 000000000..62fc74786 --- /dev/null +++ b/examples/Dfp/v201403/CreativeSetService/CreateCreativeSetsExample.php @@ -0,0 +1,82 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201403'); + + // Set the ID of the creatives to associate with this set. + $masterCreativeID = 'INSERT_MASTER_CREATIVE_ID_HERE'; + $companionCreativeID = 'INSERT_COMPANION_CREATIVE_ID_HERE'; + + // Create a local creative set. + $creativeSet = new CreativeSet(); + $creativeSet->name = 'Creative set #' . uniqid(); + $creativeSet->masterCreativeId = $masterCreativeID; + $creativeSet->companionCreativeIds = array(); + $creativeSet->companionCreativeIds[] = $companionCreativeID; + + // Create the creative set on the server. + $creativeSets = $creativeSetService->createCreativeSets(array($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)); + } +} 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/GetAllCreativesSetsExample.php b/examples/Dfp/v201403/CreativeSetService/GetAllCreativesSetsExample.php new file mode 100755 index 000000000..6d4b8bf89 --- /dev/null +++ b/examples/Dfp/v201403/CreativeSetService/GetAllCreativesSetsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201403'); + + // Set default offset. + $offset = 0; + $filterStatement = new Statement(); + + do { + // Create a statement to get all creative sets. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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 new file mode 100755 index 000000000..7f58ebc24 --- /dev/null +++ b/examples/Dfp/v201403/CreativeSetService/GetCreativeSetsByStatementExample.php @@ -0,0 +1,90 @@ +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/CreativeSetService/UpdateCreativeSetsExample.php b/examples/Dfp/v201403/CreativeSetService/UpdateCreativeSetsExample.php new file mode 100755 index 000000000..49d72995c --- /dev/null +++ b/examples/Dfp/v201403/CreativeSetService/UpdateCreativeSetsExample.php @@ -0,0 +1,89 @@ +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'; + + // 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); + + // Get the creative set. + $page = $creativeSetService->getCreativeSetsByStatement($filterStatement); + $creativeSet = $page->results[0]; + + // Update the companion creatives. + $creativeSet->companionCreativeIds[] = $companionCreativeID; + + // Update the creative set on the server. + $creativeSets = $creativeSetService->updateCreativeSets(array($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)); + } +} 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/CreativeTemplateService/GetAllCreativeTemplatesExample.php b/examples/Dfp/v201403/CreativeTemplateService/GetAllCreativeTemplatesExample.php new file mode 100755 index 000000000..095b72e04 --- /dev/null +++ b/examples/Dfp/v201403/CreativeTemplateService/GetAllCreativeTemplatesExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201403'); + + // Set defaults for page and statement. + $page = new CreativeTemplatePage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all creative templates. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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 new file mode 100755 index 000000000..f2d90696b --- /dev/null +++ b/examples/Dfp/v201403/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php @@ -0,0 +1,84 @@ +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/CreateCreativeWrappersExample.php b/examples/Dfp/v201403/CreativeWrapperService/CreateCreativeWrappersExample.php new file mode 100755 index 000000000..a2fca0973 --- /dev/null +++ b/examples/Dfp/v201403/CreativeWrapperService/CreateCreativeWrappersExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201403'); + + $labelId = 'INSERT_CREATIVE_WRAPPER_LABEL_ID_HERE'; + + // Create creative wrapper objects. + $creativeWrapper = new CreativeWrapper(); + $creativeWrapper->labelId = $labelId; + $creativeWrapper->ordering = 'INNER'; + $creativeWrapper->header = new CreativeWrapperHtmlSnippet; + $creativeWrapper->header->htmlSnippet = 'My creative wrapper header'; + $creativeWrapper->footer = new CreativeWrapperHtmlSnippet; + $creativeWrapper->footer->htmlSnippet = 'My creative wrapper footer'; + + // Create the creative wrappers on the server. + $creativeWrappers = + $creativeWrapperService->CreateCreativeWrappers(array($creativeWrapper)); + + // Display results. + if (isset($creativeWrappers)) { + foreach ($creativeWrappers as $creativeWrapper) { + printf("Creative wrapper with ID '%d' applying to label '%d' was" . + " created.\n", $creativeWrapper->id, $creativeWrapper->labelId); + } + } else { + print "No creative wrappers were created."; + } +} 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 new file mode 100755 index 000000000..549979e3c --- /dev/null +++ b/examples/Dfp/v201403/CreativeWrapperService/DeactivateCreativeWrapperExample.php @@ -0,0 +1,97 @@ +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/GetActiveCreativeWrappersExample.php b/examples/Dfp/v201403/CreativeWrapperService/GetActiveCreativeWrappersExample.php new file mode 100755 index 000000000..7b8e164a4 --- /dev/null +++ b/examples/Dfp/v201403/CreativeWrapperService/GetActiveCreativeWrappersExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201403'); + + // Create a statement to select only active creative wrappers. + $vars = MapUtils::GetMapEntries(array('status' => new TextValue('ACTIVE'))); + $filterStatement = + new Statement('WHERE status = :status', $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' 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/CreativeWrapperService/GetAllCreativeWrappersExample.php b/examples/Dfp/v201403/CreativeWrapperService/GetAllCreativeWrappersExample.php new file mode 100755 index 000000000..37355f6b4 --- /dev/null +++ b/examples/Dfp/v201403/CreativeWrapperService/GetAllCreativeWrappersExample.php @@ -0,0 +1,76 @@ +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/CreativeWrapperService/UpdateCreativeWrappersExample.php b/examples/Dfp/v201403/CreativeWrapperService/UpdateCreativeWrappersExample.php new file mode 100755 index 000000000..7d1fa492d --- /dev/null +++ b/examples/Dfp/v201403/CreativeWrapperService/UpdateCreativeWrappersExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201403'); + + $creativeWrapperId = 'INSERT_CREATIVE_WRAPPER_ID_HERE'; + + // 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); + + // Get the creative wrapper. + $page = + $creativeWrapperService->getCreativeWrappersByStatement($filterStatement); + $creativeWrapper = $page->results[0]; + + // Update the creative wrapper ordering. + $creativeWrapper->ordering = 'OUTER'; + + // Update the creative wrapper on the server. + $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); + } +} 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/CreateCustomFieldOptions.php b/examples/Dfp/v201403/CustomFieldService/CreateCustomFieldOptions.php new file mode 100755 index 000000000..482e9169d --- /dev/null +++ b/examples/Dfp/v201403/CustomFieldService/CreateCustomFieldOptions.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = + $user->GetService('CustomFieldService', 'v201403'); + + // Set the ID of the drop-down custom field to create options for. + $customFieldId = "INSERT_DROP_DOWN_CUSTOM_FIELD_ID_HERE"; + + // Create custom field options. + $customFieldOption1 = new CustomFieldOption(); + $customFieldOption1->displayName = 'Approved'; + $customFieldOption1->customFieldId = $customFieldId; + + $customFieldOption2 = new CustomFieldOption(); + $customFieldOption2->displayName = 'Unapproved'; + $customFieldOption2->customFieldId = $customFieldId; + + // Create the custom targeting keys on the server. + $customFieldOptions = $customFieldService->createCustomFieldOptions( + array($customFieldOption1, $customFieldOption2)); + + // Display results. + if (isset($customFieldOptions)) { + foreach ($customFieldOptions as $customFieldOption) { + printf("A custom field option with ID '%s' and name '%s' was created.\n", + $customFieldOption->id, $customFieldOption->displayName); + } + } else { + print "No custom field options were created.\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/CustomFieldService/CreateCustomFields.php b/examples/Dfp/v201403/CustomFieldService/CreateCustomFields.php new file mode 100755 index 000000000..e026b00bc --- /dev/null +++ b/examples/Dfp/v201403/CustomFieldService/CreateCustomFields.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = + $user->GetService('CustomFieldService', 'v201403'); + + // Create custom fields. + $customField1 = new CustomField(); + $customField1->name = 'Customer comments #' . time(); + $customField1->entityType = 'LINE_ITEM'; + $customField1->dataType = 'STRING'; + $customField1->visibility = 'FULL'; + + $customField2 = new CustomField(); + $customField2->name = 'Internal approval status #' . time(); + $customField2->entityType = 'LINE_ITEM'; + $customField2->dataType = 'DROP_DOWN'; + $customField2->visibility = 'FULL'; + + // Create the custom fields on the server. + $customFields = $customFieldService->createCustomFields( + array($customField1, $customField2)); + + // Display results. + if (isset($customFields)) { + foreach ($customFields as $customField) { + printf("A custom field with ID '%s' and name '%s' was created.\n", + $customField->id, $customField->name); + } + } else { + print "No custom fields were created.\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/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php b/examples/Dfp/v201403/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php new file mode 100755 index 000000000..e90ffcc1e --- /dev/null +++ b/examples/Dfp/v201403/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php @@ -0,0 +1,123 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201403'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('entityType' => new TextValue("LINE_ITEM"), + 'isActive' => new BooleanValue("TRUE"))); + + // Create statement text to select only active custom fields that apply + // to line items. + $filterStatementText = + "WHERE entityType = :entityType and isActive = :isActive"; + $offset = 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); + + // Display results. + $customFieldIds = array(); + if (isset($page->results)) { + $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; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of custom fields to be deactivated: ' . sizeof($customFieldIds) + . "\n"; + + if (sizeof($customFieldIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $customFieldIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateCustomFields(); + + // Perform action. + $result = $customFieldService->performCustomFieldAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of custom fields deactivated: ' . $result->numChanges + . "\n"; + } else { + print "No custom fields 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/CustomFieldService/GetAllCustomFieldsExample.php b/examples/Dfp/v201403/CustomFieldService/GetAllCustomFieldsExample.php new file mode 100755 index 000000000..d56536c3f --- /dev/null +++ b/examples/Dfp/v201403/CustomFieldService/GetAllCustomFieldsExample.php @@ -0,0 +1,87 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201403'); + + // Set defaults for page and statement. + $page = new CustomFieldPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all custom fields. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get custom fields by statement. + $page = $customFieldService->getCustomFieldsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $customField) { + print $i . ') Custom field with ID "' . $customField->id + . '" and name "' . $customField->name . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/CustomFieldService/SetLineItemCustomFieldValue.php b/examples/Dfp/v201403/CustomFieldService/SetLineItemCustomFieldValue.php new file mode 100755 index 000000000..e0581f344 --- /dev/null +++ b/examples/Dfp/v201403/CustomFieldService/SetLineItemCustomFieldValue.php @@ -0,0 +1,126 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201403'); + + // Set the IDs of the custom fields, custom field option, and line item. + $customFieldId = "INSERT_CUSTOM_FIELD_ID_HERE"; + $dropDownCustomFieldId = "INSERT_DROP_DOWN_CUSTOM_FIELD_ID_HERE"; + $customFieldOptionId = "INSERT_CUSTOM_FIELD_OPTION_ID_HERE"; + $lineItemId = "INSERT_LINE_ITEM_ID_HERE"; + + // 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); + + // Get the line item. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + $lineItem = $page->results[0]; + + // Create custom field values. + $customFieldValues = array(); + + $customFieldValue = new CustomFieldValue(); + $customFieldValue->customFieldId = $customFieldId; + $customFieldValue->value = new TextValue("Custom field value"); + $customFieldValues[] = $customFieldValue; + + $dropDownCustomFieldValue = new DropDownCustomFieldValue(); + $dropDownCustomFieldValue->customFieldId = $dropDownCustomFieldId; + $dropDownCustomFieldValue->customFieldOptionId = $customFieldOptionId; + $customFieldValues[] = $dropDownCustomFieldValue; + + // Only add existing custom field values for different custom fields than + // the ones you are setting. + if (isset($lineItem->customFieldValues)) { + foreach ($lineItem->customFieldValues as $oldCustomFieldValue) { + if (($oldCustomFieldValue->customFieldId != $customFieldId) && + ($oldCustomFieldValue->customFieldId != $dropDownCustomFieldId)) { + $customFieldValues[] = $oldCustomFieldValue; + } + } + } + + $lineItem->customFieldValues = $customFieldValues; + + // Update the line item on the server. + $lineItems = $lineItemService->updateLineItems(array($lineItem)); + + foreach ($lineItems as $lineItem) { + $customFieldValueStrings = array(); + foreach ($lineItem->customFieldValues as $baseCustomFieldValue) { + if (($baseCustomFieldValue instanceof CustomFieldValue)) { + $customFieldValueStrings[] = sprintf("{ID: '%d', value: '%s'}", + $baseCustomFieldValue->customFieldId, + $baseCustomFieldValue->value->value); + } else if ($baseCustomFieldValue instanceof DropDownCustomFieldValue) { + $customFieldValueStrings[] = sprintf("{ID: '%d', custom field option " + . "ID: '%d'}", $baseCustomFieldValue->customFieldId, + $baseCustomFieldValue->customFieldOptionId); + } + } + printf("A line item with ID '%s' was set with custom field values '%s'\n.", + $lineItem->id, join(",", $customFieldValueStrings)); + } +} 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/UpdateCustomFieldExample.php b/examples/Dfp/v201403/CustomFieldService/UpdateCustomFieldExample.php new file mode 100755 index 000000000..83f553526 --- /dev/null +++ b/examples/Dfp/v201403/CustomFieldService/UpdateCustomFieldExample.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201403'); + + // Set the ID of the custom field to update. + $customFieldId = "INSERT_CUSTOM_FIELD_ID_HERE"; + + // 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); + + // Get the custom field. + $page = $customFieldService->getCustomFieldsByStatement($filterStatement); + $customField = $page->results[0]; + + // Update the description on the custom field. + $customField->description = "Description " . time(); + + // 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); + } +} 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/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php b/examples/Dfp/v201403/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php new file mode 100755 index 000000000..20054ba3f --- /dev/null +++ b/examples/Dfp/v201403/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php @@ -0,0 +1,152 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201403'); + + // Create predefined key. + $genderKey = new CustomTargetingKey(); + $genderKey->displayName = 'gender'; + $genderKey->name = 'g'; + $genderKey->type = 'PREDEFINED'; + + // Create predefined key that may be used for content targeting. + $genreKey = new CustomTargetingKey(); + $genreKey->displayName = 'genre'; + $genreKey->name = 'genre'; + $genreKey->type = 'PREDEFINED'; + + // Create free-form key. + $carModelKey = new CustomTargetingKey(); + $carModelKey->displayName = 'car model'; + $carModelKey->name = 'c'; + $carModelKey->type = 'FREEFORM'; + + // Create the custom targeting keys on the server. + $keys = $customTargetingService->createCustomTargetingKeys( + array($genderKey, $genreKey, $carModelKey)); + + if (isset($keys)) { + foreach ($keys as $key) { + printf("A custom targeting key with ID '%s', name '%s', and display " . + "name '%s' was created.\n", $key->id, $key->name, $key->displayName); + } + } else { + print "No keys were created.\n"; + } + + // Create custom targeting value for the predefined gender key. + $genderMaleValue = new CustomTargetingValue(); + $genderMaleValue->customTargetingKeyId = $keys[0]->id; + $genderMaleValue->displayName = 'male'; + // Name is set to 1 so that the actual name can be hidden from website + // users. + $genderMaleValue->name = '1'; + $genderMaleValue->matchType = 'EXACT'; + + $genderFemaleValue = new CustomTargetingValue(); + $genderFemaleValue->customTargetingKeyId = $keys[0]->id; + $genderFemaleValue->displayName = 'female'; + // Name is set to 2 so that the actual name can be hidden from website + // users. + $genderFemaleValue->name = '2'; + $genderFemaleValue->matchType = 'EXACT'; + + // Create custom targeting value for the predefined genre key. + $genreComedyValue = new CustomTargetingValue(); + $genreComedyValue->customTargetingKeyId = $keys[1]->id; + $genreComedyValue->displayName = 'comedy'; + $genreComedyValue->name = 'comedy'; + $genreComedyValue->matchType = 'EXACT'; + + $genreDramaValue = new CustomTargetingValue(); + $genreDramaValue->customTargetingKeyId = $keys[1]->id; + $genreDramaValue->displayName = 'drama'; + $genreDramaValue->name = 'drama'; + $genreDramaValue->matchType = 'EXACT'; + + // Create custom targeting value for the free-form age key. These are + // values that would be suggested in the UI or can be used when targeting + // with a free-form custom criterion. + $carModelHondaCivicValue = new CustomTargetingValue(); + $carModelHondaCivicValue->customTargetingKeyId = $keys[2]->id; + $carModelHondaCivicValue->displayName = 'honda civic'; + $carModelHondaCivicValue->name = 'honda civic'; + // Setting match type to exact will match exactly 'honda civic'. + $carModelHondaCivicValue->matchType = 'EXACT'; + + // Create the custom targeting values on the server. + $values = $customTargetingService->createCustomTargetingValues(array( + $genderMaleValue, $genderFemaleValue, $genreComedyValue, + $genreDramaValue, $carModelHondaCivicValue)); + + if (isset($values)) { + foreach ($values as $value) { + printf("A custom targeting value with ID '%s', belonging to key " . + "with ID '%s', name '%s', and display name '%s' was created.\n", + $value->id, $value->customTargetingKeyId, $value->name, + $value->displayName); + } + } else { + print "No values were created.\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/CustomTargetingService/DeleteCustomTargetingKeysExample.php b/examples/Dfp/v201403/CustomTargetingService/DeleteCustomTargetingKeysExample.php new file mode 100755 index 000000000..b11341199 --- /dev/null +++ b/examples/Dfp/v201403/CustomTargetingService/DeleteCustomTargetingKeysExample.php @@ -0,0 +1,120 @@ +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'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('name' => new TextValue($keyName))); + + $offset = 0; + $keyIds = array(); + + 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); + + if (isset($page->results)) { + foreach ($page->results as $customTargetingKey) { + $keyIds[] = $customTargetingKey->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + printf("Number of custom targeting keys to be deleted: %d\n", + sizeof($keyIds)); + + if (sizeof($keyIds) > 0) { + // Create action statement. + $filterStatementText = sprintf('WHERE id IN (%s)', implode(',', $keyIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeleteCustomTargetingKeys(); + + // Perform action. + $result = $customTargetingService->performCustomTargetingKeyAction( + $action, $filterStatement); + + // 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"; + } + } +} 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/DeleteCustomTargetingValuesExample.php b/examples/Dfp/v201403/CustomTargetingService/DeleteCustomTargetingValuesExample.php new file mode 100755 index 000000000..bd79d93f0 --- /dev/null +++ b/examples/Dfp/v201403/CustomTargetingService/DeleteCustomTargetingValuesExample.php @@ -0,0 +1,120 @@ +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'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('keyId' => new NumberValue($keyId))); + + $offset = 0; + $valueIds = array(); + + 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); + + if (isset($page->results)) { + foreach ($page->results as $customTargetingValue) { + $valueIds[] = $customTargetingValue->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + printf("Number of custom targeting values to be deleted: %d\n", + sizeof($valueIds)); + + if (sizeof($valueIds) > 0) { + // Create action statement. + $filterStatementText .= sprintf(' AND id IN (%s)', implode(',', $valueIds)); + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeleteCustomTargetingValues(); + + // Perform action. + $result = $customTargetingService->performCustomTargetingValueAction( + $action, $filterStatement); + + // 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"; + } + } +} 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 new file mode 100755 index 000000000..ad7fa3f81 --- /dev/null +++ b/examples/Dfp/v201403/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php @@ -0,0 +1,137 @@ +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 new file mode 100755 index 000000000..047b8609e --- /dev/null +++ b/examples/Dfp/v201403/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php @@ -0,0 +1,85 @@ +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/GetCustomTargetingValuesByStatementExample.php b/examples/Dfp/v201403/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php new file mode 100755 index 000000000..6f1fceb97 --- /dev/null +++ b/examples/Dfp/v201403/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201403'); + + // Set the ID of the custom targeting key to get custom targeting values for. + $keyId = '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($keyId)))); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingValuesByStatement( + $filterStatement); + + // 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++; + } + } + + 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/UpdateCustomTargetingKeysExample.php b/examples/Dfp/v201403/CustomTargetingService/UpdateCustomTargetingKeysExample.php new file mode 100755 index 000000000..6391785e8 --- /dev/null +++ b/examples/Dfp/v201403/CustomTargetingService/UpdateCustomTargetingKeysExample.php @@ -0,0 +1,100 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201403'); + + // Create a statement to get all custom targeting keys. + $filterStatement = new Statement('LIMIT 500'); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $filterStatement); + + if (isset($page->results)) { + $keys = $page->results; + + // 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 keys on the server. + $keys = $customTargetingService->updateCustomTargetingKeys($keys); + + // 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"; + } +} 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 new file mode 100755 index 000000000..45adff720 --- /dev/null +++ b/examples/Dfp/v201403/CustomTargetingService/UpdateCustomTargetingValuesExample.php @@ -0,0 +1,106 @@ +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/ForecastService/GetForecastByIdExample.php b/examples/Dfp/v201403/ForecastService/GetForecastByIdExample.php new file mode 100755 index 000000000..d8d69e04b --- /dev/null +++ b/examples/Dfp/v201403/ForecastService/GetForecastByIdExample.php @@ -0,0 +1,83 @@ +LogDefaults(); + + // Get the ForecastService. + $forecastService = $user->GetService('ForecastService', 'v201403'); + + // Set the line item to get a forecast for. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Get forecast for line item. + $forecast = $forecastService->getForecastById($lineItemId); + + // 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)) { + $percentPossibleUnits = $forecast->possibleUnits / $matchedUnits * 100; + printf("%d%% %s possible.\n", $percentPossibleUnits, $unitType); + } + + printf("%d contending line items.\n", count($forecast->contendingLineItems)); +} 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/v201403/ForecastService/GetForecastExample.php new file mode 100755 index 000000000..2b05cb21b --- /dev/null +++ b/examples/Dfp/v201403/ForecastService/GetForecastExample.php @@ -0,0 +1,115 @@ +LogDefaults(); + + // Get the ForecastService. + $forecastService = $user->GetService('ForecastService', 'v201403'); + + // Set the placement ID that the prospective line item will target. + $targetPlacementId = 'INSERT_PLACEMENT_ID_HERE'; + + // Create prospective line item. + $lineItem = new LineItem(); + $lineItem->lineItemType = 'SPONSORSHIP'; + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedPlacementIds = array($targetPlacementId); + + // Set targeting for line item. + $targeting = new Targeting(); + $targeting->inventoryTargeting = $inventoryTargeting; + $lineItem->targeting = $targeting; + + // 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 line item's time to be now until the projected end date time. + $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; + + // Set the cost type to match the unit type. + $lineItem->costType = 'CPM'; + + // Get forecast for line item. + $forecast = $forecastService->getForecast($lineItem); + + // 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)) { + $percentPossibleUnits = $forecast->possibleUnits / $matchedUnits * 100; + printf("%d%% %s possible.\n", $percentPossibleUnits, $unitType); + } + + printf("%d contending line items.\n", count($forecast->contendingLineItems)); +} 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/v201403/InventoryService/CreateAdUnitsExample.php new file mode 100755 index 000000000..6de1fb943 --- /dev/null +++ b/examples/Dfp/v201403/InventoryService/CreateAdUnitsExample.php @@ -0,0 +1,105 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201403'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201403'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + // Create an array to store local ad unit objects. + $adUnits = array(); + + for ($i = 0; $i < 5; $i++) { + $adUnit = new AdUnit(); + $adUnit->name = uniqid('Ad_Unit_'); + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + + // Create ad unit size. + $adUnitSize = new AdUnitSize(); + $adUnitSize->size = new Size(300, 250, FALSE); + $adUnitSize->environmentType = 'BROWSER'; + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($adUnitSize); + + $adUnits[] = $adUnit; + } + + // Create the ad units on the server. + $adUnits = $inventoryService->createAdUnits($adUnits); + + // Display results. + if (isset($adUnits)) { + foreach ($adUnits as $adUnit) { + print 'An ad unit with ID "' . $adUnit->id + . '" was created under parent with ID "' . $adUnit->parentId + . "\".\n"; + } + } else { + print "No ad units created.\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/InventoryService/CreateMobileAdUnitExample.php b/examples/Dfp/v201403/InventoryService/CreateMobileAdUnitExample.php new file mode 100755 index 000000000..392bf970c --- /dev/null +++ b/examples/Dfp/v201403/InventoryService/CreateMobileAdUnitExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201403'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201403'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + $adUnit = new AdUnit(); + $adUnit->name = uniqid('Mobile_Ad_Unit_'); + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + $adUnit->targetPlatform = 'MOBILE'; + $adUnit->mobilePlatform = 'APPLICATION'; + + // Create ad unit size. + $adUnitSize = new AdUnitSize(); + $adUnitSize->size = new Size(400, 300, FALSE); + $adUnitSize->environmentType = 'BROWSER'; + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($adUnitSize); + + // Create the ad unit on the server. + $adUnits = $inventoryService->createAdUnits(array($adUnit)); + + foreach ($adUnits as $adUnit) + printf("An ad unit with ID '%s' was created under parent with ID '%s'.\n", + $adUnit->id, $adUnit->parentId); + } +} 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/CreateVideoAdUnitExample.php b/examples/Dfp/v201403/InventoryService/CreateVideoAdUnitExample.php new file mode 100755 index 000000000..7edcffa79 --- /dev/null +++ b/examples/Dfp/v201403/InventoryService/CreateVideoAdUnitExample.php @@ -0,0 +1,108 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201403'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201403'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + // Create local ad unit object. + $adUnit = new AdUnit(); + $adUnit->name = 'Video_Ad_Unit'; + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + $adUnit->explicitlyTargeted = TRUE; + $adUnit->targetPlatform = 'WEB'; + + // Create master ad unit size. + $masterAdUnitSize = new AdUnitSize(); + $masterAdUnitSize->size = new Size(400, 300, FALSE); + $masterAdUnitSize->environmentType = 'VIDEO_PLAYER'; + + // Create companion sizes. + $companionAdUnitSize1 = new AdUnitSize(); + $companionAdUnitSize1->size = new Size(300, 250, FALSE); + $companionAdUnitSize1->environmentType = 'BROWSER'; + + $companionAdUnitSize2 = new AdUnitSize(); + $companionAdUnitSize2->size = new Size(728, 90, FALSE); + $companionAdUnitSize2->environmentType = 'BROWSER'; + + // Add companions to master ad unit size. + $masterAdUnitSize->companions = + array($companionAdUnitSize1, $companionAdUnitSize2); + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($masterAdUnitSize); + + // Create the ad unit on the server. + $adUnits = $inventoryService->createAdUnits(array($adUnit)); + + foreach ($adUnits as $adUnit) + printf("An ad unit with ID '%s' was created under parent with ID '%s'.\n", + $adUnit->id, $adUnit->parentId); + } +} 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/DeactivateAdUnitsExample.php b/examples/Dfp/v201403/InventoryService/DeactivateAdUnitsExample.php new file mode 100755 index 000000000..d5b6759d6 --- /dev/null +++ b/examples/Dfp/v201403/InventoryService/DeactivateAdUnitsExample.php @@ -0,0 +1,113 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201403'); + + // Create statement text to get all active ad units. + $filterStatementText = "WHERE status = 'ACTIVE'"; + + $offset = 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); + + // Display results. + $adUnitIds = array(); + 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 . "\" will be deactivated.\n"; + $i++; + $adUnitIds[] = $adUnit->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of ad units to be deactivated: ' . sizeof($adUnitIds) . "\n"; + + if (sizeof($adUnitIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $adUnitIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateAdUnits(); + + // Perform action. + $result = $inventoryService->performAdUnitAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of ad units deactivated: ' . $result->numChanges . "\n"; + } else { + print "No ad units 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/InventoryService/GetAdUnitSizesExample.php b/examples/Dfp/v201403/InventoryService/GetAdUnitSizesExample.php new file mode 100755 index 000000000..2b585c9cc --- /dev/null +++ b/examples/Dfp/v201403/InventoryService/GetAdUnitSizesExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201403'); + + // 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); + + // Get all ad unit sizes by statement. + $adUnitSizes = $inventoryService->getAdUnitSizesByStatement($filterStatement); + + // Display results. + $i = 0; + foreach ($adUnitSizes as $adUnitSize) { + printf("%d) Web ad unit size of dimensions %s was found.\n", $i, + $adUnitSize->fullDisplayString); + $i++; + } + + 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"; +} + diff --git a/examples/Dfp/v201403/InventoryService/GetAdUnitsByStatementExample.php b/examples/Dfp/v201403/InventoryService/GetAdUnitsByStatementExample.php new file mode 100755 index 000000000..13df6c912 --- /dev/null +++ b/examples/Dfp/v201403/InventoryService/GetAdUnitsByStatementExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201403'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201403'); + + // Get the effective root ad unit's ID. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->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)))); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // 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++; + } + } + + 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/InventoryService/GetAllAdUnitsExample.php b/examples/Dfp/v201403/InventoryService/GetAllAdUnitsExample.php new file mode 100755 index 000000000..ac55942d7 --- /dev/null +++ b/examples/Dfp/v201403/InventoryService/GetAllAdUnitsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201403'); + + // Set defaults for page and statement. + $page = new AdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/InventoryService/GetInventoryTreeExample.php b/examples/Dfp/v201403/InventoryService/GetInventoryTreeExample.php new file mode 100755 index 000000000..130016ae1 --- /dev/null +++ b/examples/Dfp/v201403/InventoryService/GetInventoryTreeExample.php @@ -0,0 +1,205 @@ +GetService('InventoryService', 'v201403'); + + // Create array to hold all ad units. + $adUnits = array(); + + // Set defaults for page and statement. + $page = new AdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + $adUnits = array_merge($adUnits, $page->results); + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + return $adUnits; +} + +/** + * Finds the root ad unit for the user. + * @param DfpUser $user the user to get the root ad unit for + * @return the ad unit representing the root ad unit or NULL if one + * is not found. + * @access private + */ +function FindRootAdUnit(DfpUser $user) { + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201403'); + + // Create a statement to only select image creatives. + $filterStatement = new Statement("WHERE parentId IS NULL LIMIT 1"); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + return $page->results[0]; + } else { + return NULL; + } +} + +/** + * Builds and displays an ad unit tree from an array of ad units underneath + * the root ad unit. + * @param AdUnit $root the root ad unit to build the tree under + * @param array $adUnits the array of ad units. + * @access private + */ +function BuildAndDisplayAdUnitTree(AdUnit $root, + array $adUnits) { + $treeMap = array(); + + foreach ($adUnits as $adUnit) { + if (isset($adUnit->parentId)) { + $treeMap[$adUnit->parentId][] = $adUnit; + } + } + + if (isset($root)) { + DisplayInventoryTree($root, $treeMap); + } else { + print "No root unit found.\n"; + } +} + +/** + * Displays the ad unit tree beginning at the root ad unit. + * @param AdUnit $root the root ad unit + * @param array $treeMap the map of id to array of ad units + * @access private + */ +function DisplayInventoryTree(AdUnit $root, array $treeMap) { + DisplayInventoryTreeHelper($root, $treeMap, 0); +} + +/** + * Helper for displaying inventory units. + * @param AdUnit $root the root inventory unit + * @param array $treeMap the map of id to array of inventory units + * @param $depth the depth the tree has reached + * @access private + */ +function DisplayInventoryTreeHelper(AdUnit $root, + array $treeMap, $depth) { + print GenerateTab($depth) . $root->name . ' (' + . $root->id . ")\n"; + + if (isset($treeMap[$root->id])) { + foreach ($treeMap[$root->id] as $child) { + DisplayInventoryTreeHelper($child, + $treeMap, $depth + 1); + } + } +} + +/** + * Generates a string of tabs to represent branching to children. + * @param $depth a depth from 0 to max(depth) + * @return string a string to insert in front of the root unit + * @access private + */ +function GenerateTab($depth) { + $tab = ''; + + if ($depth != 0) { + $tab .= ' '; + } + + for ($i = 1; $i < $depth; $i++) { + $tab .= '| '; + } + + return $tab . '+--'; +} + +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->LogDefaults(); + + $allAdUnits = GetAllAdUnits($user); + + // Find the root ad unit. rootAdUnit can also be set to child unit to + // only build and display a portion of the tree. + $rootAdUnit = FindRootAdUnit($user); + + if (isset($rootAdUnit)) { + BuildAndDisplayAdUnitTree($rootAdUnit, $allAdUnits); + } else { + print "Could not build tree. No root ad unit found.\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/InventoryService/UpdateAdUnitsExample.php b/examples/Dfp/v201403/InventoryService/UpdateAdUnitsExample.php new file mode 100755 index 000000000..a9c662d9c --- /dev/null +++ b/examples/Dfp/v201403/InventoryService/UpdateAdUnitsExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201403'); + + // Create a statement to get all ad units. + $filterStatement = new Statement("LIMIT 500"); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + $adUnits = $page->results; + + // Update each local ad unit object by enabling AdSense. + foreach ($adUnits as $adUnit) { + $adUnit->inheritedAdSenseSettings->value->adSenseEnabled = TRUE; + } + + // Update the ad units on the server. + $adUnits = $inventoryService->updateAdUnits($adUnits); + + // 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"; + } + } + } else { + print "No ad units updated.\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/CreateLabelsExample.php b/examples/Dfp/v201403/LabelService/CreateLabelsExample.php new file mode 100755 index 000000000..cc104c0de --- /dev/null +++ b/examples/Dfp/v201403/LabelService/CreateLabelsExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201403'); + + // Create an array to store local label objects. + $labels = array(); + + for ($i = 0; $i < 5; $i++) { + $label = new Label(); + $label->name = 'Label #' . uniqid(); + $label->types = array('COMPETITIVE_EXCLUSION'); + $labels[] = $label; + } + + // Create the labels on the server. + $labels = $labelService->createLabels($labels); + + // Display results. + if (isset($labels)) { + foreach ($labels as $label) { + printf("A label with ID '%s', name '%s', and types {%s} was created.\n", + $label->id, $label->name, join(',', $label->types)); + } + } else { + print "No labels created.\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/DeactivateLabelsExample.php b/examples/Dfp/v201403/LabelService/DeactivateLabelsExample.php new file mode 100755 index 000000000..fc6230143 --- /dev/null +++ b/examples/Dfp/v201403/LabelService/DeactivateLabelsExample.php @@ -0,0 +1,111 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201403'); + + // Create statement text to get all active labels. + $filterStatementText = "WHERE isActive = true"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset); + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // Display results. + $labelIds = array(); + if (isset($page->results)) { + 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; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of labels to be deactivated: ' . sizeof($labelIds) . "\n"; + + if (sizeof($labelIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $labelIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateLabels(); + + // Perform action. + $result = $labelService->performLabelAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of labels deactivated: ' . $result->numChanges . "\n"; + } else { + print "No labels 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/LabelService/GetAllLabelsExample.php b/examples/Dfp/v201403/LabelService/GetAllLabelsExample.php new file mode 100755 index 000000000..638d97e54 --- /dev/null +++ b/examples/Dfp/v201403/LabelService/GetAllLabelsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201403'); + + // Set defaults for page and statement. + $page = new LabelPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all labels. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/LabelService/GetLabelsByStatementExample.php b/examples/Dfp/v201403/LabelService/GetLabelsByStatementExample.php new file mode 100755 index 000000000..ae5bfbbb4 --- /dev/null +++ b/examples/Dfp/v201403/LabelService/GetLabelsByStatementExample.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201403'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array()); + + // Create a statement to select labels ordered by name. + $filterStatement = + new Statement("ORDER BY name LIMIT 500", $vars); + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // 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++; + } + } + + 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/LabelService/UpdateLabelsExample.php b/examples/Dfp/v201403/LabelService/UpdateLabelsExample.php new file mode 100755 index 000000000..c29717bf2 --- /dev/null +++ b/examples/Dfp/v201403/LabelService/UpdateLabelsExample.php @@ -0,0 +1,95 @@ +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/CreateLicasExample.php b/examples/Dfp/v201403/LicaService/CreateLicasExample.php new file mode 100755 index 000000000..86468cdac --- /dev/null +++ b/examples/Dfp/v201403/LicaService/CreateLicasExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201403'); + + // Set the line item ID and creative ID to associate + // them with. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Create local LICA. + $lica = new LineItemCreativeAssociation(); + $lica->creativeId = $creativeId; + $lica->lineItemId = $lineItemId; + + $licas = array($lica); + + // Create the LICAs on the server. + $licas = $licaService->createLineItemCreativeAssociations($licas); + + // Display results. + if (isset($licas)) { + foreach ($licas as $lica) { + print 'A LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" was created.\n"; + } + } else { + print "No LICAs created."; + } +} 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/DeactivateLicasExample.php b/examples/Dfp/v201403/LicaService/DeactivateLicasExample.php new file mode 100755 index 000000000..8e21da589 --- /dev/null +++ b/examples/Dfp/v201403/LicaService/DeactivateLicasExample.php @@ -0,0 +1,127 @@ +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 statement text to select active LICAs for a given line item. + $filterStatementText = "WHERE lineItemId = :lineItemId AND status = 'ACTIVE'"; + + $offset = 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); + + // Display results. + $creativeIds = array(); + 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 + . "\" will be deactivated.\n"; + $i++; + $creativeIds[] = $lica->creativeId; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of LICAs to be deactivated: ' . sizeof($lica->creativeId) + . "\n"; + + if (sizeof($lica->creativeId) > 0) { + // Create action statement. + $filterStatementText = sprintf( + 'WHERE lineItemId = :lineItemId AND creativeId IN (%s)', + implode(',', $creativeIds)); + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeactivateLineItemCreativeAssociations(); + + // Perform action. + $result = $licaService->performLineItemCreativeAssociationAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of LICAs deactivated: ' . $result->numChanges . "\n"; + } else { + print "No LICAs 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/LicaService/GetAllLicasExample.php b/examples/Dfp/v201403/LicaService/GetAllLicasExample.php new file mode 100755 index 000000000..9eb4f7716 --- /dev/null +++ b/examples/Dfp/v201403/LicaService/GetAllLicasExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201403'); + + // Set defaults for page and statement. + $page = new LineItemCreativeAssociationPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all LICAs. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $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); + } 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); + } + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/LicaService/GetLicasByStatementExample.php b/examples/Dfp/v201403/LicaService/GetLicasByStatementExample.php new file mode 100755 index 000000000..d5eadf2b2 --- /dev/null +++ b/examples/Dfp/v201403/LicaService/GetLicasByStatementExample.php @@ -0,0 +1,93 @@ +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/LicaService/UpdateLicasExample.php b/examples/Dfp/v201403/LicaService/UpdateLicasExample.php new file mode 100755 index 000000000..46c5862e2 --- /dev/null +++ b/examples/Dfp/v201403/LicaService/UpdateLicasExample.php @@ -0,0 +1,96 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201403'); + + // Create a statement to get all LICAs. + $filterStatement = new Statement("LIMIT 500"); + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + if (isset($page->results)) { + $licas = $page->results; + + // Update each local LICA object by changing its destination URL. + foreach ($licas as $lica) { + $lica->destinationUrl = 'http://news.google.com'; + } + + // Update the LICAs on the server. + $licas = $licaService->updateLineItemCreativeAssociations($licas); + + // 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"; + } +} 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 new file mode 100755 index 000000000..d0d55fe41 --- /dev/null +++ b/examples/Dfp/v201403/LineItemService/ActivateLineItemsExample.php @@ -0,0 +1,132 @@ +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 new file mode 100755 index 000000000..f41cc6622 --- /dev/null +++ b/examples/Dfp/v201403/LineItemService/AuditLineItemsGeoTargetingExample.php @@ -0,0 +1,213 @@ +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/CreateLineItemsExample.php b/examples/Dfp/v201403/LineItemService/CreateLineItemsExample.php new file mode 100755 index 000000000..abc55e311 --- /dev/null +++ b/examples/Dfp/v201403/LineItemService/CreateLineItemsExample.php @@ -0,0 +1,186 @@ +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_PLACEMENT_ID_HERE'); + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedPlacementIds = $targetPlacementIds; + + // Create geographical targeting. + $geoTargeting = new GeoTargeting(); + + // Include the US, Quebec (Canada), and postal code B3P (Canada). + $countryLocation = new DfpLocation(); + $countryLocation->id = 2840; + + $regionLocation = new DfpLocation(); + $regionLocation->id = 20123; + + $postalCodeLocation = new DfpLocation(); + $postalCodeLocation->id = 9000093; + + $geoTargeting->targetedLocations = array($countryLocation, $regionLocation); + + // Exclude Chicago and the New York metro area. + $cityLocation = new DfpLocation(); + $cityLocation->id = 1016367; + + $metroLocation = new DfpLocation(); + $metroLocation->id = 200501; + $geoTargeting->excludedLocations = array($cityLocation, $metroLocation); + + // Exclude users from US federal government domains. + $userDomainTargeting = new UserDomainTargeting(array('usa.gov'), FALSE); + + // Target only the weekend in the browser's timezone. + $saturdayDayPart = new DayPart(); + $saturdayDayPart->dayOfWeek = 'SATURDAY'; + $saturdayDayPart->startTime = new TimeOfDay(0, 'ZERO'); + $saturdayDayPart->endTime = new TimeOfDay(24, 'ZERO'); + + $sundayDayPart = new DayPart(); + $sundayDayPart->dayOfWeek = 'SUNDAY'; + $sundayDayPart->startTime = new TimeOfDay(0, 'ZERO'); + $sundayDayPart->endTime = new TimeOfDay(24, 'ZERO'); + + // Create day-part targeting. + $dayPartTargeting = new DayPartTargeting(); + $dayPartTargeting->timeZone = 'BROWSER'; + $dayPartTargeting->dayParts = array($saturdayDayPart, $sundayDayPart); + + // Target just the Chrome browser. + $browserTechnology = new Technology(); + $browserTechnology->id = 500072; + + // Create technology targeting. + $browserTargeting = new BrowserTargeting(); + $browserTargeting->browsers = array($browserTechnology); + $technologyTargeting = new TechnologyTargeting(); + $technologyTargeting->browserTargeting = $browserTargeting; + + // Create targeting. + $targeting = new Targeting(); + $targeting->inventoryTargeting = $inventoryTargeting; + $targeting->geoTargeting = $geoTargeting; + $targeting->userDomainTargeting = $userDomainTargeting; + $targeting->dayPartTargeting = $dayPartTargeting; + $targeting->technologyTargeting = $technologyTargeting; + + // Create an array to store local line item objects. + $lineItems = array(); + + for ($i = 0; $i < 5; $i++) { + $lineItem = new LineItem(); + $lineItem->name = 'Line item #' . uniqid(); + $lineItem->orderId = $orderId; + $lineItem->targeting = $targeting; + $lineItem->lineItemType = 'STANDARD'; + $lineItem->allowOverbook = 'TRUE'; + + // 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 creative rotation type to even. + $lineItem->creativeRotationType = 'EVEN'; + + // 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'; + + $lineItems[] = $lineItem; + } + + // Create the line items on the server. + $lineItems = $lineItemService->createLineItems($lineItems); + + // 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"; + } + } else { + print "No line items created."; + } +} 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 new file mode 100755 index 000000000..6c5f38823 --- /dev/null +++ b/examples/Dfp/v201403/LineItemService/CreateMobileLineItemExample.php @@ -0,0 +1,157 @@ +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/CreateVideoLineItemExample.php b/examples/Dfp/v201403/LineItemService/CreateVideoLineItemExample.php new file mode 100755 index 000000000..370d2549b --- /dev/null +++ b/examples/Dfp/v201403/LineItemService/CreateVideoLineItemExample.php @@ -0,0 +1,168 @@ +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); + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedAdUnits = + array(new AdUnitTargeting($targetedVideoAdUnitId, TRUE)); + + // Create video position targeting. + $videoPosition = new VideoPosition; + $videoPosition->positionType = 'PREROLL'; + $videoPositionTarget = new VideoPositionTarget(); + $videoPositionTarget->videoPosition = $videoPosition; + $videoPositionTargeting = new VideoPositionTargeting(); + $videoPositionTargeting->targetedPositions = array($videoPositionTarget); + + // Create targeting. + $targeting = new Targeting(); + $targeting->customTargeting = $customCriteriaSet; + $targeting->inventoryTargeting = $inventoryTargeting; + $targeting->videoPositionTargeting = $videoPositionTargeting; + + // Create local line item object. + $lineItem = new LineItem(); + $lineItem->name = sprintf("Video line item #%s", uniqid()); + $lineItem->orderId = $orderId; + $lineItem->targeting = $targeting; + $lineItem->lineItemType = 'SPONSORSHIP'; + $lineItem->allowOverbook = TRUE; + + // Set the environment type to video. + $lineItem->environmentType = 'VIDEO_PLAYER'; + + // Set the creative rotation type to optimized. + $lineItem->creativeRotationType = 'OPTIMIZED'; + + // Create the master creative placeholder. + $creativeMasterPlaceholder = new CreativePlaceholder(); + $creativeMasterPlaceholder->size = new Size(400, 300, FALSE); + + // Create companion creative placeholders. + $companionCreativePlaceholder1 = new CreativePlaceholder(); + $companionCreativePlaceholder1->size = new Size(300, 250, FALSE); + + $companionCreativePlaceholder2 = new CreativePlaceholder(); + $companionCreativePlaceholder2->size = new Size(728, 90, FALSE); + + // Set companion creative placeholders. + $creativeMasterPlaceholder->companions = + array($companionCreativePlaceholder1, $companionCreativePlaceholder2); + + // Set the size of creatives that can be associated with this line item. + $lineItem->creativePlaceholders = array($creativeMasterPlaceholder); + + // Set delivery of video companions to optional. + $lineItem->companionDeliveryOption = 'OPTIONAL'; + + // Set the length of the line item to run. + $lineItem->startDateTimeType = 'IMMEDIATELY'; + $lineItem->endDateTime = + DateTimeUtils::GetDfpDateTime(new DateTime('+1 month')); + + // Set the cost per day to $1. + $lineItem->costType = 'CPD'; + $lineItem->costPerUnit = new Money('USD', 1000000); + + // Set the percentage to be 100%. + $lineItem->unitsBought = 100; + + // 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."); + } +} 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/GetAllLineItemsExample.php b/examples/Dfp/v201403/LineItemService/GetAllLineItemsExample.php new file mode 100755 index 000000000..bb071a615 --- /dev/null +++ b/examples/Dfp/v201403/LineItemService/GetAllLineItemsExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201403'); + + // Set defaults for page and statement. + $page = new LineItemPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all line items. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/GetLineItemsByStatementExample.php b/examples/Dfp/v201403/LineItemService/GetLineItemsByStatementExample.php new file mode 100755 index 000000000..df3bda0c3 --- /dev/null +++ b/examples/Dfp/v201403/LineItemService/GetLineItemsByStatementExample.php @@ -0,0 +1,94 @@ +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 new file mode 100755 index 000000000..ae2e8fe57 --- /dev/null +++ b/examples/Dfp/v201403/LineItemService/GetRecentlyUpdatedLineItems.php @@ -0,0 +1,103 @@ +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/TargetCustomCriteriaExample.php b/examples/Dfp/v201403/LineItemService/TargetCustomCriteriaExample.php new file mode 100755 index 000000000..880b3542c --- /dev/null +++ b/examples/Dfp/v201403/LineItemService/TargetCustomCriteriaExample.php @@ -0,0 +1,122 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201403'); + + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $customCriteriaIds1 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + $customCriteriaIds2 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + $customCriteriaIds3 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + + // Create custom criteria. + $customCriteria1 = new CustomCriteria(); + $customCriteria1->keyId = $customCriteriaIds1[0]; + $customCriteria1->valueIds = array($customCriteriaIds1[1]); + $customCriteria1->operator = 'IS'; + + $customCriteria2 = new CustomCriteria(); + $customCriteria2->keyId = $customCriteriaIds2[0]; + $customCriteria2->valueIds = array($customCriteriaIds2[1]); + $customCriteria2->operator = 'IS_NOT'; + + $customCriteria3 = new CustomCriteria(); + $customCriteria3->keyId = $customCriteriaIds3[0]; + $customCriteria3->valueIds = array($customCriteriaIds3[1]); + $customCriteria3->operator = 'IS'; + + // Create the custom criteria set that will resemble: + // + // ($customCriteria1.key == $customCriteria1.value OR + // ($customCriteria2.key != $customCriteria2.value AND + // $customCriteria3.key == $customCriteria3.value)) + $topCustomCriteriaSet = new CustomCriteriaSet(); + $topCustomCriteriaSet->logicalOperator = 'OR'; + + $subCustomCriteriaSet = new CustomCriteriaSet(); + $subCustomCriteriaSet->logicalOperator = 'AND'; + $subCustomCriteriaSet->children = array($customCriteria2, $customCriteria3); + $topCustomCriteriaSet->children = + 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); + + // Get the line item. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + $lineItem = $page->results[0]; + + // Set the custom criteria targeting on the line item. + $lineItem->targeting->customTargeting = $topCustomCriteriaSet; + + // Update the line item on the server. + $lineItems = $lineItemService->updateLineItems(array($lineItem)); + + foreach ($lineItems as $lineItem) { + printf("Line item with ID '%s' was updated.\n", $lineItem->id); + } +} 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/UpdateLineItemsExample.php b/examples/Dfp/v201403/LineItemService/UpdateLineItemsExample.php new file mode 100755 index 000000000..40b42bd26 --- /dev/null +++ b/examples/Dfp/v201403/LineItemService/UpdateLineItemsExample.php @@ -0,0 +1,104 @@ +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/NetworkService/GetAllNetworksExample.php b/examples/Dfp/v201403/NetworkService/GetAllNetworksExample.php new file mode 100755 index 000000000..2d3b45796 --- /dev/null +++ b/examples/Dfp/v201403/NetworkService/GetAllNetworksExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201403'); + + // Get all networks that you have access to with the current login + // 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++; + } + } + + print 'Number of results found: ' . $i . "\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/NetworkService/GetCurrentNetworkExample.php b/examples/Dfp/v201403/NetworkService/GetCurrentNetworkExample.php new file mode 100755 index 000000000..b6b157575 --- /dev/null +++ b/examples/Dfp/v201403/NetworkService/GetCurrentNetworkExample.php @@ -0,0 +1,65 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201403'); + + // Get the current network. + $network = $networkService->getCurrentNetwork(); + + print 'Current network has network code "' . $network->networkCode + . '" and display name "' . $network->displayName . "\".\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/NetworkService/MakeTestNetworkExample.php b/examples/Dfp/v201403/NetworkService/MakeTestNetworkExample.php new file mode 100755 index 000000000..e27a9c8c7 --- /dev/null +++ b/examples/Dfp/v201403/NetworkService/MakeTestNetworkExample.php @@ -0,0 +1,78 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201403'); + + // Make the test network. + $network = $networkService->makeTestNetwork(); + + print 'Test network with network code "' . $network->networkCode + . '" and display name "' . $network->displayName . "\" created.\n" + . ' You may now sign in at http://www.google.com/dfp/main?networkCode=' + . $network->networkCode . "\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 new file mode 100755 index 000000000..1260ad3a6 --- /dev/null +++ b/examples/Dfp/v201403/OrderService/ApproveOrdersExample.php @@ -0,0 +1,128 @@ +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/CreateOrdersExample.php b/examples/Dfp/v201403/OrderService/CreateOrdersExample.php new file mode 100755 index 000000000..602ac19d0 --- /dev/null +++ b/examples/Dfp/v201403/OrderService/CreateOrdersExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetOrderService('v201403'); + + // Set the advertiser (company), salesperson, and trafficker to assign to each + // order. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + $salespersonId = 'INSERT_SALESPERSON_ID_HERE'; + $traffickerId = 'INSERT_TRAFFICKER_ID_HERE'; + + // Create an array to store local order objects. + $orders = array(); + + for ($i = 0; $i < 5; $i++) { + $order = new Order(); + $order->name = 'Order #' . $i; + $order->advertiserId = $advertiserId; + $order->salespersonId = $salespersonId; + $order->traffickerId = $traffickerId; + + $orders[] = $order; + } + + // Create the orders on the server. + $orders = $orderService->createOrders($orders); + + // Display results. + if (isset($orders)) { + foreach ($orders as $order) { + print 'An order with with ID "' . $order->id + . '" and name "' . $order->name + . "\" was created.\n"; + } + } else { + print "No orders created."; + } +} 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/GetAllOrdersExample.php b/examples/Dfp/v201403/OrderService/GetAllOrdersExample.php new file mode 100755 index 000000000..fc9572149 --- /dev/null +++ b/examples/Dfp/v201403/OrderService/GetAllOrdersExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201403'); + + // Set defaults for page and statement. + $page = new OrderPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all orders. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/GetOrdersByStatementExample.php b/examples/Dfp/v201403/OrderService/GetOrdersByStatementExample.php new file mode 100755 index 000000000..87f227a1a --- /dev/null +++ b/examples/Dfp/v201403/OrderService/GetOrdersByStatementExample.php @@ -0,0 +1,92 @@ +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 new file mode 100755 index 000000000..10db8d55e --- /dev/null +++ b/examples/Dfp/v201403/OrderService/UpdateOrdersExample.php @@ -0,0 +1,99 @@ +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/CreatePlacementsExample.php b/examples/Dfp/v201403/PlacementService/CreatePlacementsExample.php new file mode 100755 index 000000000..5cef872ee --- /dev/null +++ b/examples/Dfp/v201403/PlacementService/CreatePlacementsExample.php @@ -0,0 +1,137 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201403'); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201403'); + + // Create local placement object to store skyscraper ad units. + $skyscraperAdUnitPlacement = new Placement(); + $skyscraperAdUnitPlacement->name = + 'Skyscraper AdUnit Placement #' . time(); + $skyscraperAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 120x600'; + + // Create local placement object to store medium square ad units. + $mediumSquareAdUnitPlacement = new Placement(); + $mediumSquareAdUnitPlacement->name = + 'Medium Square AdUnit Placement #' . time(); + $mediumSquareAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 300x250'; + + // Create local placement object to store banner ad units. + $bannerAdUnitPlacement = new Placement(); + $bannerAdUnitPlacement->name = 'Banner AdUnit Placement #' . time(); + $bannerAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 468x60'; + + $placementList = array(); + + // Get the first 500 ad units. + $filterStatement = new Statement('LIMIT 500'); + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // Separate the ad units by size. + if (isset($page->results)) { + foreach ($page->results as $adUnit) { + if (isset($adUnit->parentId)) { + foreach ((array) $adUnit->adUnitSizes as $adUnitSize) { + $size = $adUnitSize->size; + if ($size->width == 300 && $size->height == 250) { + $mediumSquareAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } else if ($size->width == 120 && $size->height == 600) { + $skyscraperAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } else if ($size->width == 468 && $size->height == 60) { + $bannerAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } + } + } + } + } + + // Only create placements with one or more ad units. + if (count($skyscraperAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $skyscraperAdUnitPlacement; + } + if (count($mediumSquareAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $mediumSquareAdUnitPlacement; + } + if (count($bannerAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $bannerAdUnitPlacement; + } + + // Create the placements on the server. + $placements = $placementService->createPlacements($placementList); + + // Display results. + if (isset($placements)) { + foreach ($placements as $placement) { + print 'A placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and containing ad units {' . + implode(', ', (array) $placement->targetedAdUnitIds) + . "} was created.\n"; + } + } else { + print "No placements created.\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/DeactivatePlacementsExample.php b/examples/Dfp/v201403/PlacementService/DeactivatePlacementsExample.php new file mode 100755 index 000000000..a8b2e523f --- /dev/null +++ b/examples/Dfp/v201403/PlacementService/DeactivatePlacementsExample.php @@ -0,0 +1,115 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201403'); + + // Create statement text to select active placements. + $filterStatementText = "WHERE status = 'ACTIVE'"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset); + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // Display results. + $placementIds = array(); + 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 + . "\" will be deactivated.\n"; + $i++; + $placementIds[] = $placement->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of placements to be deactivated: ' . sizeof($placementIds) + . "\n"; + + if (sizeof($placementIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $placementIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivatePlacements(); + + // Perform action. + $result = + $placementService->performPlacementAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of placements deactivated: ' . $result->numChanges . "\n"; + } else { + print "No placements 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/PlacementService/GetAllPlacementsExample.php b/examples/Dfp/v201403/PlacementService/GetAllPlacementsExample.php new file mode 100755 index 000000000..a0c4b2fdb --- /dev/null +++ b/examples/Dfp/v201403/PlacementService/GetAllPlacementsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201403'); + + // Set defaults for page and statement. + $page = new PlacementPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all placements. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $placement) { + print $i . ') Placement with ID "' . $placement->id + . '" and name "' . $placement->name + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/PlacementService/GetPlacementsByStatementExample.php b/examples/Dfp/v201403/PlacementService/GetPlacementsByStatementExample.php new file mode 100755 index 000000000..5154c0763 --- /dev/null +++ b/examples/Dfp/v201403/PlacementService/GetPlacementsByStatementExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201403'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('status' => new TextValue('ACTIVE'))); + + // Create a statement to only select active placements. + $filterStatement = new Statement("WHERE status = :status LIMIT 500", $vars); + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // 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++; + } + } + + 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/PlacementService/UpdatePlacementsExample.php b/examples/Dfp/v201403/PlacementService/UpdatePlacementsExample.php new file mode 100755 index 000000000..86d8004c6 --- /dev/null +++ b/examples/Dfp/v201403/PlacementService/UpdatePlacementsExample.php @@ -0,0 +1,102 @@ +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/PublisherQueryLanguageService/FetchMatchTables.php b/examples/Dfp/v201403/PublisherQueryLanguageService/FetchMatchTables.php new file mode 100755 index 000000000..4acea1987 --- /dev/null +++ b/examples/Dfp/v201403/PublisherQueryLanguageService/FetchMatchTables.php @@ -0,0 +1,116 @@ +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, + "Line-Item-Matchtable"); + $adUnitFilePath = fetchMatchTable($adUnitPqlTemplate, $pqlService, + "Ad-Unit-Matchtable"); + + printf("Line items saved to %s\n", $lineItemFilePath); + printf("Ad units saved to %s\n", $adUnitFilePath); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + +/** + * 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; + + do { + $resultSet = $pqlService->select(new Statement(sprintf($pqlTemplate, + $SUGGESTED_PAGE_LIMIT, $offset))); + + // Combine result sets with previous ones. + $combinedResultSet = (!isset($combinedResultSet)) + ? $resultSet + : Pql::CombineResultSets($combinedResultSet, $resultSet); + + $offset += $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(), $fileName, 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); + + return $filePath; +} + diff --git a/examples/Dfp/v201403/PublisherQueryLanguageService/GetGeoTargets.php b/examples/Dfp/v201403/PublisherQueryLanguageService/GetGeoTargets.php new file mode 100755 index 000000000..1521384ea --- /dev/null +++ b/examples/Dfp/v201403/PublisherQueryLanguageService/GetGeoTargets.php @@ -0,0 +1,116 @@ +LogDefaults(); + + // Get the PublisherQueryLanguageService. + $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201403'); + + // 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; + $i = 0; + + do { + // Get all cities. + $resultSet = $pqlService->select(new Statement(sprintf($pqlTemplate, + $SUGGESTED_PAGE_LIMIT, $offset), $vars)); + + // Combine result sets with previous ones. + $combinedResultSet = (!isset($combinedResultSet)) + ? $resultSet + : Pql::CombineResultSets($combinedResultSet, $resultSet); + + printf("%d) %d geo targets beginning at offset %d were found.\n", $i++, + count($resultSet->rows), $offset); + + $offset += $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. + fputcsv($fp, Pql::GetColumnLabels($combinedResultSet)); + foreach ($combinedResultSet->rows as $row) { + fputcsv($fp, Pql::GetRowStringValues($row)); + } + fclose($fp); + ob_end_clean(); + + printf("Geo targets 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/GetLineItemsNamedLike.php b/examples/Dfp/v201403/PublisherQueryLanguageService/GetLineItemsNamedLike.php new file mode 100755 index 000000000..f86939803 --- /dev/null +++ b/examples/Dfp/v201403/PublisherQueryLanguageService/GetLineItemsNamedLike.php @@ -0,0 +1,104 @@ +LogDefaults(); + + // Get the PublisherQueryLanguageService. + $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201403'); + + // 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; + $i = 0; + + do { + // Get line items like 'line item%'. + $resultSet = $pqlService->select(new Statement(sprintf($pqlTemplate, + $SUGGESTED_PAGE_LIMIT, $offset))); + + // Combine result sets with previous ones. + $combinedResultSet = (!isset($combinedResultSet)) + ? $resultSet + : Pql::CombineResultSets($combinedResultSet, $resultSet); + + printf("%d) %d line items beginning at offset %d were found.\n", $i++, + count($resultSet->rows), $offset); + + $offset += $SUGGESTED_PAGE_LIMIT; + } while (isset($resultSet->rows) && count($resultSet->rows) > 0); + + // Change to your file location. + $filePath = sprintf("%s/Line-Items-Named-Like-%s.csv", sys_get_temp_dir(), + uniqid()); + ob_start(); + $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); + ob_end_clean(); + + printf("Line items 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/ReportService/DisplayReportExample.php b/examples/Dfp/v201403/ReportService/DisplayReportExample.php new file mode 100755 index 000000000..1ecbcbd10 --- /dev/null +++ b/examples/Dfp/v201403/ReportService/DisplayReportExample.php @@ -0,0 +1,78 @@ +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; + + $downloadUrl = $reportService->getReportDownloadUrlWithOptions($reportJobId, + $reportDownloadOptions); + + printf("Downloading report from URL '%s'.\n", $downloadUrl); + $report = ReportUtils::DownloadReport($downloadUrl); + printf("\n%s\n", $report); +} 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/DownloadReportExample.php b/examples/Dfp/v201403/ReportService/DownloadReportExample.php new file mode 100755 index 000000000..b54129dfb --- /dev/null +++ b/examples/Dfp/v201403/ReportService/DownloadReportExample.php @@ -0,0 +1,81 @@ +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/RunDeliveryReportExample.php b/examples/Dfp/v201403/ReportService/RunDeliveryReportExample.php new file mode 100755 index 000000000..c54d545e8 --- /dev/null +++ b/examples/Dfp/v201403/ReportService/RunDeliveryReportExample.php @@ -0,0 +1,108 @@ +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(); + + // 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; + $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/ReportService/RunInventoryReportExample.php b/examples/Dfp/v201403/ReportService/RunInventoryReportExample.php new file mode 100755 index 000000000..d0a6ca5e9 --- /dev/null +++ b/examples/Dfp/v201403/ReportService/RunInventoryReportExample.php @@ -0,0 +1,113 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201403'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201403'); + + // 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 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; + $reportQuery->adUnitView = 'HIERARCHICAL'; + $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/ReportService/RunMergedDeliveryReportExample.php b/examples/Dfp/v201403/ReportService/RunMergedDeliveryReportExample.php new file mode 100755 index 000000000..9e6696ed4 --- /dev/null +++ b/examples/Dfp/v201403/ReportService/RunMergedDeliveryReportExample.php @@ -0,0 +1,94 @@ +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('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'); + $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/ReportService/RunReachReportExample.php b/examples/Dfp/v201403/ReportService/RunReachReportExample.php new file mode 100755 index 000000000..49ce2633d --- /dev/null +++ b/examples/Dfp/v201403/ReportService/RunReachReportExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201403'); + + // Create report job. + $reportJob = new ReportJob(); + + // 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', + 'REACH'); + $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) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201403/ReportService/RunReportWithCustomFields.php b/examples/Dfp/v201403/ReportService/RunReportWithCustomFields.php new file mode 100755 index 000000000..0728968e7 --- /dev/null +++ b/examples/Dfp/v201403/ReportService/RunReportWithCustomFields.php @@ -0,0 +1,133 @@ +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 new file mode 100755 index 000000000..a64f50272 --- /dev/null +++ b/examples/Dfp/v201403/ReportService/RunSalesReportExample.php @@ -0,0 +1,90 @@ +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/ApproveSuggestedAdUnitsExample.php b/examples/Dfp/v201403/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php new file mode 100755 index 000000000..dde1866ee --- /dev/null +++ b/examples/Dfp/v201403/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201403'); + + // Set the number of requests to 50 or more. + define('NUMBER_OF_REQUESTS', 50); + + // Create statement text to select all suggested ad units + // that have been requested 50 times or more. + $filterStatementText = 'WHERE numRequests >= ' . NUMBER_OF_REQUESTS; + + // Get all suggested ad units. + $allSuggestedAdUnits = ServiceUtils::GetAllObjects($suggestedAdUnitService, + 'getSuggestedAdUnitsByStatement', $filterStatementText); + + $numSuggestedAdUnits = 0; + foreach ($allSuggestedAdUnits as $suggestedAdUnit) { + $numSuggestedAdUnits++; + printf("%d) Suggested ad unit with ID '%s' and number of requests '%d' " + . "will be approved.\n", $numSuggestedAdUnits, $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + } + + printf("Number of suggested ad units to be approved: %d\n", + $numSuggestedAdUnits); + + if ($numSuggestedAdUnits > 0) { + // Create action statement. + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new ApproveSuggestedAdUnit(); + + // Perform action. + $result = $suggestedAdUnitService->performSuggestedAdUnitAction($action, + $filterStatementText); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of suggested ad units approved: %d\n", + $result->numChanges); + } else { + print "No suggested ad units 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/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php b/examples/Dfp/v201403/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php new file mode 100755 index 000000000..a0097c40b --- /dev/null +++ b/examples/Dfp/v201403/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201403'); + + // Set defaults for page and statement. + $page = new SuggestedAdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all suggested ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php b/examples/Dfp/v201403/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php new file mode 100755 index 000000000..9c86cebaf --- /dev/null +++ b/examples/Dfp/v201403/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php @@ -0,0 +1,88 @@ +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/CreateTeamsExample.php b/examples/Dfp/v201403/TeamService/CreateTeamsExample.php new file mode 100755 index 000000000..7ff07d26f --- /dev/null +++ b/examples/Dfp/v201403/TeamService/CreateTeamsExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201403'); + + // Create an array to store local team objects. + $teams = array(); + + for ($i = 0; $i < 5; $i++) { + $team = new Team(); + $team->name = 'Team #' . uniqid(); + $team->hasAllCompanies = false; + $team->hasAllInventory = false; + $teams[] = $team; + } + + // Create the teams on the server. + $teams = $teamService->createTeams($teams); + + // Display results. + if (isset($teams)) { + foreach ($teams as $team) { + print 'A team with ID "' . $team->id + . '" and name "'. $team->name + . '" was created."' . "\n"; + } + } else { + print "No teams created.\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/GetAllTeamsExample.php b/examples/Dfp/v201403/TeamService/GetAllTeamsExample.php new file mode 100755 index 000000000..e3ac696a3 --- /dev/null +++ b/examples/Dfp/v201403/TeamService/GetAllTeamsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201403'); + + // Set defaults for page and statement. + $page = new TeamPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all teams. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get teams by statement. + $page = $teamService->getTeamsByStatement($filterStatement); + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/GetTeamsByStatementExample.php b/examples/Dfp/v201403/TeamService/GetTeamsByStatementExample.php new file mode 100755 index 000000000..d96ba4b69 --- /dev/null +++ b/examples/Dfp/v201403/TeamService/GetTeamsByStatementExample.php @@ -0,0 +1,83 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201403'); + + // Create a statement to order teams by name. + $filterStatementText = 'ORDER BY name LIMIT 500'; + $filterStatement = new Statement($filterStatementText); + + // Get teams by statement. + $page = $teamService->getTeamsByStatement($filterStatement); + + // 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++; + } + } + + 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 new file mode 100755 index 000000000..b1fd232c5 --- /dev/null +++ b/examples/Dfp/v201403/TeamService/UpdateTeamsExample.php @@ -0,0 +1,106 @@ +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/CreateUsersExample.php b/examples/Dfp/v201403/UserService/CreateUsersExample.php new file mode 100755 index 000000000..646781751 --- /dev/null +++ b/examples/Dfp/v201403/UserService/CreateUsersExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201403'); + + // Set the user's email addresses and names. + $emailAndNames = + array(array('INSERT_EMAIL_ADDRESS_HERE', 'INSERT_NAME_HERE'), + array('INSERT_ANOTHER_EMAIL_ADDRESS_HERE', + 'INSERT_ANOTHER_NAME_HERE')); + + // Roles can be obtained by running GetAllRolesExample.php. + $roleId = 'INSERT_ROLE_ID_HERE'; + + // Create an array to store local user objects. + $users = array(); + + for ($i = 0; $i < sizeof($emailAndNames); $i++) { + $newUser = new User(); + $newUser->email = $emailAndNames[$i][0]; + $newUser->name = $emailAndNames[$i][1]; + $newUser->roleId = $roleId; + $newUser->preferredLocale = 'en_US'; + + $users[] = $newUser; + } + + // Create the users on the server. + $users = $userService->createUsers($users); + + // Display results. + if (isset($users)) { + foreach ($users as $user) { + print 'A user with ID "' . $user->id + . '", email "' . $user->email + . '", and role "' . $user->roleName . "\" was created.\n"; + } + } else { + print "No users created.\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/DeactivateUserExample.php b/examples/Dfp/v201403/UserService/DeactivateUserExample.php new file mode 100755 index 000000000..e2eaa9ee7 --- /dev/null +++ b/examples/Dfp/v201403/UserService/DeactivateUserExample.php @@ -0,0 +1,121 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201403'); + + // Set the ID of the user to deactivate. + $userId = 'INSERT_USER_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('id' => new NumberValue($userId))); + + // Create statement text to get user by id. + $filterStatementText = "WHERE id = :id"; + + $offset = 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); + + // Display results. + $userIds = array(); + if (isset($page->results)) { + $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; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of users to be deactivated: ' . sizeof($userIds) . "\n"; + + if (sizeof($userIds) > 0) { + // Create action statement. + $filterStatementText = sprintf('WHERE id IN (%s)', implode(',', $userIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateUsers(); + + // Perform action. + $result = $userService->performUserAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of users deactivated: ' . $result->numChanges . "\n"; + } else { + print "No users 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/UserService/GetAllRolesExample.php b/examples/Dfp/v201403/UserService/GetAllRolesExample.php new file mode 100755 index 000000000..db63d1d24 --- /dev/null +++ b/examples/Dfp/v201403/UserService/GetAllRolesExample.php @@ -0,0 +1,72 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201403'); + + // 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"; + } + } + print 'Number of results found: ' . sizeof($roles) . "\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/GetAllUsersExample.php b/examples/Dfp/v201403/UserService/GetAllUsersExample.php new file mode 100755 index 000000000..df8135cc5 --- /dev/null +++ b/examples/Dfp/v201403/UserService/GetAllUsersExample.php @@ -0,0 +1,87 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201403'); + + // Set defaults for page and statement. + $page = new UserPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all users. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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/UserService/GetCurrentUserExample.php b/examples/Dfp/v201403/UserService/GetCurrentUserExample.php new file mode 100755 index 000000000..461fb3259 --- /dev/null +++ b/examples/Dfp/v201403/UserService/GetCurrentUserExample.php @@ -0,0 +1,65 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201403'); + + // Get the current user. + $usr = $userService->getCurrentUser(); + + printf("User with ID '%s', email '%s', and role '%s' was found.\n", + $usr->id, $usr->email, $usr->roleName); +} 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/GetUserExample.php b/examples/Dfp/v201403/UserService/GetUserExample.php new file mode 100755 index 000000000..bbc8c7beb --- /dev/null +++ b/examples/Dfp/v201403/UserService/GetUserExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201403'); + + // Set the ID of the user to get. + $userId = 'INSERT_USER_ID_HERE'; + + // Get the user. + $usr = $userService->getUser($userId); + + // Display results. + if (isset($usr)) { + print 'User with ID "' . $usr->id + . '", email "' . $usr->email + . '", and role "' . $usr->roleName . "\" was found.\n"; + } else { + print "No user found for this ID.\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 new file mode 100755 index 000000000..6710362e5 --- /dev/null +++ b/examples/Dfp/v201403/UserService/GetUsersByStatementExample.php @@ -0,0 +1,81 @@ +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/UserService/UpdateUsersExample.php b/examples/Dfp/v201403/UserService/UpdateUsersExample.php new file mode 100755 index 000000000..5185fd430 --- /dev/null +++ b/examples/Dfp/v201403/UserService/UpdateUsersExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201403'); + + // Create a statement to get all users. + $filterStatement = new Statement('LIMIT 500'); + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + if (isset($page->results)) { + $users = $page->results; + + // Update each local user object by changing its name. + foreach ($users as $usr) { + $usr->name .= ' Sr.'; + } + + // Update the users on the server. + $users = $userService->updateUsers($users); + + // 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"; + } +} 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/CreateUserTeamAssociationsExample.php b/examples/Dfp/v201403/UserTeamAssociationService/CreateUserTeamAssociationsExample.php new file mode 100755 index 000000000..7647da3cd --- /dev/null +++ b/examples/Dfp/v201403/UserTeamAssociationService/CreateUserTeamAssociationsExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201403'); + + // Set the team ID and user IDs to associate together. + $teamId = 'INSERT_TEAM_ID_HERE'; + $userIds = array('INSERT_USER_ID_HERE'); + + // Create an array to store local user team association objects. + $utas = array(); + + // For each user, associate it with the given team. + foreach ($userIds as $userId) { + // Create local user team association. + $uta = new UserTeamAssociation(); + $uta->teamId = $teamId; + $uta->userId = $userId; + $utas[] = $uta; + } + + // Create the user team associations on the server. + $utas = $userTeamAssociationService->createUserTeamAssociations($utas); + + // Display results. + if (isset($utas)) { + foreach ($utas as $uta) { + print 'A user team association between user with ID "' . $uta->userId + . '" and team with ID "' . $uta->teamId + . "\" was created.\n"; + } + } else { + print "No user team associations created."; + } +} 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/DeleteUserTeamAssociationsExample.php b/examples/Dfp/v201403/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php new file mode 100755 index 000000000..a3d7e93f5 --- /dev/null +++ b/examples/Dfp/v201403/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201403'); + + // Set the user to remove from its teams. + $userId = 'INSERT_USER_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('userId' => new NumberValue($userId))); + + // Create statement text to select user team associations by the user ID. + $filterStatementText = "WHERE userId = :userId "; + + $offset = 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); + + // 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 + . "\" will be deleted.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of user team associations to be deleted: ' . $i . "\n"; + + if ($i > 0) { + // Create action statement. + $filterStatementText = 'WHERE userId = :userId '; + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeleteUserTeamAssociations(); + + // Perform action. + $result = $userTeamAssociationService->performUserTeamAssociationAction( + $action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of user team associations deleted: ' + . $result->numChanges . "\n"; + } else { + print "No user team associations were deleted.\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/GetAllUserTeamAssociationsExample.php b/examples/Dfp/v201403/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php new file mode 100755 index 000000000..10ad77ea4 --- /dev/null +++ b/examples/Dfp/v201403/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201403'); + + // Set defaults for page and statement. + $page = new UserTeamAssociationPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all user team associations. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // 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++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + 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 new file mode 100755 index 000000000..eb8a4151a --- /dev/null +++ b/examples/Dfp/v201403/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php @@ -0,0 +1,94 @@ +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/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php b/examples/Dfp/v201403/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php new file mode 100755 index 000000000..8dc0356d4 --- /dev/null +++ b/examples/Dfp/v201403/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php @@ -0,0 +1,102 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201403'); + + // Set the user to set to read only access within its teams. + $userId = "INSERT_USER_ID_HERE"; + + // 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); + + $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( + $filterStatement); + + if (isset($page->results)) { + $utas = $page->results; + + // Update each local user team association to read only access. + foreach ($utas as $uta) { + $uta->overriddenTeamAccessType = 'READ_ONLY'; + } + + // Update the user team associations on the server. + $utas = $userTeamAssociationService->updateUserTeamAssociations($utas); + + // 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"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/src/Google/Api/Ads/AdWords/Lib/AdWordsConstants.php b/src/Google/Api/Ads/AdWords/Lib/AdWordsConstants.php new file mode 100755 index 000000000..23d8d3a87 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/Lib/AdWordsConstants.php @@ -0,0 +1,55 @@ +NULL if working in + * non-WSDL mode + * @param array $options the SOAP client options + * @param AdsUser $user the user which is responsible for this client + * @param string $serviceName the name of the service which is making this + * call + * @param string $serviceNamespace the namespace of the service + */ + public function __construct($wsdl, array $options, AdsUser $user, + $serviceName, $serviceNamespace) { + parent::__construct($wsdl, $options, $user, $serviceName, + $serviceNamespace); + } + + /** + * Overrides the method __doRequest(). When OAuth2 authentication is used the + * URL parameters added. + * @param string $request the request XML + * @param string $location the URL to request + * @param string $action the SOAP action + * @param string $version the SOAP version + * @param int $one_way if set to 1, this method returns nothing + * @return string the XML SOAP response + */ + function __doRequest($request , $location , $action , $version, + $one_way = 0) { + $oAuth2Info = $this->user->GetOAuth2Info(); + $oAuth2Handler = $this->user->GetOAuth2Handler(); + if (!empty($oAuth2Info)) { + $oAuth2Info = $oAuth2Handler->GetOrRefreshAccessToken($oAuth2Info); + $this->user->SetOAuth2Info($oAuth2Info); + $oauth2Parameters = $oAuth2Handler->FormatCredentialsForUrl($oAuth2Info); + $location .= '?' . $oauth2Parameters; + } + return parent::__doRequest($request, $location, $action, $version); + } + + /** + * Generates the SOAP header for the client. + * @return SoapHeader the instantiated SoapHeader ready to set + * @access protected + */ + protected function GenerateSoapHeader() { + $soapHeaderClassName = 'SoapHeader'; + if ($this->serviceName === 'PromotionService') { + $soapHeaderClassName = 'ExpressSoapHeader'; + } + $headerObject = $this->Create($soapHeaderClassName); + foreach (get_object_vars($headerObject) as $var => $value) { + $headerObject->$var = $this->GetHeaderValue($var); + } + return new SoapHeader($this->serviceNamespace, 'RequestHeader', + $headerObject, FALSE); + } + + /** + * 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 + */ + protected function RemoveSensitiveInfo($request) { + $result = preg_replace( + '/(.*authToken>)(.*)(<\/.*authToken>.*)/sU', '\1*****\3', $request); + return isset($result) ? $result : $request; + } + + /** + * Gets the effective user the request was made against. + * @return string the effective user the request was made against + */ + public function GetEffectiveUser() { + return $this->GetAdsUser()->GetClientCustomerId(); + } + + /** + * Gets the last set of operators the last call in the form of + * "operator1,operator2". + * @return string the last set of operators + */ + public function GetLastOperators() { + try { + $operatorString = '{'; + $operators = array(); + $operatorElements = + $this->GetLastRequestDom()->getElementsByTagName('operator'); + + foreach ($operatorElements as $operatorElement) { + if (array_key_exists($operatorElement->nodeValue, $operators)) { + $operators[$operatorElement->nodeValue] += 1; + } else { + $operators[$operatorElement->nodeValue] = 1; + } + } + + foreach ($operators as $operator => $numOps) { + $operatorString .= $operator . ': ' . $numOps . ', '; + } + + if ($operatorString != '{') { + $operatorString = substr($operatorString, 0, -2); + } + + return $operatorString . '}'; + } catch (DOMException $e) { + // TODO(api.arogal): Log failures to retrieve headers. + return 'null'; + } + } + + /** + * Gets the last number of operations. + * @return string the last number of operations + */ + public function GetLastOperations() { + try { + $operationsElements = + $this->GetLastResponseDom()->getElementsByTagName('operations'); + foreach ($operationsElements as $operationsElement) { + return $operationsElement->nodeValue; + } + } catch (DOMException $e) { + // TODO(api.arogal): Log failures to retrieve headers. + return 'null'; + } + } + + /** + * Gets the last number of units. + * @return string the last number of units + */ + public function GetLastUnits() { + try { + $unitsElements = + $this->GetLastResponseDom()->getElementsByTagName('units'); + foreach ($unitsElements as $unitsElement) { + return $unitsElement->nodeValue; + } + } catch (DOMException $e) { + // TODO(api.arogal): Log failures to retrieve headers. + return 'null'; + } + } + + /** + * Generates the request info message containing: + *
    + *
  • email
  • + *
  • effectiveUser
  • + *
  • service
  • + *
  • method
  • + *
  • operators
  • + *
  • responseTime
  • + *
  • requestId
  • + *
  • operations
  • + *
  • units
  • + *
  • server
  • + *
  • isFault
  • + *
  • faultMessage
  • + *
+ * @return string the request info message to log + * @access protected + */ + protected function GenerateRequestInfoMessage() { + return 'email=' . $this->GetEmail() . ' effectiveUser=' + . $this->GetEffectiveUser() . ' service=' . $this->GetServiceName() + . ' method=' . $this->GetLastMethodName() . ' operators=' + . $this->GetLastOperators() . ' responseTime=' + . $this->GetLastResponseTime() . ' requestId=' + . $this->GetLastRequestId() . ' operations=' + . $this->GetLastOperations() . ' units=' + . $this->GetLastUnits() . ' server=' . $this->GetServer() + . ' isFault=' . ($this->IsFault() ? 'true' : 'false') + . ' faultMessage=' . $this->GetLastFaultMessage(); + } +} + diff --git a/src/Google/Api/Ads/AdWords/Lib/AdWordsSoapClientFactory.php b/src/Google/Api/Ads/AdWords/Lib/AdWordsSoapClientFactory.php new file mode 100755 index 000000000..2f79831e2 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/Lib/AdWordsSoapClientFactory.php @@ -0,0 +1,73 @@ += 'v201109' && $user->GetHeaderValue('clientEmail') != NULL) { + throw new Exception('The header "clientEmail" is not compatible with ' + . 'versions v201109 and later. Use clientCustomerId instead.'); + } + $headerOverrides = array(); + if (isset($validateOnly) || isset($partialFailure)) { + $headerOverrides['validateOnly'] = $validateOnly; + $headerOverrides['partialFailure'] = $partialFailure; + } + parent::__construct($user, $version, $server, 'adwords', $headerOverrides); + } + + /** + * Initiates a require_once for the service. + * @param string $serviceName the service to instantiate + */ + public function DoRequireOnce($serviceName) { + require_once implode("/", array(dirname(__FILE__), '..', + $this->GetVersion(), $serviceName . '.php')); + } +} + diff --git a/src/Google/Api/Ads/AdWords/Lib/AdWordsUser.php b/src/Google/Api/Ads/AdWords/Lib/AdWordsUser.php new file mode 100755 index 000000000..d1d7ba1d3 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/Lib/AdWordsUser.php @@ -0,0 +1,498 @@ +The AdWordsUser class can be configured in one of two ways: + *
  1. Using an authenitcation INI file
  2. + *
  3. Using supplied credentials

+ *

If an authentication INI file is provided and successfully loaded, those + * values will be used unless a corresponding parameter overwrites it. + * If the authentication INI file is not provided (e.g. it is NULL) + * the class will attempt to load the default authentication file at the path + * of "../auth.ini" relative to this file's directory. Any corresponding + * parameter, which is not NULL, will, however, overwrite any + * parameter loaded from the default INI.

+ *

Likewise, if a custom settings INI file is not provided, the default + * settings INI file will be loaded from the path of "../settings.ini" + * relative to this file's directory.

+ * @param string $authenticationIniPath the absolute path to the + * 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 $developerToken the developer token (required header). Will + * overwrite the developer token entry loaded from any INI file + * @param string $applicationToken the application token (required header). + * Will overwrite the application token entry loaded from any INI file + * @param string $userAgent the user agent name (required header). Will + * be prepended with the library name and version. Will overwrite the + * userAgent entry loaded from any INI file + * @param string $clientCustomerId the client customer ID to make the request + * against (optional header). Will overwrite the clientCustomerId entry + * loaded from any INI 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, $developerToken = NULL, $applicationToken = NULL, + $userAgent = NULL, $clientCustomerId = NULL, $settingsIniPath = NULL, + $authToken = NULL, $oauth2Info = NULL) { + parent::__construct(); + + $buildIniAw = parse_ini_file(dirname(__FILE__) . '/build.ini', + FALSE); + $buildIniCommon = parse_ini_file(dirname(__FILE__) . + '/../../Common/Lib/build.ini', false); + $this->libName = $buildIniAw['LIB_NAME']; + $this->libVersion = $buildIniCommon['LIB_VERSION']; + + $apiProps = ApiPropertiesUtils::ParseApiPropertiesFile(dirname(__FILE__) . + '/api.properties'); + $versions = explode(',', $apiProps['api.versions']); + $this->defaultVersion = $versions[count($versions) - 1]; + $this->defaultServer = $apiProps['api.server']; + + if (isset($authenticationIniPath)) { + $authenticationIni = + parse_ini_file(realpath($authenticationIniPath), TRUE); + } else { + $authenticationIni = + parse_ini_file(dirname(__FILE__) . '/../auth.ini', TRUE); + } + + $email = $this->GetAuthVarValue($email, 'email', $authenticationIni); + $password = $this->GetAuthVarValue($password, 'password', + $authenticationIni); + $developerToken = $this->GetAuthVarValue($developerToken, 'developerToken', + $authenticationIni); + $applicationToken = $this->GetAuthVarValue($applicationToken, + 'applicationToken', $authenticationIni); + $userAgent = $this->GetAuthVarValue($userAgent, + self::USER_AGENT_HEADER_NAME, $authenticationIni); + $clientCustomerId = $this->GetAuthVarValue($clientCustomerId, + 'clientCustomerId', $authenticationIni); + $authToken = $this->GetAuthVarValue($authToken, 'authToken', + $authenticationIni); + $oauth2Info = $this->GetAuthVarValue($oauth2Info, 'OAUTH2', + $authenticationIni); + + $clientId = $this->GetAuthVarValue(NULL, 'clientId', $authenticationIni); + if ($clientId !== NULL) { + throw new ValidationException('clientId', $clientId, + 'The authentication key "clientId" has been changed to' + . ' "clientCustomerId", please use that instead.'); + } + + $this->SetEmail($email); + $this->SetPassword($password); + $this->SetAuthToken($authToken); + $this->SetOAuth2Info($oauth2Info); + $this->SetUserAgent($userAgent); + $this->SetClientLibraryUserAgent($userAgent); + $this->SetClientCustomerId($clientCustomerId); + $this->SetDeveloperToken($developerToken); + $this->SetApplicationToken($applicationToken); + + if (!isset($settingsIniPath)) { + $settingsIniPath = dirname(__FILE__) . '/../settings.ini'; + } + + $this->LoadSettings($settingsIniPath, + $this->defaultVersion, + $this->defaultServer, + getcwd(), dirname(__FILE__)); + } + + /** + * Overrides AdsUser::InitLogs(), adding an additional log for report + * download requests. + */ + protected function InitLogs() { + parent::InitLogs(); + Logger::LogToFile(ReportUtils::$LOG_NAME, + $this->GetLogsDirectory() . "/report_download.log"); + Logger::SetLogLevel(ReportUtils::$LOG_NAME, Logger::$FATAL); + } + + /** + * Overrides AdsUser::LogDefaults(), setting an additional log level for + * report download requests. + */ + public function LogDefaults() { + parent::LogDefaults(); + Logger::SetLogLevel(ReportUtils::$LOG_NAME, Logger::$ERROR); + } + + /** + * Overrides AdsUser::LogErrors(), setting an additional log level for report + * download requests. + */ + public function LogErrors() { + parent::LogErrors(); + Logger::SetLogLevel(ReportUtils::$LOG_NAME, Logger::$ERROR); + } + + /** + * Overrides AdsUser::LogAll(), setting an additional log level for report + * download requests. + */ + public function LogAll() { + parent::LogAll(); + Logger::SetLogLevel(ReportUtils::$LOG_NAME, Logger::$INFO); + } + + /** + * Gets the service by its service name and group. + * @param $serviceName the service name + * @param string $version the version of the service to get. If + * NULL, then the default version will be used + * @param string $server the server to make the request to. If + * NULL, then the default server will be used + * @param SoapClientFactory $serviceFactory the factory to create the client. + * If NULL, then the built-in SOAP client factory will be used + * @param bool $validateOnly if the service should be created in validateOnly + * mode + * @param bool $partialFailure if the service should be created in + * partialFailure mode + * @return SoapClient the instantiated service + * @throws ServiceException if an error occurred when getting the service + */ + public function GetService($serviceName, $version = NULL, $server = NULL, + SoapClientFactory $serviceFactory = NULL, $validateOnly = NULL, + $partialFailure = NULL) { + $this->ValidateUser(); + if (!isset($serviceFactory)) { + if (!isset($version)) { + $version = $this->GetDefaultVersion(); + } + + if (!isset($server)) { + $server = $this->GetDefaultServer(); + } + + $serviceFactory = new AdWordsSoapClientFactory($this, $version, $server, + $validateOnly, $partialFailure); + } + + DeprecationUtils::CheckUsingClientLoginWithUnsupportedVersion($this, + self::FINAL_CLIENT_LOGIN_VERSION, $version); + + return parent::GetServiceSoapClient($serviceName, $serviceFactory); + } + + /** + * Loads the classes within a service, so they can be used before the service + * is constructed. + * @param $serviceName the service name + * @param string $version the version of the service to get. If + * NULL, then the default version will be used + */ + public function LoadService($serviceName, $version = NULL) { + if (!isset($version)) { + $version = $this->GetDefaultVersion(); + } + $serviceFactory = new AdWordsSoapClientFactory($this, $version, NULL, NULL, + NULL); + $serviceFactory->DoRequireOnce($serviceName); + } + + /** + * 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, 'adwords', + $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 developer token for this user. + * @return string the developer token + */ + public function GetDeveloperToken() { + return $this->GetHeaderValue('developerToken'); + } + + /** + * Sets the developer token for this user. + * @param string $developerToken the developer token + */ + public function SetDeveloperToken($developerToken) { + $this->SetHeaderValue('developerToken', $developerToken); + } + + /** + * Gets the application token that this user. + * @return string the application token + */ + public function GetApplicationToken() { + return $this->GetHeaderValue('applicationToken'); + } + + /** + * Sets the application token for this user. + * @param string $applicationToken the application token + */ + public function SetApplicationToken($applicationToken) { + $this->SetHeaderValue('applicationToken', $applicationToken); + } + + /** + * Gets the client customer ID for this user. + * @return string the client customer ID for this user + */ + public function GetClientCustomerId() { + return $this->GetHeaderValue('clientCustomerId'); + } + + /** + * Sets the client customer ID for this user. + * @param string $clientCustomerId the client customer ID for this user + */ + public function SetClientCustomerId($clientCustomerId) { + $this->SetHeaderValue('clientCustomerId', $clientCustomerId); + } + + /** + * Gets the AdWords Express business ID required for AdWords Express + * PromotionService + */ + public function GetExpressBusinessId() { + return $this->GetHeaderValue('expressBusinessId'); + } + + /** + * Sets the AdWords Express business ID required for AdWords Express + * PromotionService + */ + public function SetExpressBusinessId($businessId) { + $this->SetHeaderValue('expressBusinessId', $businessId); + } + + /** + * Gets the raw user agent for this user. + * @return string The raw user agent. + */ + public function GetUserAgent() { + return $this->userAgent; + } + + /** + * Sets the raw user agent for this user. + * @param string $userAgent The raw user agent. + */ + public function SetUserAgent($userAgent) { + $this->userAgent = $userAgent; + } + + /** + * @see AdsUser::GetUserAgentHeaderName() + */ + public function GetUserAgentHeaderName() { + return self::USER_AGENT_HEADER_NAME; + } + + /** + * @see AdsUser::GetClientLibraryNameAndVersion() + */ + 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; + } + + /** + * Validates the user and throws a validation error if there are any errors. + * @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(); + } + + if ($this->GetUserAgent() === NULL + || trim($this->GetUserAgent()) === '' + || strpos($this->GetUserAgent(), self::DEFAULT_USER_AGENT) !== false) { + throw new ValidationException('userAgent', NULL, + sprintf("The property userAgent is required and cannot be " + . "NULL, the empty string, or the default [%s]", + self::DEFAULT_USER_AGENT)); + } + + if ($this->GetDeveloperToken() === NULL) { + throw new ValidationException('developerToken', NULL, + 'developerToken is required and cannot be NULL.'); + } + } + + /** + * Get the default OAuth2 Handler for this user. + * @param NULL|string $className the name of the oauth2Handler class or NULL + * @return mixed the configured OAuth2Handler class + */ + public function GetDefaultOAuth2Handler($className = NULL) { + $className = !empty($className) ? $className : self::OAUTH2_HANDLER_CLASS; + return new $className($this->GetAuthServer(), self::OAUTH2_SCOPE); + } + + /** + * Handles calls to undefined methods. + * @param string $name the name of the method being called + * @param array $arguments the arguments passed to the method + * @return mixed the result of the correct method call, or nothing if there + * is no correct method + */ + public function __call($name, $arguments) { + // Handle calls to legacy Get*Service() methods. + if (preg_match('/^Get(\w+Service)$/i', $name, $matches)) { + $serviceName = $matches[1]; + array_unshift($arguments, $serviceName); + return call_user_func_array(array($this, 'GetService'), $arguments); + } + } +} + diff --git a/src/Google/Api/Ads/AdWords/Lib/api.properties b/src/Google/Api/Ads/AdWords/Lib/api.properties new file mode 100755 index 000000000..9ead184b9 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/Lib/api.properties @@ -0,0 +1,104 @@ +;; Library +lib.product=AdWords +lib.package=GoogleApiAdsAdWords + +;; WSDL2PHP +;; Optionally specify a proxy to use when processing the WSDLs in the format +;; tcp://host:port. +wsdl2php.proxy= +;; If enabled, class names (but not service names) will be prefixed with the +;; package name. Ex) GoogleApiAdsAdWords_Campaign +wsdl2php.enablePseudoNamespaces=False +;; Class map to be used if pseudo-namespace support is not enabled, to work +;; around common conflicts, in JSON format. +wsdl2php.conflictClassmap={"DateTime":"AdWordsDateTime", "SoapHeader":"SoapRequestHeader"} +;; Other class fixes. +wsdl2php.classmap={"getResponse":"${service}GetResponse", "get":"${service}Get", "mutate":"${service}Mutate", "mutateResponse":"${service}MutateResponse", "mutateCallToAction":"${service}MutateCallToAction", "search":"${service}Search", "Function":"FeedFunction"} +wsdl2php.skipClassNameCheckTypes=Target,Location + +;; API +api.server=https://adwords.google.com +api.versions=v201306,v201309 +api.soapClientClassNamespace=Google_Api_Ads_AdWords_Lib + +;; v201306 +api.versions.v201306.namespace=Google_Api_Ads_AdWords_v201306 +api.versions.v201306.services=AdExtensionOverrideService,AdGroupAdService,AdGroupBidModifierService,AdGroupCriterionService,AdGroupFeedService,AdGroupService,AdParamService,AdwordsUserListService,AlertService,BiddingStrategyService,BudgetOrderService,BudgetService,CampaignAdExtensionService,CampaignCriterionService,CampaignFeedService,CampaignService,CampaignSharedSetService,ConstantDataService,ConversionTrackerService,CustomerService,CustomerSyncService,DataService,ExperimentService,FeedItemService,FeedMappingService,FeedService,GeoLocationService,LocationCriterionService,ManagedCustomerService,MediaService,MutateJobService,ReportDefinitionService,SharedCriterionService,SharedSetService,TargetingIdeaService,TrafficEstimatorService +api.versions.v201306.services.AdExtensionOverrideService.wsdl=${api.server}/api/adwords/cm/v201306/AdExtensionOverrideService?wsdl +api.versions.v201306.services.AdGroupAdService.wsdl=${api.server}/api/adwords/cm/v201306/AdGroupAdService?wsdl +api.versions.v201306.services.AdGroupBidModifierService.wsdl=${api.server}/api/adwords/cm/v201306/AdGroupBidModifierService?wsdl +api.versions.v201306.services.AdGroupCriterionService.wsdl=${api.server}/api/adwords/cm/v201306/AdGroupCriterionService?wsdl +api.versions.v201306.services.AdGroupFeedService.wsdl=${api.server}/api/adwords/cm/v201306/AdGroupFeedService?wsdl +api.versions.v201306.services.AdGroupService.wsdl=${api.server}/api/adwords/cm/v201306/AdGroupService?wsdl +api.versions.v201306.services.AdParamService.wsdl=${api.server}/api/adwords/cm/v201306/AdParamService?wsdl +api.versions.v201306.services.AdwordsUserListService.wsdl=${api.server}/api/adwords/rm/v201306/AdwordsUserListService?wsdl +api.versions.v201306.services.AlertService.wsdl=${api.server}/api/adwords/mcm/v201306/AlertService?wsdl +api.versions.v201306.services.BiddingStrategyService.wsdl=${api.server}/api/adwords/cm/v201306/BiddingStrategyService?wsdl +api.versions.v201306.services.BudgetOrderService.wsdl=${api.server}/api/adwords/billing/v201306/BudgetOrderService?wsdl +api.versions.v201306.services.BudgetService.wsdl=${api.server}/api/adwords/cm/v201306/BudgetService?wsdl +api.versions.v201306.services.CampaignAdExtensionService.wsdl=${api.server}/api/adwords/cm/v201306/CampaignAdExtensionService?wsdl +api.versions.v201306.services.CampaignCriterionService.wsdl=${api.server}/api/adwords/cm/v201306/CampaignCriterionService?wsdl +api.versions.v201306.services.CampaignFeedService.wsdl=${api.server}/api/adwords/cm/v201306/CampaignFeedService?wsdl +api.versions.v201306.services.CampaignService.wsdl=${api.server}/api/adwords/cm/v201306/CampaignService?wsdl +api.versions.v201306.services.CampaignSharedSetService.wsdl=${api.server}/api/adwords/cm/v201306/CampaignSharedSetService?wsdl +api.versions.v201306.services.ConstantDataService.wsdl=${api.server}/api/adwords/cm/v201306/ConstantDataService?wsdl +api.versions.v201306.services.ConversionTrackerService.wsdl=${api.server}/api/adwords/cm/v201306/ConversionTrackerService?wsdl +api.versions.v201306.services.CustomerService.wsdl=${api.server}/api/adwords/mcm/v201306/CustomerService?wsdl +api.versions.v201306.services.CustomerSyncService.wsdl=${api.server}/api/adwords/ch/v201306/CustomerSyncService?wsdl +api.versions.v201306.services.DataService.wsdl=${api.server}/api/adwords/cm/v201306/DataService?wsdl +api.versions.v201306.services.ExperimentService.wsdl=${api.server}/api/adwords/cm/v201306/ExperimentService?wsdl +api.versions.v201306.services.FeedItemService.wsdl=${api.server}/api/adwords/cm/v201306/FeedItemService?wsdl +api.versions.v201306.services.FeedMappingService.wsdl=${api.server}/api/adwords/cm/v201306/FeedMappingService?wsdl +api.versions.v201306.services.FeedService.wsdl=${api.server}/api/adwords/cm/v201306/FeedService?wsdl +api.versions.v201306.services.GeoLocationService.wsdl=${api.server}/api/adwords/cm/v201306/GeoLocationService?wsdl +api.versions.v201306.services.LocationCriterionService.wsdl=${api.server}/api/adwords/cm/v201306/LocationCriterionService?wsdl +api.versions.v201306.services.ManagedCustomerService.wsdl=${api.server}/api/adwords/mcm/v201306/ManagedCustomerService?wsdl +api.versions.v201306.services.MediaService.wsdl=${api.server}/api/adwords/cm/v201306/MediaService?wsdl +api.versions.v201306.services.MutateJobService.wsdl=${api.server}/api/adwords/cm/v201306/MutateJobService?wsdl +api.versions.v201306.services.ReportDefinitionService.wsdl=${api.server}/api/adwords/cm/v201306/ReportDefinitionService?wsdl +api.versions.v201306.services.SharedCriterionService.wsdl=${api.server}/api/adwords/cm/v201306/SharedCriterionService?wsdl +api.versions.v201306.services.SharedSetService.wsdl=${api.server}/api/adwords/cm/v201306/SharedSetService?wsdl +api.versions.v201306.services.TargetingIdeaService.wsdl=${api.server}/api/adwords/o/v201306/TargetingIdeaService?wsdl +api.versions.v201306.services.TrafficEstimatorService.wsdl=${api.server}/api/adwords/o/v201306/TrafficEstimatorService?wsdl + +;; v201309 +api.versions.v201309.namespace=Google_Api_Ads_AdWords_v201309 +api.versions.v201309.services=AdGroupAdService,AdGroupBidModifierService,AdGroupCriterionService,AdGroupFeedService,AdGroupService,AdParamService,AdwordsUserListService,AlertService,BiddingStrategyService,BudgetOrderService,BudgetService,CampaignAdExtensionService,CampaignCriterionService,CampaignFeedService,CampaignService,CampaignSharedSetService,ConstantDataService,ConversionTrackerService,CustomerService,CustomerSyncService,DataService,ExperimentService,FeedItemService,FeedMappingService,FeedService,GeoLocationService,LocationCriterionService,ManagedCustomerService,MediaService,MutateJobService,OfflineConversionFeedService,ReportDefinitionService,SharedCriterionService,SharedSetService,TargetingIdeaService,TrafficEstimatorService,ExpressBusinessService,PromotionService +api.versions.v201309.services.AdGroupAdService.wsdl=${api.server}/api/adwords/cm/v201309/AdGroupAdService?wsdl +api.versions.v201309.services.AdGroupBidModifierService.wsdl=${api.server}/api/adwords/cm/v201309/AdGroupBidModifierService?wsdl +api.versions.v201309.services.AdGroupCriterionService.wsdl=${api.server}/api/adwords/cm/v201309/AdGroupCriterionService?wsdl +api.versions.v201309.services.AdGroupFeedService.wsdl=${api.server}/api/adwords/cm/v201309/AdGroupFeedService?wsdl +api.versions.v201309.services.AdGroupService.wsdl=${api.server}/api/adwords/cm/v201309/AdGroupService?wsdl +api.versions.v201309.services.AdParamService.wsdl=${api.server}/api/adwords/cm/v201309/AdParamService?wsdl +api.versions.v201309.services.AdwordsUserListService.wsdl=${api.server}/api/adwords/rm/v201309/AdwordsUserListService?wsdl +api.versions.v201309.services.AlertService.wsdl=${api.server}/api/adwords/mcm/v201309/AlertService?wsdl +api.versions.v201309.services.BiddingStrategyService.wsdl=${api.server}/api/adwords/cm/v201309/BiddingStrategyService?wsdl +api.versions.v201309.services.BudgetOrderService.wsdl=${api.server}/api/adwords/billing/v201309/BudgetOrderService?wsdl +api.versions.v201309.services.BudgetService.wsdl=${api.server}/api/adwords/cm/v201309/BudgetService?wsdl +api.versions.v201309.services.CampaignAdExtensionService.wsdl=${api.server}/api/adwords/cm/v201309/CampaignAdExtensionService?wsdl +api.versions.v201309.services.CampaignCriterionService.wsdl=${api.server}/api/adwords/cm/v201309/CampaignCriterionService?wsdl +api.versions.v201309.services.CampaignFeedService.wsdl=${api.server}/api/adwords/cm/v201309/CampaignFeedService?wsdl +api.versions.v201309.services.CampaignService.wsdl=${api.server}/api/adwords/cm/v201309/CampaignService?wsdl +api.versions.v201309.services.CampaignSharedSetService.wsdl=${api.server}/api/adwords/cm/v201309/CampaignSharedSetService?wsdl +api.versions.v201309.services.ConstantDataService.wsdl=${api.server}/api/adwords/cm/v201309/ConstantDataService?wsdl +api.versions.v201309.services.ConversionTrackerService.wsdl=${api.server}/api/adwords/cm/v201309/ConversionTrackerService?wsdl +api.versions.v201309.services.CustomerService.wsdl=${api.server}/api/adwords/mcm/v201309/CustomerService?wsdl +api.versions.v201309.services.CustomerSyncService.wsdl=${api.server}/api/adwords/ch/v201309/CustomerSyncService?wsdl +api.versions.v201309.services.DataService.wsdl=${api.server}/api/adwords/cm/v201309/DataService?wsdl +api.versions.v201309.services.ExperimentService.wsdl=${api.server}/api/adwords/cm/v201309/ExperimentService?wsdl +api.versions.v201309.services.ExpressBusinessService.wsdl=${api.server}/api/adwords/express/v201309/ExpressBusinessService?wsdl +api.versions.v201309.services.FeedItemService.wsdl=${api.server}/api/adwords/cm/v201309/FeedItemService?wsdl +api.versions.v201309.services.FeedMappingService.wsdl=${api.server}/api/adwords/cm/v201309/FeedMappingService?wsdl +api.versions.v201309.services.FeedService.wsdl=${api.server}/api/adwords/cm/v201309/FeedService?wsdl +api.versions.v201309.services.GeoLocationService.wsdl=${api.server}/api/adwords/cm/v201309/GeoLocationService?wsdl +api.versions.v201309.services.LocationCriterionService.wsdl=${api.server}/api/adwords/cm/v201309/LocationCriterionService?wsdl +api.versions.v201309.services.ManagedCustomerService.wsdl=${api.server}/api/adwords/mcm/v201309/ManagedCustomerService?wsdl +api.versions.v201309.services.MediaService.wsdl=${api.server}/api/adwords/cm/v201309/MediaService?wsdl +api.versions.v201309.services.MutateJobService.wsdl=${api.server}/api/adwords/cm/v201309/MutateJobService?wsdl +api.versions.v201309.services.OfflineConversionFeedService.wsdl=${api.server}/api/adwords/cm/v201309/OfflineConversionFeedService?wsdl +api.versions.v201309.services.PromotionService.wsdl=${api.server}/api/adwords/express/v201309/PromotionService?wsdl +api.versions.v201309.services.ReportDefinitionService.wsdl=${api.server}/api/adwords/cm/v201309/ReportDefinitionService?wsdl +api.versions.v201309.services.SharedCriterionService.wsdl=${api.server}/api/adwords/cm/v201309/SharedCriterionService?wsdl +api.versions.v201309.services.SharedSetService.wsdl=${api.server}/api/adwords/cm/v201309/SharedSetService?wsdl +api.versions.v201309.services.TargetingIdeaService.wsdl=${api.server}/api/adwords/o/v201309/TargetingIdeaService?wsdl +api.versions.v201309.services.TrafficEstimatorService.wsdl=${api.server}/api/adwords/o/v201309/TrafficEstimatorService?wsdl diff --git a/src/Google/Api/Ads/AdWords/Lib/build.ini b/src/Google/Api/Ads/AdWords/Lib/build.ini new file mode 100755 index 000000000..a16d8ee8f --- /dev/null +++ b/src/Google/Api/Ads/AdWords/Lib/build.ini @@ -0,0 +1,2 @@ +LIB_NAME = "AwApi-PHP" + diff --git a/src/Google/Api/Ads/AdWords/Util/ReportUtils.php b/src/Google/Api/Ads/AdWords/Util/ReportUtils.php new file mode 100755 index 000000000..84132edc7 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/Util/ReportUtils.php @@ -0,0 +1,855 @@ +NULL, + * then the default server will be used + * {string} version: the version to make the request against. If + * NULL, then the default version will be used + * @return mixed if path isn't specified the contents of the report, + * otherwise the size in bytes of the downloaded report + */ + public static function DownloadReport($reportDefinition, $path = NULL, + AdWordsUser $user, array $options = NULL) { + $url = self::GetUrl($user, $options); + $headers = self::GetHeaders($user, $url, $options); + $params = self::GetParams($reportDefinition); + return self::DownloadReportFromUrl($url, $headers, $params, $path); + } + + /** + * Downloads a report with AWQL. If the path parameter is specified it will be + * downloaded to the file at that path, otherwise it will be downloaded to + * memory and be returned as a string. + * @param string $reportQuery the query to use for the report + * @param string $path an optional path of the file to download the report to + * @param AdWordsUser $user the user to retrieve report with + * @param string $reportFormat: the report format to request + * @param array $options the option to use when downloading the report: + * {string} server: the server to make the request to. If NULL, + * then the default server will be used + * {string} version: the version to make the request against. If + * NULL, then the default version will be used + * @return mixed if path isn't specified the contents of the report, + * otherwise the size in bytes of the downloaded report + */ + public static function DownloadReportWithAwql($reportQuery, $path = NULL, + AdWordsUser $user, $reportFormat, array $options = NULL) { + $url = self::GetUrl($user, $options); + $headers = self::GetHeaders($user, $url, $options); + $params = self::GetQueryParams($reportQuery, $reportFormat); + return self::DownloadReportFromUrl($url, $headers, $params, $path); + } + + /** + * Downloads a report using the URL provided. + * @param string $url the URL to make the request to + * @param array $headers the headers to use in the request + * @param array $params the parameters to pass in the request + * @param string $path the optional path to download the report to + * @return mixed if path isn't specified the contents of the report, + * otherwise the size in bytes of the downloaded report + */ + private static function DownloadReportFromUrl($url, $headers, $params, + $path = NULL) { + /* + * This method should not be static and instantiation of this class should + * be allowed so we can "inject" CurlUtils, but would break too many things + * that rely on this method being static. + */ + $curlUtils = new CurlUtils(); + $ch = $curlUtils->CreateSession($url); + + $curlUtils->SetOpt($ch, CURLOPT_POST, TRUE); + $curlUtils->SetOpt($ch, CURLINFO_HEADER_OUT, TRUE); + + $flatHeaders = array(); + foreach($headers as $name => $value) { + $flatHeaders[] = sprintf('%s: %s', $name, $value); + } + $curlUtils->SetOpt($ch, CURLOPT_HTTPHEADER, $flatHeaders); + + if (isset($params)) { + $curlUtils->SetOpt($ch, CURLOPT_POSTFIELDS, $params); + } + + if (isset($path)) { + $file = fopen($path, 'w'); + $curlUtils->SetOpt($ch, CURLOPT_RETURNTRANSFER, FALSE); + $curlUtils->SetOpt($ch, CURLOPT_FILE, $file); + } + + $response = $curlUtils->Exec($ch); + $error = $curlUtils->Error($ch); + $code = $curlUtils->GetInfo($ch, CURLINFO_HTTP_CODE); + $downloadSize = $curlUtils->GetInfo($ch, CURLINFO_SIZE_DOWNLOAD); + $request = $curlUtils->GetInfo($ch, CURLINFO_HEADER_OUT); + + $curlUtils->Close($ch); + if (isset($file)) { + fclose($file); + } + + $exception = null; + if ($code != 200) { + // Get the beginning of the response. + if (isset($path)) { + $file = fopen($path, 'r'); + $snippet = fread($file, self::$SNIPPET_LENGTH); + fclose($file); + } else { + $snippet = substr($response, 0, self::$SNIPPET_LENGTH); + } + // Create exception. + $error = self::ParseApiErrorXml($snippet); + if ($error) { + $errorMessage = "Report download failed. Underlying errors are \n"; + foreach ($error->ApiError as $apiError) { + $errorMessage .= sprintf("Type = '%s', Trigger = '%s', FieldPath = " . + "'%s'. ", $apiError->type, $apiError->trigger, + $apiError->fieldPath); + } + $exception = new ReportDownloadException($errorMessage, $code); + } else if (preg_match(self::$ERROR_MESSAGE_REGEX, $snippet, $matches)) { + $exception = new ReportDownloadException($matches[2], $code); + } else if (!empty($error)) { + $exception = new ReportDownloadException($error); + } else if (isset($code)) { + $exception = + new ReportDownloadException('Report download failed.', $code); + } + } + + self::LogRequest($request, $code, $params, $exception); + + if (isset($exception)) { + throw $exception; + } else if (isset($path)) { + return $downloadSize; + } else { + return $response; + } + } + + /** + * Tries to parse the error response xml from the AdWords API server as an + * object. This method is used in parsing all error responses when API + * version >= v201209, and in other versions when apiMode header is mentioned + * in the request headers. + * + * @param String $responseXml the error response xml + * @return Object the parsed error object, or null if the response cannot + * be parsed. + */ + private static function ParseApiErrorXml($responseXml) { + $retval = null; + try { + $doc = XmlUtils::GetDomFromXml($responseXml); + $retval = XmlUtils::ConvertDocumentToObject($doc); + if (!is_array($retval->ApiError)) { + $retval->ApiError = array($retval->ApiError); + } + } catch (Exception $e) { + // There was a parse exception and hence this response cannot be + // interpreted as an xml. + } + return $retval; + } + + /** + * Generates the URL to use for the download request. + * @param AdWordsUser $user the AdWordsUser to make the request for + * @param array $options the options configured for the download + * @return string the download URL + */ + private static function GetUrl($user, array $options = NULL) { + $server = !empty($options['server']) ? $options['server'] : + $user->GetDefaultServer(); + $version = !empty($options['version']) ? $options['version'] : NULL; + if (!isset($version) && $user->GetDefaultVersion() >= 'v201109') { + $version = $user->GetDefaultVersion(); + } + if (isset($server) && strpos($server, 'http') !== 0) { + throw new ReportDownloadException('Invalid server: ' . $server); + } + return sprintf(self::$DOWNLOAD_URL_FORMAT, $server, $version); + } + + /** + * Generates the parameters to use for the download request. + * @param mixed $reportDefinition the report definition, as an ID or object + * @return array the parameters + */ + private static function GetParams($reportDefinition) { + $params = array(); + if (is_numeric($reportDefinition)) { + $params['__rd'] = $reportDefinition; + } else if (is_object($reportDefinition) || is_array($reportDefinition)) { + $document = XmlUtils::ConvertObjectToDocument($reportDefinition, + 'reportDefinition'); + $document->formatOutput = TRUE; + $params['__rdxml'] = XmlUtils::GetXmlFromDom($document); + } else { + throw new ReportDownloadException('Invalid report definition type: ' + . $reportDefinition); + } + return $params; + } + + /** + * Generates the parameters to use for the download request with AWQL. + * @param string $reportQuery the report query, as string + * @param string $reportFormat the format to request report in, as string + * @return array the parameters + */ + private static function GetQueryParams($reportQuery, $reportFormat) { + if (!is_string($reportQuery) or !is_string($reportFormat)) { + throw new ReportDownloadException( + 'Invalid parameter supplied, string is expected' + ); + } + return array('__rdquery' => $reportQuery, '__fmt' => $reportFormat); + } + + /** + * Gets the HTTP headers for the report download request. + * @param AdWordsUser $user the AdWordsUser to get credentials from + * @param string $url the URL the request will be made to + * @param array $options the options for the download + * @return array and array of strings, which are header names and values + */ + private static function GetHeaders($user, $url, array $options = NULL) { + $headers = array(); + $version = !empty($options['version']) ? $options['version'] : + $user->GetDefaultVersion(); + // Authorization. + $authHeader = NULL; + $oAuth2Info = $user->GetOAuth2Info(); + $oAuth2Handler = $user->GetOAuth2Handler(); + if (!empty($oAuth2Info)) { + $oAuth2Info = $oAuth2Handler->GetOrRefreshAccessToken($oAuth2Info); + $user->SetOAuth2Info($oAuth2Info); + $authHeader = $oAuth2Handler->FormatCredentialsForHeader($oAuth2Info); + } else { + DeprecationUtils::CheckUsingClientLoginWithUnsupportedVersion($user, + AdWordsUser::FINAL_CLIENT_LOGIN_VERSION, $version); + $authHeader = sprintf(self::CLIENT_LOGIN_FORMAT, $user->GetAuthToken()); + } + $headers['Authorization'] = $authHeader; + + // Developer token. + $headers['developerToken'] = $user->GetDeveloperToken(); + // Target client. + $email = $user->GetEmail(); + $clientCustomerId = $user->GetClientCustomerId(); + if (isset($clientCustomerId)) { + $headers['clientCustomerId'] = $clientCustomerId; + } else { + if ($version < 'v201109' && isset($email)) { + $headers['clientEmail'] = $email; + } else { + throw new ReportDownloadException('The client customer ID must be ' + . 'specified for report downloads.'); + } + } + // Flags. + if (isset($options['returnMoneyInMicros'])) { + $headers['returnMoneyInMicros'] = + $options['returnMoneyInMicros'] ? 'true' : 'false'; + } + return $headers; + } + + /** + * Logs the report download request. + * @param string $requestHeaders the HTTP request headers + * @param integer $responseCode the HTTP response code + * @param array $params the parameters that were sent, if any + * @param Exception $exception the exception that will be thrown, if any + */ + private static function LogRequest($requestHeaders, $responseCode, + $params = NULL, $exception = NULL) { + $level = isset($exception) ? Logger::$ERROR : Logger::$INFO; + $messageParts = array(); + $messageParts[] = trim($requestHeaders); + $messageParts[] = ''; // Blank line for readability. + $messageParts[] = "Parameters:"; + foreach ($params as $name => $value) { + $messageParts[] = sprintf('%s: %s', $name, $value); + } + $messageParts[] = ''; // Blank line for readability. + $messageParts[] = sprintf('Response Code: %s', $responseCode); + if (isset($exception)) { + $messageParts[] = sprintf('Error Message: %s', $exception->GetMessage()); + } + $messageParts[] = ''; // Blank line for readability. + $message = implode("\n", $messageParts); + Logger::Log(self::$LOG_NAME, $message, $level); + } +} + +/** + * Exception class for an error that occurs while downloading a report. + * @package GoogleApiAdsAdWords + * @subpackage Util + */ +class ReportDownloadException extends Exception { + /** + * Constructor for ReportDownloadException. + * @param string $error an optional error message + * @param string $httpCode an optional HTTP status code of the response + */ + public function __construct($error = NULL, $httpCode = NULL) { + if (empty($error)) { + $error = 'Report download failed with status code: ' . $httpCode; + } + parent::__construct($error, $httpCode); + } +} + +if (!class_exists("ReportDefinition", FALSE)) { + /** + * Represents a report definition. + * @package GoogleApiAdsAdWords + * @subpackage Util + */ + class ReportDefinition { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * @access public + * @var string + */ + public $reportName; + + /** + * @access public + * @var tnsReportDefinitionReportType + */ + public $reportType; + + /** + * @access public + * @var boolean + */ + public $hasAttachment; + + /** + * @access public + * @var tnsReportDefinitionDateRangeType + */ + public $dateRangeType; + + /** + * @access public + * @var tnsDownloadFormat + */ + public $downloadFormat; + + /** + * @access public + * @var string + */ + public $creationTime; + + /** + * @access public + * @var boolean + */ + public $includeZeroImpressions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return ""; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportDefinition"; + } + + public function __construct($id = NULL, $selector = NULL, $reportName = NULL, $reportType = NULL, $hasAttachment = NULL, $dateRangeType = NULL, $downloadFormat = NULL, $creationTime = NULL, $includeZeroImpressions = NULL) { + $this->id = $id; + $this->selector = $selector; + $this->reportName = $reportName; + $this->reportType = $reportType; + $this->hasAttachment = $hasAttachment; + $this->dateRangeType = $dateRangeType; + $this->downloadFormat = $downloadFormat; + $this->creationTime = $creationTime; + $this->includeZeroImpressions = $includeZeroImpressions; + } + } +} + +if (!class_exists("Selector", FALSE)) { + /** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage Util + */ + class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return ""; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } + } +} + +if (!class_exists("Predicate", FALSE)) { + /** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage Util + */ + class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return ""; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } + } +} + +if (!class_exists("PredicateOperator", FALSE)) { + /** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage Util + */ + class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return ""; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() {} + } +} + +if (!class_exists("DateRange", FALSE)) { +/** + * Represents a range of dates that has either an upper or a lower bound. + * The format for the date is YYYYMMDD. + * @package GoogleApiAdsAdWords + * @subpackage Util + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return ""; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage Util + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return ""; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage Util + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return ""; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage Util + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return ""; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() {} +}} + +if (!class_exists("ReportDefinitionReportType", FALSE)) { +/** + * Enums for report types. + * @package GoogleApiAdsAdWords + * @subpackage Util + */ +class ReportDefinitionReportType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return ""; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportDefinition.ReportType"; + } + + public function __construct() {} +}} + +if (!class_exists("ReportDefinitionDateRangeType", FALSE)) { +/** + * Enums for date range of report. + * @package GoogleApiAdsAdWords + * @subpackage Util + */ +class ReportDefinitionDateRangeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return ""; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportDefinition.DateRangeType"; + } + + public function __construct() {} +}} + +if (!class_exists("DownloadFormat", FALSE)) { +/** + * Enum class that describes the supported formats for content downloads. + * The order mimics the order in which download options are presented in the + * legacy report center. + * @package GoogleApiAdsAdWords + * @subpackage Util + */ +class DownloadFormat { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return ""; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DownloadFormat"; + } + + public function __construct() { + if(get_parent_class('DownloadFormat')) parent::__construct(); + } +}} + diff --git a/src/Google/Api/Ads/AdWords/auth.ini b/src/Google/Api/Ads/AdWords/auth.ini new file mode 100755 index 000000000..e071ebdb5 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/auth.ini @@ -0,0 +1,29 @@ +; Detailed descriptions of these properties can be found at: +; https://developers.google.com/adwords/api/docs/headers + +developerToken = "INSERT_DEVELOPER_TOKEN_HERE" +userAgent = "INSERT_COMPANY_NAME_HERE" +; Uncomment to make requests against a client customer account. +; clientCustomerId = "INSERT_CLIENT_CUSTOMER_ID_HERE" + +[OAUTH2] + +; If you do not have a client ID or secret, please create one of type +; "installed application" in the Google API console: +; https://cloud.google.com/console +client_id = "INSERT_OAUTH2_CLIENT_ID_HERE" +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" + +; (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/AdWords/settings.ini b/src/Google/Api/Ads/AdWords/settings.ini new file mode 100755 index 000000000..b17266217 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/settings.ini @@ -0,0 +1,57 @@ +[LOGGING] +; Log directory is either an absolute path, or relative path from the +; AdWordsUser.php file. +; PATH_RELATIVE = "0" +; LIB_LOG_DIR_PATH = "path/to/logs" + +[SERVER] +DEFAULT_VERSION = "v201309" +DEFAULT_SERVER = "https://adwords.google.com" + +[SOAP] +; Enable/disable gzip compression on SOAP requests and responses. +COMPRESSION = 1 + +; The level of gzip compression to use, from 1 to 9. The higher the level the +; greater the compression and time needed to perform the compression. The +; recommended and default value is 1. +COMPRESSION_LEVEL = 1 + +; The type of WSDL caching to use. The possible values are 0 (none), 1 (disk), +; 2 (memory), or 3 (disk and memory). The default value is 0. +WSDL_CACHE = 0 + +; Other WSDL caching settings can be set in php.ini. See the following page for +; the complete list: http://www.php.net/manual/en/soap.configuration.php + +[PROXY] +; Proxy settings to be used by HTTP (and therefore SOAP) requests. +; HOST = "" +; PORT = "" +; USER = "" +; PASSWORD = "" + +[AUTH] +; The server to use when making ClientLogin or OAuth2 requests. +; This normally doesn't need to be changed from the default value +; "https://accounts.google.com". +; AUTH_SERVER = "" + +; The OAuth2Handler class to use for OAuth2 flow. +; OAUTH2_HANDLER_CLASS = "SimpleOAuth2Handler" + +[SSL] +; Enable/disable peer verification of SSL certificates. If enabled, specify +; either CA_PATH or CA_FILE. +VERIFY_PEER = 0 + +; Enable/disable host verification of SSL certificates. This option requires +; that VERIFY_PEER is enabled. +VERIFY_HOST = 0 + +; The certificate authority directory to search in when performing peer +; validation. For example: /etc/ssl/certs +; CA_PATH = "" + +; The certificate authority file to use when performing peer validation. +; CA_FILE = "" diff --git a/src/Google/Api/Ads/AdWords/v201306/AdExtensionOverrideService.php b/src/Google/Api/Ads/AdWords/v201306/AdExtensionOverrideService.php new file mode 100755 index 000000000..2646702b4 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/AdExtensionOverrideService.php @@ -0,0 +1,4004 @@ +streetAddress = $streetAddress; + $this->streetAddress2 = $streetAddress2; + $this->cityName = $cityName; + $this->provinceCode = $provinceCode; + $this->provinceName = $provinceName; + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + } +}} + +if (!class_exists("GeoPoint", FALSE)) { +/** + * Specifies a geo location with the supplied latitude/longitude. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GeoPoint { + /** + * @access public + * @var integer + */ + public $latitudeInMicroDegrees; + + /** + * @access public + * @var integer + */ + public $longitudeInMicroDegrees; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoPoint"; + } + + public function __construct($latitudeInMicroDegrees = NULL, $longitudeInMicroDegrees = NULL) { + $this->latitudeInMicroDegrees = $latitudeInMicroDegrees; + $this->longitudeInMicroDegrees = $longitudeInMicroDegrees; + } +}} + +if (!class_exists("LocationOverrideInfo", FALSE)) { +/** + * Represents override info for ad level LocationExtension overrides. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationOverrideInfo { + /** + * @access public + * @var integer + */ + public $radius; + + /** + * @access public + * @var tnsLocationOverrideInfoRadiusUnits + */ + public $radiusUnits; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationOverrideInfo"; + } + + public function __construct($radius = NULL, $radiusUnits = NULL) { + $this->radius = $radius; + $this->radiusUnits = $radiusUnits; + } +}} + +if (!class_exists("OAuthInfo", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OAuthInfo { + /** + * @access public + * @var string + */ + public $httpMethod; + + /** + * @access public + * @var string + */ + public $httpRequestUrl; + + /** + * @access public + * @var string + */ + public $httpAuthorizationHeader; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuthInfo"; + } + + public function __construct($httpMethod = NULL, $httpRequestUrl = NULL, $httpAuthorizationHeader = NULL) { + $this->httpMethod = $httpMethod; + $this->httpRequestUrl = $httpRequestUrl; + $this->httpAuthorizationHeader = $httpAuthorizationHeader; + } +}} + +if (!class_exists("OverrideInfo", FALSE)) { +/** + * Represents additional override info with which to augment the override + * extension. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OverrideInfo { + /** + * @access public + * @var LocationOverrideInfo + */ + public $LocationOverrideInfo; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OverrideInfo"; + } + + public function __construct($LocationOverrideInfo = NULL) { + $this->LocationOverrideInfo = $LocationOverrideInfo; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Sitelink", FALSE)) { +/** + * Class to represent a single sitelink + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Sitelink { + /** + * @access public + * @var string + */ + public $displayText; + + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Sitelink"; + } + + public function __construct($displayText = NULL, $destinationUrl = NULL) { + $this->displayText = $displayText; + $this->destinationUrl = $destinationUrl; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("AdExtensionOverrideSelector", FALSE)) { +/** + * Specifies criteria for selecting a set of AdExtensionOverrides. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideSelector { + /** + * @access public + * @var integer[] + */ + public $campaignIds; + + /** + * @access public + * @var integer[] + */ + public $adIds; + + /** + * @access public + * @var integer[] + */ + public $adExtensionIds; + + /** + * @access public + * @var tnsAdExtensionOverrideStatus[] + */ + public $statuses; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverrideSelector"; + } + + public function __construct($campaignIds = NULL, $adIds = NULL, $adExtensionIds = NULL, $statuses = NULL, $paging = NULL) { + $this->campaignIds = $campaignIds; + $this->adIds = $adIds; + $this->adExtensionIds = $adExtensionIds; + $this->statuses = $statuses; + $this->paging = $paging; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("Stats", FALSE)) { +/** + * Statistics about an ad or criterion within an ad group or campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Stats { + /** + * @access public + * @var string + */ + public $startDate; + + /** + * @access public + * @var string + */ + public $endDate; + + /** + * @access public + * @var tnsStatsNetwork + */ + public $network; + + /** + * @access public + * @var integer + */ + public $clicks; + + /** + * @access public + * @var integer + */ + public $impressions; + + /** + * @access public + * @var Money + */ + public $cost; + + /** + * @access public + * @var double + */ + public $averagePosition; + + /** + * @access public + * @var Money + */ + public $averageCpc; + + /** + * @access public + * @var Money + */ + public $averageCpm; + + /** + * @access public + * @var double + */ + public $ctr; + + /** + * @access public + * @var integer + */ + public $conversions; + + /** + * @access public + * @var integer + */ + public $viewThroughConversions; + + /** + * @access public + * @var Money + */ + public $totalBudget; + + /** + * @access public + * @var string + */ + public $StatsType; + + private $_parameterMap = array ( + "Stats.Type" => "StatsType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats"; + } + + public function __construct($startDate = NULL, $endDate = NULL, $network = NULL, $clicks = NULL, $impressions = NULL, $cost = NULL, $averagePosition = NULL, $averageCpc = NULL, $averageCpm = NULL, $ctr = NULL, $conversions = NULL, $viewThroughConversions = NULL, $totalBudget = NULL, $StatsType = NULL) { + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->network = $network; + $this->clicks = $clicks; + $this->impressions = $impressions; + $this->cost = $cost; + $this->averagePosition = $averagePosition; + $this->averageCpc = $averageCpc; + $this->averageCpm = $averageCpm; + $this->ctr = $ctr; + $this->conversions = $conversions; + $this->viewThroughConversions = $viewThroughConversions; + $this->totalBudget = $totalBudget; + $this->StatsType = $StatsType; + } +}} + +if (!class_exists("AdExtension", FALSE)) { +/** + * Base class for AdExtension objects. An AdExtension is an extension to + * an existing ad or metadata that will process into an extension. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtension { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $AdExtensionType; + + private $_parameterMap = array ( + "AdExtension.Type" => "AdExtensionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtension"; + } + + public function __construct($id = NULL, $AdExtensionType = NULL) { + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("AdExtensionOverride", FALSE)) { +/** + * Represents an ad level ad extension override. An ad extension override + * specifies the ad extension that must be used if the ad is served with + * any ad extension data. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverride { + /** + * @access public + * @var integer + */ + public $adId; + + /** + * @access public + * @var AdExtension + */ + public $adExtension; + + /** + * @access public + * @var OverrideInfo + */ + public $overrideInfo; + + /** + * @access public + * @var tnsAdExtensionOverrideStatus + */ + public $status; + + /** + * @access public + * @var tnsAdExtensionOverrideApprovalStatus + */ + public $approvalStatus; + + /** + * @access public + * @var AdExtensionOverrideStats + */ + public $stats; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverride"; + } + + public function __construct($adId = NULL, $adExtension = NULL, $overrideInfo = NULL, $status = NULL, $approvalStatus = NULL, $stats = NULL) { + $this->adId = $adId; + $this->adExtension = $adExtension; + $this->overrideInfo = $overrideInfo; + $this->status = $status; + $this->approvalStatus = $approvalStatus; + $this->stats = $stats; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdExtensionOverrideApprovalStatus", FALSE)) { +/** + * Approval status for the AdExtensionOverride + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverride.ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdExtensionOverrideStatus", FALSE)) { +/** + * Status of the AdExtensionOverride + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverride.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdExtensionOverrideErrorReason", FALSE)) { +/** + * Cannot override an ad that is already overriden with an adextension + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverrideError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InAppLinkExtensionAppStore", FALSE)) { +/** + * The AppStore this extension will render for. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InAppLinkExtensionAppStore { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InAppLinkExtension.AppStore"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationExtensionSource", FALSE)) { +/** + * From manual entry in adwords frontend + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationExtensionSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationExtension.Source"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationOverrideInfoRadiusUnits", FALSE)) { +/** + * Radius units + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationOverrideInfoRadiusUnits { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationOverrideInfo.RadiusUnits"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsNetwork", FALSE)) { +/** + * Ad network. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsNetwork { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats.Network"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdExtensionOverrideServiceGet", FALSE)) { +/** + * Returns a list of AdExtensionOverrides based on an + * AdExtensionOverrideSelector. + * @param selector The selector specifying the query. + * @return The page containing the AdExtensionOverride which meet the + * criteria specified by the selector. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideServiceGet { + /** + * @access public + * @var AdExtensionOverrideSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("AdExtensionOverrideServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideServiceGetResponse { + /** + * @access public + * @var AdExtensionOverridePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdExtensionOverrideServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, REMOVE. + * + * + * + * Applies the list of mutate operations. + * + *

Conditions for adding an ad-level AdExtension override using an AdExtension + * under the Ad's campaign:

+ *
    + *
  1. If the text ad has never been overridden, an AdExtension override may + * be set on the creative using an extension under the campaign, along with + * any override info.
  2. + *
  3. If the text ad has been overriden before, the latitude/longitude of the + * new extension override must be the same as the previous override and + * no override info can be specified (i.e. the override info will inherit from + * the previous override info).
  4. + *
+ * + * @param operations The operations to apply. The same ad extension override + * cannot be specified in more than one operation. + * @return The applied ad extension overrides. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideServiceMutate { + /** + * @access public + * @var AdExtensionOverrideOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("AdExtensionOverrideServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideServiceMutateResponse { + /** + * @access public + * @var AdExtensionOverrideReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdExtensionOverrideError", FALSE)) { +/** + * AdExtensionOverride errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideError extends ApiError { + /** + * @access public + * @var tnsAdExtensionOverrideErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverrideError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdExtensionOverrideStats", FALSE)) { +/** + * Represents stats specific to AdExtensionOverrides. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideStats extends Stats { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverrideStats"; + } + + public function __construct($startDate = NULL, $endDate = NULL, $network = NULL, $clicks = NULL, $impressions = NULL, $cost = NULL, $averagePosition = NULL, $averageCpc = NULL, $averageCpm = NULL, $ctr = NULL, $conversions = NULL, $viewThroughConversions = NULL, $totalBudget = NULL, $StatsType = NULL) { + parent::__construct(); + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->network = $network; + $this->clicks = $clicks; + $this->impressions = $impressions; + $this->cost = $cost; + $this->averagePosition = $averagePosition; + $this->averageCpc = $averageCpc; + $this->averageCpm = $averageCpm; + $this->ctr = $ctr; + $this->conversions = $conversions; + $this->viewThroughConversions = $viewThroughConversions; + $this->totalBudget = $totalBudget; + $this->StatsType = $StatsType; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DomainInfoExtension", FALSE)) { +/** + * Domain extension, which adds domain info to ads. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DomainInfoExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $domainName; + + /** + * @access public + * @var string + */ + public $languageCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DomainInfoExtension"; + } + + public function __construct($domainName = NULL, $languageCode = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->domainName = $domainName; + $this->languageCode = $languageCode; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("InAppLinkExtension", FALSE)) { +/** + *

This extension is useful for advertisers who wish to provide users with a + * link that points to the advertiser's mobile application in addition to their + * website. + * + *

It is also known as Mobile App Extension. + * + *

The API allows one InAppLinkExtension per {@code AppStore} per campaign. + * Only the extension for a given {@code AppStore} will render on the device + * relevant to that {@code AppStore} (e.g. iPhones for {@code AppStore.ITUNES} + * and Android phones for {@code AppStore.GOOGLE_PLAY}). + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InAppLinkExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $inAppLinkText; + + /** + * @access public + * @var string + */ + public $inAppLinkUrl; + + /** + * @access public + * @var tnsInAppLinkExtensionAppStore + */ + public $appStore; + + /** + * @access public + * @var string + */ + public $appId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InAppLinkExtension"; + } + + public function __construct($inAppLinkText = NULL, $inAppLinkUrl = NULL, $appStore = NULL, $appId = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->inAppLinkText = $inAppLinkText; + $this->inAppLinkUrl = $inAppLinkUrl; + $this->appStore = $appStore; + $this->appId = $appId; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("MobileExtension", FALSE)) { +/** + * Represents a phone extension. + * + *

This type of ad extension attaches a phone number + * to a text ad, which lets customers call the advertiser directly from the ad. + * Phone extensions will appear as clickable phone numbers beneath the main text ad, + * and will be visible to high-end mobile device users who access google.com search, + * Voice search, Google Mobile App, or Google Maps for Mobile from their phone. + *

+ *

Learn more about + * + * phone extensions. + *

+ * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $phoneNumber; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * @access public + * @var boolean + */ + public $isCallTrackingEnabled; + + /** + * @access public + * @var boolean + */ + public $isCallOnly; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileExtension"; + } + + public function __construct($phoneNumber = NULL, $countryCode = NULL, $isCallTrackingEnabled = NULL, $isCallOnly = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->phoneNumber = $phoneNumber; + $this->countryCode = $countryCode; + $this->isCallTrackingEnabled = $isCallTrackingEnabled; + $this->isCallOnly = $isCallOnly; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SitelinksExtension", FALSE)) { +/** + * Class to represent a set of sitelinks and their order of preference. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SitelinksExtension extends AdExtension { + /** + * @access public + * @var Sitelink[] + */ + public $sitelinks; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SitelinksExtension"; + } + + public function __construct($sitelinks = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->sitelinks = $sitelinks; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("LocationExtension", FALSE)) { +/** + * Location based ad extension. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationExtension extends AdExtension { + /** + * @access public + * @var Address + */ + public $address; + + /** + * @access public + * @var GeoPoint + */ + public $geoPoint; + + /** + * @access public + * @var base64Binary + */ + public $encodedLocation; + + /** + * @access public + * @var string + */ + public $companyName; + + /** + * @access public + * @var string + */ + public $phoneNumber; + + /** + * @access public + * @var tnsLocationExtensionSource + */ + public $source; + + /** + * @access public + * @var integer + */ + public $iconMediaId; + + /** + * @access public + * @var integer + */ + public $imageMediaId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationExtension"; + } + + public function __construct($address = NULL, $geoPoint = NULL, $encodedLocation = NULL, $companyName = NULL, $phoneNumber = NULL, $source = NULL, $iconMediaId = NULL, $imageMediaId = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->address = $address; + $this->geoPoint = $geoPoint; + $this->encodedLocation = $encodedLocation; + $this->companyName = $companyName; + $this->phoneNumber = $phoneNumber; + $this->source = $source; + $this->iconMediaId = $iconMediaId; + $this->imageMediaId = $imageMediaId; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("LocationSyncExtension", FALSE)) { +/** + * Local business center(LBC) sync extension that ties a LBC account with a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationSyncExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $email; + + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var OAuthInfo + */ + public $oAuthInfo; + + /** + * @access public + * @var integer + */ + public $iconMediaId; + + /** + * @access public + * @var boolean + */ + public $shouldSyncUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationSyncExtension"; + } + + public function __construct($email = NULL, $authToken = NULL, $oAuthInfo = NULL, $iconMediaId = NULL, $shouldSyncUrl = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->email = $email; + $this->authToken = $authToken; + $this->oAuthInfo = $oAuthInfo; + $this->iconMediaId = $iconMediaId; + $this->shouldSyncUrl = $shouldSyncUrl; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("AdExtensionOverrideOperation", FALSE)) { +/** + * AdExtensionOverride service operation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideOperation extends Operation { + /** + * @access public + * @var AdExtensionOverride + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverrideOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdExtensionOverridePage", FALSE)) { +/** + * Represents a page of {@link AdExtensionOverride}s resulting from the query + * done by {@link AdExtensionOverrideService}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverridePage extends Page { + /** + * @access public + * @var AdExtensionOverride[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverridePage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdExtensionOverrideReturnValue", FALSE)) { +/** + * A container for return values from AdExtensionOverrideService.mutate(). + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideReturnValue extends ListReturnValue { + /** + * @access public + * @var AdExtensionOverride[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverrideReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("AdExtensionOverrideService", FALSE)) { +/** + * AdExtensionOverrideService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class AdExtensionOverrideService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "AdExtensionOverrideServiceGetResponse", + "get" => "AdExtensionOverrideServiceGet", + "mutate" => "AdExtensionOverrideServiceMutate", + "mutateResponse" => "AdExtensionOverrideServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdExtensionOverrideError" => "AdExtensionOverrideError", + "ApiError" => "ApiError", + "AdExtensionOverrideStats" => "AdExtensionOverrideStats", + "Stats" => "Stats", + "Address" => "Address", + "AdxError" => "AdxError", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DistinctError" => "DistinctError", + "DomainInfoExtension" => "DomainInfoExtension", + "AdExtension" => "AdExtension", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EntityNotFound" => "EntityNotFound", + "GeoPoint" => "GeoPoint", + "IdError" => "IdError", + "InAppLinkExtension" => "InAppLinkExtension", + "InternalApiError" => "InternalApiError", + "LocationOverrideInfo" => "LocationOverrideInfo", + "LongValue" => "LongValue", + "MobileExtension" => "MobileExtension", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "ComparableValue" => "ComparableValue", + "OAuthInfo" => "OAuthInfo", + "OperatorError" => "OperatorError", + "OverrideInfo" => "OverrideInfo", + "Paging" => "Paging", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "Sitelink" => "Sitelink", + "SitelinksExtension" => "SitelinksExtension", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "AdExtensionOverrideSelector" => "AdExtensionOverrideSelector", + "DatabaseError" => "DatabaseError", + "LocationExtension" => "LocationExtension", + "Money" => "Money", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "LocationSyncExtension" => "LocationSyncExtension", + "AdExtensionOverride" => "AdExtensionOverride", + "AdExtensionOverrideOperation" => "AdExtensionOverrideOperation", + "Operation" => "Operation", + "AdExtensionOverridePage" => "AdExtensionOverridePage", + "Page" => "Page", + "AdExtensionOverrideReturnValue" => "AdExtensionOverrideReturnValue", + "ListReturnValue" => "ListReturnValue", + "AdExtensionOverride.ApprovalStatus" => "AdExtensionOverrideApprovalStatus", + "AdExtensionOverride.Status" => "AdExtensionOverrideStatus", + "AdExtensionOverrideError.Reason" => "AdExtensionOverrideErrorReason", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InAppLinkExtension.AppStore" => "InAppLinkExtensionAppStore", + "InternalApiError.Reason" => "InternalApiErrorReason", + "LocationExtension.Source" => "LocationExtensionSource", + "LocationOverrideInfo.RadiusUnits" => "LocationOverrideInfoRadiusUnits", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "Stats.Network" => "StatsNetwork", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/AdExtensionOverrideService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AdExtensionOverrideService::$classmap; + parent::__construct($wsdl, $options, $user, 'AdExtensionOverrideService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * Returns a list of AdExtensionOverrides based on an + * AdExtensionOverrideSelector. + * @param selector The selector specifying the query. + * @return The page containing the AdExtensionOverride which meet the + * criteria specified by the selector. + */ + public function get($selector) { + $arg = new AdExtensionOverrideServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, REMOVE. + * + * + * + * Applies the list of mutate operations. + * + *

Conditions for adding an ad-level AdExtension override using an AdExtension + * under the Ad's campaign:

+ *
    + *
  1. If the text ad has never been overridden, an AdExtension override may + * be set on the creative using an extension under the campaign, along with + * any override info.
  2. + *
  3. If the text ad has been overriden before, the latitude/longitude of the + * new extension override must be the same as the previous override and + * no override info can be specified (i.e. the override info will inherit from + * the previous override info).
  4. + *
+ * + * @param operations The operations to apply. The same ad extension override + * cannot be specified in more than one operation. + * @return The applied ad extension overrides. + */ + public function mutate($operations) { + $arg = new AdExtensionOverrideServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/AdGroupAdService.php b/src/Google/Api/Ads/AdWords/v201306/AdGroupAdService.php new file mode 100755 index 000000000..02627e53b --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/AdGroupAdService.php @@ -0,0 +1,6604 @@ +This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Ad { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $url; + + /** + * @access public + * @var string + */ + public $displayUrl; + + /** + * @access public + * @var integer + */ + public $devicePreference; + + /** + * @access public + * @var string[] + */ + public $disapprovalReasons; + + /** + * @access public + * @var string + */ + public $AdType; + + private $_parameterMap = array ( + "Ad.Type" => "AdType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Ad"; + } + + public function __construct($id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("AdGroupAd", FALSE)) { +/** + * Represents an ad in an ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAd { + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var Ad + */ + public $ad; + + /** + * @access public + * @var AdGroupAdExperimentData + */ + public $experimentData; + + /** + * @access public + * @var tnsAdGroupAdStatus + */ + public $status; + + /** + * @access public + * @var tnsAdGroupAdApprovalStatus + */ + public $approvalStatus; + + /** + * @access public + * @var boolean + */ + public $trademarkDisapproved; + + /** + * @access public + * @var AdStats + */ + public $stats; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAd"; + } + + public function __construct($adGroupId = NULL, $ad = NULL, $experimentData = NULL, $status = NULL, $approvalStatus = NULL, $trademarkDisapproved = NULL, $stats = NULL, $forwardCompatibilityMap = NULL) { + $this->adGroupId = $adGroupId; + $this->ad = $ad; + $this->experimentData = $experimentData; + $this->status = $status; + $this->approvalStatus = $approvalStatus; + $this->trademarkDisapproved = $trademarkDisapproved; + $this->stats = $stats; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + } +}} + +if (!class_exists("AdGroupAdExperimentData", FALSE)) { +/** + * Data associated with an advertiser experiment for an AdGroupAd + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdExperimentData { + /** + * @access public + * @var integer + */ + public $experimentId; + + /** + * @access public + * @var tnsExperimentDeltaStatus + */ + public $experimentDeltaStatus; + + /** + * @access public + * @var tnsExperimentDataStatus + */ + public $experimentDataStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdExperimentData"; + } + + public function __construct($experimentId = NULL, $experimentDeltaStatus = NULL, $experimentDataStatus = NULL) { + $this->experimentId = $experimentId; + $this->experimentDeltaStatus = $experimentDeltaStatus; + $this->experimentDataStatus = $experimentDataStatus; + } +}} + +if (!class_exists("AdUnionId", FALSE)) { +/** + * Represents an id indicating a grouping of Ads under some heuristic. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdUnionId { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $AdUnionIdType; + + private $_parameterMap = array ( + "AdUnionId.Type" => "AdUnionIdType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnionId"; + } + + public function __construct($id = NULL, $AdUnionIdType = NULL) { + $this->id = $id; + $this->AdUnionIdType = $AdUnionIdType; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateRange", FALSE)) { +/** + * Represents a range of dates that has either an upper or a lower bound. + * The format for the date is YYYYMMDD. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("DeprecatedAd", FALSE)) { +/** + * Represents a deprecated ad. + * + * Deprecated ads can be deleted, but cannot be created. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DeprecatedAd extends Ad { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsDeprecatedAdType + */ + public $type; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeprecatedAd"; + } + + public function __construct($name = NULL, $type = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->name = $name; + $this->type = $type; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("Dimensions", FALSE)) { +/** + * Represents a simple height-width dimension. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Dimensions { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Dimensions"; + } + + public function __construct($width = NULL, $height = NULL) { + $this->width = $width; + $this->height = $height; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ExemptionRequest", FALSE)) { +/** + * A request to be exempted from a {@link PolicyViolationError}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExemptionRequest { + /** + * @access public + * @var PolicyViolationKey + */ + public $key; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExemptionRequest"; + } + + public function __construct($key = NULL) { + $this->key = $key; + } +}} + +if (!class_exists("ForwardCompatibilityError", FALSE)) { +/** + * A ForwardComptibilityError represents possible errors when using the forwardCompatibilityMap + * in some of the common services. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ForwardCompatibilityError extends ApiError { + /** + * @access public + * @var tnsForwardCompatibilityErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ImageAd", FALSE)) { +/** + * Represents an ImageAd. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ImageAd extends Ad { + /** + * @access public + * @var Image + */ + public $image; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $adToCopyImageFrom; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageAd"; + } + + public function __construct($image = NULL, $name = NULL, $adToCopyImageFrom = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->image = $image; + $this->name = $name; + $this->adToCopyImageFrom = $adToCopyImageFrom; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("ImageError", FALSE)) { +/** + * Error class for errors associated with parsing image data. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ImageError extends ApiError { + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Media", FALSE)) { +/** + * Represents some kind of media. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Media { + /** + * @access public + * @var integer + */ + public $mediaId; + + /** + * @access public + * @var tnsMediaMediaType + */ + public $type; + + /** + * @access public + * @var integer + */ + public $referenceId; + + /** + * @access public + * @var Media_Size_DimensionsMapEntry[] + */ + public $dimensions; + + /** + * @access public + * @var Media_Size_StringMapEntry[] + */ + public $urls; + + /** + * @access public + * @var tnsMediaMimeType + */ + public $mimeType; + + /** + * @access public + * @var string + */ + public $sourceUrl; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $fileSize; + + /** + * @access public + * @var string + */ + public $creationTime; + + /** + * @access public + * @var string + */ + public $MediaType; + + private $_parameterMap = array ( + "Media.Type" => "MediaType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media"; + } + + public function __construct($mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("MediaError", FALSE)) { +/** + * Error class for media related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaError extends ApiError { + /** + * @access public + * @var tnsMediaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MediaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Media_Size_DimensionsMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Size + * and value of type Dimensions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Media_Size_DimensionsMapEntry { + /** + * @access public + * @var tnsMediaSize + */ + public $key; + + /** + * @access public + * @var Dimensions + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media_Size_DimensionsMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Media_Size_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Size + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Media_Size_StringMapEntry { + /** + * @access public + * @var tnsMediaSize + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media_Size_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("MobileAd", FALSE)) { +/** + * Represents a mobile ad. + * + *

+ * A mobile ad can contain a click-to-call phone number, a link to a website, + * or both. You specify which features you want by setting certain fields, as + * shown in the following table. For example, to create a click-to-call mobile + * ad, set the fields in the Click-to-call column. A hyphen indicates + * that you should not set the corresponding field. + *

+ *

+ * For more information, see + * + * Create a mobile ad. + *

+ * + * + * + * + * + * + * + * + *
Click-to-call Website Both
headline
+ * description
+ * mobileCarriers
+ * phoneNumber
+ * countryCode
+ * businessName
+ * -
+ * -
+ * -
+ *
headline
+ * description
+ * mobileCarriers
+ * -
+ * -
+ * -
+ * displayUrl
+ * destinationUrl
+ * markupLanguages
+ *
headline
+ * description
+ * mobileCarriers
+ * phoneNumber
+ * countryCode
+ * businessName
+ * displayUrl
+ * destinationUrl
+ * markupLanguages
+ *
+ * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileAd extends Ad { + /** + * @access public + * @var string + */ + public $headline; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsMarkupLanguageType[] + */ + public $markupLanguages; + + /** + * @access public + * @var string[] + */ + public $mobileCarriers; + + /** + * @access public + * @var string + */ + public $businessName; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * @access public + * @var string + */ + public $phoneNumber; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAd"; + } + + public function __construct($headline = NULL, $description = NULL, $markupLanguages = NULL, $mobileCarriers = NULL, $businessName = NULL, $countryCode = NULL, $phoneNumber = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->headline = $headline; + $this->description = $description; + $this->markupLanguages = $markupLanguages; + $this->mobileCarriers = $mobileCarriers; + $this->businessName = $businessName; + $this->countryCode = $countryCode; + $this->phoneNumber = $phoneNumber; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("MobileImageAd", FALSE)) { +/** + * Represents a mobile image ad. + * + *

For more information, see + * + * Create a mobile ad.

+ * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileImageAd extends Ad { + /** + * @access public + * @var tnsMarkupLanguageType[] + */ + public $markupLanguages; + + /** + * @access public + * @var string[] + */ + public $mobileCarriers; + + /** + * @access public + * @var Image + */ + public $image; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileImageAd"; + } + + public function __construct($markupLanguages = NULL, $mobileCarriers = NULL, $image = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->markupLanguages = $markupLanguages; + $this->mobileCarriers = $mobileCarriers; + $this->image = $image; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("PagingError", FALSE)) { +/** + * Error codes for pagination. + * See {@link com.google.ads.api.services.common.pagination.Paging}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PagingError extends ApiError { + /** + * @access public + * @var tnsPagingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PolicyViolationError", FALSE)) { +/** + * Represents violations of a single policy by some text in a field. + * + * Violations of a single policy by the same string in multiple places + * within a field is reported in one instance of this class and only one + * exemption needs to be filed. + * Violations of a single policy by two different strings is reported + * as two separate instances of this class. + * + * e.g. If 'ACME' violates 'capitalization' and occurs twice in a text ad it + * would be represented by one instance. If the ad also contains 'INC' which + * also violates 'capitalization' it would be represented in a separate + * instance. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PolicyViolationError extends ApiError { + /** + * @access public + * @var PolicyViolationKey + */ + public $key; + + /** + * @access public + * @var string + */ + public $externalPolicyName; + + /** + * @access public + * @var string + */ + public $externalPolicyUrl; + + /** + * @access public + * @var string + */ + public $externalPolicyDescription; + + /** + * @access public + * @var boolean + */ + public $isExemptable; + + /** + * @access public + * @var PolicyViolationErrorPart[] + */ + public $violatingParts; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PolicyViolationErrorPart", FALSE)) { +/** + * Points to a substring within an ad field or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PolicyViolationErrorPart { + /** + * @access public + * @var integer + */ + public $index; + + /** + * @access public + * @var integer + */ + public $length; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError.Part"; + } + + public function __construct($index = NULL, $length = NULL) { + $this->index = $index; + $this->length = $length; + } +}} + +if (!class_exists("PolicyViolationKey", FALSE)) { +/** + * Key of the violation. The key is used for referring to a violation when + * filing an exemption request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PolicyViolationKey { + /** + * @access public + * @var string + */ + public $policyName; + + /** + * @access public + * @var string + */ + public $violatingText; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationKey"; + } + + public function __construct($policyName = NULL, $violatingText = NULL) { + $this->policyName = $policyName; + $this->violatingText = $violatingText; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("ProductAd", FALSE)) { +/** + * Represents a product ad (known as a product + * listing ad in the AdWords user interface). A product ad displays + * product data (managed using the Google Merchant Center) that is + * pulled from the Google base product feed specified in the parent campaign's + * {@linkplain ProductExtension product extension}. + * + *

Product ads are only available to a limited set of advertisers. If you + * are not eligible to use product ads, they will not serve.

+ * + *

Caution: Product ads do not use {@link #url url} or + * {@link #displayUrl displayUrl}; setting these fields on a product ad will + * cause an error.

+ * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ProductAd extends Ad { + /** + * @access public + * @var string + */ + public $promotionLine; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductAd"; + } + + public function __construct($promotionLine = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->promotionLine = $promotionLine; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("QueryError", FALSE)) { +/** + * A QueryError represents possible errors for query parsing and execution. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QueryError extends ApiError { + /** + * @access public + * @var tnsQueryErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError"; + } + + public function __construct($reason = NULL, $message = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->message = $message; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RichMediaAd", FALSE)) { +/** + * Data associated with a rich media ad. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RichMediaAd extends Ad { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var Dimensions + */ + public $dimensions; + + /** + * @access public + * @var string + */ + public $snippet; + + /** + * @access public + * @var string + */ + public $impressionBeaconUrl; + + /** + * @access public + * @var integer + */ + public $adDuration; + + /** + * @access public + * @var integer + */ + public $certifiedVendorFormatId; + + /** + * @access public + * @var string + */ + public $sourceUrl; + + /** + * @access public + * @var tnsRichMediaAdRichMediaAdType + */ + public $richMediaAdType; + + /** + * @access public + * @var tnsRichMediaAdAdAttribute[] + */ + public $adAttributes; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaAd"; + } + + public function __construct($name = NULL, $dimensions = NULL, $snippet = NULL, $impressionBeaconUrl = NULL, $adDuration = NULL, $certifiedVendorFormatId = NULL, $sourceUrl = NULL, $richMediaAdType = NULL, $adAttributes = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->name = $name; + $this->dimensions = $dimensions; + $this->snippet = $snippet; + $this->impressionBeaconUrl = $impressionBeaconUrl; + $this->adDuration = $adDuration; + $this->certifiedVendorFormatId = $certifiedVendorFormatId; + $this->sourceUrl = $sourceUrl; + $this->richMediaAdType = $richMediaAdType; + $this->adAttributes = $adAttributes; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Stats", FALSE)) { +/** + * Statistics about an ad or criterion within an ad group or campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Stats { + /** + * @access public + * @var string + */ + public $startDate; + + /** + * @access public + * @var string + */ + public $endDate; + + /** + * @access public + * @var tnsStatsNetwork + */ + public $network; + + /** + * @access public + * @var integer + */ + public $clicks; + + /** + * @access public + * @var integer + */ + public $impressions; + + /** + * @access public + * @var Money + */ + public $cost; + + /** + * @access public + * @var double + */ + public $averagePosition; + + /** + * @access public + * @var Money + */ + public $averageCpc; + + /** + * @access public + * @var Money + */ + public $averageCpm; + + /** + * @access public + * @var double + */ + public $ctr; + + /** + * @access public + * @var integer + */ + public $conversions; + + /** + * @access public + * @var integer + */ + public $viewThroughConversions; + + /** + * @access public + * @var Money + */ + public $totalBudget; + + /** + * @access public + * @var string + */ + public $StatsType; + + private $_parameterMap = array ( + "Stats.Type" => "StatsType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats"; + } + + public function __construct($startDate = NULL, $endDate = NULL, $network = NULL, $clicks = NULL, $impressions = NULL, $cost = NULL, $averagePosition = NULL, $averageCpc = NULL, $averageCpm = NULL, $ctr = NULL, $conversions = NULL, $viewThroughConversions = NULL, $totalBudget = NULL, $StatsType = NULL) { + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->network = $network; + $this->clicks = $clicks; + $this->impressions = $impressions; + $this->cost = $cost; + $this->averagePosition = $averagePosition; + $this->averageCpc = $averageCpc; + $this->averageCpm = $averageCpm; + $this->ctr = $ctr; + $this->conversions = $conversions; + $this->viewThroughConversions = $viewThroughConversions; + $this->totalBudget = $totalBudget; + $this->StatsType = $StatsType; + } +}} + +if (!class_exists("StatsQueryError", FALSE)) { +/** + * Represents possible error codes when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsQueryError extends ApiError { + /** + * @access public + * @var tnsStatsQueryErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class String_StringMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TempAdUnionId", FALSE)) { +/** + * Represents the temporary id for an ad union id, which the user can specify. + * The temporary id can be used to group ads together during ad creation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TempAdUnionId extends AdUnionId { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TempAdUnionId"; + } + + public function __construct($id = NULL, $AdUnionIdType = NULL) { + parent::__construct(); + $this->id = $id; + $this->AdUnionIdType = $AdUnionIdType; + } +}} + +if (!class_exists("TemplateAd", FALSE)) { +/** + * Represents a Display Ad Builder template ad. A template ad is + * composed of a template (specified by its ID) and the data that populates + * the template's fields. For a list of available templates and their required + * fields, see Template Ads. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TemplateAd extends Ad { + /** + * @access public + * @var integer + */ + public $templateId; + + /** + * @access public + * @var AdUnionId + */ + public $adUnionId; + + /** + * @access public + * @var TemplateElement[] + */ + public $templateElements; + + /** + * @access public + * @var Dimensions + */ + public $dimensions; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateAd"; + } + + public function __construct($templateId = NULL, $adUnionId = NULL, $templateElements = NULL, $dimensions = NULL, $name = NULL, $duration = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->templateId = $templateId; + $this->adUnionId = $adUnionId; + $this->templateElements = $templateElements; + $this->dimensions = $dimensions; + $this->name = $name; + $this->duration = $duration; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("TemplateElement", FALSE)) { +/** + * Represents an element in a template. Each template element is composed + * of a list of fields (actual value data). + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TemplateElement { + /** + * @access public + * @var string + */ + public $uniqueName; + + /** + * @access public + * @var TemplateElementField[] + */ + public $fields; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateElement"; + } + + public function __construct($uniqueName = NULL, $fields = NULL) { + $this->uniqueName = $uniqueName; + $this->fields = $fields; + } +}} + +if (!class_exists("TemplateElementField", FALSE)) { +/** + * Represents a field in a template element. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TemplateElementField { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsTemplateElementFieldType + */ + public $type; + + /** + * @access public + * @var string + */ + public $fieldText; + + /** + * @access public + * @var Media + */ + public $fieldMedia; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateElementField"; + } + + public function __construct($name = NULL, $type = NULL, $fieldText = NULL, $fieldMedia = NULL) { + $this->name = $name; + $this->type = $type; + $this->fieldText = $fieldText; + $this->fieldMedia = $fieldMedia; + } +}} + +if (!class_exists("TextAd", FALSE)) { +/** + * Represents a TextAd. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TextAd extends Ad { + /** + * @access public + * @var string + */ + public $headline; + + /** + * @access public + * @var string + */ + public $description1; + + /** + * @access public + * @var string + */ + public $description2; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextAd"; + } + + public function __construct($headline = NULL, $description1 = NULL, $description2 = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->headline = $headline; + $this->description1 = $description1; + $this->description2 = $description2; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("ThirdPartyRedirectAd", FALSE)) { +/** + * Data associated with rich media extension attributes. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ThirdPartyRedirectAd extends RichMediaAd { + /** + * @access public + * @var boolean + */ + public $isCookieTargeted; + + /** + * @access public + * @var boolean + */ + public $isUserInterestTargeted; + + /** + * @access public + * @var boolean + */ + public $isTagged; + + /** + * @access public + * @var tnsVideoType[] + */ + public $videoTypes; + + /** + * @access public + * @var tnsThirdPartyRedirectAdExpandingDirection[] + */ + public $expandingDirections; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartyRedirectAd"; + } + + public function __construct($isCookieTargeted = NULL, $isUserInterestTargeted = NULL, $isTagged = NULL, $videoTypes = NULL, $expandingDirections = NULL, $name = NULL, $dimensions = NULL, $snippet = NULL, $impressionBeaconUrl = NULL, $adDuration = NULL, $certifiedVendorFormatId = NULL, $sourceUrl = NULL, $richMediaAdType = NULL, $adAttributes = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->isCookieTargeted = $isCookieTargeted; + $this->isUserInterestTargeted = $isUserInterestTargeted; + $this->isTagged = $isTagged; + $this->videoTypes = $videoTypes; + $this->expandingDirections = $expandingDirections; + $this->name = $name; + $this->dimensions = $dimensions; + $this->snippet = $snippet; + $this->impressionBeaconUrl = $impressionBeaconUrl; + $this->adDuration = $adDuration; + $this->certifiedVendorFormatId = $certifiedVendorFormatId; + $this->sourceUrl = $sourceUrl; + $this->richMediaAdType = $richMediaAdType; + $this->adAttributes = $adAttributes; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("Video", FALSE)) { +/** + * Encapsulates a Video media identified by a MediaId. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Video extends Media { + /** + * @access public + * @var integer + */ + public $durationMillis; + + /** + * @access public + * @var string + */ + public $streamingUrl; + + /** + * @access public + * @var boolean + */ + public $readyToPlayOnTheWeb; + + /** + * @access public + * @var string + */ + public $industryStandardCommercialIdentifier; + + /** + * @access public + * @var string + */ + public $advertisingId; + + /** + * @access public + * @var string + */ + public $youTubeVideoIdString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Video"; + } + + public function __construct($durationMillis = NULL, $streamingUrl = NULL, $readyToPlayOnTheWeb = NULL, $industryStandardCommercialIdentifier = NULL, $advertisingId = NULL, $youTubeVideoIdString = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->durationMillis = $durationMillis; + $this->streamingUrl = $streamingUrl; + $this->readyToPlayOnTheWeb = $readyToPlayOnTheWeb; + $this->industryStandardCommercialIdentifier = $industryStandardCommercialIdentifier; + $this->advertisingId = $advertisingId; + $this->youTubeVideoIdString = $youTubeVideoIdString; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("DynamicSearchAd", FALSE)) { +/** + * Represents a dynamic search ad. This ad will have its headline and + * destination URL auto-generated at serving time according to domain name + * specific information provided by {@link DomainInfoExtension} linked at the + * campaign level. + * + *

Auto-generated fields: headline and destination URL (may contain an optional + * tracking URL)

+ * + *

Required fields: description1, description2, displayUrl

+ * + *

The URL field must contain at least one of the following placeholder tags + * (URL parameters): {unescapedlpurl}, {escapedlpurl}, {lpurlpath}. If no URL is + * specified, {unescapedlpurl} will be used as default.

+ * + *

{unescapedlpurl} can only be used at the beginning of the URL field. It + * will be replaced with the full landing page URL of the displayed ad. Extra query + * parameters can be added to the end, e.g. "{unescapedlpurl}?lang=en".

+ * + *

{escapedlpurl} will be replaced with the URL-encoded version of the full + * landing page URL. This makes it suitable for use as a query parameter + * value (e.g. "http://www.3rdpartytracker.com/?lp={escapedlpurl}") but + * not at the beginning of the url field.

+ * + *

{lpurlpath} will be replaced with the path and query part of the landing + * page URL and can be added to a different URL, e.g. + * "http://www.mygoodbusiness.com/tracking/{lpurlpath}".

+ * + *

There are also special rules that come into play depending on whether the + * destination URL uses local click tracking or third-party click tracking.

+ * + *

For more information, see the article Using dynamic tracking URLs. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DynamicSearchAd extends Ad { + /** + * @access public + * @var string + */ + public $description1; + + /** + * @access public + * @var string + */ + public $description2; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DynamicSearchAd"; + } + + public function __construct($description1 = NULL, $description2 = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->description1 = $description1; + $this->description2 = $description2; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("AdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupAdApprovalStatus", FALSE)) { +/** + * Represents the possible approval statuses. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAd.ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupAdStatus", FALSE)) { +/** + * The current status of an Ad. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAd.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupAdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeprecatedAdType", FALSE)) { +/** + * Video ad. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DeprecatedAdType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeprecatedAd.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentDataStatus", FALSE)) { +/** + * Status of the experimental change associated with an entity. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentDataStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentDataStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentDeltaStatus", FALSE)) { +/** + * Status of an entity denoting its type of experimental change in a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentDeltaStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentDeltaStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForwardCompatibilityErrorReason", FALSE)) { +/** + * The reason for the error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ForwardCompatibilityErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ImageErrorReason", FALSE)) { +/** + * The image is not valid. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ImageErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MarkupLanguageType", FALSE)) { +/** + * Markup languages to use for mobile ads. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MarkupLanguageType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MarkupLanguageType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaMediaType", FALSE)) { +/** + * Media types + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaMediaType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.MediaType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaMimeType", FALSE)) { +/** + * Mime types + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaMimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.MimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaSize", FALSE)) { +/** + * Sizes for retrieving the original media + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaSize { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.Size"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MediaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("PagingErrorReason", FALSE)) { +/** + * The reasons for errors when using pagination. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PagingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QueryErrorReason", FALSE)) { +/** + * The reason for the query error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaAdAdAttribute", FALSE)) { +/** + * A set of attributes that describe the rich media ad capabilities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RichMediaAdAdAttribute { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaAd.AdAttribute"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaAdRichMediaAdType", FALSE)) { +/** + * Different types of rich media ad that are available to customers. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RichMediaAdRichMediaAdType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaAd.RichMediaAdType"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsNetwork", FALSE)) { +/** + * Ad network. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsNetwork { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats.Network"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsQueryErrorReason", FALSE)) { +/** + * The reasons for errors when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsQueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TemplateElementFieldType", FALSE)) { +/** + * Possible field types of template element fields. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TemplateElementFieldType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateElementField.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("ThirdPartyRedirectAdExpandingDirection", FALSE)) { +/** + * Allowed expanding directions for ads that are expandable. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ThirdPartyRedirectAdExpandingDirection { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartyRedirectAd.ExpandingDirection"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoType", FALSE)) { +/** + * VideoType enum values that are permitted for video filterable + * creative attribute IDs. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class VideoType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupAdServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of AdGroupAds. + * + * @param serviceSelector The selector specifying the {@link AdGroupAd}s to return. + * @return The page containing the AdGroupAds that meet the criteria specified by the selector. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("AdGroupAdServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdServiceGetResponse { + /** + * @access public + * @var AdGroupAdPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupAdServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Applies the list of mutate operations (ie. add, set, remove): + *

Add - Creates a new {@linkplain AdGroupAd ad group ad}. The + * {@code adGroupId} must + * reference an existing ad group. The child {@code Ad} must be sufficiently + * specified by constructing a concrete ad type (such as {@code TextAd}) + * and setting its fields accordingly.

+ *

Set - Updates an ad group ad. Except for {@code status}, + * ad group ad fields are not mutable. Status updates are + * straightforward - the status of the ad group ad is updated as + * specified. If any other field has changed, it will be ignored. If + * you want to change any of the fields other than status, you must + * make a new ad and then delete the old one.

+ *

Remove - Removes the link between the specified AdGroup and + * Ad.

+ * @param operations The operations to apply. + * @return A list of AdGroupAds where each entry in the list is the result of + * applying the operation in the input list with the same index. For an + * add/set operation, the return AdGroupAd will be what is saved to the db. + * In the case of the remove operation, the return AdGroupAd will simply be + * an AdGroupAd containing an Ad with the id set to the Ad being deleted from + * the AdGroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdServiceMutate { + /** + * @access public + * @var AdGroupAdOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("AdGroupAdServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdServiceMutateResponse { + /** + * @access public + * @var AdGroupAdReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("query", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of AdGroupAds based on the query. + * + * @param query The SQL-like AWQL query string. + * @return A list of AdGroupAds. + * @throws ApiException if problems occur while parsing the query or fetching AdGroupAds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class query { + /** + * @access public + * @var string + */ + public $query; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($query = NULL) { + $this->query = $query; + } +}} + +if (!class_exists("queryResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class queryResponse { + /** + * @access public + * @var AdGroupAdPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdError", FALSE)) { +/** + * Base error class for Ad Service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdError extends ApiError { + /** + * @access public + * @var tnsAdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdExtensionOverrideStats", FALSE)) { +/** + * Represents stats specific to AdExtensionOverrides. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideStats extends Stats { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverrideStats"; + } + + public function __construct($startDate = NULL, $endDate = NULL, $network = NULL, $clicks = NULL, $impressions = NULL, $cost = NULL, $averagePosition = NULL, $averageCpc = NULL, $averageCpm = NULL, $ctr = NULL, $conversions = NULL, $viewThroughConversions = NULL, $totalBudget = NULL, $StatsType = NULL) { + parent::__construct(); + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->network = $network; + $this->clicks = $clicks; + $this->impressions = $impressions; + $this->cost = $cost; + $this->averagePosition = $averagePosition; + $this->averageCpc = $averageCpc; + $this->averageCpm = $averageCpm; + $this->ctr = $ctr; + $this->conversions = $conversions; + $this->viewThroughConversions = $viewThroughConversions; + $this->totalBudget = $totalBudget; + $this->StatsType = $StatsType; + } +}} + +if (!class_exists("AdGroupAdCountLimitExceeded", FALSE)) { +/** + * Indicates too many ads were added/enabled under the specified adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdCountLimitExceeded extends EntityCountLimitExceeded { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdGroupAdError", FALSE)) { +/** + * Error information for AdGroupAdService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdError extends ApiError { + /** + * @access public + * @var tnsAdGroupAdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdGroupAdOperation", FALSE)) { +/** + * AdGroupAd service operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdOperation extends Operation { + /** + * @access public + * @var AdGroupAd + */ + public $operand; + + /** + * @access public + * @var ExemptionRequest[] + */ + public $exemptionRequests; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdOperation"; + } + + public function __construct($operand = NULL, $exemptionRequests = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->exemptionRequests = $exemptionRequests; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupAdPage", FALSE)) { +/** + * Represents a page of {@link AdGroupAd}s resulting from the query done by + * {@link AdGroupAdService}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdPage extends Page { + /** + * @access public + * @var AdGroupAd[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupAdReturnValue", FALSE)) { +/** + * A container for return values from the AdGroupAdService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdReturnValue extends ListReturnValue { + /** + * @access public + * @var AdGroupAd[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("AdStats", FALSE)) { +/** + * Represents stats specific to Ads. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdStats extends Stats { + /** + * @access public + * @var double + */ + public $percentServed; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdStats"; + } + + public function __construct($percentServed = NULL, $startDate = NULL, $endDate = NULL, $network = NULL, $clicks = NULL, $impressions = NULL, $cost = NULL, $averagePosition = NULL, $averageCpc = NULL, $averageCpm = NULL, $ctr = NULL, $conversions = NULL, $viewThroughConversions = NULL, $totalBudget = NULL, $StatsType = NULL) { + parent::__construct(); + $this->percentServed = $percentServed; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->network = $network; + $this->clicks = $clicks; + $this->impressions = $impressions; + $this->cost = $cost; + $this->averagePosition = $averagePosition; + $this->averageCpc = $averageCpc; + $this->averageCpm = $averageCpm; + $this->ctr = $ctr; + $this->conversions = $conversions; + $this->viewThroughConversions = $viewThroughConversions; + $this->totalBudget = $totalBudget; + $this->StatsType = $StatsType; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Audio", FALSE)) { +/** + * Encapsulates an Audio media identified by a MediaId. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Audio extends Media { + /** + * @access public + * @var integer + */ + public $durationMillis; + + /** + * @access public + * @var string + */ + public $streamingUrl; + + /** + * @access public + * @var boolean + */ + public $readyToPlayOnTheWeb; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Audio"; + } + + public function __construct($durationMillis = NULL, $streamingUrl = NULL, $readyToPlayOnTheWeb = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->durationMillis = $durationMillis; + $this->streamingUrl = $streamingUrl; + $this->readyToPlayOnTheWeb = $readyToPlayOnTheWeb; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("Image", FALSE)) { +/** + * Encapsulates an Image media. For {@code SET},{@code REMOVE} operations in + * MediaService, use {@code mediaId}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Image extends Media { + /** + * @access public + * @var base64Binary + */ + public $data; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Image"; + } + + public function __construct($data = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->data = $data; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("AdGroupAdService", FALSE)) { +/** + * AdGroupAdService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class AdGroupAdService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "AdGroupAdServiceGetResponse", + "get" => "AdGroupAdServiceGet", + "mutate" => "AdGroupAdServiceMutate", + "mutateResponse" => "AdGroupAdServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "Ad" => "Ad", + "AdError" => "AdError", + "ApiError" => "ApiError", + "AdExtensionOverrideStats" => "AdExtensionOverrideStats", + "Stats" => "Stats", + "AdGroupAd" => "AdGroupAd", + "AdGroupAdCountLimitExceeded" => "AdGroupAdCountLimitExceeded", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "AdGroupAdError" => "AdGroupAdError", + "AdGroupAdExperimentData" => "AdGroupAdExperimentData", + "AdGroupAdOperation" => "AdGroupAdOperation", + "Operation" => "Operation", + "AdGroupAdPage" => "AdGroupAdPage", + "Page" => "Page", + "AdGroupAdReturnValue" => "AdGroupAdReturnValue", + "ListReturnValue" => "ListReturnValue", + "AdStats" => "AdStats", + "AdUnionId" => "AdUnionId", + "AdxError" => "AdxError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Audio" => "Audio", + "Media" => "Media", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "ClientTermsError" => "ClientTermsError", + "ComparableValue" => "ComparableValue", + "DatabaseError" => "DatabaseError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DeprecatedAd" => "DeprecatedAd", + "Dimensions" => "Dimensions", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EntityNotFound" => "EntityNotFound", + "ExemptionRequest" => "ExemptionRequest", + "ForwardCompatibilityError" => "ForwardCompatibilityError", + "IdError" => "IdError", + "Image" => "Image", + "ImageAd" => "ImageAd", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "LongValue" => "LongValue", + "MediaError" => "MediaError", + "Media_Size_DimensionsMapEntry" => "Media_Size_DimensionsMapEntry", + "Media_Size_StringMapEntry" => "Media_Size_StringMapEntry", + "MobileAd" => "MobileAd", + "MobileImageAd" => "MobileImageAd", + "Money" => "Money", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PagingError" => "PagingError", + "PolicyViolationError" => "PolicyViolationError", + "PolicyViolationError.Part" => "PolicyViolationErrorPart", + "PolicyViolationKey" => "PolicyViolationKey", + "Predicate" => "Predicate", + "ProductAd" => "ProductAd", + "QueryError" => "QueryError", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "RichMediaAd" => "RichMediaAd", + "Selector" => "Selector", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StatsQueryError" => "StatsQueryError", + "StringLengthError" => "StringLengthError", + "String_StringMapEntry" => "String_StringMapEntry", + "TempAdUnionId" => "TempAdUnionId", + "TemplateAd" => "TemplateAd", + "TemplateElement" => "TemplateElement", + "TemplateElementField" => "TemplateElementField", + "TextAd" => "TextAd", + "ThirdPartyRedirectAd" => "ThirdPartyRedirectAd", + "Video" => "Video", + "DynamicSearchAd" => "DynamicSearchAd", + "AdError.Reason" => "AdErrorReason", + "AdGroupAd.ApprovalStatus" => "AdGroupAdApprovalStatus", + "AdGroupAd.Status" => "AdGroupAdStatus", + "AdGroupAdError.Reason" => "AdGroupAdErrorReason", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DeprecatedAd.Type" => "DeprecatedAdType", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "ExperimentDataStatus" => "ExperimentDataStatus", + "ExperimentDeltaStatus" => "ExperimentDeltaStatus", + "ForwardCompatibilityError.Reason" => "ForwardCompatibilityErrorReason", + "IdError.Reason" => "IdErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "MarkupLanguageType" => "MarkupLanguageType", + "Media.MediaType" => "MediaMediaType", + "Media.MimeType" => "MediaMimeType", + "Media.Size" => "MediaSize", + "MediaError.Reason" => "MediaErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "PagingError.Reason" => "PagingErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QueryError.Reason" => "QueryErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RichMediaAd.AdAttribute" => "RichMediaAdAdAttribute", + "RichMediaAd.RichMediaAdType" => "RichMediaAdRichMediaAdType", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "Stats.Network" => "StatsNetwork", + "StatsQueryError.Reason" => "StatsQueryErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TemplateElementField.Type" => "TemplateElementFieldType", + "ThirdPartyRedirectAd.ExpandingDirection" => "ThirdPartyRedirectAdExpandingDirection", + "VideoType" => "VideoType", + "query" => "query", + "queryResponse" => "queryResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/AdGroupAdService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AdGroupAdService::$classmap; + parent::__construct($wsdl, $options, $user, 'AdGroupAdService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of AdGroupAds. + * + * @param serviceSelector The selector specifying the {@link AdGroupAd}s to return. + * @return The page containing the AdGroupAds that meet the criteria specified by the selector. + * @throws ApiException when there is at least one error with the request. + */ + public function get($serviceSelector) { + $arg = new AdGroupAdServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Applies the list of mutate operations (ie. add, set, remove): + *

Add - Creates a new {@linkplain AdGroupAd ad group ad}. The + * {@code adGroupId} must + * reference an existing ad group. The child {@code Ad} must be sufficiently + * specified by constructing a concrete ad type (such as {@code TextAd}) + * and setting its fields accordingly.

+ *

Set - Updates an ad group ad. Except for {@code status}, + * ad group ad fields are not mutable. Status updates are + * straightforward - the status of the ad group ad is updated as + * specified. If any other field has changed, it will be ignored. If + * you want to change any of the fields other than status, you must + * make a new ad and then delete the old one.

+ *

Remove - Removes the link between the specified AdGroup and + * Ad.

+ * @param operations The operations to apply. + * @return A list of AdGroupAds where each entry in the list is the result of + * applying the operation in the input list with the same index. For an + * add/set operation, the return AdGroupAd will be what is saved to the db. + * In the case of the remove operation, the return AdGroupAd will simply be + * an AdGroupAd containing an Ad with the id set to the Ad being deleted from + * the AdGroup. + */ + public function mutate($operations) { + $arg = new AdGroupAdServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of AdGroupAds based on the query. + * + * @param query The SQL-like AWQL query string. + * @return A list of AdGroupAds. + * @throws ApiException if problems occur while parsing the query or fetching AdGroupAds. + */ + public function query($query) { + $arg = new query($query); + $result = $this->__soapCall("query", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/AdGroupBidModifierService.php b/src/Google/Api/Ads/AdWords/v201306/AdGroupBidModifierService.php new file mode 100755 index 000000000..5fa301483 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/AdGroupBidModifierService.php @@ -0,0 +1,2895 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("Criterion", FALSE)) { +/** + * Represents a criterion (such as a keyword, placement, or vertical). + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Criterion { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsCriterionType + */ + public $type; + + /** + * @access public + * @var string + */ + public $CriterionType; + + private $_parameterMap = array ( + "Criterion.Type" => "CriterionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + public function __construct($id = NULL, $type = NULL, $CriterionType = NULL) { + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("AdGroupBidModifier", FALSE)) { +/** + * Represents an adgroup level bid modifier override for campaign level criterion + * bid modifier values. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupBidModifier { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var Criterion + */ + public $criterion; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var tnsBidModifierSource + */ + public $bidModifierSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidModifier"; + } + + public function __construct($campaignId = NULL, $adGroupId = NULL, $criterion = NULL, $bidModifier = NULL, $bidModifierSource = NULL) { + $this->campaignId = $campaignId; + $this->adGroupId = $adGroupId; + $this->criterion = $criterion; + $this->bidModifier = $bidModifier; + $this->bidModifierSource = $bidModifierSource; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BidModifierSource", FALSE)) { +/** + * Enumerates possible sources for bid modifier. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BidModifierSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidModifierSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * The types of criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionErrorReason", FALSE)) { +/** + * Concrete type of criterion is required for ADD and SET operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupBidModifierServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Gets ad group level criterion bid modifiers. + * + * @param selector The selector specifying the {@link AdGroupBidModifier}s to return. + * @return A list of ad group bid modifiers. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupBidModifierServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("AdGroupBidModifierServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupBidModifierServiceGetResponse { + /** + * @access public + * @var AdGroupBidModifierPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupBidModifierServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, REMOVE, SET. + * + * + * + * Adds, removes or updates ad group bid modifier overrides. + * + * @param operations The operations to apply. + * @return The added ad group bid modifier overrides. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupBidModifierServiceMutate { + /** + * @access public + * @var AdGroupBidModifierOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("AdGroupBidModifierServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupBidModifierServiceMutateResponse { + /** + * @access public + * @var AdGroupBidModifierReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CriterionError", FALSE)) { +/** + * Error class used for reporting criteria related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionError extends ApiError { + /** + * @access public + * @var tnsCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Platform", FALSE)) { +/** + * Represents Platform criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Platform extends Criterion { + /** + * @access public + * @var string + */ + public $platformName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Platform"; + } + + public function __construct($platformName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->platformName = $platformName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AdGroupBidModifierOperation", FALSE)) { +/** + * Operation used to create or mutate a AdGroupBidModifier. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupBidModifierOperation extends Operation { + /** + * @access public + * @var AdGroupBidModifier + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidModifierOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupBidModifierPage", FALSE)) { +/** + * Contains a subset of adgroup bid modifiers resulting from a call to + * {@link AdGroupBidModifierService#get}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupBidModifierPage extends Page { + /** + * @access public + * @var AdGroupBidModifier[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidModifierPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupBidModifierReturnValue", FALSE)) { +/** + * A container for return values from the AdGroupBidModifierService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupBidModifierReturnValue extends ListReturnValue { + /** + * @access public + * @var AdGroupBidModifier[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidModifierReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("AdGroupBidModifierService", FALSE)) { +/** + * AdGroupBidModifierService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class AdGroupBidModifierService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "AdGroupBidModifierServiceGetResponse", + "get" => "AdGroupBidModifierServiceGet", + "mutate" => "AdGroupBidModifierServiceMutate", + "mutateResponse" => "AdGroupBidModifierServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "CriterionError" => "CriterionError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotWhitelistedError" => "NotWhitelistedError", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Platform" => "Platform", + "Criterion" => "Criterion", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Selector" => "Selector", + "AdGroupBidModifier" => "AdGroupBidModifier", + "AdGroupBidModifierOperation" => "AdGroupBidModifierOperation", + "Operation" => "Operation", + "AdGroupBidModifierPage" => "AdGroupBidModifierPage", + "Page" => "Page", + "AdGroupBidModifierReturnValue" => "AdGroupBidModifierReturnValue", + "ListReturnValue" => "ListReturnValue", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BidModifierSource" => "BidModifierSource", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "Criterion.Type" => "CriterionType", + "CriterionError.Reason" => "CriterionErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/AdGroupBidModifierService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AdGroupBidModifierService::$classmap; + parent::__construct($wsdl, $options, $user, 'AdGroupBidModifierService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Gets ad group level criterion bid modifiers. + * + * @param selector The selector specifying the {@link AdGroupBidModifier}s to return. + * @return A list of ad group bid modifiers. + * @throws ApiException when there is at least one error with the request. + */ + public function get($selector) { + $arg = new AdGroupBidModifierServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, REMOVE, SET. + * + * + * + * Adds, removes or updates ad group bid modifier overrides. + * + * @param operations The operations to apply. + * @return The added ad group bid modifier overrides. + * @throws ApiException when there is at least one error with the request. + */ + public function mutate($operations) { + $arg = new AdGroupBidModifierServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/AdGroupCriterionService.php b/src/Google/Api/Ads/AdWords/v201306/AdGroupCriterionService.php new file mode 100755 index 000000000..86628a8d8 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/AdGroupCriterionService.php @@ -0,0 +1,7398 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("PolicyViolationErrorPart", FALSE)) { +/** + * Points to a substring within an ad field or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PolicyViolationErrorPart { + /** + * @access public + * @var integer + */ + public $index; + + /** + * @access public + * @var integer + */ + public $length; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError.Part"; + } + + public function __construct($index = NULL, $length = NULL) { + $this->index = $index; + $this->length = $length; + } +}} + +if (!class_exists("PolicyViolationKey", FALSE)) { +/** + * Key of the violation. The key is used for referring to a violation when + * filing an exemption request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PolicyViolationKey { + /** + * @access public + * @var string + */ + public $policyName; + + /** + * @access public + * @var string + */ + public $violatingText; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationKey"; + } + + public function __construct($policyName = NULL, $violatingText = NULL) { + $this->policyName = $policyName; + $this->violatingText = $violatingText; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("ProductConditionOperand", FALSE)) { +/** + * Attribute for the product condition. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ProductConditionOperand { + /** + * @access public + * @var string + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductConditionOperand"; + } + + public function __construct($operand = NULL) { + $this->operand = $operand; + } +}} + +if (!class_exists("QualityInfo", FALSE)) { +/** + * Container for criterion quality information. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QualityInfo { + /** + * @access public + * @var boolean + */ + public $isKeywordAdRelevanceAcceptable; + + /** + * @access public + * @var boolean + */ + public $isLandingPageQualityAcceptable; + + /** + * @access public + * @var boolean + */ + public $isLandingPageLatencyAcceptable; + + /** + * @access public + * @var integer + */ + public $qualityScore; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QualityInfo"; + } + + public function __construct($isKeywordAdRelevanceAcceptable = NULL, $isLandingPageQualityAcceptable = NULL, $isLandingPageLatencyAcceptable = NULL, $qualityScore = NULL) { + $this->isKeywordAdRelevanceAcceptable = $isKeywordAdRelevanceAcceptable; + $this->isLandingPageQualityAcceptable = $isLandingPageQualityAcceptable; + $this->isLandingPageLatencyAcceptable = $isLandingPageLatencyAcceptable; + $this->qualityScore = $qualityScore; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("String_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class String_StringMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("WebpageCondition", FALSE)) { +/** + * Logical expression for targeting webpages of an advertiser's website. + * + *

A condition is defined as {@code operand OP argument} + * where {@code operand} is one of the values enumerated in + * {@link WebpageConditionOperand}, and, based on this value, + * {@code OP} is either of {@code EQUALS} or {@code CONTAINS}.

+ * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageCondition { + /** + * @access public + * @var tnsWebpageConditionOperand + */ + public $operand; + + /** + * @access public + * @var string + */ + public $argument; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageCondition"; + } + + public function __construct($operand = NULL, $argument = NULL) { + $this->operand = $operand; + $this->argument = $argument; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("CriterionParameter", FALSE)) { +/** + * Base type of criterion parameters. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionParameter { + /** + * @access public + * @var string + */ + public $CriterionParameterType; + + private $_parameterMap = array ( + "CriterionParameter.Type" => "CriterionParameterType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionParameter"; + } + + public function __construct($CriterionParameterType = NULL) { + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("ExemptionRequest", FALSE)) { +/** + * A request to be exempted from a {@link PolicyViolationError}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExemptionRequest { + /** + * @access public + * @var PolicyViolationKey + */ + public $key; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExemptionRequest"; + } + + public function __construct($key = NULL) { + $this->key = $key; + } +}} + +if (!class_exists("ProductCondition", FALSE)) { +/** + * Conditions to filter the products defined in product feed for targeting. + * The condition is defined as operand=argument. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ProductCondition { + /** + * @access public + * @var string + */ + public $argument; + + /** + * @access public + * @var ProductConditionOperand + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductCondition"; + } + + public function __construct($argument = NULL, $operand = NULL) { + $this->argument = $argument; + $this->operand = $operand; + } +}} + +if (!class_exists("Stats", FALSE)) { +/** + * Statistics about an ad or criterion within an ad group or campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Stats { + /** + * @access public + * @var string + */ + public $startDate; + + /** + * @access public + * @var string + */ + public $endDate; + + /** + * @access public + * @var tnsStatsNetwork + */ + public $network; + + /** + * @access public + * @var integer + */ + public $clicks; + + /** + * @access public + * @var integer + */ + public $impressions; + + /** + * @access public + * @var Money + */ + public $cost; + + /** + * @access public + * @var double + */ + public $averagePosition; + + /** + * @access public + * @var Money + */ + public $averageCpc; + + /** + * @access public + * @var Money + */ + public $averageCpm; + + /** + * @access public + * @var double + */ + public $ctr; + + /** + * @access public + * @var integer + */ + public $conversions; + + /** + * @access public + * @var integer + */ + public $viewThroughConversions; + + /** + * @access public + * @var Money + */ + public $totalBudget; + + /** + * @access public + * @var string + */ + public $StatsType; + + private $_parameterMap = array ( + "Stats.Type" => "StatsType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats"; + } + + public function __construct($startDate = NULL, $endDate = NULL, $network = NULL, $clicks = NULL, $impressions = NULL, $cost = NULL, $averagePosition = NULL, $averageCpc = NULL, $averageCpm = NULL, $ctr = NULL, $conversions = NULL, $viewThroughConversions = NULL, $totalBudget = NULL, $StatsType = NULL) { + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->network = $network; + $this->clicks = $clicks; + $this->impressions = $impressions; + $this->cost = $cost; + $this->averagePosition = $averagePosition; + $this->averageCpc = $averageCpc; + $this->averageCpm = $averageCpm; + $this->ctr = $ctr; + $this->conversions = $conversions; + $this->viewThroughConversions = $viewThroughConversions; + $this->totalBudget = $totalBudget; + $this->StatsType = $StatsType; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Bid", FALSE)) { +/** + * Represents a bid of a certain amount. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Bid { + /** + * @access public + * @var Money + */ + public $amount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Bid"; + } + + public function __construct($amount = NULL) { + $this->amount = $amount; + } +}} + +if (!class_exists("BidMultiplier", FALSE)) { +/** + * Represents a multiplier to modify a bid. The final value after + * modification is represented by the multiplied bid value. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BidMultiplier { + /** + * @access public + * @var double + */ + public $multiplier; + + /** + * @access public + * @var Bid + */ + public $multipliedBid; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidMultiplier"; + } + + public function __construct($multiplier = NULL, $multipliedBid = NULL) { + $this->multiplier = $multiplier; + $this->multipliedBid = $multipliedBid; + } +}} + +if (!class_exists("Bids", FALSE)) { +/** + * Base class for all bids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Bids { + /** + * @access public + * @var string + */ + public $BidsType; + + private $_parameterMap = array ( + "Bids.Type" => "BidsType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Bids"; + } + + public function __construct($BidsType = NULL) { + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AdGroupCriterionExperimentBidMultiplier", FALSE)) { +/** + * Bid multiplier used to modify the bid of a criterion while running + * an experiment. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionExperimentBidMultiplier { + /** + * @access public + * @var string + */ + public $AdGroupCriterionExperimentBidMultiplierType; + + private $_parameterMap = array ( + "AdGroupCriterionExperimentBidMultiplier.Type" => "AdGroupCriterionExperimentBidMultiplierType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionExperimentBidMultiplier"; + } + + public function __construct($AdGroupCriterionExperimentBidMultiplierType = NULL) { + $this->AdGroupCriterionExperimentBidMultiplierType = $AdGroupCriterionExperimentBidMultiplierType; + } +}} + +if (!class_exists("BiddableAdGroupCriterionExperimentData", FALSE)) { +/** + * Data associated with an advertiser experiment for this {@link BiddableAdGroupCriterion}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddableAdGroupCriterionExperimentData { + /** + * @access public + * @var integer + */ + public $experimentId; + + /** + * @access public + * @var tnsExperimentDeltaStatus + */ + public $experimentDeltaStatus; + + /** + * @access public + * @var tnsExperimentDataStatus + */ + public $experimentDataStatus; + + /** + * @access public + * @var AdGroupCriterionExperimentBidMultiplier + */ + public $experimentBidMultiplier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddableAdGroupCriterionExperimentData"; + } + + public function __construct($experimentId = NULL, $experimentDeltaStatus = NULL, $experimentDataStatus = NULL, $experimentBidMultiplier = NULL) { + $this->experimentId = $experimentId; + $this->experimentDeltaStatus = $experimentDeltaStatus; + $this->experimentDataStatus = $experimentDataStatus; + $this->experimentBidMultiplier = $experimentBidMultiplier; + } +}} + +if (!class_exists("BiddingScheme", FALSE)) { +/** + * Base class for all bidding schemes. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingScheme { + /** + * @access public + * @var string + */ + public $BiddingSchemeType; + + private $_parameterMap = array ( + "BiddingScheme.Type" => "BiddingSchemeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("BiddingStrategyConfiguration", FALSE)) { +/** + * Encapsulates the information about bids and bidding strategies. + * + * Bidding Strategy can be set on campaigns, ad groups or ad group criteria. + * A bidding strategy can be set using one of the following: + *
    + *
  • {@linkplain BiddingStrategyConfiguration#biddingScheme bidding scheme}
  • + *
  • {@linkplain BiddingStrategyConfiguration#biddingStrategyType bidding strategy type}
  • + *
  • {@linkplain BiddingStrategyConfiguration#biddingStrategyId bidding strategy ID} for + * flexible bid strategies.
  • + *
+ * If the bidding strategy type is used, then schemes are created using default values. + * + * Bids can be set only on ad groups and ad group criteria. They cannot be set on campaigns. + * Multiple bids can be set at the same time. Only the bids that apply to the campaign's + * {@linkplain Campaign#biddingStrategyConfiguration bidding strategy} will be used. + * + * Flexible bidding is a beta feature. For more information on flexible bidding, + * visit the + * Help Center. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyConfiguration { + /** + * @access public + * @var integer + */ + public $biddingStrategyId; + + /** + * @access public + * @var string + */ + public $biddingStrategyName; + + /** + * @access public + * @var tnsBiddingStrategyType + */ + public $biddingStrategyType; + + /** + * @access public + * @var tnsBiddingStrategySource + */ + public $biddingStrategySource; + + /** + * @access public + * @var BiddingScheme + */ + public $biddingScheme; + + /** + * @access public + * @var Bids[] + */ + public $bids; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyConfiguration"; + } + + public function __construct($biddingStrategyId = NULL, $biddingStrategyName = NULL, $biddingStrategyType = NULL, $biddingStrategySource = NULL, $biddingScheme = NULL, $bids = NULL) { + $this->biddingStrategyId = $biddingStrategyId; + $this->biddingStrategyName = $biddingStrategyName; + $this->biddingStrategyType = $biddingStrategyType; + $this->biddingStrategySource = $biddingStrategySource; + $this->biddingScheme = $biddingScheme; + $this->bids = $bids; + } +}} + +if (!class_exists("Criterion", FALSE)) { +/** + * Represents a criterion (such as a keyword, placement, or vertical). + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Criterion { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsCriterionType + */ + public $type; + + /** + * @access public + * @var string + */ + public $CriterionType; + + private $_parameterMap = array ( + "Criterion.Type" => "CriterionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + public function __construct($id = NULL, $type = NULL, $CriterionType = NULL) { + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("AdGroupCriterion", FALSE)) { +/** + * Represents a criterion in an ad group, used with AdGroupCriterionService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterion { + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var tnsCriterionUse + */ + public $criterionUse; + + /** + * @access public + * @var Criterion + */ + public $criterion; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * @access public + * @var string + */ + public $AdGroupCriterionType; + + private $_parameterMap = array ( + "AdGroupCriterion.Type" => "AdGroupCriterionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterion"; + } + + public function __construct($adGroupId = NULL, $criterionUse = NULL, $criterion = NULL, $forwardCompatibilityMap = NULL, $AdGroupCriterionType = NULL) { + $this->adGroupId = $adGroupId; + $this->criterionUse = $criterionUse; + $this->criterion = $criterion; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->AdGroupCriterionType = $AdGroupCriterionType; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupCriterionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupCriterionLimitExceededCriteriaLimitType", FALSE)) { +/** + * The entity type that exceeded the limit. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionLimitExceededCriteriaLimitType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionLimitExceeded.CriteriaLimitType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AgeRangeAgeRangeType", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AgeRangeAgeRangeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AgeRange.AgeRangeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApprovalStatus", FALSE)) { +/** + * Approval status for the criterion. + * Note: there are more states involved but we only expose two to users. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BidSource", FALSE)) { +/** + * Indicate where a criterion's bid came from: criterion or the adgroup it + * belongs to. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BidSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorReason", FALSE)) { +/** + * Reason for bidding error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorsReason", FALSE)) { +/** + * Bidding strategy is available for enhanced campaign only. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingErrorsReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategySource", FALSE)) { +/** + * Indicates where bidding strategy came from: campaign, adgroup or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategySource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategySource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategyType", FALSE)) { +/** + * The bidding strategy type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemeBidType", FALSE)) { +/** + * Average cost-per-acquisition (targetCPA) bid type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerBiddingSchemeBidType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.BidType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemePricingMode", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerBiddingSchemePricingMode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.PricingMode"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * The types of criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionErrorReason", FALSE)) { +/** + * Concrete type of criterion is required for ADD and SET operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUse", FALSE)) { +/** + * The way a criterion is used - biddable or negative. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUse { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUse"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityAccessDeniedReason", FALSE)) { +/** + * User did not have read access. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentDataStatus", FALSE)) { +/** + * Status of the experimental change associated with an entity. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentDataStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentDataStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentDeltaStatus", FALSE)) { +/** + * Status of an entity denoting its type of experimental change in a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentDeltaStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentDeltaStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForwardCompatibilityErrorReason", FALSE)) { +/** + * The reason for the error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ForwardCompatibilityErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenderGenderType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GenderGenderType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Gender.GenderType"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("KeywordMatchType", FALSE)) { +/** + * Match type of a keyword. i.e. the way we match a keyword string with + * search queries. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class KeywordMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MultiplierSource", FALSE)) { +/** + * Denotes whether the bid multiplier is derived from the adgroup + * or the criterion + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MultiplierSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MultiplierSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("PageOnePromotedBiddingSchemeStrategyGoal", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PageOnePromotedBiddingSchemeStrategyGoal { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme.StrategyGoal"; + } + + public function __construct() { + } +}} + +if (!class_exists("PagingErrorReason", FALSE)) { +/** + * The reasons for errors when using pagination. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PagingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QueryErrorReason", FALSE)) { +/** + * The reason for the query error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsNetwork", FALSE)) { +/** + * Ad network. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsNetwork { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats.Network"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsQueryErrorReason", FALSE)) { +/** + * The reasons for errors when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsQueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SystemServingStatus", FALSE)) { +/** + * Reported by system to reflect the criterion's serving status. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SystemServingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SystemServingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUserListMembershipStatus", FALSE)) { +/** + * Membership status of the user list. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList.MembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserStatus", FALSE)) { +/** + * Specified by user to pause or unpause a criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class UserStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("WebpageConditionOperand", FALSE)) { +/** + * Operand value of {@link WebpageCondition}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageConditionOperand { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageConditionOperand"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupCriterionServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Gets adgroup criteria. + * + * @param serviceSelector filters the adgroup criteria to be returned. + * @return a page (subset) view of the criteria selected + * @throws ApiException when there is at least one error with the request + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("AdGroupCriterionServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionServiceGetResponse { + /** + * @access public + * @var AdGroupCriterionPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupCriterionServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET, REMOVE. + * + * + * + * Adds, removes or updates adgroup criteria. + * + * @param operations operations to do + * during checks on keywords to be added. + * @return added and updated adgroup criteria (without optional parts) + * @throws ApiException when there is at least one error with the request + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionServiceMutate { + /** + * @access public + * @var AdGroupCriterionOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("AdGroupCriterionServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionServiceMutateResponse { + /** + * @access public + * @var AdGroupCriterionReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("query", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of AdGroupCriterion that match the query. + * + * @param query The SQL-like AWQL query string + * @returns A list of AdGroupCriterion + * @throws ApiException when the query is invalid or there are errors processing the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class query { + /** + * @access public + * @var string + */ + public $query; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($query = NULL) { + $this->query = $query; + } +}} + +if (!class_exists("queryResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class queryResponse { + /** + * @access public + * @var AdGroupCriterionPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupCriterionError", FALSE)) { +/** + * Base error class for Ad Group Criterion Service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionError extends ApiError { + /** + * @access public + * @var tnsAdGroupCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AgeRange", FALSE)) { +/** + * Represents an Age Range criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type is only excludable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AgeRange extends Criterion { + /** + * @access public + * @var tnsAgeRangeAgeRangeType + */ + public $ageRangeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AgeRange"; + } + + public function __construct($ageRangeType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->ageRangeType = $ageRangeType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BiddingError", FALSE)) { +/** + * Represents bidding errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingError extends ApiError { + /** + * @access public + * @var tnsBiddingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BiddingErrors", FALSE)) { +/** + * Represents error codes for bidding strategy entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingErrors extends ApiError { + /** + * @access public + * @var tnsBiddingErrorsReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ConversionOptimizerBiddingScheme", FALSE)) { +/** + * Conversion optimizer bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + *

{@code pricingMode} currently defaults to {@code CLICKS} and + * cannot be changed.

+ * + *

Note that campaigns must meet specific + * eligibility requirements before they can use the ConversionOptimizer + * bidding strategy. + * + * For more information on conversion optimizer, visit the + * Conversion Optimizer site. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemePricingMode + */ + public $pricingMode; + + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemeBidType + */ + public $bidType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme"; + } + + public function __construct($pricingMode = NULL, $bidType = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->pricingMode = $pricingMode; + $this->bidType = $bidType; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("CriterionError", FALSE)) { +/** + * Error class used for reporting criteria related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionError extends ApiError { + /** + * @access public + * @var tnsCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EnhancedCpcBiddingScheme", FALSE)) { +/** + * Enhanced CPC is a bidding strategy that raises your bids for clicks that seem more likely to + * lead to a conversion and lowers them for clicks where they seem less likely. + * + * This bidding scheme does not support criteria level bidding strategy overrides. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EnhancedCpcBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnhancedCpcBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("EntityAccessDenied", FALSE)) { +/** + * Reports permission problems trying to access an entity. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityAccessDenied extends ApiError { + /** + * @access public + * @var tnsEntityAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ForwardCompatibilityError", FALSE)) { +/** + * A ForwardComptibilityError represents possible errors when using the forwardCompatibilityMap + * in some of the common services. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ForwardCompatibilityError extends ApiError { + /** + * @access public + * @var tnsForwardCompatibilityErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Gender", FALSE)) { +/** + * Represents a Gender criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type is only excludable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Gender extends Criterion { + /** + * @access public + * @var tnsGenderGenderType + */ + public $genderType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Gender"; + } + + public function __construct($genderType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->genderType = $genderType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Keyword", FALSE)) { +/** + * Represents a keyword. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Keyword extends Criterion { + /** + * @access public + * @var string + */ + public $text; + + /** + * @access public + * @var tnsKeywordMatchType + */ + public $matchType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Keyword"; + } + + public function __construct($text = NULL, $matchType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->text = $text; + $this->matchType = $matchType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ManualCpcBiddingScheme", FALSE)) { +/** + * Manual click based bidding where user pays per click. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManualCpcBiddingScheme extends BiddingScheme { + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpcBiddingScheme"; + } + + public function __construct($enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ManualCpmBiddingScheme", FALSE)) { +/** + * Manual impression based bidding where user pays per thousand impressions. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManualCpmBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpmBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("MobileAppCategory", FALSE)) { +/** + * Represents the mobile app category to be targeted. + * View the complete list of + * available mobile app categories. + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileAppCategory extends Criterion { + /** + * @access public + * @var integer + */ + public $mobileAppCategoryId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAppCategory"; + } + + public function __construct($mobileAppCategoryId = NULL, $displayName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->mobileAppCategoryId = $mobileAppCategoryId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileApplication", FALSE)) { +/** + * Represents the mobile application to be targeted. + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileApplication extends Criterion { + /** + * @access public + * @var string + */ + public $appId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileApplication"; + } + + public function __construct($appId = NULL, $displayName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->appId = $appId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NegativeAdGroupCriterion", FALSE)) { +/** + * A negative criterion in an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NegativeAdGroupCriterion extends AdGroupCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NegativeAdGroupCriterion"; + } + + public function __construct($adGroupId = NULL, $criterionUse = NULL, $criterion = NULL, $forwardCompatibilityMap = NULL, $AdGroupCriterionType = NULL) { + parent::__construct(); + $this->adGroupId = $adGroupId; + $this->criterionUse = $criterionUse; + $this->criterion = $criterion; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->AdGroupCriterionType = $AdGroupCriterionType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PagingError", FALSE)) { +/** + * Error codes for pagination. + * See {@link com.google.ads.api.services.common.pagination.Paging}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PagingError extends ApiError { + /** + * @access public + * @var tnsPagingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PercentCpaBid", FALSE)) { +/** + * Percentage CPA based bidding where user pays a percent of conversions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PercentCpaBid extends Bids { + /** + * @access public + * @var integer + */ + public $bid; + + /** + * @access public + * @var tnsBidSource + */ + public $percentCpaBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBid"; + } + + public function __construct($bid = NULL, $percentCpaBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->percentCpaBidSource = $percentCpaBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("PercentCpaBiddingScheme", FALSE)) { +/** + * Percentage CPA based bidding scheme attributes where user pays a percent of conversions. + * This bidding strategy is available only to some advertisers. + *

A campaign can only be created with PercentCPA bidding strategy. Existing + * campaigns with a different bidding strategy cannot be transitioned to PercentCPA. + *

Similarly, once created as a PercentCPA, a campaign cannot be transitioned to + * any other bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PercentCpaBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("Placement", FALSE)) { +/** + * A placement used for modifying bids for sites when targeting the content + * network. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Placement extends Criterion { + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + public function __construct($url = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->url = $url; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("QueryError", FALSE)) { +/** + * A QueryError represents possible errors for query parsing and execution. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QueryError extends ApiError { + /** + * @access public + * @var tnsQueryErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError"; + } + + public function __construct($reason = NULL, $message = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->message = $message; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * Indicates that a field was rejected due to compatibility issues. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("StatsQueryError", FALSE)) { +/** + * Represents possible error codes when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsQueryError extends ApiError { + /** + * @access public + * @var tnsStatsQueryErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CriterionUserInterest", FALSE)) { +/** + * User Interest - represents a particular interest based vertical to be targeted. + * Targeting UserInterest is currently in a limited beta. If you'd like access + * please speak with your account representative. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserInterest extends Criterion { + /** + * @access public + * @var integer + */ + public $userInterestId; + + /** + * @access public + * @var string + */ + public $userInterestName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserInterest"; + } + + public function __construct($userInterestId = NULL, $userInterestName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->userInterestId = $userInterestId; + $this->userInterestName = $userInterestName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionUserList", FALSE)) { +/** + * UserList - represents a user list that is defined by the advertiser to be targeted. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserList extends Criterion { + /** + * @access public + * @var integer + */ + public $userListId; + + /** + * @access public + * @var string + */ + public $userListName; + + /** + * @access public + * @var tnsCriterionUserListMembershipStatus + */ + public $userListMembershipStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList"; + } + + public function __construct($userListId = NULL, $userListName = NULL, $userListMembershipStatus = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->userListId = $userListId; + $this->userListName = $userListName; + $this->userListMembershipStatus = $userListMembershipStatus; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Vertical", FALSE)) { +/** + * Use verticals to target or exclude placements in the Google Display Network + * based on the category into which the placement falls (for example, "Pets & + * Animals/Pets/Dogs"). + * View the complete list + * of available vertical categories. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Vertical extends Criterion { + /** + * @access public + * @var integer + */ + public $verticalId; + + /** + * @access public + * @var integer + */ + public $verticalParentId; + + /** + * @access public + * @var string[] + */ + public $path; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Vertical"; + } + + public function __construct($verticalId = NULL, $verticalParentId = NULL, $path = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->verticalId = $verticalId; + $this->verticalParentId = $verticalParentId; + $this->path = $path; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("WebpageParameter", FALSE)) { +/** + * Parameter of Webpage criterion, expressed as a list of conditions, or + * logical expressions, for targeting webpages of an advertiser's website. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageParameter extends CriterionParameter { + /** + * @access public + * @var string + */ + public $criterionName; + + /** + * @access public + * @var WebpageCondition[] + */ + public $conditions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageParameter"; + } + + public function __construct($criterionName = NULL, $conditions = NULL, $CriterionParameterType = NULL) { + parent::__construct(); + $this->criterionName = $criterionName; + $this->conditions = $conditions; + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("CpaBid", FALSE)) { +/** + * CPA Bids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CpaBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpaBid"; + } + + public function __construct($bid = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("CpcBid", FALSE)) { +/** + * Manual click based bids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CpcBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var Money + */ + public $contentBid; + + /** + * @access public + * @var tnsBidSource + */ + public $cpcBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpcBid"; + } + + public function __construct($bid = NULL, $contentBid = NULL, $cpcBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->contentBid = $contentBid; + $this->cpcBidSource = $cpcBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("CpmBid", FALSE)) { +/** + * Manual impression based bids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CpmBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var tnsBidSource + */ + public $cpmBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpmBid"; + } + + public function __construct($bid = NULL, $cpmBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->cpmBidSource = $cpmBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PageOnePromotedBiddingScheme", FALSE)) { +/** + * Page-One Promoted bidding scheme, which sets max cpc bids to + * target impressions on page one or page one promoted slots on google.com. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PageOnePromotedBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsPageOnePromotedBiddingSchemeStrategyGoal + */ + public $strategyGoal; + + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var boolean + */ + public $bidChangesForRaisesOnly; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenBudgetConstained; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenLowQualityScore; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme"; + } + + public function __construct($strategyGoal = NULL, $bidCeiling = NULL, $bidModifier = NULL, $bidChangesForRaisesOnly = NULL, $raiseBidWhenBudgetConstained = NULL, $raiseBidWhenLowQualityScore = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->strategyGoal = $strategyGoal; + $this->bidCeiling = $bidCeiling; + $this->bidModifier = $bidModifier; + $this->bidChangesForRaisesOnly = $bidChangesForRaisesOnly; + $this->raiseBidWhenBudgetConstained = $raiseBidWhenBudgetConstained; + $this->raiseBidWhenLowQualityScore = $raiseBidWhenLowQualityScore; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("PolicyViolationError", FALSE)) { +/** + * Represents violations of a single policy by some text in a field. + * + * Violations of a single policy by the same string in multiple places + * within a field is reported in one instance of this class and only one + * exemption needs to be filed. + * Violations of a single policy by two different strings is reported + * as two separate instances of this class. + * + * e.g. If 'ACME' violates 'capitalization' and occurs twice in a text ad it + * would be represented by one instance. If the ad also contains 'INC' which + * also violates 'capitalization' it would be represented in a separate + * instance. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PolicyViolationError extends ApiError { + /** + * @access public + * @var PolicyViolationKey + */ + public $key; + + /** + * @access public + * @var string + */ + public $externalPolicyName; + + /** + * @access public + * @var string + */ + public $externalPolicyUrl; + + /** + * @access public + * @var string + */ + public $externalPolicyDescription; + + /** + * @access public + * @var boolean + */ + public $isExemptable; + + /** + * @access public + * @var PolicyViolationErrorPart[] + */ + public $violatingParts; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TargetCpaBiddingScheme", FALSE)) { +/** + * Target Cpa bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + * This is similar to the ConversionOptimizerBiddingScheme but does not + * support user-entered AdGroup-level target CPA bids, but rather a strategy-wide + * average CPA target. + * + *

Note that campaigns must meet specific + * eligibility requirements before they can use the TargetCpaBiddingScheme + * bidding strategy. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetCpaBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $targetCpa; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetCpaBiddingScheme"; + } + + public function __construct($targetCpa = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->targetCpa = $targetCpa; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetSpendBiddingScheme", FALSE)) { +/** + * Target Spend bidding scheme, in which Google automatically places + * bids for the user based on their daily/monthly budget or optional + * spend target. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetSpendBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var Money + */ + public $spendTarget; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetSpendBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $spendTarget = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->spendTarget = $spendTarget; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("Webpage", FALSE)) { +/** + * Criterion for targeting webpages of an advertiser's website. The + * website domain name is specified at the campaign level. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Webpage extends Criterion { + /** + * @access public + * @var WebpageParameter + */ + public $parameter; + + /** + * @access public + * @var double + */ + public $criteriaCoverage; + + /** + * @access public + * @var string[] + */ + public $criteriaSamples; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Webpage"; + } + + public function __construct($parameter = NULL, $criteriaCoverage = NULL, $criteriaSamples = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->parameter = $parameter; + $this->criteriaCoverage = $criteriaCoverage; + $this->criteriaSamples = $criteriaSamples; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BudgetOptimizerBiddingScheme", FALSE)) { +/** + * In budget optimizer, Google automatically places bids for the user based on + * their daily/monthly budget. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOptimizerBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ManualCPCAdGroupCriterionExperimentBidMultiplier", FALSE)) { +/** + * AdGroupCriterion level bid multiplier used in manual CPC bidding strategies. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManualCPCAdGroupCriterionExperimentBidMultiplier extends AdGroupCriterionExperimentBidMultiplier { + /** + * @access public + * @var BidMultiplier + */ + public $maxCpcMultiplier; + + /** + * @access public + * @var tnsMultiplierSource + */ + public $multiplierSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCPCAdGroupCriterionExperimentBidMultiplier"; + } + + public function __construct($maxCpcMultiplier = NULL, $multiplierSource = NULL, $AdGroupCriterionExperimentBidMultiplierType = NULL) { + parent::__construct(); + $this->maxCpcMultiplier = $maxCpcMultiplier; + $this->multiplierSource = $multiplierSource; + $this->AdGroupCriterionExperimentBidMultiplierType = $AdGroupCriterionExperimentBidMultiplierType; + } +}} + +if (!class_exists("Product", FALSE)) { +/** + * Product targeting criteria, represents a filter for products in the + * product feed that is defined by the advertiser. The criteria is used to + * determine the products in a Merchant Center account to be used with the + * ProductAds in the AdGroup. This criteria is available only to some advertisers. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Product extends Criterion { + /** + * @access public + * @var ProductCondition[] + */ + public $conditions; + + /** + * @access public + * @var string + */ + public $text; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + public function __construct($conditions = NULL, $text = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->conditions = $conditions; + $this->text = $text; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("BiddableAdGroupCriterion", FALSE)) { +/** + * A biddable (positive) criterion in an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddableAdGroupCriterion extends AdGroupCriterion { + /** + * @access public + * @var tnsUserStatus + */ + public $userStatus; + + /** + * @access public + * @var tnsSystemServingStatus + */ + public $systemServingStatus; + + /** + * @access public + * @var tnsApprovalStatus + */ + public $approvalStatus; + + /** + * @access public + * @var string[] + */ + public $disapprovalReasons; + + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * @access public + * @var BiddableAdGroupCriterionExperimentData + */ + public $experimentData; + + /** + * @access public + * @var Bid + */ + public $firstPageCpc; + + /** + * @access public + * @var Bid + */ + public $topOfPageCpc; + + /** + * @access public + * @var QualityInfo + */ + public $qualityInfo; + + /** + * @access public + * @var Stats + */ + public $stats; + + /** + * @access public + * @var BiddingStrategyConfiguration + */ + public $biddingStrategyConfiguration; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddableAdGroupCriterion"; + } + + public function __construct($userStatus = NULL, $systemServingStatus = NULL, $approvalStatus = NULL, $disapprovalReasons = NULL, $destinationUrl = NULL, $experimentData = NULL, $firstPageCpc = NULL, $topOfPageCpc = NULL, $qualityInfo = NULL, $stats = NULL, $biddingStrategyConfiguration = NULL, $bidModifier = NULL, $adGroupId = NULL, $criterionUse = NULL, $criterion = NULL, $forwardCompatibilityMap = NULL, $AdGroupCriterionType = NULL) { + parent::__construct(); + $this->userStatus = $userStatus; + $this->systemServingStatus = $systemServingStatus; + $this->approvalStatus = $approvalStatus; + $this->disapprovalReasons = $disapprovalReasons; + $this->destinationUrl = $destinationUrl; + $this->experimentData = $experimentData; + $this->firstPageCpc = $firstPageCpc; + $this->topOfPageCpc = $topOfPageCpc; + $this->qualityInfo = $qualityInfo; + $this->stats = $stats; + $this->biddingStrategyConfiguration = $biddingStrategyConfiguration; + $this->bidModifier = $bidModifier; + $this->adGroupId = $adGroupId; + $this->criterionUse = $criterionUse; + $this->criterion = $criterion; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->AdGroupCriterionType = $AdGroupCriterionType; + } +}} + +if (!class_exists("AdGroupCriterionOperation", FALSE)) { +/** + * Operation (add, remove and set) on adgroup criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionOperation extends Operation { + /** + * @access public + * @var AdGroupCriterion + */ + public $operand; + + /** + * @access public + * @var ExemptionRequest[] + */ + public $exemptionRequests; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionOperation"; + } + + public function __construct($operand = NULL, $exemptionRequests = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->exemptionRequests = $exemptionRequests; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupCriterionPage", FALSE)) { +/** + * Contains a subset of adgroup criteria resulting from a + * {@link AdGroupCriterionService#get} call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionPage extends Page { + /** + * @access public + * @var AdGroupCriterion[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupCriterionReturnValue", FALSE)) { +/** + * A container for return values from the AdGroupCriterionService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionReturnValue extends ListReturnValue { + /** + * @access public + * @var AdGroupCriterion[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("AdGroupCriterionLimitExceeded", FALSE)) { +/** + * Signals that too many criteria were added to some ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionLimitExceeded extends EntityCountLimitExceeded { + /** + * @access public + * @var tnsAdGroupCriterionLimitExceededCriteriaLimitType + */ + public $limitType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionLimitExceeded"; + } + + public function __construct($limitType = NULL, $reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->limitType = $limitType; + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CriterionPolicyError", FALSE)) { +/** + * Contains the policy violations for a single BiddableAdGroupCriterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionPolicyError extends PolicyViolationError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionPolicyError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("AdGroupCriterionService", FALSE)) { +/** + * AdGroupCriterionService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class AdGroupCriterionService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "AdGroupCriterionServiceGetResponse", + "get" => "AdGroupCriterionServiceGet", + "mutate" => "AdGroupCriterionServiceMutate", + "mutateResponse" => "AdGroupCriterionServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdGroupCriterionError" => "AdGroupCriterionError", + "ApiError" => "ApiError", + "AdGroupCriterionLimitExceeded" => "AdGroupCriterionLimitExceeded", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "AdxError" => "AdxError", + "AgeRange" => "AgeRange", + "Criterion" => "Criterion", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "BiddingError" => "BiddingError", + "BiddingErrors" => "BiddingErrors", + "ClientTermsError" => "ClientTermsError", + "ConversionOptimizerBiddingScheme" => "ConversionOptimizerBiddingScheme", + "BiddingScheme" => "BiddingScheme", + "CriterionError" => "CriterionError", + "CriterionPolicyError" => "CriterionPolicyError", + "PolicyViolationError" => "PolicyViolationError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EnhancedCpcBiddingScheme" => "EnhancedCpcBiddingScheme", + "EntityAccessDenied" => "EntityAccessDenied", + "EntityNotFound" => "EntityNotFound", + "ForwardCompatibilityError" => "ForwardCompatibilityError", + "Gender" => "Gender", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "Keyword" => "Keyword", + "LongValue" => "LongValue", + "ManualCpcBiddingScheme" => "ManualCpcBiddingScheme", + "ManualCpmBiddingScheme" => "ManualCpmBiddingScheme", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "Money" => "Money", + "ComparableValue" => "ComparableValue", + "NegativeAdGroupCriterion" => "NegativeAdGroupCriterion", + "AdGroupCriterion" => "AdGroupCriterion", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PagingError" => "PagingError", + "PercentCpaBid" => "PercentCpaBid", + "Bids" => "Bids", + "PercentCpaBiddingScheme" => "PercentCpaBiddingScheme", + "Placement" => "Placement", + "PolicyViolationError.Part" => "PolicyViolationErrorPart", + "PolicyViolationKey" => "PolicyViolationKey", + "Predicate" => "Predicate", + "ProductConditionOperand" => "ProductConditionOperand", + "QualityInfo" => "QualityInfo", + "QueryError" => "QueryError", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StatsQueryError" => "StatsQueryError", + "StringLengthError" => "StringLengthError", + "String_StringMapEntry" => "String_StringMapEntry", + "CriterionUserInterest" => "CriterionUserInterest", + "CriterionUserList" => "CriterionUserList", + "Vertical" => "Vertical", + "WebpageCondition" => "WebpageCondition", + "WebpageParameter" => "WebpageParameter", + "CriterionParameter" => "CriterionParameter", + "CpaBid" => "CpaBid", + "CpcBid" => "CpcBid", + "CpmBid" => "CpmBid", + "DatabaseError" => "DatabaseError", + "ExemptionRequest" => "ExemptionRequest", + "PageOnePromotedBiddingScheme" => "PageOnePromotedBiddingScheme", + "ProductCondition" => "ProductCondition", + "Stats" => "Stats", + "TargetCpaBiddingScheme" => "TargetCpaBiddingScheme", + "TargetSpendBiddingScheme" => "TargetSpendBiddingScheme", + "Webpage" => "Webpage", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Bid" => "Bid", + "BidMultiplier" => "BidMultiplier", + "BudgetOptimizerBiddingScheme" => "BudgetOptimizerBiddingScheme", + "ManualCPCAdGroupCriterionExperimentBidMultiplier" => "ManualCPCAdGroupCriterionExperimentBidMultiplier", + "AdGroupCriterionExperimentBidMultiplier" => "AdGroupCriterionExperimentBidMultiplier", + "Product" => "Product", + "Selector" => "Selector", + "BiddableAdGroupCriterionExperimentData" => "BiddableAdGroupCriterionExperimentData", + "BiddingStrategyConfiguration" => "BiddingStrategyConfiguration", + "BiddableAdGroupCriterion" => "BiddableAdGroupCriterion", + "AdGroupCriterionOperation" => "AdGroupCriterionOperation", + "Operation" => "Operation", + "AdGroupCriterionPage" => "AdGroupCriterionPage", + "Page" => "Page", + "AdGroupCriterionReturnValue" => "AdGroupCriterionReturnValue", + "ListReturnValue" => "ListReturnValue", + "AdGroupCriterionError.Reason" => "AdGroupCriterionErrorReason", + "AdGroupCriterionLimitExceeded.CriteriaLimitType" => "AdGroupCriterionLimitExceededCriteriaLimitType", + "AdxError.Reason" => "AdxErrorReason", + "AgeRange.AgeRangeType" => "AgeRangeAgeRangeType", + "ApprovalStatus" => "ApprovalStatus", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "BidSource" => "BidSource", + "BiddingError.Reason" => "BiddingErrorReason", + "BiddingErrors.Reason" => "BiddingErrorsReason", + "BiddingStrategySource" => "BiddingStrategySource", + "BiddingStrategyType" => "BiddingStrategyType", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "ConversionOptimizerBiddingScheme.BidType" => "ConversionOptimizerBiddingSchemeBidType", + "ConversionOptimizerBiddingScheme.PricingMode" => "ConversionOptimizerBiddingSchemePricingMode", + "Criterion.Type" => "CriterionType", + "CriterionError.Reason" => "CriterionErrorReason", + "CriterionUse" => "CriterionUse", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityAccessDenied.Reason" => "EntityAccessDeniedReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "ExperimentDataStatus" => "ExperimentDataStatus", + "ExperimentDeltaStatus" => "ExperimentDeltaStatus", + "ForwardCompatibilityError.Reason" => "ForwardCompatibilityErrorReason", + "Gender.GenderType" => "GenderGenderType", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "KeywordMatchType" => "KeywordMatchType", + "MultiplierSource" => "MultiplierSource", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "PageOnePromotedBiddingScheme.StrategyGoal" => "PageOnePromotedBiddingSchemeStrategyGoal", + "PagingError.Reason" => "PagingErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QueryError.Reason" => "QueryErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "Stats.Network" => "StatsNetwork", + "StatsQueryError.Reason" => "StatsQueryErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "SystemServingStatus" => "SystemServingStatus", + "CriterionUserList.MembershipStatus" => "CriterionUserListMembershipStatus", + "UserStatus" => "UserStatus", + "WebpageConditionOperand" => "WebpageConditionOperand", + "query" => "query", + "queryResponse" => "queryResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/AdGroupCriterionService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AdGroupCriterionService::$classmap; + parent::__construct($wsdl, $options, $user, 'AdGroupCriterionService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Gets adgroup criteria. + * + * @param serviceSelector filters the adgroup criteria to be returned. + * @return a page (subset) view of the criteria selected + * @throws ApiException when there is at least one error with the request + */ + public function get($serviceSelector) { + $arg = new AdGroupCriterionServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET, REMOVE. + * + * + * + * Adds, removes or updates adgroup criteria. + * + * @param operations operations to do + * during checks on keywords to be added. + * @return added and updated adgroup criteria (without optional parts) + * @throws ApiException when there is at least one error with the request + */ + public function mutate($operations) { + $arg = new AdGroupCriterionServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of AdGroupCriterion that match the query. + * + * @param query The SQL-like AWQL query string + * @returns A list of AdGroupCriterion + * @throws ApiException when the query is invalid or there are errors processing the request. + */ + public function query($query) { + $arg = new query($query); + $result = $this->__soapCall("query", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/AdGroupFeedService.php b/src/Google/Api/Ads/AdWords/v201306/AdGroupFeedService.php new file mode 100755 index 000000000..e21333322 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/AdGroupFeedService.php @@ -0,0 +1,3623 @@ +feedId = $feedId; + $this->adGroupId = $adGroupId; + $this->matchingFunction = $matchingFunction; + $this->placeholderTypes = $placeholderTypes; + $this->status = $status; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CollectionSizeError", FALSE)) { +/** + * Errors associated with the size of the given collection being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CollectionSizeError extends ApiError { + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateRange", FALSE)) { +/** + * Represents a range of dates that has either an upper or a lower bound. + * The format for the date is YYYYMMDD. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("FeedFunction", FALSE)) { +/** + * Represents a function where its operator is applied to its argument operands + * resulting in a return value. It has the form + * (Operand... Operator Operand...). The type of the return value depends on + * the operator being applied and the type of the operands. + * + *

Operands per function is limited to 20.

+ * + *

Here is a code example:

+ * + *

+ * 
+ * // For example "feed_attribute == 30" can be represented as:
+ * FeedId feedId = (FeedId of Feed associated with feed_attribute)
+ * FeedAttributeId feedAttributeId = (FeedAttributeId of feed_attribute)
+ * Function function = new Function();
+ * function.setLhsOperand(
+ * Arrays.asList((Operand) new FeedAttributeOperand(feedId, feedAttributeId)));
+ * function.setOperator(Operator.IN);
+ * function.setRhsOperand(
+ * Arrays.asList((Operand) new ConstantOperand(30L)));
+ * 
+ * // Another example matching on multiple values:
+ * "feed_item_id IN (10, 20, 30)" can be represented as:
+ * 
+ * Function function = new Function();
+ * function.setLhsOperand(
+ * Arrays.asList((Operand) new RequestContextOperand(ContextType.FEED_ITEM_ID)));
+ * function.setOperator(Operator.IN);
+ * function.setRhsOperand(Arrays.asList(
+ * (Operand) new ConstantOperand(10L), new ConstantOperand(20L), new ConstantOperand(30L)));
+ * 
+ * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedFunction { + /** + * @access public + * @var tnsFunctionOperator + */ + public $operator; + + /** + * @access public + * @var FunctionArgumentOperand[] + */ + public $lhsOperand; + + /** + * @access public + * @var FunctionArgumentOperand[] + */ + public $rhsOperand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Function"; + } + + public function __construct($operator = NULL, $lhsOperand = NULL, $rhsOperand = NULL) { + $this->operator = $operator; + $this->lhsOperand = $lhsOperand; + $this->rhsOperand = $rhsOperand; + } +}} + +if (!class_exists("FunctionError", FALSE)) { +/** + * Errors that indicate issues with the function. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FunctionError extends ApiError { + /** + * @access public + * @var tnsFunctionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FunctionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("FunctionArgumentOperand", FALSE)) { +/** + * An operand that can be used in a function expression. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FunctionArgumentOperand { + /** + * @access public + * @var string + */ + public $FunctionArgumentOperandType; + + private $_parameterMap = array ( + "FunctionArgumentOperand.Type" => "FunctionArgumentOperandType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FunctionArgumentOperand"; + } + + public function __construct($FunctionArgumentOperandType = NULL) { + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestContextOperand", FALSE)) { +/** + * An operand in a function referring to a value in the request context. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestContextOperand extends FunctionArgumentOperand { + /** + * @access public + * @var tnsRequestContextOperandContextType + */ + public $contextType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestContextOperand"; + } + + public function __construct($contextType = NULL, $FunctionArgumentOperandType = NULL) { + parent::__construct(); + $this->contextType = $contextType; + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdGroupFeedStatus", FALSE)) { +/** + * Status of the AdGroupFeed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupFeedStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupFeed.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupFeedErrorReason", FALSE)) { +/** + * Error reasons. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupFeedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupFeedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CollectionSizeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CollectionSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConstantOperandConstantType", FALSE)) { +/** + * The types of constant operands. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConstantOperandConstantType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConstantOperand.ConstantType"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FunctionOperator", FALSE)) { +/** + * Operators that can be used in functions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FunctionOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Function.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("FunctionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FunctionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FunctionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestContextOperandContextType", FALSE)) { +/** + * Campaign Id in the request context. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestContextOperandContextType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestContextOperand.ContextType"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupFeedServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of AdGroupFeeds that meet the selector criteria. + * + * @param selector Determines which AdGroupFeeds to return. If empty all + * adgroup feeds are returned. + * @return The list of AdgroupFeeds. + * @throws ApiException Indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupFeedServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("AdGroupFeedServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupFeedServiceGetResponse { + /** + * @access public + * @var AdGroupFeedPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupFeedServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Adds, updates or removes AdGroupFeeds. + * + * @param operations The operations to apply. + * @return The resulting Feeds. + * @throws ApiException Indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupFeedServiceMutate { + /** + * @access public + * @var AdGroupFeedOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("AdGroupFeedServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupFeedServiceMutateResponse { + /** + * @access public + * @var AdGroupFeedReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupFeedError", FALSE)) { +/** + * Represents an error for the AdGroupFeedService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupFeedError extends ApiError { + /** + * @access public + * @var tnsAdGroupFeedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupFeedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdGroupFeedOperation", FALSE)) { +/** + * Operation used to create or mutate an AdGroupFeed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupFeedOperation extends Operation { + /** + * @access public + * @var AdGroupFeed + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupFeedOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupFeedReturnValue", FALSE)) { +/** + * The result of a call to AdGroupFeedService#mutate. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupFeedReturnValue extends ListReturnValue { + /** + * @access public + * @var AdGroupFeed[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupFeedReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ConstantOperand", FALSE)) { +/** + * A constant operand in a matching function. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConstantOperand extends FunctionArgumentOperand { + /** + * @access public + * @var tnsConstantOperandConstantType + */ + public $type; + + /** + * @access public + * @var integer + */ + public $longValue; + + /** + * @access public + * @var boolean + */ + public $booleanValue; + + /** + * @access public + * @var double + */ + public $doubleValue; + + /** + * @access public + * @var string + */ + public $stringValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConstantOperand"; + } + + public function __construct($type = NULL, $longValue = NULL, $booleanValue = NULL, $doubleValue = NULL, $stringValue = NULL, $FunctionArgumentOperandType = NULL) { + parent::__construct(); + $this->type = $type; + $this->longValue = $longValue; + $this->booleanValue = $booleanValue; + $this->doubleValue = $doubleValue; + $this->stringValue = $stringValue; + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("FeedAttributeOperand", FALSE)) { +/** + * Represents a feed attribute reference to use in a function. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedAttributeOperand extends FunctionArgumentOperand { + /** + * @access public + * @var integer + */ + public $feedId; + + /** + * @access public + * @var integer + */ + public $feedAttributeId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedAttributeOperand"; + } + + public function __construct($feedId = NULL, $feedAttributeId = NULL, $FunctionArgumentOperandType = NULL) { + parent::__construct(); + $this->feedId = $feedId; + $this->feedAttributeId = $feedAttributeId; + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("FunctionOperand", FALSE)) { +/** + * A function operand in a matching function. + * Used to represent nested functions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FunctionOperand extends FunctionArgumentOperand { + /** + * @access public + * @var Function + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FunctionOperand"; + } + + public function __construct($value = NULL, $FunctionArgumentOperandType = NULL) { + parent::__construct(); + $this->value = $value; + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("NullStatsPage", FALSE)) { +/** + * Base class for Get results for a page of entities that do not use statistics, + * but still require a specific type paramter for {@link StatsEntry} + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupFeedPage", FALSE)) { +/** + * The result of a call to AdGroupFeedService#get. Contains a list of + * associations between ad groups and feeds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupFeedPage extends NullStatsPage { + /** + * @access public + * @var AdGroupFeed[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupFeedPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupFeedService", FALSE)) { +/** + * AdGroupFeedService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class AdGroupFeedService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "AdGroupFeedServiceGetResponse", + "get" => "AdGroupFeedServiceGet", + "mutate" => "AdGroupFeedServiceMutate", + "mutateResponse" => "AdGroupFeedServiceMutateResponse", + "mutateCallToAction" => "AdGroupFeedServiceMutateCallToAction", + "search" => "AdGroupFeedServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdGroupFeed" => "AdGroupFeed", + "AdGroupFeedError" => "AdGroupFeedError", + "ApiError" => "ApiError", + "AdGroupFeedOperation" => "AdGroupFeedOperation", + "Operation" => "Operation", + "AdGroupFeedPage" => "AdGroupFeedPage", + "NullStatsPage" => "NullStatsPage", + "AdGroupFeedReturnValue" => "AdGroupFeedReturnValue", + "ListReturnValue" => "ListReturnValue", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "ClientTermsError" => "ClientTermsError", + "CollectionSizeError" => "CollectionSizeError", + "ConstantOperand" => "ConstantOperand", + "FunctionArgumentOperand" => "FunctionArgumentOperand", + "DatabaseError" => "DatabaseError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "FeedAttributeOperand" => "FeedAttributeOperand", + "FunctionError" => "FunctionError", + "FunctionOperand" => "FunctionOperand", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "Page" => "Page", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestContextOperand" => "RequestContextOperand", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "Selector" => "Selector", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "AdGroupFeed.Status" => "AdGroupFeedStatus", + "AdGroupFeedError.Reason" => "AdGroupFeedErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "ConstantOperand.ConstantType" => "ConstantOperandConstantType", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "Function.Operator" => "FunctionOperator", + "FunctionError.Reason" => "FunctionErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestContextOperand.ContextType" => "RequestContextOperandContextType", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/AdGroupFeedService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AdGroupFeedService::$classmap; + parent::__construct($wsdl, $options, $user, 'AdGroupFeedService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of AdGroupFeeds that meet the selector criteria. + * + * @param selector Determines which AdGroupFeeds to return. If empty all + * adgroup feeds are returned. + * @return The list of AdgroupFeeds. + * @throws ApiException Indicates a problem with the request. + */ + public function get($selector) { + $arg = new AdGroupFeedServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Adds, updates or removes AdGroupFeeds. + * + * @param operations The operations to apply. + * @return The resulting Feeds. + * @throws ApiException Indicates a problem with the request. + */ + public function mutate($operations) { + $arg = new AdGroupFeedServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/AdGroupService.php b/src/Google/Api/Ads/AdWords/v201306/AdGroupService.php new file mode 100755 index 000000000..0c0f6820b --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/AdGroupService.php @@ -0,0 +1,5973 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("String_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class String_StringMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TargetingSettingDetail", FALSE)) { +/** + * Specifies if criteria of this type group should be used to restrict + * targeting, or if ads can serve anywhere and criteria are only used in + * determining the bid. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetingSettingDetail { + /** + * @access public + * @var tnsCriterionTypeGroup + */ + public $criterionTypeGroup; + + /** + * @access public + * @var boolean + */ + public $targetAll; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingSettingDetail"; + } + + public function __construct($criterionTypeGroup = NULL, $targetAll = NULL) { + $this->criterionTypeGroup = $criterionTypeGroup; + $this->targetAll = $targetAll; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("Setting", FALSE)) { +/** + * Base type for AdWords campaign settings. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Setting { + /** + * @access public + * @var string + */ + public $SettingType; + + private $_parameterMap = array ( + "Setting.Type" => "SettingType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Setting"; + } + + public function __construct($SettingType = NULL) { + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("Stats", FALSE)) { +/** + * Statistics about an ad or criterion within an ad group or campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Stats { + /** + * @access public + * @var string + */ + public $startDate; + + /** + * @access public + * @var string + */ + public $endDate; + + /** + * @access public + * @var tnsStatsNetwork + */ + public $network; + + /** + * @access public + * @var integer + */ + public $clicks; + + /** + * @access public + * @var integer + */ + public $impressions; + + /** + * @access public + * @var Money + */ + public $cost; + + /** + * @access public + * @var double + */ + public $averagePosition; + + /** + * @access public + * @var Money + */ + public $averageCpc; + + /** + * @access public + * @var Money + */ + public $averageCpm; + + /** + * @access public + * @var double + */ + public $ctr; + + /** + * @access public + * @var integer + */ + public $conversions; + + /** + * @access public + * @var integer + */ + public $viewThroughConversions; + + /** + * @access public + * @var Money + */ + public $totalBudget; + + /** + * @access public + * @var string + */ + public $StatsType; + + private $_parameterMap = array ( + "Stats.Type" => "StatsType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats"; + } + + public function __construct($startDate = NULL, $endDate = NULL, $network = NULL, $clicks = NULL, $impressions = NULL, $cost = NULL, $averagePosition = NULL, $averageCpc = NULL, $averageCpm = NULL, $ctr = NULL, $conversions = NULL, $viewThroughConversions = NULL, $totalBudget = NULL, $StatsType = NULL) { + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->network = $network; + $this->clicks = $clicks; + $this->impressions = $impressions; + $this->cost = $cost; + $this->averagePosition = $averagePosition; + $this->averageCpc = $averageCpc; + $this->averageCpm = $averageCpm; + $this->ctr = $ctr; + $this->conversions = $conversions; + $this->viewThroughConversions = $viewThroughConversions; + $this->totalBudget = $totalBudget; + $this->StatsType = $StatsType; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Bid", FALSE)) { +/** + * Represents a bid of a certain amount. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Bid { + /** + * @access public + * @var Money + */ + public $amount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Bid"; + } + + public function __construct($amount = NULL) { + $this->amount = $amount; + } +}} + +if (!class_exists("BidMultiplier", FALSE)) { +/** + * Represents a multiplier to modify a bid. The final value after + * modification is represented by the multiplied bid value. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BidMultiplier { + /** + * @access public + * @var double + */ + public $multiplier; + + /** + * @access public + * @var Bid + */ + public $multipliedBid; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidMultiplier"; + } + + public function __construct($multiplier = NULL, $multipliedBid = NULL) { + $this->multiplier = $multiplier; + $this->multipliedBid = $multipliedBid; + } +}} + +if (!class_exists("Bids", FALSE)) { +/** + * Base class for all bids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Bids { + /** + * @access public + * @var string + */ + public $BidsType; + + private $_parameterMap = array ( + "Bids.Type" => "BidsType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Bids"; + } + + public function __construct($BidsType = NULL) { + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AdGroupExperimentBidMultipliers", FALSE)) { +/** + * Bid multiplier used to modify the bid of an adgroup while running + * an experiment. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupExperimentBidMultipliers { + /** + * @access public + * @var string + */ + public $AdGroupExperimentBidMultipliersType; + + private $_parameterMap = array ( + "AdGroupExperimentBidMultipliers.Type" => "AdGroupExperimentBidMultipliersType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupExperimentBidMultipliers"; + } + + public function __construct($AdGroupExperimentBidMultipliersType = NULL) { + $this->AdGroupExperimentBidMultipliersType = $AdGroupExperimentBidMultipliersType; + } +}} + +if (!class_exists("AdGroupExperimentData", FALSE)) { +/** + * Data associated with an advertiser experiment for this adgroup. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupExperimentData { + /** + * @access public + * @var integer + */ + public $experimentId; + + /** + * @access public + * @var tnsExperimentDeltaStatus + */ + public $experimentDeltaStatus; + + /** + * @access public + * @var tnsExperimentDataStatus + */ + public $experimentDataStatus; + + /** + * @access public + * @var AdGroupExperimentBidMultipliers + */ + public $experimentBidMultipliers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupExperimentData"; + } + + public function __construct($experimentId = NULL, $experimentDeltaStatus = NULL, $experimentDataStatus = NULL, $experimentBidMultipliers = NULL) { + $this->experimentId = $experimentId; + $this->experimentDeltaStatus = $experimentDeltaStatus; + $this->experimentDataStatus = $experimentDataStatus; + $this->experimentBidMultipliers = $experimentBidMultipliers; + } +}} + +if (!class_exists("BiddingScheme", FALSE)) { +/** + * Base class for all bidding schemes. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingScheme { + /** + * @access public + * @var string + */ + public $BiddingSchemeType; + + private $_parameterMap = array ( + "BiddingScheme.Type" => "BiddingSchemeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("BiddingStrategyConfiguration", FALSE)) { +/** + * Encapsulates the information about bids and bidding strategies. + * + * Bidding Strategy can be set on campaigns, ad groups or ad group criteria. + * A bidding strategy can be set using one of the following: + *
    + *
  • {@linkplain BiddingStrategyConfiguration#biddingScheme bidding scheme}
  • + *
  • {@linkplain BiddingStrategyConfiguration#biddingStrategyType bidding strategy type}
  • + *
  • {@linkplain BiddingStrategyConfiguration#biddingStrategyId bidding strategy ID} for + * flexible bid strategies.
  • + *
+ * If the bidding strategy type is used, then schemes are created using default values. + * + * Bids can be set only on ad groups and ad group criteria. They cannot be set on campaigns. + * Multiple bids can be set at the same time. Only the bids that apply to the campaign's + * {@linkplain Campaign#biddingStrategyConfiguration bidding strategy} will be used. + * + * Flexible bidding is a beta feature. For more information on flexible bidding, + * visit the + * Help Center. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyConfiguration { + /** + * @access public + * @var integer + */ + public $biddingStrategyId; + + /** + * @access public + * @var string + */ + public $biddingStrategyName; + + /** + * @access public + * @var tnsBiddingStrategyType + */ + public $biddingStrategyType; + + /** + * @access public + * @var tnsBiddingStrategySource + */ + public $biddingStrategySource; + + /** + * @access public + * @var BiddingScheme + */ + public $biddingScheme; + + /** + * @access public + * @var Bids[] + */ + public $bids; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyConfiguration"; + } + + public function __construct($biddingStrategyId = NULL, $biddingStrategyName = NULL, $biddingStrategyType = NULL, $biddingStrategySource = NULL, $biddingScheme = NULL, $bids = NULL) { + $this->biddingStrategyId = $biddingStrategyId; + $this->biddingStrategyName = $biddingStrategyName; + $this->biddingStrategyType = $biddingStrategyType; + $this->biddingStrategySource = $biddingStrategySource; + $this->biddingScheme = $biddingScheme; + $this->bids = $bids; + } +}} + +if (!class_exists("AdGroup", FALSE)) { +/** + * Represents an ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroup { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var string + */ + public $campaignName; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsAdGroupStatus + */ + public $status; + + /** + * @access public + * @var Setting[] + */ + public $settings; + + /** + * @access public + * @var AdGroupExperimentData + */ + public $experimentData; + + /** + * @access public + * @var Stats + */ + public $stats; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * @access public + * @var BiddingStrategyConfiguration + */ + public $biddingStrategyConfiguration; + + /** + * @access public + * @var tnsCriterionTypeGroup + */ + public $contentBidCriterionTypeGroup; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroup"; + } + + public function __construct($id = NULL, $campaignId = NULL, $campaignName = NULL, $name = NULL, $status = NULL, $settings = NULL, $experimentData = NULL, $stats = NULL, $forwardCompatibilityMap = NULL, $biddingStrategyConfiguration = NULL, $contentBidCriterionTypeGroup = NULL) { + $this->id = $id; + $this->campaignId = $campaignId; + $this->campaignName = $campaignName; + $this->name = $name; + $this->status = $status; + $this->settings = $settings; + $this->experimentData = $experimentData; + $this->stats = $stats; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->biddingStrategyConfiguration = $biddingStrategyConfiguration; + $this->contentBidCriterionTypeGroup = $contentBidCriterionTypeGroup; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupServiceErrorReason", FALSE)) { +/** + * The reasons for the adgroup service error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupServiceErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupServiceError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupStatus", FALSE)) { +/** + * Status of this ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroup.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BidSource", FALSE)) { +/** + * Indicate where a criterion's bid came from: criterion or the adgroup it + * belongs to. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BidSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorReason", FALSE)) { +/** + * Reason for bidding error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorsReason", FALSE)) { +/** + * Bidding strategy is available for enhanced campaign only. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingErrorsReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategySource", FALSE)) { +/** + * Indicates where bidding strategy came from: campaign, adgroup or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategySource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategySource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategyType", FALSE)) { +/** + * The bidding strategy type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemeBidType", FALSE)) { +/** + * Average cost-per-acquisition (targetCPA) bid type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerBiddingSchemeBidType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.BidType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemePricingMode", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerBiddingSchemePricingMode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.PricingMode"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionTypeGroup", FALSE)) { +/** + * The list of groupings of criteria types. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionTypeGroup { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionTypeGroup"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentDataStatus", FALSE)) { +/** + * Status of the experimental change associated with an entity. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentDataStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentDataStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentDeltaStatus", FALSE)) { +/** + * Status of an entity denoting its type of experimental change in a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentDeltaStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentDeltaStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForwardCompatibilityErrorReason", FALSE)) { +/** + * The reason for the error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ForwardCompatibilityErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PageOnePromotedBiddingSchemeStrategyGoal", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PageOnePromotedBiddingSchemeStrategyGoal { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme.StrategyGoal"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QueryErrorReason", FALSE)) { +/** + * The reason for the query error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The reasons for the quota error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SettingErrorReason", FALSE)) { +/** + * The reasons for the setting error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SettingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SettingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsNetwork", FALSE)) { +/** + * Ad network. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsNetwork { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats.Network"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsQueryErrorReason", FALSE)) { +/** + * The reasons for errors when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsQueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of all the ad groups specified by the selector + * from the target customer's account. + * + * @param serviceSelector The selector specifying the {@link AdGroup}s to return. + * @return List of adgroups identified by the selector. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("AdGroupServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupServiceGetResponse { + /** + * @access public + * @var AdGroupPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET. + * + * + * + * Adds, updates, or deletes ad groups. + *

Note: {@link AdGroupOperation} does not support the + * {@code REMOVE} operator. To delete an ad group, set its + * {@link AdGroup#status status} to {@code DELETED}.

+ * + * @param operations List of unique operations. The same ad group cannot be + * specified in more than one operation. + * @return The updated adgroups. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupServiceMutate { + /** + * @access public + * @var AdGroupOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("AdGroupServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupServiceMutateResponse { + /** + * @access public + * @var AdGroupReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("query", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of ad groups that match the query. + * + * @param query The SQL-like AWQL query string + * @return A list of adgroups + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class query { + /** + * @access public + * @var string + */ + public $query; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($query = NULL) { + $this->query = $query; + } +}} + +if (!class_exists("queryResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class queryResponse { + /** + * @access public + * @var AdGroupPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupServiceError", FALSE)) { +/** + * Represents possible error codes in AdGroupService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupServiceError extends ApiError { + /** + * @access public + * @var tnsAdGroupServiceErrorReason + */ + public $reason; + + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupServiceError"; + } + + public function __construct($reason = NULL, $adGroupId = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->adGroupId = $adGroupId; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BiddingError", FALSE)) { +/** + * Represents bidding errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingError extends ApiError { + /** + * @access public + * @var tnsBiddingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BiddingErrors", FALSE)) { +/** + * Represents error codes for bidding strategy entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingErrors extends ApiError { + /** + * @access public + * @var tnsBiddingErrorsReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ConversionOptimizerBiddingScheme", FALSE)) { +/** + * Conversion optimizer bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + *

{@code pricingMode} currently defaults to {@code CLICKS} and + * cannot be changed.

+ * + *

Note that campaigns must meet specific + * eligibility requirements before they can use the ConversionOptimizer + * bidding strategy. + * + * For more information on conversion optimizer, visit the + * Conversion Optimizer site. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemePricingMode + */ + public $pricingMode; + + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemeBidType + */ + public $bidType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme"; + } + + public function __construct($pricingMode = NULL, $bidType = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->pricingMode = $pricingMode; + $this->bidType = $bidType; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EnhancedCpcBiddingScheme", FALSE)) { +/** + * Enhanced CPC is a bidding strategy that raises your bids for clicks that seem more likely to + * lead to a conversion and lowers them for clicks where they seem less likely. + * + * This bidding scheme does not support criteria level bidding strategy overrides. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EnhancedCpcBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnhancedCpcBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ForwardCompatibilityError", FALSE)) { +/** + * A ForwardComptibilityError represents possible errors when using the forwardCompatibilityMap + * in some of the common services. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ForwardCompatibilityError extends ApiError { + /** + * @access public + * @var tnsForwardCompatibilityErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ManualCpcBiddingScheme", FALSE)) { +/** + * Manual click based bidding where user pays per click. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManualCpcBiddingScheme extends BiddingScheme { + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpcBiddingScheme"; + } + + public function __construct($enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ManualCpmBiddingScheme", FALSE)) { +/** + * Manual impression based bidding where user pays per thousand impressions. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManualCpmBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpmBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PercentCpaBid", FALSE)) { +/** + * Percentage CPA based bidding where user pays a percent of conversions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PercentCpaBid extends Bids { + /** + * @access public + * @var integer + */ + public $bid; + + /** + * @access public + * @var tnsBidSource + */ + public $percentCpaBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBid"; + } + + public function __construct($bid = NULL, $percentCpaBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->percentCpaBidSource = $percentCpaBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("PercentCpaBiddingScheme", FALSE)) { +/** + * Percentage CPA based bidding scheme attributes where user pays a percent of conversions. + * This bidding strategy is available only to some advertisers. + *

A campaign can only be created with PercentCPA bidding strategy. Existing + * campaigns with a different bidding strategy cannot be transitioned to PercentCPA. + *

Similarly, once created as a PercentCPA, a campaign cannot be transitioned to + * any other bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PercentCpaBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("QueryError", FALSE)) { +/** + * A QueryError represents possible errors for query parsing and execution. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QueryError extends ApiError { + /** + * @access public + * @var tnsQueryErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError"; + } + + public function __construct($reason = NULL, $message = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->message = $message; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * Errors that are thrown if a quota limit is exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + public function __construct($reason = NULL, $limit = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->limit = $limit; + $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * Indicates that a field was rejected due to compatibility issues. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SettingError", FALSE)) { +/** + * Indicates a problem with campaign settings. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SettingError extends ApiError { + /** + * @access public + * @var tnsSettingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SettingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("StatsQueryError", FALSE)) { +/** + * Represents possible error codes when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsQueryError extends ApiError { + /** + * @access public + * @var tnsStatsQueryErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TargetingSetting", FALSE)) { +/** + * Setting for targeting related features. + * This is applicable at Campaign and AdGroup level. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetingSetting extends Setting { + /** + * @access public + * @var TargetingSettingDetail[] + */ + public $details; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingSetting"; + } + + public function __construct($details = NULL, $SettingType = NULL) { + parent::__construct(); + $this->details = $details; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("CpaBid", FALSE)) { +/** + * CPA Bids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CpaBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpaBid"; + } + + public function __construct($bid = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("CpcBid", FALSE)) { +/** + * Manual click based bids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CpcBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var Money + */ + public $contentBid; + + /** + * @access public + * @var tnsBidSource + */ + public $cpcBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpcBid"; + } + + public function __construct($bid = NULL, $contentBid = NULL, $cpcBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->contentBid = $contentBid; + $this->cpcBidSource = $cpcBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("CpmBid", FALSE)) { +/** + * Manual impression based bids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CpmBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var tnsBidSource + */ + public $cpmBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpmBid"; + } + + public function __construct($bid = NULL, $cpmBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->cpmBidSource = $cpmBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PageOnePromotedBiddingScheme", FALSE)) { +/** + * Page-One Promoted bidding scheme, which sets max cpc bids to + * target impressions on page one or page one promoted slots on google.com. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PageOnePromotedBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsPageOnePromotedBiddingSchemeStrategyGoal + */ + public $strategyGoal; + + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var boolean + */ + public $bidChangesForRaisesOnly; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenBudgetConstained; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenLowQualityScore; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme"; + } + + public function __construct($strategyGoal = NULL, $bidCeiling = NULL, $bidModifier = NULL, $bidChangesForRaisesOnly = NULL, $raiseBidWhenBudgetConstained = NULL, $raiseBidWhenLowQualityScore = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->strategyGoal = $strategyGoal; + $this->bidCeiling = $bidCeiling; + $this->bidModifier = $bidModifier; + $this->bidChangesForRaisesOnly = $bidChangesForRaisesOnly; + $this->raiseBidWhenBudgetConstained = $raiseBidWhenBudgetConstained; + $this->raiseBidWhenLowQualityScore = $raiseBidWhenLowQualityScore; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetCpaBiddingScheme", FALSE)) { +/** + * Target Cpa bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + * This is similar to the ConversionOptimizerBiddingScheme but does not + * support user-entered AdGroup-level target CPA bids, but rather a strategy-wide + * average CPA target. + * + *

Note that campaigns must meet specific + * eligibility requirements before they can use the TargetCpaBiddingScheme + * bidding strategy. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetCpaBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $targetCpa; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetCpaBiddingScheme"; + } + + public function __construct($targetCpa = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->targetCpa = $targetCpa; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetSpendBiddingScheme", FALSE)) { +/** + * Target Spend bidding scheme, in which Google automatically places + * bids for the user based on their daily/monthly budget or optional + * spend target. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetSpendBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var Money + */ + public $spendTarget; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetSpendBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $spendTarget = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->spendTarget = $spendTarget; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BudgetOptimizerBiddingScheme", FALSE)) { +/** + * In budget optimizer, Google automatically places bids for the user based on + * their daily/monthly budget. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOptimizerBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ManualCPCAdGroupExperimentBidMultipliers", FALSE)) { +/** + * Adgroup level bid multipliers used in manual CPC bidding strategies. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManualCPCAdGroupExperimentBidMultipliers extends AdGroupExperimentBidMultipliers { + /** + * @access public + * @var BidMultiplier + */ + public $maxCpcMultiplier; + + /** + * @access public + * @var BidMultiplier + */ + public $maxContentCpcMultiplier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCPCAdGroupExperimentBidMultipliers"; + } + + public function __construct($maxCpcMultiplier = NULL, $maxContentCpcMultiplier = NULL, $AdGroupExperimentBidMultipliersType = NULL) { + parent::__construct(); + $this->maxCpcMultiplier = $maxCpcMultiplier; + $this->maxContentCpcMultiplier = $maxContentCpcMultiplier; + $this->AdGroupExperimentBidMultipliersType = $AdGroupExperimentBidMultipliersType; + } +}} + +if (!class_exists("ManualCPMAdGroupExperimentBidMultipliers", FALSE)) { +/** + * Adgroup level bid multipliers used in manual CPM bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManualCPMAdGroupExperimentBidMultipliers extends AdGroupExperimentBidMultipliers { + /** + * @access public + * @var BidMultiplier + */ + public $maxCpmMultiplier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCPMAdGroupExperimentBidMultipliers"; + } + + public function __construct($maxCpmMultiplier = NULL, $AdGroupExperimentBidMultipliersType = NULL) { + parent::__construct(); + $this->maxCpmMultiplier = $maxCpmMultiplier; + $this->AdGroupExperimentBidMultipliersType = $AdGroupExperimentBidMultipliersType; + } +}} + +if (!class_exists("AdGroupOperation", FALSE)) { +/** + * AdGroup operations for adding/updating/removing adgroups. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupOperation extends Operation { + /** + * @access public + * @var AdGroup + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupPage", FALSE)) { +/** + * Contains a subset of adgroup resulting from the filtering and paging of the + * {@link com.google.ads.api.services.campaignmgmt.adgroup.AdGroupService#get} call + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupPage extends Page { + /** + * @access public + * @var AdGroup[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupReturnValue", FALSE)) { +/** + * A container for return values from the AdGroupService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupReturnValue extends ListReturnValue { + /** + * @access public + * @var AdGroup[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("AdGroupService", FALSE)) { +/** + * AdGroupService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class AdGroupService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "AdGroupServiceGetResponse", + "get" => "AdGroupServiceGet", + "mutate" => "AdGroupServiceMutate", + "mutateResponse" => "AdGroupServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdGroupServiceError" => "AdGroupServiceError", + "ApiError" => "ApiError", + "AdxError" => "AdxError", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "BiddingError" => "BiddingError", + "BiddingErrors" => "BiddingErrors", + "ClientTermsError" => "ClientTermsError", + "ConversionOptimizerBiddingScheme" => "ConversionOptimizerBiddingScheme", + "BiddingScheme" => "BiddingScheme", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EnhancedCpcBiddingScheme" => "EnhancedCpcBiddingScheme", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "ForwardCompatibilityError" => "ForwardCompatibilityError", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "LongValue" => "LongValue", + "ManualCpcBiddingScheme" => "ManualCpcBiddingScheme", + "ManualCpmBiddingScheme" => "ManualCpmBiddingScheme", + "Money" => "Money", + "ComparableValue" => "ComparableValue", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PercentCpaBid" => "PercentCpaBid", + "Bids" => "Bids", + "PercentCpaBiddingScheme" => "PercentCpaBiddingScheme", + "Predicate" => "Predicate", + "QueryError" => "QueryError", + "QuotaCheckError" => "QuotaCheckError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SettingError" => "SettingError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StatsQueryError" => "StatsQueryError", + "StringLengthError" => "StringLengthError", + "String_StringMapEntry" => "String_StringMapEntry", + "TargetingSettingDetail" => "TargetingSettingDetail", + "TargetingSetting" => "TargetingSetting", + "Setting" => "Setting", + "CpaBid" => "CpaBid", + "CpcBid" => "CpcBid", + "CpmBid" => "CpmBid", + "DatabaseError" => "DatabaseError", + "PageOnePromotedBiddingScheme" => "PageOnePromotedBiddingScheme", + "Stats" => "Stats", + "TargetCpaBiddingScheme" => "TargetCpaBiddingScheme", + "TargetSpendBiddingScheme" => "TargetSpendBiddingScheme", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Bid" => "Bid", + "BidMultiplier" => "BidMultiplier", + "BudgetOptimizerBiddingScheme" => "BudgetOptimizerBiddingScheme", + "ManualCPCAdGroupExperimentBidMultipliers" => "ManualCPCAdGroupExperimentBidMultipliers", + "AdGroupExperimentBidMultipliers" => "AdGroupExperimentBidMultipliers", + "ManualCPMAdGroupExperimentBidMultipliers" => "ManualCPMAdGroupExperimentBidMultipliers", + "Selector" => "Selector", + "AdGroupExperimentData" => "AdGroupExperimentData", + "BiddingStrategyConfiguration" => "BiddingStrategyConfiguration", + "AdGroup" => "AdGroup", + "AdGroupOperation" => "AdGroupOperation", + "Operation" => "Operation", + "AdGroupPage" => "AdGroupPage", + "Page" => "Page", + "AdGroupReturnValue" => "AdGroupReturnValue", + "ListReturnValue" => "ListReturnValue", + "AdGroupServiceError.Reason" => "AdGroupServiceErrorReason", + "AdGroup.Status" => "AdGroupStatus", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "BidSource" => "BidSource", + "BiddingError.Reason" => "BiddingErrorReason", + "BiddingErrors.Reason" => "BiddingErrorsReason", + "BiddingStrategySource" => "BiddingStrategySource", + "BiddingStrategyType" => "BiddingStrategyType", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "ConversionOptimizerBiddingScheme.BidType" => "ConversionOptimizerBiddingSchemeBidType", + "ConversionOptimizerBiddingScheme.PricingMode" => "ConversionOptimizerBiddingSchemePricingMode", + "CriterionTypeGroup" => "CriterionTypeGroup", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "ExperimentDataStatus" => "ExperimentDataStatus", + "ExperimentDeltaStatus" => "ExperimentDeltaStatus", + "ForwardCompatibilityError.Reason" => "ForwardCompatibilityErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "PageOnePromotedBiddingScheme.StrategyGoal" => "PageOnePromotedBiddingSchemeStrategyGoal", + "Predicate.Operator" => "PredicateOperator", + "QueryError.Reason" => "QueryErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SettingError.Reason" => "SettingErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "Stats.Network" => "StatsNetwork", + "StatsQueryError.Reason" => "StatsQueryErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "query" => "query", + "queryResponse" => "queryResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/AdGroupService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AdGroupService::$classmap; + parent::__construct($wsdl, $options, $user, 'AdGroupService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of all the ad groups specified by the selector + * from the target customer's account. + * + * @param serviceSelector The selector specifying the {@link AdGroup}s to return. + * @return List of adgroups identified by the selector. + * @throws ApiException when there is at least one error with the request. + */ + public function get($serviceSelector) { + $arg = new AdGroupServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET. + * + * + * + * Adds, updates, or deletes ad groups. + *

Note: {@link AdGroupOperation} does not support the + * {@code REMOVE} operator. To delete an ad group, set its + * {@link AdGroup#status status} to {@code DELETED}.

+ * + * @param operations List of unique operations. The same ad group cannot be + * specified in more than one operation. + * @return The updated adgroups. + */ + public function mutate($operations) { + $arg = new AdGroupServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of ad groups that match the query. + * + * @param query The SQL-like AWQL query string + * @return A list of adgroups + * @throws ApiException + */ + public function query($query) { + $arg = new query($query); + $result = $this->__soapCall("query", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/AdParamService.php b/src/Google/Api/Ads/AdWords/v201306/AdParamService.php new file mode 100755 index 000000000..0ef00937f --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/AdParamService.php @@ -0,0 +1,2975 @@ +AdParam objects + * (one for each value of {@link #paramIndex}) per ad group + * Keyword + * criterion. + *

When setting or removing an AdParam, it is uniquely + * identified by the combination of these three fields:

+ *
    + *
  • adGroupId
  • + *
  • criterionId
  • + *
  • paramIndex
  • + *
+ * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdParam { + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var integer + */ + public $criterionId; + + /** + * @access public + * @var string + */ + public $insertionText; + + /** + * @access public + * @var integer + */ + public $paramIndex; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdParam"; + } + + public function __construct($adGroupId = NULL, $criterionId = NULL, $insertionText = NULL, $paramIndex = NULL) { + $this->adGroupId = $adGroupId; + $this->criterionId = $criterionId; + $this->insertionText = $insertionText; + $this->paramIndex = $paramIndex; + } +}} + +if (!class_exists("AdParamPage", FALSE)) { +/** + * Represents a page of AdParams returned by the {@link AdParamService}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdParamPage { + /** + * @access public + * @var AdParam[] + */ + public $entries; + + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdParamPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL) { + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + } +}} + +if (!class_exists("DateRange", FALSE)) { +/** + * Represents a range of dates that has either an upper or a lower bound. + * The format for the date is YYYYMMDD. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("PolicyViolationErrorPart", FALSE)) { +/** + * Points to a substring within an ad field or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PolicyViolationErrorPart { + /** + * @access public + * @var integer + */ + public $index; + + /** + * @access public + * @var integer + */ + public $length; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError.Part"; + } + + public function __construct($index = NULL, $length = NULL) { + $this->index = $index; + $this->length = $length; + } +}} + +if (!class_exists("PolicyViolationKey", FALSE)) { +/** + * Key of the violation. The key is used for referring to a violation when + * filing an exemption request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PolicyViolationKey { + /** + * @access public + * @var string + */ + public $policyName; + + /** + * @access public + * @var string + */ + public $violatingText; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationKey"; + } + + public function __construct($policyName = NULL, $violatingText = NULL) { + $this->policyName = $policyName; + $this->violatingText = $violatingText; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AdParamErrorReason", FALSE)) { +/** + * The same ad param cannot be specified in multiple operations + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdParamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdParamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdParamServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the ad parameters that match the criteria specified in the + * selector. + * + * @param serviceSelector Specifies which ad parameters to return. + * @return A list of ad parameters. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdParamServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("AdParamServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdParamServiceGetResponse { + /** + * @access public + * @var AdParamPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdParamServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: SET, REMOVE. + * + * + * + * Sets and removes ad parameters. + *

Note: {@code ADD} is not supported. Use {@code SET} + * for new ad parameters.

+ * + *
    + *
  • {@code SET}: Creates or updates an ad parameter, setting the new + * parameterized value for the given ad group / keyword pair. + *
  • {@code REMOVE}: Removes an ad parameter. The default-value + * specified in the ad text will be used.
  • + *
+ * + * @param operations The operations to perform. + * @return A list of ad parameters, where each entry in the list is the + * result of applying the operation in the input list with the same index. + * For a {@code SET} operation, the returned ad parameter will contain the + * updated values. For a {@code REMOVE} operation, the returned ad parameter + * will simply be the ad parameter that was removed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdParamServiceMutate { + /** + * @access public + * @var AdParamOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("AdParamServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdParamServiceMutateResponse { + /** + * @access public + * @var AdParam[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdParamError", FALSE)) { +/** + * Errors for AdParamService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdParamError extends ApiError { + /** + * @access public + * @var tnsAdParamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdParamError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdParamOperation", FALSE)) { +/** + * Represents an operation on an {@link AdParam}. The supported operators + * are {@code SET} and {@code REMOVE}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdParamOperation extends Operation { + /** + * @access public + * @var AdParam + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdParamOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PolicyViolationError", FALSE)) { +/** + * Represents violations of a single policy by some text in a field. + * + * Violations of a single policy by the same string in multiple places + * within a field is reported in one instance of this class and only one + * exemption needs to be filed. + * Violations of a single policy by two different strings is reported + * as two separate instances of this class. + * + * e.g. If 'ACME' violates 'capitalization' and occurs twice in a text ad it + * would be represented by one instance. If the ad also contains 'INC' which + * also violates 'capitalization' it would be represented in a separate + * instance. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PolicyViolationError extends ApiError { + /** + * @access public + * @var PolicyViolationKey + */ + public $key; + + /** + * @access public + * @var string + */ + public $externalPolicyName; + + /** + * @access public + * @var string + */ + public $externalPolicyUrl; + + /** + * @access public + * @var string + */ + public $externalPolicyDescription; + + /** + * @access public + * @var boolean + */ + public $isExemptable; + + /** + * @access public + * @var PolicyViolationErrorPart[] + */ + public $violatingParts; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AdParamPolicyError", FALSE)) { +/** + * Policy violation for an AdParam. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdParamPolicyError extends PolicyViolationError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdParamPolicyError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdParamService", FALSE)) { +/** + * AdParamService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class AdParamService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "AdParamServiceGetResponse", + "get" => "AdParamServiceGet", + "mutate" => "AdParamServiceMutate", + "mutateResponse" => "AdParamServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdParam" => "AdParam", + "AdParamError" => "AdParamError", + "ApiError" => "ApiError", + "AdParamOperation" => "AdParamOperation", + "Operation" => "Operation", + "AdParamPage" => "AdParamPage", + "AdParamPolicyError" => "AdParamPolicyError", + "PolicyViolationError" => "PolicyViolationError", + "AdxError" => "AdxError", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PolicyViolationError.Part" => "PolicyViolationErrorPart", + "PolicyViolationKey" => "PolicyViolationKey", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Selector" => "Selector", + "AdParamError.Reason" => "AdParamErrorReason", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/AdParamService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AdParamService::$classmap; + parent::__construct($wsdl, $options, $user, 'AdParamService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the ad parameters that match the criteria specified in the + * selector. + * + * @param serviceSelector Specifies which ad parameters to return. + * @return A list of ad parameters. + */ + public function get($serviceSelector) { + $arg = new AdParamServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: SET, REMOVE. + * + * + * + * Sets and removes ad parameters. + *

Note: {@code ADD} is not supported. Use {@code SET} + * for new ad parameters.

+ * + *
    + *
  • {@code SET}: Creates or updates an ad parameter, setting the new + * parameterized value for the given ad group / keyword pair. + *
  • {@code REMOVE}: Removes an ad parameter. The default-value + * specified in the ad text will be used.
  • + *
+ * + * @param operations The operations to perform. + * @return A list of ad parameters, where each entry in the list is the + * result of applying the operation in the input list with the same index. + * For a {@code SET} operation, the returned ad parameter will contain the + * updated values. For a {@code REMOVE} operation, the returned ad parameter + * will simply be the ad parameter that was removed. + */ + public function mutate($operations) { + $arg = new AdParamServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/AdwordsUserListService.php b/src/Google/Api/Ads/AdWords/v201306/AdwordsUserListService.php new file mode 100755 index 000000000..0b8789848 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/AdwordsUserListService.php @@ -0,0 +1,3650 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +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.

+ * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CollectionSizeError", FALSE)) { +/** + * Errors associated with the size of the given collection being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CollectionSizeError extends ApiError { + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("UserListConversionType", FALSE)) { +/** + * Represents a conversion type used for building remarketing user lists. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class UserListConversionType { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsUserListConversionTypeCategory + */ + public $category; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListConversionType"; + } + + public function __construct($id = NULL, $name = NULL, $category = NULL) { + $this->id = $id; + $this->name = $name; + $this->category = $category; + } +}} + +if (!class_exists("LogicalUserListOperand", FALSE)) { +/** + * An interface for a logical user list operand. A logical user list is a + * combination of logical rules. Each rule is defined as a logical operator and + * a list of operands. Those operands can be of type UserList or UserInterest. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LogicalUserListOperand { + /** + * @access public + * @var UserInterest + */ + public $UserInterest; + + /** + * @access public + * @var UserList + */ + public $UserList; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LogicalUserListOperand"; + } + + public function __construct($UserInterest = NULL, $UserList = NULL) { + $this->UserInterest = $UserInterest; + $this->UserList = $UserList; + } +}} + +if (!class_exists("UserInterest", FALSE)) { +/** + * Represents a particular interest based vertical to be targeted. + * User interest may be used for defining logical user lists. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class UserInterest { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsSizeRange + */ + public $sizeRange; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserInterest"; + } + + public function __construct($id = NULL, $name = NULL, $sizeRange = NULL) { + $this->id = $id; + $this->name = $name; + $this->sizeRange = $sizeRange; + } +}} + +if (!class_exists("UserList", FALSE)) { +/** + * Represents a UserList object that is sent over the wire. + * This is a list of users an account may target. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class UserList { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var boolean + */ + public $isReadOnly; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsUserListMembershipStatus + */ + public $status; + + /** + * @access public + * @var string + */ + public $integrationCode; + + /** + * @access public + * @var tnsAccessReason + */ + public $accessReason; + + /** + * @access public + * @var tnsAccountUserListStatus + */ + public $accountUserListStatus; + + /** + * @access public + * @var integer + */ + public $membershipLifeSpan; + + /** + * @access public + * @var integer + */ + public $size; + + /** + * @access public + * @var tnsSizeRange + */ + public $sizeRange; + + /** + * @access public + * @var string + */ + public $UserListType; + + private $_parameterMap = array ( + "UserList.Type" => "UserListType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserList"; + } + + public function __construct($id = NULL, $isReadOnly = NULL, $name = NULL, $description = NULL, $status = NULL, $integrationCode = NULL, $accessReason = NULL, $accountUserListStatus = NULL, $membershipLifeSpan = NULL, $size = NULL, $sizeRange = NULL, $UserListType = NULL) { + $this->id = $id; + $this->isReadOnly = $isReadOnly; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->integrationCode = $integrationCode; + $this->accessReason = $accessReason; + $this->accountUserListStatus = $accountUserListStatus; + $this->membershipLifeSpan = $membershipLifeSpan; + $this->size = $size; + $this->sizeRange = $sizeRange; + $this->UserListType = $UserListType; + } +}} + +if (!class_exists("UserListError", FALSE)) { +/** + * Represents possible error codes in UserListService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class UserListError extends ApiError { + /** + * @access public + * @var tnsUserListErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("UserListLogicalRule", FALSE)) { +/** + * A user list logical rule. A rule has a logical operator (and/or/not) and a + * list of operands that can be user lists or user interests. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class UserListLogicalRule { + /** + * @access public + * @var tnsUserListLogicalRuleOperator + */ + public $operator; + + /** + * @access public + * @var LogicalUserListOperand[] + */ + public $ruleOperands; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListLogicalRule"; + } + + public function __construct($operator = NULL, $ruleOperands = NULL) { + $this->operator = $operator; + $this->ruleOperands = $ruleOperands; + } +}} + +if (!class_exists("UserListOperation", FALSE)) { +/** + * UserList operations for adding/updating UserList entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class UserListOperation extends Operation { + /** + * @access public + * @var UserList + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("UserListPage", FALSE)) { +/** + * Contains a list of user lists resulting from the filtering and paging of the + * {@link UserListService#get} call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class UserListPage extends Page { + /** + * @access public + * @var UserList[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("UserListReturnValue", FALSE)) { +/** + * A container for return values from the UserListService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class UserListReturnValue extends ListReturnValue { + /** + * @access public + * @var UserList[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("AccessReason", FALSE)) { +/** + * AccessReason in the AccountUserListStatus table. This indicates the way the userlist is + * related to a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AccessReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AccessReason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AccountUserListStatus", FALSE)) { +/** + * Status in the AccountUserListStatus table. This indicates if the user list share or + * the licensing of the userlist is still active. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AccountUserListStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AccountUserListStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CollectionSizeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CollectionSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserListConversionTypeCategory", FALSE)) { +/** + * User can create only BOOMERANG_EVENT conversion types. For all other types + * UserListService service will return OTHER. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class UserListConversionTypeCategory { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListConversionType.Category"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeRange", FALSE)) { +/** + * Size range in terms of number of users of a UserList/UserInterest. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeRange { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeRange"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserListErrorReason", FALSE)) { +/** + * Creating and updating external remarketing user lists is not supported. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class UserListErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserListLogicalRuleOperator", FALSE)) { +/** + * And - all of the operands. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class UserListLogicalRuleOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListLogicalRule.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserListMembershipStatus", FALSE)) { +/** + * Membership status of the user list. This status indicates whether a user list + * can accumulate more users and may be targeted to. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class UserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListMembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdwordsUserListServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of user lists that meet the selector criteria. + * + * @param serviceSelector the selector specifying the {@link UserList}s to return. + * @return a list of UserList entities which meet the selector criteria. + * @throws ApiException if problems occurred while fetching UserList information. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdwordsUserListServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("AdwordsUserListServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdwordsUserListServiceGetResponse { + /** + * @access public + * @var UserListPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdwordsUserListServiceMutate", FALSE)) { +/** + * The minimum size of this collection is 1. The maximum size of this collection is 10000. + * This field must not contain {@code null} elements. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET. + * + * + * + * Applies a list of mutate operations (i.e. add, set): + * + * Add - creates a set of user lists + * Set - updates a set of user lists + * + * @param operations the operations to apply + * @return a list of UserList objects + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdwordsUserListServiceMutate { + /** + * @access public + * @var UserListOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("AdwordsUserListServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdwordsUserListServiceMutateResponse { + /** + * @access public + * @var UserListReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ExternalRemarketingUserList", FALSE)) { +/** + * User lists created in the DoubleClick platform that are mapped + * from DoubleClick to AdWords. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExternalRemarketingUserList extends UserList { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExternalRemarketingUserList"; + } + + public function __construct($id = NULL, $isReadOnly = NULL, $name = NULL, $description = NULL, $status = NULL, $integrationCode = NULL, $accessReason = NULL, $accountUserListStatus = NULL, $membershipLifeSpan = NULL, $size = NULL, $sizeRange = NULL, $UserListType = NULL) { + parent::__construct(); + $this->id = $id; + $this->isReadOnly = $isReadOnly; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->integrationCode = $integrationCode; + $this->accessReason = $accessReason; + $this->accountUserListStatus = $accountUserListStatus; + $this->membershipLifeSpan = $membershipLifeSpan; + $this->size = $size; + $this->sizeRange = $sizeRange; + $this->UserListType = $UserListType; + } +}} + +if (!class_exists("LogicalUserList", FALSE)) { +/** + * Represents a user list that is a custom combination of user lists and user + * interests. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LogicalUserList extends UserList { + /** + * @access public + * @var UserListLogicalRule[] + */ + public $rules; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LogicalUserList"; + } + + public function __construct($rules = NULL, $id = NULL, $isReadOnly = NULL, $name = NULL, $description = NULL, $status = NULL, $integrationCode = NULL, $accessReason = NULL, $accountUserListStatus = NULL, $membershipLifeSpan = NULL, $size = NULL, $sizeRange = NULL, $UserListType = NULL) { + parent::__construct(); + $this->rules = $rules; + $this->id = $id; + $this->isReadOnly = $isReadOnly; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->integrationCode = $integrationCode; + $this->accessReason = $accessReason; + $this->accountUserListStatus = $accountUserListStatus; + $this->membershipLifeSpan = $membershipLifeSpan; + $this->size = $size; + $this->sizeRange = $sizeRange; + $this->UserListType = $UserListType; + } +}} + +if (!class_exists("BasicUserList", FALSE)) { +/** + * User list targeting as a collection of conversion types. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BasicUserList extends UserList { + /** + * @access public + * @var UserListConversionType[] + */ + public $conversionTypes; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BasicUserList"; + } + + public function __construct($conversionTypes = NULL, $id = NULL, $isReadOnly = NULL, $name = NULL, $description = NULL, $status = NULL, $integrationCode = NULL, $accessReason = NULL, $accountUserListStatus = NULL, $membershipLifeSpan = NULL, $size = NULL, $sizeRange = NULL, $UserListType = NULL) { + parent::__construct(); + $this->conversionTypes = $conversionTypes; + $this->id = $id; + $this->isReadOnly = $isReadOnly; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->integrationCode = $integrationCode; + $this->accessReason = $accessReason; + $this->accountUserListStatus = $accountUserListStatus; + $this->membershipLifeSpan = $membershipLifeSpan; + $this->size = $size; + $this->sizeRange = $sizeRange; + $this->UserListType = $UserListType; + } +}} + +if (!class_exists("AdwordsUserListService", FALSE)) { +/** + * AdwordsUserListService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class AdwordsUserListService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "AdwordsUserListServiceGetResponse", + "get" => "AdwordsUserListServiceGet", + "mutate" => "AdwordsUserListServiceMutate", + "mutateResponse" => "AdwordsUserListServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityNotFound" => "EntityNotFound", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Selector" => "Selector", + "ListReturnValue" => "ListReturnValue", + "Operation" => "Operation", + "Page" => "Page", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + "ExternalRemarketingUserList" => "ExternalRemarketingUserList", + "UserList" => "UserList", + "CollectionSizeError" => "CollectionSizeError", + "UserListConversionType" => "UserListConversionType", + "LogicalUserList" => "LogicalUserList", + "LogicalUserListOperand" => "LogicalUserListOperand", + "BasicUserList" => "BasicUserList", + "UserInterest" => "UserInterest", + "UserListError" => "UserListError", + "UserListLogicalRule" => "UserListLogicalRule", + "UserListOperation" => "UserListOperation", + "UserListPage" => "UserListPage", + "UserListReturnValue" => "UserListReturnValue", + "AccessReason" => "AccessReason", + "AccountUserListStatus" => "AccountUserListStatus", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "UserListConversionType.Category" => "UserListConversionTypeCategory", + "SizeRange" => "SizeRange", + "UserListError.Reason" => "UserListErrorReason", + "UserListLogicalRule.Operator" => "UserListLogicalRuleOperator", + "UserListMembershipStatus" => "UserListMembershipStatus", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/rm/v201306/AdwordsUserListService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AdwordsUserListService::$classmap; + parent::__construct($wsdl, $options, $user, 'AdwordsUserListService', 'https://adwords.google.com/api/adwords/rm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of user lists that meet the selector criteria. + * + * @param serviceSelector the selector specifying the {@link UserList}s to return. + * @return a list of UserList entities which meet the selector criteria. + * @throws ApiException if problems occurred while fetching UserList information. + */ + public function get($serviceSelector) { + $arg = new AdwordsUserListServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * The minimum size of this collection is 1. The maximum size of this collection is 10000. + * This field must not contain {@code null} elements. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET. + * + * + * + * Applies a list of mutate operations (i.e. add, set): + * + * Add - creates a set of user lists + * Set - updates a set of user lists + * + * @param operations the operations to apply + * @return a list of UserList objects + */ + public function mutate($operations) { + $arg = new AdwordsUserListServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/AlertService.php b/src/Google/Api/Ads/AdWords/v201306/AlertService.php new file mode 100755 index 000000000..c17add591 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/AlertService.php @@ -0,0 +1,2457 @@ +startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +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.

+ * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AlertError", FALSE)) { +/** + * Errors that can occur when using {@link AlertService}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AlertError extends ApiError { + /** + * @access public + * @var tnsAlertErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AlertError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AlertQuery", FALSE)) { +/** + * Querying criteria for getting alerts. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AlertQuery { + /** + * @access public + * @var tnsClientSpec + */ + public $clientSpec; + + /** + * @access public + * @var tnsFilterSpec + */ + public $filterSpec; + + /** + * @access public + * @var tnsAlertType[] + */ + public $types; + + /** + * @access public + * @var tnsAlertSeverity[] + */ + public $severities; + + /** + * @access public + * @var tnsTriggerTimeSpec + */ + public $triggerTimeSpec; + + /** + * @access public + * @var string + */ + public $triggerTime; + + /** + * @access public + * @var integer[] + */ + public $clientCustomerIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AlertQuery"; + } + + public function __construct($clientSpec = NULL, $filterSpec = NULL, $types = NULL, $severities = NULL, $triggerTimeSpec = NULL, $triggerTime = NULL, $clientCustomerIds = NULL) { + $this->clientSpec = $clientSpec; + $this->filterSpec = $filterSpec; + $this->types = $types; + $this->severities = $severities; + $this->triggerTimeSpec = $triggerTimeSpec; + $this->triggerTime = $triggerTime; + $this->clientCustomerIds = $clientCustomerIds; + } +}} + +if (!class_exists("Detail", FALSE)) { +/** + * Detail refers to a single event or condition that triggered its owning {@link Alert}. + * Multiple details can cause the same {@code Alert} to occur. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Detail { + /** + * @access public + * @var string + */ + public $triggerTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Detail"; + } + + public function __construct($triggerTime = NULL) { + $this->triggerTime = $triggerTime; + } +}} + +if (!class_exists("Alert", FALSE)) { +/** + * Alert for a single client. Triggering events are grouped by {@link AlertType} into the same alert + * with multiple {@link Details}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Alert { + /** + * @access public + * @var tnsAlertSeverity + */ + public $alertSeverity; + + /** + * @access public + * @var tnsAlertType + */ + public $alertType; + + /** + * @access public + * @var integer + */ + public $clientCustomerId; + + /** + * @access public + * @var Detail[] + */ + public $details; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Alert"; + } + + public function __construct($alertSeverity = NULL, $alertType = NULL, $clientCustomerId = NULL, $details = NULL) { + $this->alertSeverity = $alertSeverity; + $this->alertType = $alertType; + $this->clientCustomerId = $clientCustomerId; + $this->details = $details; + } +}} + +if (!class_exists("AlertSelector", FALSE)) { +/** + * Selector for querying for alerts. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AlertSelector { + /** + * @access public + * @var AlertQuery + */ + public $query; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AlertSelector"; + } + + public function __construct($query = NULL, $paging = NULL) { + $this->query = $query; + $this->paging = $paging; + } +}} + +if (!class_exists("NoStatsPage", FALSE)) { +/** + * Base class for Get results for a page of entities that do not use statistics. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NoStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NoStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AlertErrorReason", FALSE)) { +/** + * The possible reasons for an {@link AlertError} to occur. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AlertErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AlertError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AlertSeverity", FALSE)) { +/** + * Severity of an alert, represented as a "color". + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AlertSeverity { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AlertSeverity"; + } + + public function __construct() { + } +}} + +if (!class_exists("AlertType", FALSE)) { +/** + * Type of an alert. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AlertType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AlertType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientSpec", FALSE)) { +/** + * Specification of which managed accounts a client manager is interested in. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientSpec { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientSpec"; + } + + public function __construct() { + } +}} + +if (!class_exists("FilterSpec", FALSE)) { +/** + * Describes how a result set of alerts should be filtered based on the triggering account's + * ability to manage clients. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FilterSpec { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FilterSpec"; + } + + public function __construct() { + } +}} + +if (!class_exists("TriggerTimeSpec", FALSE)) { +/** + * Specification of what trigger time alerts should match. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TriggerTimeSpec { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TriggerTimeSpec"; + } + + public function __construct() { + } +}} + +if (!class_exists("AlertServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Gets the list of alerts matching the specified clients and time period. + * + * @param selector selects the alerts for which to search. + * @return a page of alerts. + * @throws ApiException if an error occurs + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AlertServiceGet { + /** + * @access public + * @var AlertSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("AlertServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AlertServiceGetResponse { + /** + * @access public + * @var AlertPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AlertPage", FALSE)) { +/** + * Contains a subset of {@link Alert}s resulting from the filtering and paging, + * returned by {@link AlertService#get(AlertSelector)}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AlertPage extends NoStatsPage { + /** + * @access public + * @var Alert[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AlertPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AlertService", FALSE)) { +/** + * AlertService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class AlertService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "AlertServiceGetResponse", + "get" => "AlertServiceGet", + "mutate" => "AlertServiceMutate", + "mutateResponse" => "AlertServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DateError" => "DateError", + "DistinctError" => "DistinctError", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotWhitelistedError" => "NotWhitelistedError", + "Paging" => "Paging", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Page" => "Page", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "AlertError" => "AlertError", + "AlertQuery" => "AlertQuery", + "Detail" => "Detail", + "Alert" => "Alert", + "AlertPage" => "AlertPage", + "NoStatsPage" => "NoStatsPage", + "AlertSelector" => "AlertSelector", + "AlertError.Reason" => "AlertErrorReason", + "AlertSeverity" => "AlertSeverity", + "AlertType" => "AlertType", + "ClientSpec" => "ClientSpec", + "FilterSpec" => "FilterSpec", + "TriggerTimeSpec" => "TriggerTimeSpec", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/mcm/v201306/AlertService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AlertService::$classmap; + parent::__construct($wsdl, $options, $user, 'AlertService', 'https://adwords.google.com/api/adwords/mcm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Gets the list of alerts matching the specified clients and time period. + * + * @param selector selects the alerts for which to search. + * @return a page of alerts. + * @throws ApiException if an error occurs + */ + public function get($selector) { + $arg = new AlertServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/BiddingStrategyService.php b/src/Google/Api/Ads/AdWords/v201306/BiddingStrategyService.php new file mode 100755 index 000000000..6660af331 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/BiddingStrategyService.php @@ -0,0 +1,4113 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("BiddingScheme", FALSE)) { +/** + * Base class for all bidding schemes. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingScheme { + /** + * @access public + * @var string + */ + public $BiddingSchemeType; + + private $_parameterMap = array ( + "BiddingScheme.Type" => "BiddingSchemeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("SharedBiddingStrategy", FALSE)) { +/** + * Bidding strategies store shared bidding configuration data and are account-level objects. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedBiddingStrategy { + /** + * @access public + * @var BiddingScheme + */ + public $biddingScheme; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsSharedBiddingStrategyBiddingStrategyStatus + */ + public $status; + + /** + * @access public + * @var tnsBiddingStrategyType + */ + public $type; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedBiddingStrategy"; + } + + public function __construct($biddingScheme = NULL, $id = NULL, $name = NULL, $status = NULL, $type = NULL) { + $this->biddingScheme = $biddingScheme; + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->type = $type; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorsReason", FALSE)) { +/** + * Bidding strategy is available for enhanced campaign only. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingErrorsReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SharedBiddingStrategyBiddingStrategyStatus", FALSE)) { +/** + * Status of the bidding strategy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedBiddingStrategyBiddingStrategyStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedBiddingStrategy.BiddingStrategyStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategyErrorReason", FALSE)) { +/** + * Each bidding strategy must have a unique name. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategyType", FALSE)) { +/** + * The bidding strategy type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemeBidType", FALSE)) { +/** + * Average cost-per-acquisition (targetCPA) bid type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerBiddingSchemeBidType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.BidType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemePricingMode", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerBiddingSchemePricingMode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.PricingMode"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("PageOnePromotedBiddingSchemeStrategyGoal", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PageOnePromotedBiddingSchemeStrategyGoal { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme.StrategyGoal"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategyServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of bidding strategies that match the selector. + * + * @return list of bidding strategies specified by the selector. + * @throws com.google.ads.api.services.common.error.ApiException if problems + * occurred while retrieving results. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("BiddingStrategyServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyServiceGetResponse { + /** + * @access public + * @var BiddingStrategyPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("BiddingStrategyServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Applies the list of mutate operations. + * + * @param operations the operations to apply + * @return the modified list of BiddingStrategy + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyServiceMutate { + /** + * @access public + * @var BiddingStrategyOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("BiddingStrategyServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyServiceMutateResponse { + /** + * @access public + * @var BiddingStrategyReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BiddingErrors", FALSE)) { +/** + * Represents error codes for bidding strategy entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingErrors extends ApiError { + /** + * @access public + * @var tnsBiddingErrorsReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BiddingStrategyError", FALSE)) { +/** + * Represents error codes for bidding strategy entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyError extends ApiError { + /** + * @access public + * @var tnsBiddingStrategyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ConversionOptimizerBiddingScheme", FALSE)) { +/** + * Conversion optimizer bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + *

{@code pricingMode} currently defaults to {@code CLICKS} and + * cannot be changed.

+ * + *

Note that campaigns must meet specific + * eligibility requirements before they can use the ConversionOptimizer + * bidding strategy. + * + * For more information on conversion optimizer, visit the + * Conversion Optimizer site. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemePricingMode + */ + public $pricingMode; + + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemeBidType + */ + public $bidType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme"; + } + + public function __construct($pricingMode = NULL, $bidType = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->pricingMode = $pricingMode; + $this->bidType = $bidType; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EnhancedCpcBiddingScheme", FALSE)) { +/** + * Enhanced CPC is a bidding strategy that raises your bids for clicks that seem more likely to + * lead to a conversion and lowers them for clicks where they seem less likely. + * + * This bidding scheme does not support criteria level bidding strategy overrides. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EnhancedCpcBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnhancedCpcBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ManualCpcBiddingScheme", FALSE)) { +/** + * Manual click based bidding where user pays per click. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManualCpcBiddingScheme extends BiddingScheme { + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpcBiddingScheme"; + } + + public function __construct($enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ManualCpmBiddingScheme", FALSE)) { +/** + * Manual impression based bidding where user pays per thousand impressions. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManualCpmBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpmBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("PercentCpaBiddingScheme", FALSE)) { +/** + * Percentage CPA based bidding scheme attributes where user pays a percent of conversions. + * This bidding strategy is available only to some advertisers. + *

A campaign can only be created with PercentCPA bidding strategy. Existing + * campaigns with a different bidding strategy cannot be transitioned to PercentCPA. + *

Similarly, once created as a PercentCPA, a campaign cannot be transitioned to + * any other bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PercentCpaBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * Indicates that a field was rejected due to compatibility issues. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PageOnePromotedBiddingScheme", FALSE)) { +/** + * Page-One Promoted bidding scheme, which sets max cpc bids to + * target impressions on page one or page one promoted slots on google.com. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PageOnePromotedBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsPageOnePromotedBiddingSchemeStrategyGoal + */ + public $strategyGoal; + + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var boolean + */ + public $bidChangesForRaisesOnly; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenBudgetConstained; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenLowQualityScore; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme"; + } + + public function __construct($strategyGoal = NULL, $bidCeiling = NULL, $bidModifier = NULL, $bidChangesForRaisesOnly = NULL, $raiseBidWhenBudgetConstained = NULL, $raiseBidWhenLowQualityScore = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->strategyGoal = $strategyGoal; + $this->bidCeiling = $bidCeiling; + $this->bidModifier = $bidModifier; + $this->bidChangesForRaisesOnly = $bidChangesForRaisesOnly; + $this->raiseBidWhenBudgetConstained = $raiseBidWhenBudgetConstained; + $this->raiseBidWhenLowQualityScore = $raiseBidWhenLowQualityScore; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetCpaBiddingScheme", FALSE)) { +/** + * Target Cpa bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + * This is similar to the ConversionOptimizerBiddingScheme but does not + * support user-entered AdGroup-level target CPA bids, but rather a strategy-wide + * average CPA target. + * + *

Note that campaigns must meet specific + * eligibility requirements before they can use the TargetCpaBiddingScheme + * bidding strategy. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetCpaBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $targetCpa; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetCpaBiddingScheme"; + } + + public function __construct($targetCpa = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->targetCpa = $targetCpa; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetSpendBiddingScheme", FALSE)) { +/** + * Target Spend bidding scheme, in which Google automatically places + * bids for the user based on their daily/monthly budget or optional + * spend target. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetSpendBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var Money + */ + public $spendTarget; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetSpendBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $spendTarget = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->spendTarget = $spendTarget; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BudgetOptimizerBiddingScheme", FALSE)) { +/** + * In budget optimizer, Google automatically places bids for the user based on + * their daily/monthly budget. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOptimizerBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("BiddingStrategyOperation", FALSE)) { +/** + * Operations for adding/updating bidding strategies. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyOperation extends Operation { + /** + * @access public + * @var SharedBiddingStrategy + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("BiddingStrategyPage", FALSE)) { +/** + * Contains a list of bidding strategies resulting from the filtering and paging + * of {@link BiddingStrategy#get} call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyPage extends Page { + /** + * @access public + * @var SharedBiddingStrategy[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("BiddingStrategyReturnValue", FALSE)) { +/** + * A container for return values from the {@link BiddingStrategyService#mutate} call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyReturnValue extends ListReturnValue { + /** + * @access public + * @var SharedBiddingStrategy[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("BiddingStrategyService", FALSE)) { +/** + * BiddingStrategyService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class BiddingStrategyService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "BiddingStrategyServiceGetResponse", + "get" => "BiddingStrategyServiceGet", + "mutate" => "BiddingStrategyServiceMutate", + "mutateResponse" => "BiddingStrategyServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdxError" => "AdxError", + "ApiError" => "ApiError", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "BiddingErrors" => "BiddingErrors", + "BiddingStrategyError" => "BiddingStrategyError", + "ClientTermsError" => "ClientTermsError", + "ConversionOptimizerBiddingScheme" => "ConversionOptimizerBiddingScheme", + "BiddingScheme" => "BiddingScheme", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EnhancedCpcBiddingScheme" => "EnhancedCpcBiddingScheme", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "LongValue" => "LongValue", + "ManualCpcBiddingScheme" => "ManualCpcBiddingScheme", + "ManualCpmBiddingScheme" => "ManualCpmBiddingScheme", + "Money" => "Money", + "ComparableValue" => "ComparableValue", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PercentCpaBiddingScheme" => "PercentCpaBiddingScheme", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "PageOnePromotedBiddingScheme" => "PageOnePromotedBiddingScheme", + "TargetCpaBiddingScheme" => "TargetCpaBiddingScheme", + "TargetSpendBiddingScheme" => "TargetSpendBiddingScheme", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "BudgetOptimizerBiddingScheme" => "BudgetOptimizerBiddingScheme", + "Selector" => "Selector", + "SharedBiddingStrategy" => "SharedBiddingStrategy", + "BiddingStrategyOperation" => "BiddingStrategyOperation", + "Operation" => "Operation", + "BiddingStrategyPage" => "BiddingStrategyPage", + "Page" => "Page", + "BiddingStrategyReturnValue" => "BiddingStrategyReturnValue", + "ListReturnValue" => "ListReturnValue", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "BiddingErrors.Reason" => "BiddingErrorsReason", + "SharedBiddingStrategy.BiddingStrategyStatus" => "SharedBiddingStrategyBiddingStrategyStatus", + "BiddingStrategyError.Reason" => "BiddingStrategyErrorReason", + "BiddingStrategyType" => "BiddingStrategyType", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "ConversionOptimizerBiddingScheme.BidType" => "ConversionOptimizerBiddingSchemeBidType", + "ConversionOptimizerBiddingScheme.PricingMode" => "ConversionOptimizerBiddingSchemePricingMode", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "Operator" => "Operator", + "PageOnePromotedBiddingScheme.StrategyGoal" => "PageOnePromotedBiddingSchemeStrategyGoal", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/BiddingStrategyService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = BiddingStrategyService::$classmap; + parent::__construct($wsdl, $options, $user, 'BiddingStrategyService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of bidding strategies that match the selector. + * + * @return list of bidding strategies specified by the selector. + * @throws com.google.ads.api.services.common.error.ApiException if problems + * occurred while retrieving results. + */ + public function get($selector) { + $arg = new BiddingStrategyServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Applies the list of mutate operations. + * + * @param operations the operations to apply + * @return the modified list of BiddingStrategy + * @throws ApiException + */ + public function mutate($operations) { + $arg = new BiddingStrategyServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/BudgetOrderService.php b/src/Google/Api/Ads/AdWords/v201306/BudgetOrderService.php new file mode 100755 index 000000000..69cefe2e2 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/BudgetOrderService.php @@ -0,0 +1,4362 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateRange", FALSE)) { +/** + * Represents a range of dates that has either an upper or a lower bound. + * The format for the date is YYYYMMDD. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("PagingError", FALSE)) { +/** + * Error codes for pagination. + * See {@link com.google.ads.api.services.common.pagination.Paging}. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PagingError extends ApiError { + /** + * @access public + * @var tnsPagingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("StatsQueryError", FALSE)) { +/** + * Represents possible error codes when querying for stats. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsQueryError extends ApiError { + /** + * @access public + * @var tnsStatsQueryErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PagingErrorReason", FALSE)) { +/** + * The reasons for errors when using pagination. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PagingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsQueryErrorReason", FALSE)) { +/** + * The reasons for errors when querying for stats. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsQueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BillingAccount", FALSE)) { +/** + * Represents an BillingAccount. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BillingAccount { + /** + * @access public + * @var string + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var string + */ + public $primaryBillingId; + + /** + * @access public + * @var string + */ + public $secondaryBillingId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingAccount"; + } + + public function __construct($id = NULL, $name = NULL, $currencyCode = NULL, $primaryBillingId = NULL, $secondaryBillingId = NULL) { + $this->id = $id; + $this->name = $name; + $this->currencyCode = $currencyCode; + $this->primaryBillingId = $primaryBillingId; + $this->secondaryBillingId = $secondaryBillingId; + } +}} + +if (!class_exists("BudgetOrderError", FALSE)) { +/** + * Error information for BudgetOrderService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOrderError extends ApiError { + /** + * @access public + * @var tnsBudgetOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOrderError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CustomerOrderLineError", FALSE)) { +/** + * Error information returned for CustomerOrderLineService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CustomerOrderLineError extends ApiError { + /** + * @access public + * @var tnsCustomerOrderLineErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomerOrderLineError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BudgetOrderRequest", FALSE)) { +/** + * Holds fields that provide information on the last set of values that were passed in through + * the parent BudgetOrder for mutate.add and mutate.set. + * This element only applies if manager account is whitelisted for new billing backend. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOrderRequest { + /** + * @access public + * @var tnsBudgetOrderRequestStatus + */ + public $status; + + /** + * @access public + * @var string + */ + public $date; + + /** + * @access public + * @var string + */ + public $billingAccountName; + + /** + * @access public + * @var string + */ + public $poNumber; + + /** + * @access public + * @var string + */ + public $budgetOrderName; + + /** + * @access public + * @var Money + */ + public $spendingLimit; + + /** + * @access public + * @var string + */ + public $startDateTime; + + /** + * @access public + * @var string + */ + public $endDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOrderRequest"; + } + + public function __construct($status = NULL, $date = NULL, $billingAccountName = NULL, $poNumber = NULL, $budgetOrderName = NULL, $spendingLimit = NULL, $startDateTime = NULL, $endDateTime = NULL) { + $this->status = $status; + $this->date = $date; + $this->billingAccountName = $billingAccountName; + $this->poNumber = $poNumber; + $this->budgetOrderName = $budgetOrderName; + $this->spendingLimit = $spendingLimit; + $this->startDateTime = $startDateTime; + $this->endDateTime = $endDateTime; + } +}} + +if (!class_exists("BudgetOrder", FALSE)) { +/** + * A {@link BudgetOrder} links an account wide budget with a {@link BillingAccount}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOrder { + /** + * @access public + * @var string + */ + public $billingAccountId; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $billingAccountName; + + /** + * @access public + * @var string + */ + public $poNumber; + + /** + * @access public + * @var string + */ + public $budgetOrderName; + + /** + * @access public + * @var string + */ + public $primaryBillingId; + + /** + * @access public + * @var string + */ + public $secondaryBillingId; + + /** + * @access public + * @var Money + */ + public $spendingLimit; + + /** + * @access public + * @var string + */ + public $startDateTime; + + /** + * @access public + * @var string + */ + public $endDateTime; + + /** + * @access public + * @var BudgetOrderRequest + */ + public $lastRequest; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOrder"; + } + + public function __construct($billingAccountId = NULL, $id = NULL, $billingAccountName = NULL, $poNumber = NULL, $budgetOrderName = NULL, $primaryBillingId = NULL, $secondaryBillingId = NULL, $spendingLimit = NULL, $startDateTime = NULL, $endDateTime = NULL, $lastRequest = NULL) { + $this->billingAccountId = $billingAccountId; + $this->id = $id; + $this->billingAccountName = $billingAccountName; + $this->poNumber = $poNumber; + $this->budgetOrderName = $budgetOrderName; + $this->primaryBillingId = $primaryBillingId; + $this->secondaryBillingId = $secondaryBillingId; + $this->spendingLimit = $spendingLimit; + $this->startDateTime = $startDateTime; + $this->endDateTime = $endDateTime; + $this->lastRequest = $lastRequest; + } +}} + +if (!class_exists("BudgetOrderOperation", FALSE)) { +/** + * Operation for {@link BudgetOrder}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOrderOperation extends Operation { + /** + * @access public + * @var BudgetOrder + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOrderOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("BudgetOrderPage", FALSE)) { +/** + * A page of {@link BudgetOrder}s from {@link BudgetOrderService#get} + * method. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOrderPage extends Page { + /** + * @access public + * @var BudgetOrder[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOrderPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("BudgetOrderReturnValue", FALSE)) { +/** + * A container for return values from the {@link BudgetOrderService#mutate} + * method. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOrderReturnValue extends ListReturnValue { + /** + * @access public + * @var BudgetOrder[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOrderReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("BudgetOrderErrorReason", FALSE)) { +/** + * Customer is not whitelisted for new billing. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOrderErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOrderError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetOrderRequestStatus", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOrderRequestStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOrderRequest.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomerOrderLineErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during a CustomerOrderLine mutate + * operation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CustomerOrderLineErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomerOrderLineError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetOrderServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Gets a list of {@link BudgetOrder}s using the generic selector. + * @param serviceSelector specifies which BudgetOrder to return. + * @return A {@link BudgetOrderPage} of BudgetOrders of the client customer. + * All BudgetOrder fields are returned. Stats are not yet supported. + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOrderServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("BudgetOrderServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOrderServiceGetResponse { + /** + * @access public + * @var BudgetOrderPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getBillingAccounts", FALSE)) { +/** + * Returns all the open/active BillingAccounts associated with the current + * manager. + * @return A list of {@link BillingAccount}s. + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getBillingAccounts { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getBillingAccountsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getBillingAccountsResponse { + /** + * @access public + * @var BillingAccount[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("BudgetOrderServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET, REMOVE. + * + * + * + * Mutates BudgetOrders, supported operations are: + *

ADD: Adds a {@link BudgetOrder} to the billing account + * specified by the billing account ID.

+ *

SET: Sets the start/end date and amount of the + * {@link BudgetOrder}.

+ *

REMOVE: Cancels the {@link BudgetOrder} (status change).

+ *

Warning: The BudgetOrderService + * is limited to one operation per mutate request. Any attempt to make more + * than one operation will result in an ApiException.

+ * @param operations A list of operations, however currently we only + * support one operation per mutate call. + * @return BudgetOrders affected by the mutate operation. + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOrderServiceMutate { + /** + * @access public + * @var BudgetOrderOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("BudgetOrderServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOrderServiceMutateResponse { + /** + * @access public + * @var BudgetOrderReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("BudgetOrderService", FALSE)) { +/** + * BudgetOrderService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class BudgetOrderService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "BudgetOrderServiceGetResponse", + "get" => "BudgetOrderServiceGet", + "mutate" => "BudgetOrderServiceMutate", + "mutateResponse" => "BudgetOrderServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "ComparableValue" => "ComparableValue", + "DatabaseError" => "DatabaseError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "ListReturnValue" => "ListReturnValue", + "LongValue" => "LongValue", + "Money" => "Money", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "Operation" => "Operation", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Page" => "Page", + "Paging" => "Paging", + "PagingError" => "PagingError", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "Selector" => "Selector", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StatsQueryError" => "StatsQueryError", + "StringLengthError" => "StringLengthError", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "PagingError.Reason" => "PagingErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StatsQueryError.Reason" => "StatsQueryErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "BillingAccount" => "BillingAccount", + "BudgetOrderError" => "BudgetOrderError", + "CustomerOrderLineError" => "CustomerOrderLineError", + "BudgetOrderRequest" => "BudgetOrderRequest", + "BudgetOrder" => "BudgetOrder", + "BudgetOrderOperation" => "BudgetOrderOperation", + "BudgetOrderPage" => "BudgetOrderPage", + "BudgetOrderReturnValue" => "BudgetOrderReturnValue", + "BudgetOrderError.Reason" => "BudgetOrderErrorReason", + "BudgetOrderRequest.Status" => "BudgetOrderRequestStatus", + "CustomerOrderLineError.Reason" => "CustomerOrderLineErrorReason", + "getBillingAccounts" => "getBillingAccounts", + "getBillingAccountsResponse" => "getBillingAccountsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/billing/v201306/BudgetOrderService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = BudgetOrderService::$classmap; + parent::__construct($wsdl, $options, $user, 'BudgetOrderService', 'https://adwords.google.com/api/adwords/billing/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Gets a list of {@link BudgetOrder}s using the generic selector. + * @param serviceSelector specifies which BudgetOrder to return. + * @return A {@link BudgetOrderPage} of BudgetOrders of the client customer. + * All BudgetOrder fields are returned. Stats are not yet supported. + * @throws ApiException + */ + public function get($serviceSelector) { + $arg = new BudgetOrderServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * Returns all the open/active BillingAccounts associated with the current + * manager. + * @return A list of {@link BillingAccount}s. + * @throws ApiException + */ + public function getBillingAccounts() { + $arg = new getBillingAccounts(); + $result = $this->__soapCall("getBillingAccounts", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET, REMOVE. + * + * + * + * Mutates BudgetOrders, supported operations are: + *

ADD: Adds a {@link BudgetOrder} to the billing account + * specified by the billing account ID.

+ *

SET: Sets the start/end date and amount of the + * {@link BudgetOrder}.

+ *

REMOVE: Cancels the {@link BudgetOrder} (status change).

+ *

Warning: The BudgetOrderService + * is limited to one operation per mutate request. Any attempt to make more + * than one operation will result in an ApiException.

+ * @param operations A list of operations, however currently we only + * support one operation per mutate call. + * @return BudgetOrders affected by the mutate operation. + * @throws ApiException + */ + public function mutate($operations) { + $arg = new BudgetOrderServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/BudgetService.php b/src/Google/Api/Ads/AdWords/v201306/BudgetService.php new file mode 100755 index 000000000..83c28b44f --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/BudgetService.php @@ -0,0 +1,3468 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("Budget", FALSE)) { +/** + * Budgets are used for managing the amount of money spent on AdWords. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Budget { + /** + * @access public + * @var integer + */ + public $budgetId; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsBudgetBudgetPeriod + */ + public $period; + + /** + * @access public + * @var Money + */ + public $amount; + + /** + * @access public + * @var tnsBudgetBudgetDeliveryMethod + */ + public $deliveryMethod; + + /** + * @access public + * @var integer + */ + public $referenceCount; + + /** + * @access public + * @var boolean + */ + public $isExplicitlyShared; + + /** + * @access public + * @var tnsBudgetBudgetStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget"; + } + + public function __construct($budgetId = NULL, $name = NULL, $period = NULL, $amount = NULL, $deliveryMethod = NULL, $referenceCount = NULL, $isExplicitlyShared = NULL, $status = NULL) { + $this->budgetId = $budgetId; + $this->name = $name; + $this->period = $period; + $this->amount = $amount; + $this->deliveryMethod = $deliveryMethod; + $this->referenceCount = $referenceCount; + $this->isExplicitlyShared = $isExplicitlyShared; + $this->status = $status; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetDeliveryMethod", FALSE)) { +/** + * Budget delivery methods. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetBudgetDeliveryMethod { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetDeliveryMethod"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetPeriod", FALSE)) { +/** + * Budget periods. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetBudgetPeriod { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetPeriod"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetStatus", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetBudgetStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetErrorReason", FALSE)) { +/** + * The reasons for the budget error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of budgets that match the selector. + * + * @return List of budgets specified by the selector. + * @throws com.google.ads.api.services.common.error.ApiException if problems + * occurred while retrieving results. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("BudgetServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetServiceGetResponse { + /** + * @access public + * @var BudgetPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("BudgetServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Applies the list of mutate operations. + * + * @param operations The operations to apply. + * @return The modified list of Budgets, returned in the same order as operations. + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetServiceMutate { + /** + * @access public + * @var BudgetOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("BudgetServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetServiceMutateResponse { + /** + * @access public + * @var BudgetReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BudgetError", FALSE)) { +/** + * A list of all the error codes being used by the common budget domain package. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetError extends ApiError { + /** + * @access public + * @var tnsBudgetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * Indicates that a field was rejected due to compatibility issues. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BudgetOperation", FALSE)) { +/** + * Operations for adding/updating Budget entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOperation extends Operation { + /** + * @access public + * @var Budget + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("BudgetPage", FALSE)) { +/** + * Contains a list of budgets resulting from the filtering and paging of + * {@link BudgetService#get} call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetPage extends Page { + /** + * @access public + * @var Budget[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("BudgetReturnValue", FALSE)) { +/** + * A container for return values from the {@link BudgetService#mutate} call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetReturnValue extends ListReturnValue { + /** + * @access public + * @var Budget[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("BudgetService", FALSE)) { +/** + * BudgetService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class BudgetService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "BudgetServiceGetResponse", + "get" => "BudgetServiceGet", + "mutate" => "BudgetServiceMutate", + "mutateResponse" => "BudgetServiceMutateResponse", + "mutateCallToAction" => "BudgetServiceMutateCallToAction", + "search" => "BudgetServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "BudgetError" => "BudgetError", + "ClientTermsError" => "ClientTermsError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "LongValue" => "LongValue", + "Money" => "Money", + "ComparableValue" => "ComparableValue", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Selector" => "Selector", + "Budget" => "Budget", + "BudgetOperation" => "BudgetOperation", + "Operation" => "Operation", + "BudgetPage" => "BudgetPage", + "Page" => "Page", + "BudgetReturnValue" => "BudgetReturnValue", + "ListReturnValue" => "ListReturnValue", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "Budget.BudgetDeliveryMethod" => "BudgetBudgetDeliveryMethod", + "Budget.BudgetPeriod" => "BudgetBudgetPeriod", + "Budget.BudgetStatus" => "BudgetBudgetStatus", + "BudgetError.Reason" => "BudgetErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/BudgetService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = BudgetService::$classmap; + parent::__construct($wsdl, $options, $user, 'BudgetService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of budgets that match the selector. + * + * @return List of budgets specified by the selector. + * @throws com.google.ads.api.services.common.error.ApiException if problems + * occurred while retrieving results. + */ + public function get($selector) { + $arg = new BudgetServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Applies the list of mutate operations. + * + * @param operations The operations to apply. + * @return The modified list of Budgets, returned in the same order as operations. + * @throws ApiException + */ + public function mutate($operations) { + $arg = new BudgetServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/CampaignAdExtensionService.php b/src/Google/Api/Ads/AdWords/v201306/CampaignAdExtensionService.php new file mode 100755 index 000000000..7be9fc169 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/CampaignAdExtensionService.php @@ -0,0 +1,4706 @@ +streetAddress = $streetAddress; + $this->streetAddress2 = $streetAddress2; + $this->cityName = $cityName; + $this->provinceCode = $provinceCode; + $this->provinceName = $provinceName; + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + } +}} + +if (!class_exists("DateRange", FALSE)) { +/** + * Represents a range of dates that has either an upper or a lower bound. + * The format for the date is YYYYMMDD. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("GeoPoint", FALSE)) { +/** + * Specifies a geo location with the supplied latitude/longitude. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GeoPoint { + /** + * @access public + * @var integer + */ + public $latitudeInMicroDegrees; + + /** + * @access public + * @var integer + */ + public $longitudeInMicroDegrees; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoPoint"; + } + + public function __construct($latitudeInMicroDegrees = NULL, $longitudeInMicroDegrees = NULL) { + $this->latitudeInMicroDegrees = $latitudeInMicroDegrees; + $this->longitudeInMicroDegrees = $longitudeInMicroDegrees; + } +}} + +if (!class_exists("OAuthInfo", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OAuthInfo { + /** + * @access public + * @var string + */ + public $httpMethod; + + /** + * @access public + * @var string + */ + public $httpRequestUrl; + + /** + * @access public + * @var string + */ + public $httpAuthorizationHeader; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuthInfo"; + } + + public function __construct($httpMethod = NULL, $httpRequestUrl = NULL, $httpAuthorizationHeader = NULL) { + $this->httpMethod = $httpMethod; + $this->httpRequestUrl = $httpRequestUrl; + $this->httpAuthorizationHeader = $httpAuthorizationHeader; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("Sitelink", FALSE)) { +/** + * Class to represent a single sitelink + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Sitelink { + /** + * @access public + * @var string + */ + public $displayText; + + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Sitelink"; + } + + public function __construct($displayText = NULL, $destinationUrl = NULL) { + $this->displayText = $displayText; + $this->destinationUrl = $destinationUrl; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("Stats", FALSE)) { +/** + * Statistics about an ad or criterion within an ad group or campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Stats { + /** + * @access public + * @var string + */ + public $startDate; + + /** + * @access public + * @var string + */ + public $endDate; + + /** + * @access public + * @var tnsStatsNetwork + */ + public $network; + + /** + * @access public + * @var integer + */ + public $clicks; + + /** + * @access public + * @var integer + */ + public $impressions; + + /** + * @access public + * @var Money + */ + public $cost; + + /** + * @access public + * @var double + */ + public $averagePosition; + + /** + * @access public + * @var Money + */ + public $averageCpc; + + /** + * @access public + * @var Money + */ + public $averageCpm; + + /** + * @access public + * @var double + */ + public $ctr; + + /** + * @access public + * @var integer + */ + public $conversions; + + /** + * @access public + * @var integer + */ + public $viewThroughConversions; + + /** + * @access public + * @var Money + */ + public $totalBudget; + + /** + * @access public + * @var string + */ + public $StatsType; + + private $_parameterMap = array ( + "Stats.Type" => "StatsType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats"; + } + + public function __construct($startDate = NULL, $endDate = NULL, $network = NULL, $clicks = NULL, $impressions = NULL, $cost = NULL, $averagePosition = NULL, $averageCpc = NULL, $averageCpm = NULL, $ctr = NULL, $conversions = NULL, $viewThroughConversions = NULL, $totalBudget = NULL, $StatsType = NULL) { + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->network = $network; + $this->clicks = $clicks; + $this->impressions = $impressions; + $this->cost = $cost; + $this->averagePosition = $averagePosition; + $this->averageCpc = $averageCpc; + $this->averageCpm = $averageCpm; + $this->ctr = $ctr; + $this->conversions = $conversions; + $this->viewThroughConversions = $viewThroughConversions; + $this->totalBudget = $totalBudget; + $this->StatsType = $StatsType; + } +}} + +if (!class_exists("AdExtension", FALSE)) { +/** + * Base class for AdExtension objects. An AdExtension is an extension to + * an existing ad or metadata that will process into an extension. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtension { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $AdExtensionType; + + private $_parameterMap = array ( + "AdExtension.Type" => "AdExtensionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtension"; + } + + public function __construct($id = NULL, $AdExtensionType = NULL) { + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("CampaignAdExtension", FALSE)) { +/** + * Represents a campaign level ad extension. A campaign ad extension specifies + * a campaign and an ad extension which can extend any ad under that campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtension { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var AdExtension + */ + public $adExtension; + + /** + * @access public + * @var tnsCampaignAdExtensionStatus + */ + public $status; + + /** + * @access public + * @var tnsCampaignAdExtensionApprovalStatus + */ + public $approvalStatus; + + /** + * @access public + * @var CampaignAdExtensionStats + */ + public $stats; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtension"; + } + + public function __construct($campaignId = NULL, $adExtension = NULL, $status = NULL, $approvalStatus = NULL, $stats = NULL) { + $this->campaignId = $campaignId; + $this->adExtension = $adExtension; + $this->status = $status; + $this->approvalStatus = $approvalStatus; + $this->stats = $stats; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdExtensionErrorReason", FALSE)) { +/** + * Account has been deleted + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignAdExtensionApprovalStatus", FALSE)) { +/** + * Approval status of the CampaignAdExtension. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtension.ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignAdExtensionStatus", FALSE)) { +/** + * Status of the CampaignAdExtension. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtension.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignAdExtensionErrorReason", FALSE)) { +/** + * Cannot operate on an adextensions under the wrong campaign + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InAppLinkExtensionAppStore", FALSE)) { +/** + * The AppStore this extension will render for. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InAppLinkExtensionAppStore { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InAppLinkExtension.AppStore"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationExtensionSource", FALSE)) { +/** + * From manual entry in adwords frontend + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationExtensionSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationExtension.Source"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PagingErrorReason", FALSE)) { +/** + * The reasons for errors when using pagination. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PagingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegionCodeErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RegionCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsNetwork", FALSE)) { +/** + * Ad network. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsNetwork { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats.Network"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignAdExtensionServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of {@link CampaignAdExtension}s. + * + * @param serviceSelector The selector specifying the {@link CampaignAdExtension}s to return. + * @return The page containing the {@link CampaignAdExtension}s which meet the + * criteria specified by the selector. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("CampaignAdExtensionServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionServiceGetResponse { + /** + * @access public + * @var CampaignAdExtensionPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("CampaignAdExtensionServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Applies the list of mutate operations. + * @param operations The operations to apply. The same {@link CampaignAdExtension} + * cannot be specified in more than one operation. + * @return The changed {@link CampaignAdExtension}s. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionServiceMutate { + /** + * @access public + * @var CampaignAdExtensionOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("CampaignAdExtensionServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionServiceMutateResponse { + /** + * @access public + * @var CampaignAdExtensionReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdExtensionError", FALSE)) { +/** + * AdExtension errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionError extends ApiError { + /** + * @access public + * @var tnsAdExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CampaignAdExtensionError", FALSE)) { +/** + * CampaignAdExtension errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionError extends ApiError { + /** + * @access public + * @var tnsCampaignAdExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CampaignAdExtensionStats", FALSE)) { +/** + * Represents stats specific to CampaignAdExtensions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionStats extends Stats { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionStats"; + } + + public function __construct($startDate = NULL, $endDate = NULL, $network = NULL, $clicks = NULL, $impressions = NULL, $cost = NULL, $averagePosition = NULL, $averageCpc = NULL, $averageCpm = NULL, $ctr = NULL, $conversions = NULL, $viewThroughConversions = NULL, $totalBudget = NULL, $StatsType = NULL) { + parent::__construct(); + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->network = $network; + $this->clicks = $clicks; + $this->impressions = $impressions; + $this->cost = $cost; + $this->averagePosition = $averagePosition; + $this->averageCpc = $averageCpc; + $this->averageCpm = $averageCpm; + $this->ctr = $ctr; + $this->conversions = $conversions; + $this->viewThroughConversions = $viewThroughConversions; + $this->totalBudget = $totalBudget; + $this->StatsType = $StatsType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DomainInfoExtension", FALSE)) { +/** + * Domain extension, which adds domain info to ads. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DomainInfoExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $domainName; + + /** + * @access public + * @var string + */ + public $languageCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DomainInfoExtension"; + } + + public function __construct($domainName = NULL, $languageCode = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->domainName = $domainName; + $this->languageCode = $languageCode; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("InAppLinkExtension", FALSE)) { +/** + *

This extension is useful for advertisers who wish to provide users with a + * link that points to the advertiser's mobile application in addition to their + * website. + * + *

It is also known as Mobile App Extension. + * + *

The API allows one InAppLinkExtension per {@code AppStore} per campaign. + * Only the extension for a given {@code AppStore} will render on the device + * relevant to that {@code AppStore} (e.g. iPhones for {@code AppStore.ITUNES} + * and Android phones for {@code AppStore.GOOGLE_PLAY}). + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InAppLinkExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $inAppLinkText; + + /** + * @access public + * @var string + */ + public $inAppLinkUrl; + + /** + * @access public + * @var tnsInAppLinkExtensionAppStore + */ + public $appStore; + + /** + * @access public + * @var string + */ + public $appId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InAppLinkExtension"; + } + + public function __construct($inAppLinkText = NULL, $inAppLinkUrl = NULL, $appStore = NULL, $appId = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->inAppLinkText = $inAppLinkText; + $this->inAppLinkUrl = $inAppLinkUrl; + $this->appStore = $appStore; + $this->appId = $appId; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("MobileExtension", FALSE)) { +/** + * Represents a phone extension. + * + *

This type of ad extension attaches a phone number + * to a text ad, which lets customers call the advertiser directly from the ad. + * Phone extensions will appear as clickable phone numbers beneath the main text ad, + * and will be visible to high-end mobile device users who access google.com search, + * Voice search, Google Mobile App, or Google Maps for Mobile from their phone. + *

+ *

Learn more about + * + * phone extensions. + *

+ * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $phoneNumber; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * @access public + * @var boolean + */ + public $isCallTrackingEnabled; + + /** + * @access public + * @var boolean + */ + public $isCallOnly; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileExtension"; + } + + public function __construct($phoneNumber = NULL, $countryCode = NULL, $isCallTrackingEnabled = NULL, $isCallOnly = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->phoneNumber = $phoneNumber; + $this->countryCode = $countryCode; + $this->isCallTrackingEnabled = $isCallTrackingEnabled; + $this->isCallOnly = $isCallOnly; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PagingError", FALSE)) { +/** + * Error codes for pagination. + * See {@link com.google.ads.api.services.common.pagination.Paging}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PagingError extends ApiError { + /** + * @access public + * @var tnsPagingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RegionCodeError", FALSE)) { +/** + * A list of all errors associated with the @RegionCode constraints. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RegionCodeError extends ApiError { + /** + * @access public + * @var tnsRegionCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * Indicates that a field was rejected due to compatibility issues. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SitelinksExtension", FALSE)) { +/** + * Class to represent a set of sitelinks and their order of preference. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SitelinksExtension extends AdExtension { + /** + * @access public + * @var Sitelink[] + */ + public $sitelinks; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SitelinksExtension"; + } + + public function __construct($sitelinks = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->sitelinks = $sitelinks; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("LocationExtension", FALSE)) { +/** + * Location based ad extension. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationExtension extends AdExtension { + /** + * @access public + * @var Address + */ + public $address; + + /** + * @access public + * @var GeoPoint + */ + public $geoPoint; + + /** + * @access public + * @var base64Binary + */ + public $encodedLocation; + + /** + * @access public + * @var string + */ + public $companyName; + + /** + * @access public + * @var string + */ + public $phoneNumber; + + /** + * @access public + * @var tnsLocationExtensionSource + */ + public $source; + + /** + * @access public + * @var integer + */ + public $iconMediaId; + + /** + * @access public + * @var integer + */ + public $imageMediaId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationExtension"; + } + + public function __construct($address = NULL, $geoPoint = NULL, $encodedLocation = NULL, $companyName = NULL, $phoneNumber = NULL, $source = NULL, $iconMediaId = NULL, $imageMediaId = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->address = $address; + $this->geoPoint = $geoPoint; + $this->encodedLocation = $encodedLocation; + $this->companyName = $companyName; + $this->phoneNumber = $phoneNumber; + $this->source = $source; + $this->iconMediaId = $iconMediaId; + $this->imageMediaId = $imageMediaId; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("LocationSyncExtension", FALSE)) { +/** + * Local business center(LBC) sync extension that ties a LBC account with a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationSyncExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $email; + + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var OAuthInfo + */ + public $oAuthInfo; + + /** + * @access public + * @var integer + */ + public $iconMediaId; + + /** + * @access public + * @var boolean + */ + public $shouldSyncUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationSyncExtension"; + } + + public function __construct($email = NULL, $authToken = NULL, $oAuthInfo = NULL, $iconMediaId = NULL, $shouldSyncUrl = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->email = $email; + $this->authToken = $authToken; + $this->oAuthInfo = $oAuthInfo; + $this->iconMediaId = $iconMediaId; + $this->shouldSyncUrl = $shouldSyncUrl; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("CampaignAdExtensionOperation", FALSE)) { +/** + * CampaignAdExtension service operation. Note: The {@code SET} operator + * is not supported. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionOperation extends Operation { + /** + * @access public + * @var CampaignAdExtension + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("CampaignAdExtensionPage", FALSE)) { +/** + * Represents a page of {@link CampaignAdExtension}s resulting from the query + * done by {@link CampaignAdExtensionService}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionPage extends Page { + /** + * @access public + * @var CampaignAdExtension[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("CampaignAdExtensionReturnValue", FALSE)) { +/** + * A container for return values from the CampaignAdExtensionService.mutate(). + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionReturnValue extends ListReturnValue { + /** + * @access public + * @var CampaignAdExtension[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("CampaignAdExtensionService", FALSE)) { +/** + * CampaignAdExtensionService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class CampaignAdExtensionService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "CampaignAdExtensionServiceGetResponse", + "get" => "CampaignAdExtensionServiceGet", + "mutate" => "CampaignAdExtensionServiceMutate", + "mutateResponse" => "CampaignAdExtensionServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdExtensionError" => "AdExtensionError", + "ApiError" => "ApiError", + "Address" => "Address", + "AdxError" => "AdxError", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "CampaignAdExtensionError" => "CampaignAdExtensionError", + "CampaignAdExtensionStats" => "CampaignAdExtensionStats", + "Stats" => "Stats", + "ClientTermsError" => "ClientTermsError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DomainInfoExtension" => "DomainInfoExtension", + "AdExtension" => "AdExtension", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "GeoPoint" => "GeoPoint", + "IdError" => "IdError", + "InAppLinkExtension" => "InAppLinkExtension", + "InternalApiError" => "InternalApiError", + "LongValue" => "LongValue", + "MobileExtension" => "MobileExtension", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "ComparableValue" => "ComparableValue", + "OAuthInfo" => "OAuthInfo", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PagingError" => "PagingError", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RegionCodeError" => "RegionCodeError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "Sitelink" => "Sitelink", + "SitelinksExtension" => "SitelinksExtension", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "LocationExtension" => "LocationExtension", + "Money" => "Money", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "LocationSyncExtension" => "LocationSyncExtension", + "Selector" => "Selector", + "CampaignAdExtension" => "CampaignAdExtension", + "CampaignAdExtensionOperation" => "CampaignAdExtensionOperation", + "Operation" => "Operation", + "CampaignAdExtensionPage" => "CampaignAdExtensionPage", + "Page" => "Page", + "CampaignAdExtensionReturnValue" => "CampaignAdExtensionReturnValue", + "ListReturnValue" => "ListReturnValue", + "AdExtensionError.Reason" => "AdExtensionErrorReason", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "CampaignAdExtension.ApprovalStatus" => "CampaignAdExtensionApprovalStatus", + "CampaignAdExtension.Status" => "CampaignAdExtensionStatus", + "CampaignAdExtensionError.Reason" => "CampaignAdExtensionErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InAppLinkExtension.AppStore" => "InAppLinkExtensionAppStore", + "InternalApiError.Reason" => "InternalApiErrorReason", + "LocationExtension.Source" => "LocationExtensionSource", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "PagingError.Reason" => "PagingErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RegionCodeError.Reason" => "RegionCodeErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "Stats.Network" => "StatsNetwork", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/CampaignAdExtensionService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CampaignAdExtensionService::$classmap; + parent::__construct($wsdl, $options, $user, 'CampaignAdExtensionService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of {@link CampaignAdExtension}s. + * + * @param serviceSelector The selector specifying the {@link CampaignAdExtension}s to return. + * @return The page containing the {@link CampaignAdExtension}s which meet the + * criteria specified by the selector. + * @throws ApiException when there is at least one error with the request. + */ + public function get($serviceSelector) { + $arg = new CampaignAdExtensionServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Applies the list of mutate operations. + * @param operations The operations to apply. The same {@link CampaignAdExtension} + * cannot be specified in more than one operation. + * @return The changed {@link CampaignAdExtension}s. + */ + public function mutate($operations) { + $arg = new CampaignAdExtensionServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/CampaignCriterionService.php b/src/Google/Api/Ads/AdWords/v201306/CampaignCriterionService.php new file mode 100755 index 000000000..cdb26197a --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/CampaignCriterionService.php @@ -0,0 +1,5630 @@ +streetAddress = $streetAddress; + $this->streetAddress2 = $streetAddress2; + $this->cityName = $cityName; + $this->provinceCode = $provinceCode; + $this->provinceName = $provinceName; + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CampaignCriterion", FALSE)) { +/** + * Represents a campaign level criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterion { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var boolean + */ + public $isNegative; + + /** + * @access public + * @var Criterion + */ + public $criterion; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * @access public + * @var string + */ + public $CampaignCriterionType; + + private $_parameterMap = array ( + "CampaignCriterion.Type" => "CampaignCriterionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterion"; + } + + public function __construct($campaignId = NULL, $isNegative = NULL, $criterion = NULL, $bidModifier = NULL, $forwardCompatibilityMap = NULL, $CampaignCriterionType = NULL) { + $this->campaignId = $campaignId; + $this->isNegative = $isNegative; + $this->criterion = $criterion; + $this->bidModifier = $bidModifier; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->CampaignCriterionType = $CampaignCriterionType; + } +}} + +if (!class_exists("CampaignCriterionError", FALSE)) { +/** + * Base error class for Campaign Criterion Service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterionError extends ApiError { + /** + * @access public + * @var tnsCampaignCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Criterion", FALSE)) { +/** + * Represents a criterion (such as a keyword, placement, or vertical). + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Criterion { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsCriterionType + */ + public $type; + + /** + * @access public + * @var string + */ + public $CriterionType; + + private $_parameterMap = array ( + "Criterion.Type" => "CriterionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + public function __construct($id = NULL, $type = NULL, $CriterionType = NULL) { + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionError", FALSE)) { +/** + * Error class used for reporting criteria related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionError extends ApiError { + /** + * @access public + * @var tnsCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CriterionParameter", FALSE)) { +/** + * Base type of criterion parameters. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionParameter { + /** + * @access public + * @var string + */ + public $CriterionParameterType; + + private $_parameterMap = array ( + "CriterionParameter.Type" => "CriterionParameterType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionParameter"; + } + + public function __construct($CriterionParameterType = NULL) { + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateRange", FALSE)) { +/** + * Represents a range of dates that has either an upper or a lower bound. + * The format for the date is YYYYMMDD. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Gender", FALSE)) { +/** + * Represents a Gender criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type is only excludable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Gender extends Criterion { + /** + * @access public + * @var tnsGenderGenderType + */ + public $genderType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Gender"; + } + + public function __construct($genderType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->genderType = $genderType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("GeoPoint", FALSE)) { +/** + * Specifies a geo location with the supplied latitude/longitude. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GeoPoint { + /** + * @access public + * @var integer + */ + public $latitudeInMicroDegrees; + + /** + * @access public + * @var integer + */ + public $longitudeInMicroDegrees; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoPoint"; + } + + public function __construct($latitudeInMicroDegrees = NULL, $longitudeInMicroDegrees = NULL) { + $this->latitudeInMicroDegrees = $latitudeInMicroDegrees; + $this->longitudeInMicroDegrees = $longitudeInMicroDegrees; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Keyword", FALSE)) { +/** + * Represents a keyword. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Keyword extends Criterion { + /** + * @access public + * @var string + */ + public $text; + + /** + * @access public + * @var tnsKeywordMatchType + */ + public $matchType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Keyword"; + } + + public function __construct($text = NULL, $matchType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->text = $text; + $this->matchType = $matchType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Language", FALSE)) { +/** + * Represents a Language criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Language extends Criterion { + /** + * @access public + * @var string + */ + public $code; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Language"; + } + + public function __construct($code = NULL, $name = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->code = $code; + $this->name = $name; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Location", FALSE)) { +/** + * Represents Location criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type can be either targeted or excluded. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Location extends Criterion { + /** + * @access public + * @var string + */ + public $locationName; + + /** + * @access public + * @var string + */ + public $displayType; + + /** + * @access public + * @var tnsLocationTargetingStatus + */ + public $targetingStatus; + + /** + * @access public + * @var Location[] + */ + public $parentLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($locationName = NULL, $displayType = NULL, $targetingStatus = NULL, $parentLocations = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->locationName = $locationName; + $this->displayType = $displayType; + $this->targetingStatus = $targetingStatus; + $this->parentLocations = $parentLocations; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileAppCategory", FALSE)) { +/** + * Represents the mobile app category to be targeted. + * View the complete list of + * available mobile app categories. + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileAppCategory extends Criterion { + /** + * @access public + * @var integer + */ + public $mobileAppCategoryId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAppCategory"; + } + + public function __construct($mobileAppCategoryId = NULL, $displayName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->mobileAppCategoryId = $mobileAppCategoryId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileApplication", FALSE)) { +/** + * Represents the mobile application to be targeted. + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileApplication extends Criterion { + /** + * @access public + * @var string + */ + public $appId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileApplication"; + } + + public function __construct($appId = NULL, $displayName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->appId = $appId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device Criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileDevice extends Criterion { + /** + * @access public + * @var string + */ + public $deviceName; + + /** + * @access public + * @var string + */ + public $manufacturerName; + + /** + * @access public + * @var tnsMobileDeviceDeviceType + */ + public $deviceType; + + /** + * @access public + * @var string + */ + public $operatingSystemName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($deviceName = NULL, $manufacturerName = NULL, $deviceType = NULL, $operatingSystemName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->deviceName = $deviceName; + $this->manufacturerName = $manufacturerName; + $this->deviceType = $deviceType; + $this->operatingSystemName = $operatingSystemName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("NegativeCampaignCriterion", FALSE)) { +/** + * A negative campaign criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NegativeCampaignCriterion extends CampaignCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NegativeCampaignCriterion"; + } + + public function __construct($campaignId = NULL, $isNegative = NULL, $criterion = NULL, $bidModifier = NULL, $forwardCompatibilityMap = NULL, $CampaignCriterionType = NULL) { + parent::__construct(); + $this->campaignId = $campaignId; + $this->isNegative = $isNegative; + $this->criterion = $criterion; + $this->bidModifier = $bidModifier; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->CampaignCriterionType = $CampaignCriterionType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatingSystemVersion", FALSE)) { +/** + * Represents a Operating System Version Criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatingSystemVersion extends Criterion { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $osMajorVersion; + + /** + * @access public + * @var integer + */ + public $osMinorVersion; + + /** + * @access public + * @var tnsOperatingSystemVersionOperatorType + */ + public $operatorType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($name = NULL, $osMajorVersion = NULL, $osMinorVersion = NULL, $operatorType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->name = $name; + $this->osMajorVersion = $osMajorVersion; + $this->osMinorVersion = $osMinorVersion; + $this->operatorType = $operatorType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("PagingError", FALSE)) { +/** + * Error codes for pagination. + * See {@link com.google.ads.api.services.common.pagination.Paging}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PagingError extends ApiError { + /** + * @access public + * @var tnsPagingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Placement", FALSE)) { +/** + * A placement used for modifying bids for sites when targeting the content + * network. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Placement extends Criterion { + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + public function __construct($url = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->url = $url; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Platform", FALSE)) { +/** + * Represents Platform criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Platform extends Criterion { + /** + * @access public + * @var string + */ + public $platformName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Platform"; + } + + public function __construct($platformName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->platformName = $platformName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("Product", FALSE)) { +/** + * Product targeting criteria, represents a filter for products in the + * product feed that is defined by the advertiser. The criteria is used to + * determine the products in a Merchant Center account to be used with the + * ProductAds in the AdGroup. This criteria is available only to some advertisers. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Product extends Criterion { + /** + * @access public + * @var ProductCondition[] + */ + public $conditions; + + /** + * @access public + * @var string + */ + public $text; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + public function __construct($conditions = NULL, $text = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->conditions = $conditions; + $this->text = $text; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ProductCondition", FALSE)) { +/** + * Conditions to filter the products defined in product feed for targeting. + * The condition is defined as operand=argument. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ProductCondition { + /** + * @access public + * @var string + */ + public $argument; + + /** + * @access public + * @var ProductConditionOperand + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductCondition"; + } + + public function __construct($argument = NULL, $operand = NULL) { + $this->argument = $argument; + $this->operand = $operand; + } +}} + +if (!class_exists("ProductConditionOperand", FALSE)) { +/** + * Attribute for the product condition. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ProductConditionOperand { + /** + * @access public + * @var string + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductConditionOperand"; + } + + public function __construct($operand = NULL) { + $this->operand = $operand; + } +}} + +if (!class_exists("Proximity", FALSE)) { +/** + * Represents a Proximity Criterion. + * + * A proximity is an area within a certain radius of a point with the center point being described + * by a lat/long pair. The caller may also alternatively provide address fields which will be + * geocoded into a lat/long pair. Note: If a geoPoint value is provided, the address is not + * used for calculating the lat/long to target. + *

A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Proximity extends Criterion { + /** + * @access public + * @var GeoPoint + */ + public $geoPoint; + + /** + * @access public + * @var tnsProximityDistanceUnits + */ + public $radiusDistanceUnits; + + /** + * @access public + * @var double + */ + public $radiusInUnits; + + /** + * @access public + * @var Address + */ + public $address; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Proximity"; + } + + public function __construct($geoPoint = NULL, $radiusDistanceUnits = NULL, $radiusInUnits = NULL, $address = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->geoPoint = $geoPoint; + $this->radiusDistanceUnits = $radiusDistanceUnits; + $this->radiusInUnits = $radiusInUnits; + $this->address = $address; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("QueryError", FALSE)) { +/** + * A QueryError represents possible errors for query parsing and execution. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QueryError extends ApiError { + /** + * @access public + * @var tnsQueryErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError"; + } + + public function __construct($reason = NULL, $message = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->message = $message; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RegionCodeError", FALSE)) { +/** + * A list of all errors associated with the @RegionCode constraints. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RegionCodeError extends ApiError { + /** + * @access public + * @var tnsRegionCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class String_StringMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("CriterionUserInterest", FALSE)) { +/** + * User Interest - represents a particular interest based vertical to be targeted. + * Targeting UserInterest is currently in a limited beta. If you'd like access + * please speak with your account representative. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserInterest extends Criterion { + /** + * @access public + * @var integer + */ + public $userInterestId; + + /** + * @access public + * @var string + */ + public $userInterestName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserInterest"; + } + + public function __construct($userInterestId = NULL, $userInterestName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->userInterestId = $userInterestId; + $this->userInterestName = $userInterestName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionUserList", FALSE)) { +/** + * UserList - represents a user list that is defined by the advertiser to be targeted. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserList extends Criterion { + /** + * @access public + * @var integer + */ + public $userListId; + + /** + * @access public + * @var string + */ + public $userListName; + + /** + * @access public + * @var tnsCriterionUserListMembershipStatus + */ + public $userListMembershipStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList"; + } + + public function __construct($userListId = NULL, $userListName = NULL, $userListMembershipStatus = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->userListId = $userListId; + $this->userListName = $userListName; + $this->userListMembershipStatus = $userListMembershipStatus; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Vertical", FALSE)) { +/** + * Use verticals to target or exclude placements in the Google Display Network + * based on the category into which the placement falls (for example, "Pets & + * Animals/Pets/Dogs"). + * View the complete list + * of available vertical categories. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Vertical extends Criterion { + /** + * @access public + * @var integer + */ + public $verticalId; + + /** + * @access public + * @var integer + */ + public $verticalParentId; + + /** + * @access public + * @var string[] + */ + public $path; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Vertical"; + } + + public function __construct($verticalId = NULL, $verticalParentId = NULL, $path = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->verticalId = $verticalId; + $this->verticalParentId = $verticalParentId; + $this->path = $path; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Webpage", FALSE)) { +/** + * Criterion for targeting webpages of an advertiser's website. The + * website domain name is specified at the campaign level. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Webpage extends Criterion { + /** + * @access public + * @var WebpageParameter + */ + public $parameter; + + /** + * @access public + * @var double + */ + public $criteriaCoverage; + + /** + * @access public + * @var string[] + */ + public $criteriaSamples; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Webpage"; + } + + public function __construct($parameter = NULL, $criteriaCoverage = NULL, $criteriaSamples = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->parameter = $parameter; + $this->criteriaCoverage = $criteriaCoverage; + $this->criteriaSamples = $criteriaSamples; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("WebpageCondition", FALSE)) { +/** + * Logical expression for targeting webpages of an advertiser's website. + * + *

A condition is defined as {@code operand OP argument} + * where {@code operand} is one of the values enumerated in + * {@link WebpageConditionOperand}, and, based on this value, + * {@code OP} is either of {@code EQUALS} or {@code CONTAINS}.

+ * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageCondition { + /** + * @access public + * @var tnsWebpageConditionOperand + */ + public $operand; + + /** + * @access public + * @var string + */ + public $argument; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageCondition"; + } + + public function __construct($operand = NULL, $argument = NULL) { + $this->operand = $operand; + $this->argument = $argument; + } +}} + +if (!class_exists("WebpageParameter", FALSE)) { +/** + * Parameter of Webpage criterion, expressed as a list of conditions, or + * logical expressions, for targeting webpages of an advertiser's website. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageParameter extends CriterionParameter { + /** + * @access public + * @var string + */ + public $criterionName; + + /** + * @access public + * @var WebpageCondition[] + */ + public $conditions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageParameter"; + } + + public function __construct($criterionName = NULL, $conditions = NULL, $CriterionParameterType = NULL) { + parent::__construct(); + $this->criterionName = $criterionName; + $this->conditions = $conditions; + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AgeRangeAgeRangeType", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AgeRangeAgeRangeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AgeRange.AgeRangeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignCriterionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignCriterionLimitExceededCriteriaLimitType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterionLimitExceededCriteriaLimitType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionLimitExceeded.CriteriaLimitType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContentLabelType", FALSE)) { +/** + * Content label type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ContentLabelType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentLabelType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * The types of criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionErrorReason", FALSE)) { +/** + * Concrete type of criterion is required for ADD and SET operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayOfWeek", FALSE)) { +/** + * Days of the week. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DayOfWeek { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayOfWeek"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenderGenderType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GenderGenderType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Gender.GenderType"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("KeywordMatchType", FALSE)) { +/** + * Match type of a keyword. i.e. the way we match a keyword string with + * search queries. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class KeywordMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationTargetingStatus", FALSE)) { +/** + * Enum that represents the different Targeting Status values for a Location criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationTargetingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationTargetingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("MinuteOfHour", FALSE)) { +/** + * Minutes in an hour. Currently only 0, 15, 30, and 45 are supported + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MinuteOfHour { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MinuteOfHour"; + } + + public function __construct() { + } +}} + +if (!class_exists("MobileDeviceDeviceType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileDeviceDeviceType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice.DeviceType"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatingSystemVersionOperatorType", FALSE)) { +/** + * The operator type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatingSystemVersionOperatorType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion.OperatorType"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PagingErrorReason", FALSE)) { +/** + * The reasons for errors when using pagination. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PagingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProximityDistanceUnits", FALSE)) { +/** + * The radius distance is expressed in either kilometers or miles. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ProximityDistanceUnits { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Proximity.DistanceUnits"; + } + + public function __construct() { + } +}} + +if (!class_exists("QueryErrorReason", FALSE)) { +/** + * The reason for the query error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegionCodeErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RegionCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUserListMembershipStatus", FALSE)) { +/** + * Membership status of the user list. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList.MembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("WebpageConditionOperand", FALSE)) { +/** + * Operand value of {@link WebpageCondition}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageConditionOperand { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageConditionOperand"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignCriterionServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Gets campaign criteria. + * + * @param serviceSelector The selector specifying the {@link CampaignCriterion}s to return. + * @return A list of campaign criteria. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterionServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("CampaignCriterionServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterionServiceGetResponse { + /** + * @access public + * @var CampaignCriterionPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("CampaignCriterionServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, REMOVE, SET. + * + * + * + * Adds, removes or updates campaign criteria. + * + * @param operations The operations to apply. + * @return The added campaign criteria (without any optional parts). + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterionServiceMutate { + /** + * @access public + * @var CampaignCriterionOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("CampaignCriterionServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterionServiceMutateResponse { + /** + * @access public + * @var CampaignCriterionReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("query", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of campaign criteria that match the query. + * + * @param query The SQL-like AWQL query string. + * @return A list of campaign criteria. + * @throws ApiException if problems occur while parsing the query or fetching campaign criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class query { + /** + * @access public + * @var string + */ + public $query; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($query = NULL) { + $this->query = $query; + } +}} + +if (!class_exists("queryResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class queryResponse { + /** + * @access public + * @var CampaignCriterionPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdSchedule", FALSE)) { +/** + * Represents an AdSchedule Criterion. + * AdSchedule is specified as day and time of the week criteria to target + * the Ads. + *

Note: An AdSchedule may not have more than six intervals + * in a day.

+ * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdSchedule extends Criterion { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var integer + */ + public $startHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $startMinute; + + /** + * @access public + * @var integer + */ + public $endHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $endMinute; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSchedule"; + } + + public function __construct($dayOfWeek = NULL, $startHour = NULL, $startMinute = NULL, $endHour = NULL, $endMinute = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->dayOfWeek = $dayOfWeek; + $this->startHour = $startHour; + $this->startMinute = $startMinute; + $this->endHour = $endHour; + $this->endMinute = $endMinute; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AgeRange", FALSE)) { +/** + * Represents an Age Range criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type is only excludable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AgeRange extends Criterion { + /** + * @access public + * @var tnsAgeRangeAgeRangeType + */ + public $ageRangeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AgeRange"; + } + + public function __construct($ageRangeType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->ageRangeType = $ageRangeType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("CampaignCriterionLimitExceeded", FALSE)) { +/** + * Error to indicate that too many negative criteria added to some campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterionLimitExceeded extends EntityCountLimitExceeded { + /** + * @access public + * @var tnsCampaignCriterionLimitExceededCriteriaLimitType + */ + public $limitType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionLimitExceeded"; + } + + public function __construct($limitType = NULL, $reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->limitType = $limitType; + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CampaignCriterionOperation", FALSE)) { +/** + * Generic operation (add, remove and set) for campaign criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterionOperation extends Operation { + /** + * @access public + * @var CampaignCriterion + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("CampaignCriterionPage", FALSE)) { +/** + * Contains a subset of campaign criteria resulting from a call to + * {@link CampaignCriterionService#get}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterionPage extends Page { + /** + * @access public + * @var CampaignCriterion[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("CampaignCriterionReturnValue", FALSE)) { +/** + * A container for return values from the CampaignCriterionService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterionReturnValue extends ListReturnValue { + /** + * @access public + * @var CampaignCriterion[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Carrier", FALSE)) { +/** + * Represents a Carrier Criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Carrier extends Criterion { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Carrier"; + } + + public function __construct($name = NULL, $countryCode = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->name = $name; + $this->countryCode = $countryCode; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ContentLabel", FALSE)) { +/** + * Content Label for category exclusion. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ContentLabel extends Criterion { + /** + * @access public + * @var tnsContentLabelType + */ + public $contentLabelType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentLabel"; + } + + public function __construct($contentLabelType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->contentLabelType = $contentLabelType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CampaignCriterionService", FALSE)) { +/** + * CampaignCriterionService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class CampaignCriterionService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "CampaignCriterionServiceGetResponse", + "get" => "CampaignCriterionServiceGet", + "mutate" => "CampaignCriterionServiceMutate", + "mutateResponse" => "CampaignCriterionServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdSchedule" => "AdSchedule", + "Criterion" => "Criterion", + "Address" => "Address", + "AdxError" => "AdxError", + "ApiError" => "ApiError", + "AgeRange" => "AgeRange", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "CampaignCriterion" => "CampaignCriterion", + "CampaignCriterionError" => "CampaignCriterionError", + "CampaignCriterionLimitExceeded" => "CampaignCriterionLimitExceeded", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "CampaignCriterionOperation" => "CampaignCriterionOperation", + "Operation" => "Operation", + "CampaignCriterionPage" => "CampaignCriterionPage", + "Page" => "Page", + "CampaignCriterionReturnValue" => "CampaignCriterionReturnValue", + "ListReturnValue" => "ListReturnValue", + "Carrier" => "Carrier", + "ClientTermsError" => "ClientTermsError", + "ContentLabel" => "ContentLabel", + "CriterionError" => "CriterionError", + "CriterionParameter" => "CriterionParameter", + "DatabaseError" => "DatabaseError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityNotFound" => "EntityNotFound", + "Gender" => "Gender", + "GeoPoint" => "GeoPoint", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "Keyword" => "Keyword", + "Language" => "Language", + "Location" => "Location", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "MobileDevice" => "MobileDevice", + "NegativeCampaignCriterion" => "NegativeCampaignCriterion", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperatingSystemVersion" => "OperatingSystemVersion", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PagingError" => "PagingError", + "Placement" => "Placement", + "Platform" => "Platform", + "Predicate" => "Predicate", + "Product" => "Product", + "ProductCondition" => "ProductCondition", + "ProductConditionOperand" => "ProductConditionOperand", + "Proximity" => "Proximity", + "QueryError" => "QueryError", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RegionCodeError" => "RegionCodeError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "Selector" => "Selector", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "String_StringMapEntry" => "String_StringMapEntry", + "CriterionUserInterest" => "CriterionUserInterest", + "CriterionUserList" => "CriterionUserList", + "Vertical" => "Vertical", + "Webpage" => "Webpage", + "WebpageCondition" => "WebpageCondition", + "WebpageParameter" => "WebpageParameter", + "AdxError.Reason" => "AdxErrorReason", + "AgeRange.AgeRangeType" => "AgeRangeAgeRangeType", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "CampaignCriterionError.Reason" => "CampaignCriterionErrorReason", + "CampaignCriterionLimitExceeded.CriteriaLimitType" => "CampaignCriterionLimitExceededCriteriaLimitType", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "ContentLabelType" => "ContentLabelType", + "Criterion.Type" => "CriterionType", + "CriterionError.Reason" => "CriterionErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DayOfWeek" => "DayOfWeek", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "Gender.GenderType" => "GenderGenderType", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "KeywordMatchType" => "KeywordMatchType", + "LocationTargetingStatus" => "LocationTargetingStatus", + "MinuteOfHour" => "MinuteOfHour", + "MobileDevice.DeviceType" => "MobileDeviceDeviceType", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperatingSystemVersion.OperatorType" => "OperatingSystemVersionOperatorType", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "PagingError.Reason" => "PagingErrorReason", + "Predicate.Operator" => "PredicateOperator", + "Proximity.DistanceUnits" => "ProximityDistanceUnits", + "QueryError.Reason" => "QueryErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RegionCodeError.Reason" => "RegionCodeErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + "CriterionUserList.MembershipStatus" => "CriterionUserListMembershipStatus", + "WebpageConditionOperand" => "WebpageConditionOperand", + "query" => "query", + "queryResponse" => "queryResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/CampaignCriterionService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CampaignCriterionService::$classmap; + parent::__construct($wsdl, $options, $user, 'CampaignCriterionService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Gets campaign criteria. + * + * @param serviceSelector The selector specifying the {@link CampaignCriterion}s to return. + * @return A list of campaign criteria. + * @throws ApiException when there is at least one error with the request. + */ + public function get($serviceSelector) { + $arg = new CampaignCriterionServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, REMOVE, SET. + * + * + * + * Adds, removes or updates campaign criteria. + * + * @param operations The operations to apply. + * @return The added campaign criteria (without any optional parts). + * @throws ApiException when there is at least one error with the request. + */ + public function mutate($operations) { + $arg = new CampaignCriterionServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of campaign criteria that match the query. + * + * @param query The SQL-like AWQL query string. + * @return A list of campaign criteria. + * @throws ApiException if problems occur while parsing the query or fetching campaign criteria. + */ + public function query($query) { + $arg = new query($query); + $result = $this->__soapCall("query", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/CampaignFeedService.php b/src/Google/Api/Ads/AdWords/v201306/CampaignFeedService.php new file mode 100755 index 000000000..4d1fbbb89 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/CampaignFeedService.php @@ -0,0 +1,3555 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CampaignFeed", FALSE)) { +/** + * CampaignFeeds are used to link a feed to a campaign using a matching function, + * making the feed's feed items available in the campaign's ads for substitution. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignFeed { + /** + * @access public + * @var integer + */ + public $feedId; + + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var Function + */ + public $matchingFunction; + + /** + * @access public + * @var integer[] + */ + public $placeholderTypes; + + /** + * @access public + * @var tnsCampaignFeedStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignFeed"; + } + + public function __construct($feedId = NULL, $campaignId = NULL, $matchingFunction = NULL, $placeholderTypes = NULL, $status = NULL) { + $this->feedId = $feedId; + $this->campaignId = $campaignId; + $this->matchingFunction = $matchingFunction; + $this->placeholderTypes = $placeholderTypes; + $this->status = $status; + } +}} + +if (!class_exists("CampaignFeedError", FALSE)) { +/** + * Represents an error for the CampaignFeedService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignFeedError extends ApiError { + /** + * @access public + * @var tnsCampaignFeedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignFeedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CollectionSizeError", FALSE)) { +/** + * Errors associated with the size of the given collection being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CollectionSizeError extends ApiError { + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateRange", FALSE)) { +/** + * Represents a range of dates that has either an upper or a lower bound. + * The format for the date is YYYYMMDD. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("FeedFunction", FALSE)) { +/** + * Represents a function where its operator is applied to its argument operands + * resulting in a return value. It has the form + * (Operand... Operator Operand...). The type of the return value depends on + * the operator being applied and the type of the operands. + * + *

Operands per function is limited to 20.

+ * + *

Here is a code example:

+ * + *

+ * 
+ * // For example "feed_attribute == 30" can be represented as:
+ * FeedId feedId = (FeedId of Feed associated with feed_attribute)
+ * FeedAttributeId feedAttributeId = (FeedAttributeId of feed_attribute)
+ * Function function = new Function();
+ * function.setLhsOperand(
+ * Arrays.asList((Operand) new FeedAttributeOperand(feedId, feedAttributeId)));
+ * function.setOperator(Operator.IN);
+ * function.setRhsOperand(
+ * Arrays.asList((Operand) new ConstantOperand(30L)));
+ * 
+ * // Another example matching on multiple values:
+ * "feed_item_id IN (10, 20, 30)" can be represented as:
+ * 
+ * Function function = new Function();
+ * function.setLhsOperand(
+ * Arrays.asList((Operand) new RequestContextOperand(ContextType.FEED_ITEM_ID)));
+ * function.setOperator(Operator.IN);
+ * function.setRhsOperand(Arrays.asList(
+ * (Operand) new ConstantOperand(10L), new ConstantOperand(20L), new ConstantOperand(30L)));
+ * 
+ * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedFunction { + /** + * @access public + * @var tnsFunctionOperator + */ + public $operator; + + /** + * @access public + * @var FunctionArgumentOperand[] + */ + public $lhsOperand; + + /** + * @access public + * @var FunctionArgumentOperand[] + */ + public $rhsOperand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Function"; + } + + public function __construct($operator = NULL, $lhsOperand = NULL, $rhsOperand = NULL) { + $this->operator = $operator; + $this->lhsOperand = $lhsOperand; + $this->rhsOperand = $rhsOperand; + } +}} + +if (!class_exists("FunctionError", FALSE)) { +/** + * Errors that indicate issues with the function. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FunctionError extends ApiError { + /** + * @access public + * @var tnsFunctionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FunctionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("FunctionArgumentOperand", FALSE)) { +/** + * An operand that can be used in a function expression. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FunctionArgumentOperand { + /** + * @access public + * @var string + */ + public $FunctionArgumentOperandType; + + private $_parameterMap = array ( + "FunctionArgumentOperand.Type" => "FunctionArgumentOperandType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FunctionArgumentOperand"; + } + + public function __construct($FunctionArgumentOperandType = NULL) { + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestContextOperand", FALSE)) { +/** + * An operand in a function referring to a value in the request context. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestContextOperand extends FunctionArgumentOperand { + /** + * @access public + * @var tnsRequestContextOperandContextType + */ + public $contextType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestContextOperand"; + } + + public function __construct($contextType = NULL, $FunctionArgumentOperandType = NULL) { + parent::__construct(); + $this->contextType = $contextType; + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignFeedStatus", FALSE)) { +/** + * Status of the CampaignFeed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignFeedStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignFeed.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignFeedErrorReason", FALSE)) { +/** + * Error reasons. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignFeedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignFeedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CollectionSizeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CollectionSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConstantOperandConstantType", FALSE)) { +/** + * The types of constant operands. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConstantOperandConstantType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConstantOperand.ConstantType"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FunctionOperator", FALSE)) { +/** + * Operators that can be used in functions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FunctionOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Function.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("FunctionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FunctionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FunctionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestContextOperandContextType", FALSE)) { +/** + * Campaign Id in the request context. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestContextOperandContextType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestContextOperand.ContextType"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignFeedServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of CampaignFeeds that meet the selector criteria. + * + * @param selector Determines which CampaignFeeds to return. If empty all + * Campaign feeds are returned. + * @return The list of CampaignFeeds. + * @throws ApiException Indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignFeedServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("CampaignFeedServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignFeedServiceGetResponse { + /** + * @access public + * @var CampaignFeedPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("CampaignFeedServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Adds, sets or removes CampaignFeeds. + * + * @param operations The operations to apply. + * @return The resulting Feeds. + * @throws ApiException Indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignFeedServiceMutate { + /** + * @access public + * @var CampaignFeedOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("CampaignFeedServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignFeedServiceMutateResponse { + /** + * @access public + * @var CampaignFeedReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("CampaignFeedOperation", FALSE)) { +/** + * Operation used to create or mutate a CampaignFeed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignFeedOperation extends Operation { + /** + * @access public + * @var CampaignFeed + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignFeedOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("CampaignFeedReturnValue", FALSE)) { +/** + * The result of a call to {@link CampaignFeedService#mutate}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignFeedReturnValue extends ListReturnValue { + /** + * @access public + * @var CampaignFeed[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignFeedReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("ConstantOperand", FALSE)) { +/** + * A constant operand in a matching function. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConstantOperand extends FunctionArgumentOperand { + /** + * @access public + * @var tnsConstantOperandConstantType + */ + public $type; + + /** + * @access public + * @var integer + */ + public $longValue; + + /** + * @access public + * @var boolean + */ + public $booleanValue; + + /** + * @access public + * @var double + */ + public $doubleValue; + + /** + * @access public + * @var string + */ + public $stringValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConstantOperand"; + } + + public function __construct($type = NULL, $longValue = NULL, $booleanValue = NULL, $doubleValue = NULL, $stringValue = NULL, $FunctionArgumentOperandType = NULL) { + parent::__construct(); + $this->type = $type; + $this->longValue = $longValue; + $this->booleanValue = $booleanValue; + $this->doubleValue = $doubleValue; + $this->stringValue = $stringValue; + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("FeedAttributeOperand", FALSE)) { +/** + * Represents a feed attribute reference to use in a function. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedAttributeOperand extends FunctionArgumentOperand { + /** + * @access public + * @var integer + */ + public $feedId; + + /** + * @access public + * @var integer + */ + public $feedAttributeId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedAttributeOperand"; + } + + public function __construct($feedId = NULL, $feedAttributeId = NULL, $FunctionArgumentOperandType = NULL) { + parent::__construct(); + $this->feedId = $feedId; + $this->feedAttributeId = $feedAttributeId; + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("FunctionOperand", FALSE)) { +/** + * A function operand in a matching function. + * Used to represent nested functions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FunctionOperand extends FunctionArgumentOperand { + /** + * @access public + * @var Function + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FunctionOperand"; + } + + public function __construct($value = NULL, $FunctionArgumentOperandType = NULL) { + parent::__construct(); + $this->value = $value; + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("NullStatsPage", FALSE)) { +/** + * Base class for Get results for a page of entities that do not use statistics, + * but still require a specific type paramter for {@link StatsEntry} + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("CampaignFeedPage", FALSE)) { +/** + * The result of a call to {@link CampaignFeedService#get}. Contains a list of + * associations between campaign and feeds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignFeedPage extends NullStatsPage { + /** + * @access public + * @var CampaignFeed[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignFeedPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("CampaignFeedService", FALSE)) { +/** + * CampaignFeedService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class CampaignFeedService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "CampaignFeedServiceGetResponse", + "get" => "CampaignFeedServiceGet", + "mutate" => "CampaignFeedServiceMutate", + "mutateResponse" => "CampaignFeedServiceMutateResponse", + "mutateCallToAction" => "CampaignFeedServiceMutateCallToAction", + "search" => "CampaignFeedServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "CampaignFeed" => "CampaignFeed", + "CampaignFeedError" => "CampaignFeedError", + "CampaignFeedOperation" => "CampaignFeedOperation", + "Operation" => "Operation", + "CampaignFeedPage" => "CampaignFeedPage", + "NullStatsPage" => "NullStatsPage", + "CampaignFeedReturnValue" => "CampaignFeedReturnValue", + "ListReturnValue" => "ListReturnValue", + "ClientTermsError" => "ClientTermsError", + "CollectionSizeError" => "CollectionSizeError", + "ConstantOperand" => "ConstantOperand", + "FunctionArgumentOperand" => "FunctionArgumentOperand", + "DatabaseError" => "DatabaseError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "FeedAttributeOperand" => "FeedAttributeOperand", + "FunctionError" => "FunctionError", + "FunctionOperand" => "FunctionOperand", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "Page" => "Page", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestContextOperand" => "RequestContextOperand", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "Selector" => "Selector", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "CampaignFeed.Status" => "CampaignFeedStatus", + "CampaignFeedError.Reason" => "CampaignFeedErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "ConstantOperand.ConstantType" => "ConstantOperandConstantType", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "Function.Operator" => "FunctionOperator", + "FunctionError.Reason" => "FunctionErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestContextOperand.ContextType" => "RequestContextOperandContextType", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/CampaignFeedService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CampaignFeedService::$classmap; + parent::__construct($wsdl, $options, $user, 'CampaignFeedService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of CampaignFeeds that meet the selector criteria. + * + * @param selector Determines which CampaignFeeds to return. If empty all + * Campaign feeds are returned. + * @return The list of CampaignFeeds. + * @throws ApiException Indicates a problem with the request. + */ + public function get($selector) { + $arg = new CampaignFeedServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Adds, sets or removes CampaignFeeds. + * + * @param operations The operations to apply. + * @return The resulting Feeds. + * @throws ApiException Indicates a problem with the request. + */ + public function mutate($operations) { + $arg = new CampaignFeedServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/CampaignService.php b/src/Google/Api/Ads/AdWords/v201306/CampaignService.php new file mode 100755 index 000000000..7f4a4f41e --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/CampaignService.php @@ -0,0 +1,6504 @@ +eligible = $eligible; + $this->rejectionReasons = $rejectionReasons; + } +}} + +if (!class_exists("DateRange", FALSE)) { +/** + * Represents a range of dates that has either an upper or a lower bound. + * The format for the date is YYYYMMDD. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("FrequencyCap", FALSE)) { +/** + * A frequency cap is the maximum number of times an ad (or some set of ads) can + * be shown to a user over a particular time period. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FrequencyCap { + /** + * @access public + * @var integer + */ + public $impressions; + + /** + * @access public + * @var tnsTimeUnit + */ + public $timeUnit; + + /** + * @access public + * @var tnsLevel + */ + public $level; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCap"; + } + + public function __construct($impressions = NULL, $timeUnit = NULL, $level = NULL) { + $this->impressions = $impressions; + $this->timeUnit = $timeUnit; + $this->level = $level; + } +}} + +if (!class_exists("NetworkSetting", FALSE)) { +/** + * Network settings for a Campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NetworkSetting { + /** + * @access public + * @var boolean + */ + public $targetGoogleSearch; + + /** + * @access public + * @var boolean + */ + public $targetSearchNetwork; + + /** + * @access public + * @var boolean + */ + public $targetContentNetwork; + + /** + * @access public + * @var boolean + */ + public $targetPartnerSearchNetwork; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NetworkSetting"; + } + + public function __construct($targetGoogleSearch = NULL, $targetSearchNetwork = NULL, $targetContentNetwork = NULL, $targetPartnerSearchNetwork = NULL) { + $this->targetGoogleSearch = $targetGoogleSearch; + $this->targetSearchNetwork = $targetSearchNetwork; + $this->targetContentNetwork = $targetContentNetwork; + $this->targetPartnerSearchNetwork = $targetPartnerSearchNetwork; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("String_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class String_StringMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("Setting", FALSE)) { +/** + * Base type for AdWords campaign settings. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Setting { + /** + * @access public + * @var string + */ + public $SettingType; + + private $_parameterMap = array ( + "Setting.Type" => "SettingType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Setting"; + } + + public function __construct($SettingType = NULL) { + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("Stats", FALSE)) { +/** + * Statistics about an ad or criterion within an ad group or campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Stats { + /** + * @access public + * @var string + */ + public $startDate; + + /** + * @access public + * @var string + */ + public $endDate; + + /** + * @access public + * @var tnsStatsNetwork + */ + public $network; + + /** + * @access public + * @var integer + */ + public $clicks; + + /** + * @access public + * @var integer + */ + public $impressions; + + /** + * @access public + * @var Money + */ + public $cost; + + /** + * @access public + * @var double + */ + public $averagePosition; + + /** + * @access public + * @var Money + */ + public $averageCpc; + + /** + * @access public + * @var Money + */ + public $averageCpm; + + /** + * @access public + * @var double + */ + public $ctr; + + /** + * @access public + * @var integer + */ + public $conversions; + + /** + * @access public + * @var integer + */ + public $viewThroughConversions; + + /** + * @access public + * @var Money + */ + public $totalBudget; + + /** + * @access public + * @var string + */ + public $StatsType; + + private $_parameterMap = array ( + "Stats.Type" => "StatsType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats"; + } + + public function __construct($startDate = NULL, $endDate = NULL, $network = NULL, $clicks = NULL, $impressions = NULL, $cost = NULL, $averagePosition = NULL, $averageCpc = NULL, $averageCpm = NULL, $ctr = NULL, $conversions = NULL, $viewThroughConversions = NULL, $totalBudget = NULL, $StatsType = NULL) { + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->network = $network; + $this->clicks = $clicks; + $this->impressions = $impressions; + $this->cost = $cost; + $this->averagePosition = $averagePosition; + $this->averageCpc = $averageCpc; + $this->averageCpm = $averageCpm; + $this->ctr = $ctr; + $this->conversions = $conversions; + $this->viewThroughConversions = $viewThroughConversions; + $this->totalBudget = $totalBudget; + $this->StatsType = $StatsType; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Bids", FALSE)) { +/** + * Base class for all bids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Bids { + /** + * @access public + * @var string + */ + public $BidsType; + + private $_parameterMap = array ( + "Bids.Type" => "BidsType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Bids"; + } + + public function __construct($BidsType = NULL) { + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("Budget", FALSE)) { +/** + * Budgets are used for managing the amount of money spent on AdWords. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Budget { + /** + * @access public + * @var integer + */ + public $budgetId; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsBudgetBudgetPeriod + */ + public $period; + + /** + * @access public + * @var Money + */ + public $amount; + + /** + * @access public + * @var tnsBudgetBudgetDeliveryMethod + */ + public $deliveryMethod; + + /** + * @access public + * @var integer + */ + public $referenceCount; + + /** + * @access public + * @var boolean + */ + public $isExplicitlyShared; + + /** + * @access public + * @var tnsBudgetBudgetStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget"; + } + + public function __construct($budgetId = NULL, $name = NULL, $period = NULL, $amount = NULL, $deliveryMethod = NULL, $referenceCount = NULL, $isExplicitlyShared = NULL, $status = NULL) { + $this->budgetId = $budgetId; + $this->name = $name; + $this->period = $period; + $this->amount = $amount; + $this->deliveryMethod = $deliveryMethod; + $this->referenceCount = $referenceCount; + $this->isExplicitlyShared = $isExplicitlyShared; + $this->status = $status; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("BiddingScheme", FALSE)) { +/** + * Base class for all bidding schemes. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingScheme { + /** + * @access public + * @var string + */ + public $BiddingSchemeType; + + private $_parameterMap = array ( + "BiddingScheme.Type" => "BiddingSchemeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("BiddingStrategyConfiguration", FALSE)) { +/** + * Encapsulates the information about bids and bidding strategies. + * + * Bidding Strategy can be set on campaigns, ad groups or ad group criteria. + * A bidding strategy can be set using one of the following: + *
    + *
  • {@linkplain BiddingStrategyConfiguration#biddingScheme bidding scheme}
  • + *
  • {@linkplain BiddingStrategyConfiguration#biddingStrategyType bidding strategy type}
  • + *
  • {@linkplain BiddingStrategyConfiguration#biddingStrategyId bidding strategy ID} for + * flexible bid strategies.
  • + *
+ * If the bidding strategy type is used, then schemes are created using default values. + * + * Bids can be set only on ad groups and ad group criteria. They cannot be set on campaigns. + * Multiple bids can be set at the same time. Only the bids that apply to the campaign's + * {@linkplain Campaign#biddingStrategyConfiguration bidding strategy} will be used. + * + * Flexible bidding is a beta feature. For more information on flexible bidding, + * visit the + * Help Center. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyConfiguration { + /** + * @access public + * @var integer + */ + public $biddingStrategyId; + + /** + * @access public + * @var string + */ + public $biddingStrategyName; + + /** + * @access public + * @var tnsBiddingStrategyType + */ + public $biddingStrategyType; + + /** + * @access public + * @var tnsBiddingStrategySource + */ + public $biddingStrategySource; + + /** + * @access public + * @var BiddingScheme + */ + public $biddingScheme; + + /** + * @access public + * @var Bids[] + */ + public $bids; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyConfiguration"; + } + + public function __construct($biddingStrategyId = NULL, $biddingStrategyName = NULL, $biddingStrategyType = NULL, $biddingStrategySource = NULL, $biddingScheme = NULL, $bids = NULL) { + $this->biddingStrategyId = $biddingStrategyId; + $this->biddingStrategyName = $biddingStrategyName; + $this->biddingStrategyType = $biddingStrategyType; + $this->biddingStrategySource = $biddingStrategySource; + $this->biddingScheme = $biddingScheme; + $this->bids = $bids; + } +}} + +if (!class_exists("Campaign", FALSE)) { +/** + * Data representing an AdWords campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Campaign { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsCampaignStatus + */ + public $status; + + /** + * @access public + * @var tnsServingStatus + */ + public $servingStatus; + + /** + * @access public + * @var string + */ + public $startDate; + + /** + * @access public + * @var string + */ + public $endDate; + + /** + * @access public + * @var Budget + */ + public $budget; + + /** + * @access public + * @var ConversionOptimizerEligibility + */ + public $conversionOptimizerEligibility; + + /** + * @access public + * @var CampaignStats + */ + public $campaignStats; + + /** + * @access public + * @var tnsAdServingOptimizationStatus + */ + public $adServingOptimizationStatus; + + /** + * @access public + * @var FrequencyCap + */ + public $frequencyCap; + + /** + * @access public + * @var Setting[] + */ + public $settings; + + /** + * @access public + * @var NetworkSetting + */ + public $networkSetting; + + /** + * @access public + * @var BiddingStrategyConfiguration + */ + public $biddingStrategyConfiguration; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * @access public + * @var boolean + */ + public $enhanced; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Campaign"; + } + + public function __construct($id = NULL, $name = NULL, $status = NULL, $servingStatus = NULL, $startDate = NULL, $endDate = NULL, $budget = NULL, $conversionOptimizerEligibility = NULL, $campaignStats = NULL, $adServingOptimizationStatus = NULL, $frequencyCap = NULL, $settings = NULL, $networkSetting = NULL, $biddingStrategyConfiguration = NULL, $forwardCompatibilityMap = NULL, $enhanced = NULL) { + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->servingStatus = $servingStatus; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->budget = $budget; + $this->conversionOptimizerEligibility = $conversionOptimizerEligibility; + $this->campaignStats = $campaignStats; + $this->adServingOptimizationStatus = $adServingOptimizationStatus; + $this->frequencyCap = $frequencyCap; + $this->settings = $settings; + $this->networkSetting = $networkSetting; + $this->biddingStrategyConfiguration = $biddingStrategyConfiguration; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->enhanced = $enhanced; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdServingOptimizationStatus", FALSE)) { +/** + * Ad serving status of campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdServingOptimizationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdServingOptimizationStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BidSource", FALSE)) { +/** + * Indicate where a criterion's bid came from: criterion or the adgroup it + * belongs to. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BidSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorReason", FALSE)) { +/** + * Reason for bidding error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorsReason", FALSE)) { +/** + * Bidding strategy is available for enhanced campaign only. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingErrorsReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategySource", FALSE)) { +/** + * Indicates where bidding strategy came from: campaign, adgroup or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategySource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategySource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategyType", FALSE)) { +/** + * The bidding strategy type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyType"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingTransitionErrorReason", FALSE)) { +/** + * Reason for bidding transition error. + * It is used by capability service as denial reasons, for bidding transition + * capability. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingTransitionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingTransitionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetDeliveryMethod", FALSE)) { +/** + * Budget delivery methods. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetBudgetDeliveryMethod { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetDeliveryMethod"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetPeriod", FALSE)) { +/** + * Budget periods. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetBudgetPeriod { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetPeriod"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetStatus", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetBudgetStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetErrorReason", FALSE)) { +/** + * The reasons for the budget error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignStatus", FALSE)) { +/** + * Campaign status. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemeBidType", FALSE)) { +/** + * Average cost-per-acquisition (targetCPA) bid type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerBiddingSchemeBidType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.BidType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemePricingMode", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerBiddingSchemePricingMode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.PricingMode"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerEligibilityRejectionReason", FALSE)) { +/** + * Campaign is not active + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerEligibilityRejectionReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerEligibility.RejectionReason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForwardCompatibilityErrorReason", FALSE)) { +/** + * The reason for the error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ForwardCompatibilityErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetTypeSettingNegativeGeoTargetType", FALSE)) { +/** + * The various signals a negative location target may use. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GeoTargetTypeSettingNegativeGeoTargetType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetTypeSetting.NegativeGeoTargetType"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetTypeSettingPositiveGeoTargetType", FALSE)) { +/** + * The various signals a positive location target may use. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GeoTargetTypeSettingPositiveGeoTargetType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetTypeSetting.PositiveGeoTargetType"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Level", FALSE)) { +/** + * The level on which the cap is to be applied. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Level { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Level"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PageOnePromotedBiddingSchemeStrategyGoal", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PageOnePromotedBiddingSchemeStrategyGoal { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme.StrategyGoal"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QueryErrorReason", FALSE)) { +/** + * The reason for the query error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The reasons for the quota error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServingStatus", FALSE)) { +/** + * Campaign serving status. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ServingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("SettingErrorReason", FALSE)) { +/** + * The reasons for the setting error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SettingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SettingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsNetwork", FALSE)) { +/** + * Ad network. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsNetwork { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats.Network"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsQueryErrorReason", FALSE)) { +/** + * The reasons for errors when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsQueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TimeUnit", FALSE)) { +/** + * Unit of time the cap is defined at. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TimeUnit { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeUnit"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of campaigns that meet the selector criteria. + * + * @param serviceSelector the selector specifying the {@link Campaign}s to return. + * @return A list of campaigns. + * @throws ApiException if problems occurred while fetching campaign information. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("CampaignServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignServiceGetResponse { + /** + * @access public + * @var CampaignPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("CampaignServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET. + * + * + * + * Adds, updates, or deletes campaigns. + *

Note: {@link CampaignOperation} does not support the + * REMOVE operator. To delete a campaign, set its + * {@link Campaign#status status} to DELETED.

+ * @param operations A list of unique operations. + * The same campaign cannot be specified in more than one operation. + * @return The list of updated campaigns, returned in the same order as the + * operations array. + * @throws ApiException if problems occurred while updating campaign information. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignServiceMutate { + /** + * @access public + * @var CampaignOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("CampaignServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignServiceMutateResponse { + /** + * @access public + * @var CampaignReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("query", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of campaigns that match the query. + * + * @param query The SQL-like AWQL query string. + * @return A list of campaigns. + * @throws ApiException if problems occur while parsing the query or fetching campaign + * information. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class query { + /** + * @access public + * @var string + */ + public $query; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($query = NULL) { + $this->query = $query; + } +}} + +if (!class_exists("queryResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class queryResponse { + /** + * @access public + * @var CampaignPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BiddingError", FALSE)) { +/** + * Represents bidding errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingError extends ApiError { + /** + * @access public + * @var tnsBiddingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BiddingErrors", FALSE)) { +/** + * Represents error codes for bidding strategy entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingErrors extends ApiError { + /** + * @access public + * @var tnsBiddingErrorsReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BiddingTransitionError", FALSE)) { +/** + * Bidding transition errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingTransitionError extends ApiError { + /** + * @access public + * @var tnsBiddingTransitionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingTransitionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BudgetError", FALSE)) { +/** + * A list of all the error codes being used by the common budget domain package. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetError extends ApiError { + /** + * @access public + * @var tnsBudgetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CampaignError", FALSE)) { +/** + * Base error class for Campaign Service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignError extends ApiError { + /** + * @access public + * @var tnsCampaignErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CampaignStats", FALSE)) { +/** + * Represents stats specific to Campaigns. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignStats extends Stats { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignStats"; + } + + public function __construct($startDate = NULL, $endDate = NULL, $network = NULL, $clicks = NULL, $impressions = NULL, $cost = NULL, $averagePosition = NULL, $averageCpc = NULL, $averageCpm = NULL, $ctr = NULL, $conversions = NULL, $viewThroughConversions = NULL, $totalBudget = NULL, $StatsType = NULL) { + parent::__construct(); + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->network = $network; + $this->clicks = $clicks; + $this->impressions = $impressions; + $this->cost = $cost; + $this->averagePosition = $averagePosition; + $this->averageCpc = $averageCpc; + $this->averageCpm = $averageCpm; + $this->ctr = $ctr; + $this->conversions = $conversions; + $this->viewThroughConversions = $viewThroughConversions; + $this->totalBudget = $totalBudget; + $this->StatsType = $StatsType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ConversionOptimizerBiddingScheme", FALSE)) { +/** + * Conversion optimizer bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + *

{@code pricingMode} currently defaults to {@code CLICKS} and + * cannot be changed.

+ * + *

Note that campaigns must meet specific + * eligibility requirements before they can use the ConversionOptimizer + * bidding strategy. + * + * For more information on conversion optimizer, visit the + * Conversion Optimizer site. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemePricingMode + */ + public $pricingMode; + + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemeBidType + */ + public $bidType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme"; + } + + public function __construct($pricingMode = NULL, $bidType = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->pricingMode = $pricingMode; + $this->bidType = $bidType; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EnhancedCpcBiddingScheme", FALSE)) { +/** + * Enhanced CPC is a bidding strategy that raises your bids for clicks that seem more likely to + * lead to a conversion and lowers them for clicks where they seem less likely. + * + * This bidding scheme does not support criteria level bidding strategy overrides. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EnhancedCpcBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnhancedCpcBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ForwardCompatibilityError", FALSE)) { +/** + * A ForwardComptibilityError represents possible errors when using the forwardCompatibilityMap + * in some of the common services. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ForwardCompatibilityError extends ApiError { + /** + * @access public + * @var tnsForwardCompatibilityErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("GeoTargetTypeSetting", FALSE)) { +/** + * Represents a collection of settings related to ads geotargeting. + * + *

AdWords ads can be geotargeted using Location of Presence (LOP), + * Area of Interest (AOI), or both. LOP is the physical location + * of the user performing the search; AOI is the geographical region + * in which the searcher is interested. For example, if a user in + * New York City performs a search "hotels california", their LOP + * is New York City and their AOI is California. + * + *

Additionally, ads can be positively or negatively geotargeted. + * An ad that is positively geotargeted to New York City only appears + * to users whose location is related (via AOI or LOP) to New York City. An ad + * that is negatively geotargeted to New York City appears for all + * users except those whose location is related to New York City. Ads can + * only be negatively geotargeted if a positive geotargeting is also supplied, and + * the negatively geotargeted region must be contained within the positive + * region. + * + *

Geotargeting settings allow ads to be targeted in the following way: + *

    + *
  • Positively geotargeted using solely AOI, solely LOP, or either. + *
  • Negatively geotargeted using solely LOP, or both. + *
+ * + *

This setting applies only to ads shown on the search network, and does + * not affect ads shown on the Google Display Network. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GeoTargetTypeSetting extends Setting { + /** + * @access public + * @var tnsGeoTargetTypeSettingPositiveGeoTargetType + */ + public $positiveGeoTargetType; + + /** + * @access public + * @var tnsGeoTargetTypeSettingNegativeGeoTargetType + */ + public $negativeGeoTargetType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetTypeSetting"; + } + + public function __construct($positiveGeoTargetType = NULL, $negativeGeoTargetType = NULL, $SettingType = NULL) { + parent::__construct(); + $this->positiveGeoTargetType = $positiveGeoTargetType; + $this->negativeGeoTargetType = $negativeGeoTargetType; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("KeywordMatchSetting", FALSE)) { +/** + * Improved exact and phrase match option includes misspellings, plurals, + * and other close variants of your keywords. + * + * Default value set to {@code true} to include close variants. For more + * information, see the article + * + * What are keyword matching options?. + * + * This setting is required when creating new campaigns. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class KeywordMatchSetting extends Setting { + /** + * @access public + * @var boolean + */ + public $optIn; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchSetting"; + } + + public function __construct($optIn = NULL, $SettingType = NULL) { + parent::__construct(); + $this->optIn = $optIn; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("ManualCpcBiddingScheme", FALSE)) { +/** + * Manual click based bidding where user pays per click. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManualCpcBiddingScheme extends BiddingScheme { + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpcBiddingScheme"; + } + + public function __construct($enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ManualCpmBiddingScheme", FALSE)) { +/** + * Manual impression based bidding where user pays per thousand impressions. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManualCpmBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpmBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PercentCpaBid", FALSE)) { +/** + * Percentage CPA based bidding where user pays a percent of conversions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PercentCpaBid extends Bids { + /** + * @access public + * @var integer + */ + public $bid; + + /** + * @access public + * @var tnsBidSource + */ + public $percentCpaBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBid"; + } + + public function __construct($bid = NULL, $percentCpaBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->percentCpaBidSource = $percentCpaBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("PercentCpaBiddingScheme", FALSE)) { +/** + * Percentage CPA based bidding scheme attributes where user pays a percent of conversions. + * This bidding strategy is available only to some advertisers. + *

A campaign can only be created with PercentCPA bidding strategy. Existing + * campaigns with a different bidding strategy cannot be transitioned to PercentCPA. + *

Similarly, once created as a PercentCPA, a campaign cannot be transitioned to + * any other bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PercentCpaBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("QueryError", FALSE)) { +/** + * A QueryError represents possible errors for query parsing and execution. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QueryError extends ApiError { + /** + * @access public + * @var tnsQueryErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError"; + } + + public function __construct($reason = NULL, $message = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->message = $message; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * Errors that are thrown if a quota limit is exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + public function __construct($reason = NULL, $limit = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->limit = $limit; + $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RealTimeBiddingSetting", FALSE)) { +/** + * Settings for Real-Time Bidding, a feature only available for campaigns + * targeting the Ad Exchange network. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RealTimeBiddingSetting extends Setting { + /** + * @access public + * @var boolean + */ + public $optIn; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RealTimeBiddingSetting"; + } + + public function __construct($optIn = NULL, $SettingType = NULL) { + parent::__construct(); + $this->optIn = $optIn; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * Indicates that a field was rejected due to compatibility issues. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SettingError", FALSE)) { +/** + * Indicates a problem with campaign settings. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SettingError extends ApiError { + /** + * @access public + * @var tnsSettingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SettingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("StatsQueryError", FALSE)) { +/** + * Represents possible error codes when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsQueryError extends ApiError { + /** + * @access public + * @var tnsStatsQueryErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TargetError", FALSE)) { +/** + * A list of all the error codes being used by the common targeting package. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetError extends ApiError { + /** + * @access public + * @var tnsTargetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TrackingSetting", FALSE)) { +/** + * Campaign level settings for tracking information. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TrackingSetting extends Setting { + /** + * @access public + * @var string + */ + public $trackingUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrackingSetting"; + } + + public function __construct($trackingUrl = NULL, $SettingType = NULL) { + parent::__construct(); + $this->trackingUrl = $trackingUrl; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("CpaBid", FALSE)) { +/** + * CPA Bids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CpaBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpaBid"; + } + + public function __construct($bid = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("CpcBid", FALSE)) { +/** + * Manual click based bids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CpcBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var Money + */ + public $contentBid; + + /** + * @access public + * @var tnsBidSource + */ + public $cpcBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpcBid"; + } + + public function __construct($bid = NULL, $contentBid = NULL, $cpcBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->contentBid = $contentBid; + $this->cpcBidSource = $cpcBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("CpmBid", FALSE)) { +/** + * Manual impression based bids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CpmBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var tnsBidSource + */ + public $cpmBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpmBid"; + } + + public function __construct($bid = NULL, $cpmBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->cpmBidSource = $cpmBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PageOnePromotedBiddingScheme", FALSE)) { +/** + * Page-One Promoted bidding scheme, which sets max cpc bids to + * target impressions on page one or page one promoted slots on google.com. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PageOnePromotedBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsPageOnePromotedBiddingSchemeStrategyGoal + */ + public $strategyGoal; + + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var boolean + */ + public $bidChangesForRaisesOnly; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenBudgetConstained; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenLowQualityScore; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme"; + } + + public function __construct($strategyGoal = NULL, $bidCeiling = NULL, $bidModifier = NULL, $bidChangesForRaisesOnly = NULL, $raiseBidWhenBudgetConstained = NULL, $raiseBidWhenLowQualityScore = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->strategyGoal = $strategyGoal; + $this->bidCeiling = $bidCeiling; + $this->bidModifier = $bidModifier; + $this->bidChangesForRaisesOnly = $bidChangesForRaisesOnly; + $this->raiseBidWhenBudgetConstained = $raiseBidWhenBudgetConstained; + $this->raiseBidWhenLowQualityScore = $raiseBidWhenLowQualityScore; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetCpaBiddingScheme", FALSE)) { +/** + * Target Cpa bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + * This is similar to the ConversionOptimizerBiddingScheme but does not + * support user-entered AdGroup-level target CPA bids, but rather a strategy-wide + * average CPA target. + * + *

Note that campaigns must meet specific + * eligibility requirements before they can use the TargetCpaBiddingScheme + * bidding strategy. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetCpaBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $targetCpa; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetCpaBiddingScheme"; + } + + public function __construct($targetCpa = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->targetCpa = $targetCpa; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetSpendBiddingScheme", FALSE)) { +/** + * Target Spend bidding scheme, in which Google automatically places + * bids for the user based on their daily/monthly budget or optional + * spend target. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetSpendBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var Money + */ + public $spendTarget; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetSpendBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $spendTarget = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->spendTarget = $spendTarget; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BudgetOptimizerBiddingScheme", FALSE)) { +/** + * In budget optimizer, Google automatically places bids for the user based on + * their daily/monthly budget. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOptimizerBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("CampaignOperation", FALSE)) { +/** + * An operation on an AdWords campaign. + *

Note: The REMOVE operator is not + * supported. To remove a campaign, set its {@link Campaign#status status} + * to DELETED.

+ * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignOperation extends Operation { + /** + * @access public + * @var Campaign + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("CampaignPage", FALSE)) { +/** + * Contains a subset of campaign resulting from the filtering and paging of the + * {@link com.google.ads.api.services.campaignmgmt.campaign.CampaignService#get} call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignPage extends Page { + /** + * @access public + * @var Campaign[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("CampaignReturnValue", FALSE)) { +/** + * A container for return values from the CampaignService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignReturnValue extends ListReturnValue { + /** + * @access public + * @var Campaign[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("CampaignService", FALSE)) { +/** + * CampaignService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class CampaignService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "CampaignServiceGetResponse", + "get" => "CampaignServiceGet", + "mutate" => "CampaignServiceMutate", + "mutateResponse" => "CampaignServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdxError" => "AdxError", + "ApiError" => "ApiError", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "BiddingError" => "BiddingError", + "BiddingErrors" => "BiddingErrors", + "BiddingTransitionError" => "BiddingTransitionError", + "BudgetError" => "BudgetError", + "CampaignError" => "CampaignError", + "CampaignStats" => "CampaignStats", + "Stats" => "Stats", + "ClientTermsError" => "ClientTermsError", + "ConversionOptimizerBiddingScheme" => "ConversionOptimizerBiddingScheme", + "BiddingScheme" => "BiddingScheme", + "ConversionOptimizerEligibility" => "ConversionOptimizerEligibility", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EnhancedCpcBiddingScheme" => "EnhancedCpcBiddingScheme", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "ForwardCompatibilityError" => "ForwardCompatibilityError", + "FrequencyCap" => "FrequencyCap", + "GeoTargetTypeSetting" => "GeoTargetTypeSetting", + "Setting" => "Setting", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "KeywordMatchSetting" => "KeywordMatchSetting", + "LongValue" => "LongValue", + "ManualCpcBiddingScheme" => "ManualCpcBiddingScheme", + "ManualCpmBiddingScheme" => "ManualCpmBiddingScheme", + "Money" => "Money", + "ComparableValue" => "ComparableValue", + "NetworkSetting" => "NetworkSetting", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PercentCpaBid" => "PercentCpaBid", + "Bids" => "Bids", + "PercentCpaBiddingScheme" => "PercentCpaBiddingScheme", + "Predicate" => "Predicate", + "QueryError" => "QueryError", + "QuotaCheckError" => "QuotaCheckError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RealTimeBiddingSetting" => "RealTimeBiddingSetting", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SettingError" => "SettingError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StatsQueryError" => "StatsQueryError", + "StringLengthError" => "StringLengthError", + "String_StringMapEntry" => "String_StringMapEntry", + "TargetError" => "TargetError", + "TrackingSetting" => "TrackingSetting", + "CpaBid" => "CpaBid", + "CpcBid" => "CpcBid", + "CpmBid" => "CpmBid", + "DatabaseError" => "DatabaseError", + "PageOnePromotedBiddingScheme" => "PageOnePromotedBiddingScheme", + "TargetCpaBiddingScheme" => "TargetCpaBiddingScheme", + "TargetSpendBiddingScheme" => "TargetSpendBiddingScheme", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Budget" => "Budget", + "BudgetOptimizerBiddingScheme" => "BudgetOptimizerBiddingScheme", + "Selector" => "Selector", + "BiddingStrategyConfiguration" => "BiddingStrategyConfiguration", + "Campaign" => "Campaign", + "CampaignOperation" => "CampaignOperation", + "Operation" => "Operation", + "CampaignPage" => "CampaignPage", + "Page" => "Page", + "CampaignReturnValue" => "CampaignReturnValue", + "ListReturnValue" => "ListReturnValue", + "AdServingOptimizationStatus" => "AdServingOptimizationStatus", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "BidSource" => "BidSource", + "BiddingError.Reason" => "BiddingErrorReason", + "BiddingErrors.Reason" => "BiddingErrorsReason", + "BiddingStrategySource" => "BiddingStrategySource", + "BiddingStrategyType" => "BiddingStrategyType", + "BiddingTransitionError.Reason" => "BiddingTransitionErrorReason", + "Budget.BudgetDeliveryMethod" => "BudgetBudgetDeliveryMethod", + "Budget.BudgetPeriod" => "BudgetBudgetPeriod", + "Budget.BudgetStatus" => "BudgetBudgetStatus", + "BudgetError.Reason" => "BudgetErrorReason", + "CampaignError.Reason" => "CampaignErrorReason", + "CampaignStatus" => "CampaignStatus", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "ConversionOptimizerBiddingScheme.BidType" => "ConversionOptimizerBiddingSchemeBidType", + "ConversionOptimizerBiddingScheme.PricingMode" => "ConversionOptimizerBiddingSchemePricingMode", + "ConversionOptimizerEligibility.RejectionReason" => "ConversionOptimizerEligibilityRejectionReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "ForwardCompatibilityError.Reason" => "ForwardCompatibilityErrorReason", + "GeoTargetTypeSetting.NegativeGeoTargetType" => "GeoTargetTypeSettingNegativeGeoTargetType", + "GeoTargetTypeSetting.PositiveGeoTargetType" => "GeoTargetTypeSettingPositiveGeoTargetType", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "Level" => "Level", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "PageOnePromotedBiddingScheme.StrategyGoal" => "PageOnePromotedBiddingSchemeStrategyGoal", + "Predicate.Operator" => "PredicateOperator", + "QueryError.Reason" => "QueryErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "ServingStatus" => "ServingStatus", + "SettingError.Reason" => "SettingErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "Stats.Network" => "StatsNetwork", + "StatsQueryError.Reason" => "StatsQueryErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetError.Reason" => "TargetErrorReason", + "TimeUnit" => "TimeUnit", + "query" => "query", + "queryResponse" => "queryResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/CampaignService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CampaignService::$classmap; + parent::__construct($wsdl, $options, $user, 'CampaignService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of campaigns that meet the selector criteria. + * + * @param serviceSelector the selector specifying the {@link Campaign}s to return. + * @return A list of campaigns. + * @throws ApiException if problems occurred while fetching campaign information. + */ + public function get($serviceSelector) { + $arg = new CampaignServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET. + * + * + * + * Adds, updates, or deletes campaigns. + *

Note: {@link CampaignOperation} does not support the + * REMOVE operator. To delete a campaign, set its + * {@link Campaign#status status} to DELETED.

+ * @param operations A list of unique operations. + * The same campaign cannot be specified in more than one operation. + * @return The list of updated campaigns, returned in the same order as the + * operations array. + * @throws ApiException if problems occurred while updating campaign information. + */ + public function mutate($operations) { + $arg = new CampaignServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of campaigns that match the query. + * + * @param query The SQL-like AWQL query string. + * @return A list of campaigns. + * @throws ApiException if problems occur while parsing the query or fetching campaign + * information. + */ + public function query($query) { + $arg = new query($query); + $result = $this->__soapCall("query", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/CampaignSharedSetService.php b/src/Google/Api/Ads/AdWords/v201306/CampaignSharedSetService.php new file mode 100755 index 000000000..c25203bf1 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/CampaignSharedSetService.php @@ -0,0 +1,3434 @@ +This field can be selected using the value "SharedSetId".This field can be filtered on. + * This field is required and should not be {@code null} when it is contained within {@link Operator}s : ADD, REMOVE. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignSharedSet { + /** + * @access public + * @var integer + */ + public $sharedSetId; + + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var string + */ + public $sharedSetName; + + /** + * @access public + * @var tnsSharedSetType + */ + public $sharedSetType; + + /** + * @access public + * @var string + */ + public $campaignName; + + /** + * @access public + * @var tnsCampaignSharedSetStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignSharedSet"; + } + + public function __construct($sharedSetId = NULL, $campaignId = NULL, $sharedSetName = NULL, $sharedSetType = NULL, $campaignName = NULL, $status = NULL) { + $this->sharedSetId = $sharedSetId; + $this->campaignId = $campaignId; + $this->sharedSetName = $sharedSetName; + $this->sharedSetType = $sharedSetType; + $this->campaignName = $campaignName; + $this->status = $status; + } +}} + +if (!class_exists("DateRange", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Indicates that this instance is a subtype of ListReturnValue. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Indicates that this instance is a subtype of Page. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * This field must be greater than or equal to 0. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Indicates that this instance is a subtype of ApplicationException. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * This field must contain distinct elements. + * This field must not contain {@code null} elements. + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignSharedSetStatus", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignSharedSetStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignSharedSet.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignSharedSetErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignSharedSetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignSharedSetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PagingErrorReason", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PagingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SharedSetType", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedSetType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSetType"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignSharedSetServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of CampaignSharedSets based on the given selector. + * @param selector the selector specifying the query + * @return a list of CampaignSharedSet entities that meet the criterion specified + * by the selector + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignSharedSetServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("CampaignSharedSetServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignSharedSetServiceGetResponse { + /** + * @access public + * @var CampaignSharedSetPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("CampaignSharedSetServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, REMOVE. + * + * + * + * Applies the list of mutate operations. + * @param operations the operations to apply + * @return the modified list of CampaignSharedSet associations + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignSharedSetServiceMutate { + /** + * @access public + * @var CampaignSharedSetOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("CampaignSharedSetServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignSharedSetServiceMutateResponse { + /** + * @access public + * @var CampaignSharedSetReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CampaignSharedSetError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignSharedSetError extends ApiError { + /** + * @access public + * @var tnsCampaignSharedSetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignSharedSetError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CampaignSharedSetOperation", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignSharedSetOperation extends Operation { + /** + * @access public + * @var CampaignSharedSet + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignSharedSetOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("CampaignSharedSetReturnValue", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignSharedSetReturnValue extends ListReturnValue { + /** + * @access public + * @var CampaignSharedSet[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignSharedSetReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NullStatsPage", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PagingError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PagingError extends ApiError { + /** + * @access public + * @var tnsPagingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("CampaignSharedSetPage", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignSharedSetPage extends NullStatsPage { + /** + * @access public + * @var CampaignSharedSet[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignSharedSetPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("CampaignSharedSetService", FALSE)) { +/** + * CampaignSharedSetService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class CampaignSharedSetService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "CampaignSharedSetServiceGetResponse", + "get" => "CampaignSharedSetServiceGet", + "mutate" => "CampaignSharedSetServiceMutate", + "mutateResponse" => "CampaignSharedSetServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "CampaignSharedSet" => "CampaignSharedSet", + "CampaignSharedSetError" => "CampaignSharedSetError", + "CampaignSharedSetOperation" => "CampaignSharedSetOperation", + "Operation" => "Operation", + "CampaignSharedSetPage" => "CampaignSharedSetPage", + "NullStatsPage" => "NullStatsPage", + "CampaignSharedSetReturnValue" => "CampaignSharedSetReturnValue", + "ListReturnValue" => "ListReturnValue", + "ClientTermsError" => "ClientTermsError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "Page" => "Page", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PagingError" => "PagingError", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Selector" => "Selector", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "CampaignSharedSet.Status" => "CampaignSharedSetStatus", + "CampaignSharedSetError.Reason" => "CampaignSharedSetErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "PagingError.Reason" => "PagingErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SharedSetType" => "SharedSetType", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/CampaignSharedSetService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CampaignSharedSetService::$classmap; + parent::__construct($wsdl, $options, $user, 'CampaignSharedSetService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of CampaignSharedSets based on the given selector. + * @param selector the selector specifying the query + * @return a list of CampaignSharedSet entities that meet the criterion specified + * by the selector + * @throws ApiException + */ + public function get($selector) { + $arg = new CampaignSharedSetServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, REMOVE. + * + * + * + * Applies the list of mutate operations. + * @param operations the operations to apply + * @return the modified list of CampaignSharedSet associations + * @throws ApiException + */ + public function mutate($operations) { + $arg = new CampaignSharedSetServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/ConstantDataService.php b/src/Google/Api/Ads/AdWords/v201306/ConstantDataService.php new file mode 100755 index 000000000..bd7bd3ff5 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/ConstantDataService.php @@ -0,0 +1,3934 @@ +operand = $operand; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("WebpageCondition", FALSE)) { +/** + * Logical expression for targeting webpages of an advertiser's website. + * + *

A condition is defined as {@code operand OP argument} + * where {@code operand} is one of the values enumerated in + * {@link WebpageConditionOperand}, and, based on this value, + * {@code OP} is either of {@code EQUALS} or {@code CONTAINS}.

+ * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageCondition { + /** + * @access public + * @var tnsWebpageConditionOperand + */ + public $operand; + + /** + * @access public + * @var string + */ + public $argument; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageCondition"; + } + + public function __construct($operand = NULL, $argument = NULL) { + $this->operand = $operand; + $this->argument = $argument; + } +}} + +if (!class_exists("CriterionParameter", FALSE)) { +/** + * Base type of criterion parameters. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionParameter { + /** + * @access public + * @var string + */ + public $CriterionParameterType; + + private $_parameterMap = array ( + "CriterionParameter.Type" => "CriterionParameterType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionParameter"; + } + + public function __construct($CriterionParameterType = NULL) { + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("ProductCondition", FALSE)) { +/** + * Conditions to filter the products defined in product feed for targeting. + * The condition is defined as operand=argument. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ProductCondition { + /** + * @access public + * @var string + */ + public $argument; + + /** + * @access public + * @var ProductConditionOperand + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductCondition"; + } + + public function __construct($argument = NULL, $operand = NULL) { + $this->argument = $argument; + $this->operand = $operand; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Criterion", FALSE)) { +/** + * Represents a criterion (such as a keyword, placement, or vertical). + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Criterion { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsCriterionType + */ + public $type; + + /** + * @access public + * @var string + */ + public $CriterionType; + + private $_parameterMap = array ( + "Criterion.Type" => "CriterionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + public function __construct($id = NULL, $type = NULL, $CriterionType = NULL) { + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AgeRangeAgeRangeType", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AgeRangeAgeRangeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AgeRange.AgeRangeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * The types of criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenderGenderType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GenderGenderType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Gender.GenderType"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("KeywordMatchType", FALSE)) { +/** + * Match type of a keyword. i.e. the way we match a keyword string with + * search queries. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class KeywordMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MobileDeviceDeviceType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileDeviceDeviceType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice.DeviceType"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatingSystemVersionOperatorType", FALSE)) { +/** + * The operator type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatingSystemVersionOperatorType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion.OperatorType"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUserListMembershipStatus", FALSE)) { +/** + * Membership status of the user list. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList.MembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("WebpageConditionOperand", FALSE)) { +/** + * Operand value of {@link WebpageCondition}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageConditionOperand { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageConditionOperand"; + } + + public function __construct() { + } +}} + +if (!class_exists("getAgeRangeCriterion", FALSE)) { +/** + * Returns a list of all age range criteria. + * + * @return A list of age ranges. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getAgeRangeCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getAgeRangeCriterionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getAgeRangeCriterionResponse { + /** + * @access public + * @var AgeRange[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCarrierCriterion", FALSE)) { +/** + * Returns a list of all carrier criteria. + * + * @return A list of carriers. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getCarrierCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getCarrierCriterionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getCarrierCriterionResponse { + /** + * @access public + * @var Carrier[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getGenderCriterion", FALSE)) { +/** + * Returns a list of all gender criteria. + * + * @return A list of genders. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getGenderCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getGenderCriterionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getGenderCriterionResponse { + /** + * @access public + * @var Gender[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLanguageCriterion", FALSE)) { +/** + * Returns a list of all language criteria. + * + * @return A list of languages. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getLanguageCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getLanguageCriterionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getLanguageCriterionResponse { + /** + * @access public + * @var Language[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getMobileDeviceCriterion", FALSE)) { +/** + * Returns a list of all mobile devices. + * + * @return A list of mobile devices. + * @throws ApiException when there is at least one error with the request. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getMobileDeviceCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getMobileDeviceCriterionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getMobileDeviceCriterionResponse { + /** + * @access public + * @var MobileDevice[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getOperatingSystemVersionCriterion", FALSE)) { +/** + * Returns a list of all operating system version criteria. + * + * @return A list of operating system versions. + * @throws ApiException when there is at least one error with the request. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getOperatingSystemVersionCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getOperatingSystemVersionCriterionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getOperatingSystemVersionCriterionResponse { + /** + * @access public + * @var OperatingSystemVersion[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getUserInterestCriterion", FALSE)) { +/** + * Returns a list of user interests. + * + * @return A list of user interests. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getUserInterestCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getUserInterestCriterionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getUserInterestCriterionResponse { + /** + * @access public + * @var CriterionUserInterest[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getVerticalCriterion", FALSE)) { +/** + * Returns a list of content verticals. + * + * @return A list of verticals. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getVerticalCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getVerticalCriterionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getVerticalCriterionResponse { + /** + * @access public + * @var Vertical[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AgeRange", FALSE)) { +/** + * Represents an Age Range criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type is only excludable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AgeRange extends Criterion { + /** + * @access public + * @var tnsAgeRangeAgeRangeType + */ + public $ageRangeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AgeRange"; + } + + public function __construct($ageRangeType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->ageRangeType = $ageRangeType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Carrier", FALSE)) { +/** + * Represents a Carrier Criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Carrier extends Criterion { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Carrier"; + } + + public function __construct($name = NULL, $countryCode = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->name = $name; + $this->countryCode = $countryCode; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Gender", FALSE)) { +/** + * Represents a Gender criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type is only excludable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Gender extends Criterion { + /** + * @access public + * @var tnsGenderGenderType + */ + public $genderType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Gender"; + } + + public function __construct($genderType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->genderType = $genderType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Keyword", FALSE)) { +/** + * Represents a keyword. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Keyword extends Criterion { + /** + * @access public + * @var string + */ + public $text; + + /** + * @access public + * @var tnsKeywordMatchType + */ + public $matchType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Keyword"; + } + + public function __construct($text = NULL, $matchType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->text = $text; + $this->matchType = $matchType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Language", FALSE)) { +/** + * Represents a Language criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Language extends Criterion { + /** + * @access public + * @var string + */ + public $code; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Language"; + } + + public function __construct($code = NULL, $name = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->code = $code; + $this->name = $name; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileAppCategory", FALSE)) { +/** + * Represents the mobile app category to be targeted. + * View the complete list of + * available mobile app categories. + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileAppCategory extends Criterion { + /** + * @access public + * @var integer + */ + public $mobileAppCategoryId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAppCategory"; + } + + public function __construct($mobileAppCategoryId = NULL, $displayName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->mobileAppCategoryId = $mobileAppCategoryId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileApplication", FALSE)) { +/** + * Represents the mobile application to be targeted. + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileApplication extends Criterion { + /** + * @access public + * @var string + */ + public $appId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileApplication"; + } + + public function __construct($appId = NULL, $displayName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->appId = $appId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device Criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileDevice extends Criterion { + /** + * @access public + * @var string + */ + public $deviceName; + + /** + * @access public + * @var string + */ + public $manufacturerName; + + /** + * @access public + * @var tnsMobileDeviceDeviceType + */ + public $deviceType; + + /** + * @access public + * @var string + */ + public $operatingSystemName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($deviceName = NULL, $manufacturerName = NULL, $deviceType = NULL, $operatingSystemName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->deviceName = $deviceName; + $this->manufacturerName = $manufacturerName; + $this->deviceType = $deviceType; + $this->operatingSystemName = $operatingSystemName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatingSystemVersion", FALSE)) { +/** + * Represents a Operating System Version Criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatingSystemVersion extends Criterion { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $osMajorVersion; + + /** + * @access public + * @var integer + */ + public $osMinorVersion; + + /** + * @access public + * @var tnsOperatingSystemVersionOperatorType + */ + public $operatorType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($name = NULL, $osMajorVersion = NULL, $osMinorVersion = NULL, $operatorType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->name = $name; + $this->osMajorVersion = $osMajorVersion; + $this->osMinorVersion = $osMinorVersion; + $this->operatorType = $operatorType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Placement", FALSE)) { +/** + * A placement used for modifying bids for sites when targeting the content + * network. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Placement extends Criterion { + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + public function __construct($url = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->url = $url; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * Indicates that a field was rejected due to compatibility issues. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CriterionUserInterest", FALSE)) { +/** + * User Interest - represents a particular interest based vertical to be targeted. + * Targeting UserInterest is currently in a limited beta. If you'd like access + * please speak with your account representative. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserInterest extends Criterion { + /** + * @access public + * @var integer + */ + public $userInterestId; + + /** + * @access public + * @var string + */ + public $userInterestName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserInterest"; + } + + public function __construct($userInterestId = NULL, $userInterestName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->userInterestId = $userInterestId; + $this->userInterestName = $userInterestName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionUserList", FALSE)) { +/** + * UserList - represents a user list that is defined by the advertiser to be targeted. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserList extends Criterion { + /** + * @access public + * @var integer + */ + public $userListId; + + /** + * @access public + * @var string + */ + public $userListName; + + /** + * @access public + * @var tnsCriterionUserListMembershipStatus + */ + public $userListMembershipStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList"; + } + + public function __construct($userListId = NULL, $userListName = NULL, $userListMembershipStatus = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->userListId = $userListId; + $this->userListName = $userListName; + $this->userListMembershipStatus = $userListMembershipStatus; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Vertical", FALSE)) { +/** + * Use verticals to target or exclude placements in the Google Display Network + * based on the category into which the placement falls (for example, "Pets & + * Animals/Pets/Dogs"). + * View the complete list + * of available vertical categories. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Vertical extends Criterion { + /** + * @access public + * @var integer + */ + public $verticalId; + + /** + * @access public + * @var integer + */ + public $verticalParentId; + + /** + * @access public + * @var string[] + */ + public $path; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Vertical"; + } + + public function __construct($verticalId = NULL, $verticalParentId = NULL, $path = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->verticalId = $verticalId; + $this->verticalParentId = $verticalParentId; + $this->path = $path; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("WebpageParameter", FALSE)) { +/** + * Parameter of Webpage criterion, expressed as a list of conditions, or + * logical expressions, for targeting webpages of an advertiser's website. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageParameter extends CriterionParameter { + /** + * @access public + * @var string + */ + public $criterionName; + + /** + * @access public + * @var WebpageCondition[] + */ + public $conditions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageParameter"; + } + + public function __construct($criterionName = NULL, $conditions = NULL, $CriterionParameterType = NULL) { + parent::__construct(); + $this->criterionName = $criterionName; + $this->conditions = $conditions; + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Webpage", FALSE)) { +/** + * Criterion for targeting webpages of an advertiser's website. The + * website domain name is specified at the campaign level. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Webpage extends Criterion { + /** + * @access public + * @var WebpageParameter + */ + public $parameter; + + /** + * @access public + * @var double + */ + public $criteriaCoverage; + + /** + * @access public + * @var string[] + */ + public $criteriaSamples; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Webpage"; + } + + public function __construct($parameter = NULL, $criteriaCoverage = NULL, $criteriaSamples = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->parameter = $parameter; + $this->criteriaCoverage = $criteriaCoverage; + $this->criteriaSamples = $criteriaSamples; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Product", FALSE)) { +/** + * Product targeting criteria, represents a filter for products in the + * product feed that is defined by the advertiser. The criteria is used to + * determine the products in a Merchant Center account to be used with the + * ProductAds in the AdGroup. This criteria is available only to some advertisers. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Product extends Criterion { + /** + * @access public + * @var ProductCondition[] + */ + public $conditions; + + /** + * @access public + * @var string + */ + public $text; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + public function __construct($conditions = NULL, $text = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->conditions = $conditions; + $this->text = $text; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ConstantDataService", FALSE)) { +/** + * ConstantDataService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class ConstantDataService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "ConstantDataServiceGetResponse", + "get" => "ConstantDataServiceGet", + "mutate" => "ConstantDataServiceMutate", + "mutateResponse" => "ConstantDataServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdxError" => "AdxError", + "ApiError" => "ApiError", + "AgeRange" => "AgeRange", + "Criterion" => "Criterion", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "Carrier" => "Carrier", + "ClientTermsError" => "ClientTermsError", + "DateError" => "DateError", + "DistinctError" => "DistinctError", + "Gender" => "Gender", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "Keyword" => "Keyword", + "Language" => "Language", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "MobileDevice" => "MobileDevice", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperatingSystemVersion" => "OperatingSystemVersion", + "Placement" => "Placement", + "ProductConditionOperand" => "ProductConditionOperand", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "CriterionUserInterest" => "CriterionUserInterest", + "CriterionUserList" => "CriterionUserList", + "Vertical" => "Vertical", + "WebpageCondition" => "WebpageCondition", + "WebpageParameter" => "WebpageParameter", + "CriterionParameter" => "CriterionParameter", + "DatabaseError" => "DatabaseError", + "ProductCondition" => "ProductCondition", + "Webpage" => "Webpage", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Product" => "Product", + "AdxError.Reason" => "AdxErrorReason", + "AgeRange.AgeRangeType" => "AgeRangeAgeRangeType", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "Criterion.Type" => "CriterionType", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "Gender.GenderType" => "GenderGenderType", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "KeywordMatchType" => "KeywordMatchType", + "MobileDevice.DeviceType" => "MobileDeviceDeviceType", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperatingSystemVersion.OperatorType" => "OperatingSystemVersionOperatorType", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "CriterionUserList.MembershipStatus" => "CriterionUserListMembershipStatus", + "WebpageConditionOperand" => "WebpageConditionOperand", + "getAgeRangeCriterion" => "getAgeRangeCriterion", + "getAgeRangeCriterionResponse" => "getAgeRangeCriterionResponse", + "getCarrierCriterion" => "getCarrierCriterion", + "getCarrierCriterionResponse" => "getCarrierCriterionResponse", + "getGenderCriterion" => "getGenderCriterion", + "getGenderCriterionResponse" => "getGenderCriterionResponse", + "getLanguageCriterion" => "getLanguageCriterion", + "getLanguageCriterionResponse" => "getLanguageCriterionResponse", + "getMobileDeviceCriterion" => "getMobileDeviceCriterion", + "getMobileDeviceCriterionResponse" => "getMobileDeviceCriterionResponse", + "getOperatingSystemVersionCriterion" => "getOperatingSystemVersionCriterion", + "getOperatingSystemVersionCriterionResponse" => "getOperatingSystemVersionCriterionResponse", + "getUserInterestCriterion" => "getUserInterestCriterion", + "getUserInterestCriterionResponse" => "getUserInterestCriterionResponse", + "getVerticalCriterion" => "getVerticalCriterion", + "getVerticalCriterionResponse" => "getVerticalCriterionResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/ConstantDataService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ConstantDataService::$classmap; + parent::__construct($wsdl, $options, $user, 'ConstantDataService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * Returns a list of all age range criteria. + * + * @return A list of age ranges. + * @throws ApiException when there is at least one error with the request. + */ + public function getAgeRangeCriterion() { + $arg = new getAgeRangeCriterion(); + $result = $this->__soapCall("getAgeRangeCriterion", array($arg)); + return $result->rval; + } + + + /** + * Returns a list of all carrier criteria. + * + * @return A list of carriers. + * @throws ApiException when there is at least one error with the request. + */ + public function getCarrierCriterion() { + $arg = new getCarrierCriterion(); + $result = $this->__soapCall("getCarrierCriterion", array($arg)); + return $result->rval; + } + + + /** + * Returns a list of all gender criteria. + * + * @return A list of genders. + * @throws ApiException when there is at least one error with the request. + */ + public function getGenderCriterion() { + $arg = new getGenderCriterion(); + $result = $this->__soapCall("getGenderCriterion", array($arg)); + return $result->rval; + } + + + /** + * Returns a list of all language criteria. + * + * @return A list of languages. + * @throws ApiException when there is at least one error with the request. + */ + public function getLanguageCriterion() { + $arg = new getLanguageCriterion(); + $result = $this->__soapCall("getLanguageCriterion", array($arg)); + return $result->rval; + } + + + /** + * Returns a list of all mobile devices. + * + * @return A list of mobile devices. + * @throws ApiException when there is at least one error with the request. + * This is a beta feature. + */ + public function getMobileDeviceCriterion() { + $arg = new getMobileDeviceCriterion(); + $result = $this->__soapCall("getMobileDeviceCriterion", array($arg)); + return $result->rval; + } + + + /** + * Returns a list of all operating system version criteria. + * + * @return A list of operating system versions. + * @throws ApiException when there is at least one error with the request. + * This is a beta feature. + */ + public function getOperatingSystemVersionCriterion() { + $arg = new getOperatingSystemVersionCriterion(); + $result = $this->__soapCall("getOperatingSystemVersionCriterion", array($arg)); + return $result->rval; + } + + + /** + * Returns a list of user interests. + * + * @return A list of user interests. + * @throws ApiException when there is at least one error with the request. + */ + public function getUserInterestCriterion() { + $arg = new getUserInterestCriterion(); + $result = $this->__soapCall("getUserInterestCriterion", array($arg)); + return $result->rval; + } + + + /** + * Returns a list of content verticals. + * + * @return A list of verticals. + * @throws ApiException when there is at least one error with the request. + */ + public function getVerticalCriterion() { + $arg = new getVerticalCriterion(); + $result = $this->__soapCall("getVerticalCriterion", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/ConversionTrackerService.php b/src/Google/Api/Ads/AdWords/v201306/ConversionTrackerService.php new file mode 100755 index 000000000..85bfe497e --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/ConversionTrackerService.php @@ -0,0 +1,3572 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("ConversionTrackerStats", FALSE)) { +/** + * Usage stats about a single {@link ConversionTracker}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionTrackerStats { + /** + * @access public + * @var integer + */ + public $numConversionEvents; + + /** + * @access public + * @var Money + */ + public $conversionValue; + + /** + * @access public + * @var string + */ + public $mostRecentConversionDate; + + /** + * @access public + * @var integer + */ + public $numConvertedClicks; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTrackerStats"; + } + + public function __construct($numConversionEvents = NULL, $conversionValue = NULL, $mostRecentConversionDate = NULL, $numConvertedClicks = NULL) { + $this->numConversionEvents = $numConversionEvents; + $this->conversionValue = $conversionValue; + $this->mostRecentConversionDate = $mostRecentConversionDate; + $this->numConvertedClicks = $numConvertedClicks; + } +}} + +if (!class_exists("ConversionTracker", FALSE)) { +/** + * An abstract Conversion base class. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionTracker { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsConversionTrackerStatus + */ + public $status; + + /** + * @access public + * @var tnsConversionTrackerCategory + */ + public $category; + + /** + * @access public + * @var ConversionTrackerStats + */ + public $stats; + + /** + * @access public + * @var integer + */ + public $viewthroughLookbackWindow; + + /** + * @access public + * @var boolean + */ + public $isProductAdsChargeable; + + /** + * @access public + * @var integer + */ + public $productAdsChargeableConversionWindow; + + /** + * @access public + * @var string + */ + public $ConversionTrackerType; + + private $_parameterMap = array ( + "ConversionTracker.Type" => "ConversionTrackerType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTracker"; + } + + public function __construct($id = NULL, $name = NULL, $status = NULL, $category = NULL, $stats = NULL, $viewthroughLookbackWindow = NULL, $isProductAdsChargeable = NULL, $productAdsChargeableConversionWindow = NULL, $ConversionTrackerType = NULL) { + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->category = $category; + $this->stats = $stats; + $this->viewthroughLookbackWindow = $viewthroughLookbackWindow; + $this->isProductAdsChargeable = $isProductAdsChargeable; + $this->productAdsChargeableConversionWindow = $productAdsChargeableConversionWindow; + $this->ConversionTrackerType = $ConversionTrackerType; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AdWordsConversionTrackerMarkupLanguage", FALSE)) { +/** + * Controls the markup language in which the snippet will be written. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdWordsConversionTrackerMarkupLanguage { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdWordsConversionTracker.MarkupLanguage"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdWordsConversionTrackerTextFormat", FALSE)) { +/** + * Text format to display on the conversion page. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdWordsConversionTrackerTextFormat { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdWordsConversionTracker.TextFormat"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdWordsConversionTrackerTrackingCodeType", FALSE)) { +/** + * Type of snippet code to generate. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdWordsConversionTrackerTrackingCodeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdWordsConversionTracker.TrackingCodeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AppConversionAppConversionType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AppConversionAppConversionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppConversion.AppConversionType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AppConversionAppPlatform", FALSE)) { +/** + * App platform for the AppConversionTracker. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AppConversionAppPlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppConversion.AppPlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionTrackerCategory", FALSE)) { +/** + * The category of conversion tracker that is being tracked. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionTrackerCategory { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTracker.Category"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionTrackerStatus", FALSE)) { +/** + * Status of the conversion tracker. The user cannot ADD or SET the + * status to {@code HIDDEN}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionTrackerStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTracker.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionTrackingErrorReason", FALSE)) { +/** + * Enumerates all the possible reasons for a ConversionTypeError. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionTrackingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTrackingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionTrackerServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of the conversion trackers that match the selector. The + * actual objects contained in the page's list of entries will be specific + * subclasses of the abstract {@link ConversionTracker} class. + * + * @param serviceSelector The selector specifying the + * {@link ConversionTracker}s to return. + * @return List of conversion trackers specified by the selector. + * @throws com.google.ads.api.services.common.error.ApiException if problems + * occurred while retrieving results. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionTrackerServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("ConversionTrackerServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionTrackerServiceGetResponse { + /** + * @access public + * @var ConversionTrackerPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ConversionTrackerServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET. + * + * + * + * Applies the list of mutate operations such as adding or updating conversion trackers. + *

Note: {@link ConversionTrackerOperation} does not support the + * REMOVE operator.

+ * + * @param operations A list of mutate operations to perform. + * @return The list of the conversion trackers as they appear after mutation, + * in the same order as they appeared in the list of operations. + * @throws com.google.ads.api.services.common.error.ApiException if problems + * occurred while updating the data. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionTrackerServiceMutate { + /** + * @access public + * @var ConversionTrackerOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("ConversionTrackerServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionTrackerServiceMutateResponse { + /** + * @access public + * @var ConversionTrackerReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdWordsConversionTracker", FALSE)) { +/** + * A conversion tracker created through AdWords Conversion Tracking. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdWordsConversionTracker extends ConversionTracker { + /** + * @access public + * @var string + */ + public $snippet; + + /** + * @access public + * @var tnsAdWordsConversionTrackerMarkupLanguage + */ + public $markupLanguage; + + /** + * @access public + * @var tnsAdWordsConversionTrackerTextFormat + */ + public $textFormat; + + /** + * @access public + * @var string + */ + public $conversionPageLanguage; + + /** + * @access public + * @var string + */ + public $backgroundColor; + + /** + * @access public + * @var string + */ + public $userRevenueValue; + + /** + * @access public + * @var tnsAdWordsConversionTrackerTrackingCodeType + */ + public $trackingCodeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdWordsConversionTracker"; + } + + public function __construct($snippet = NULL, $markupLanguage = NULL, $textFormat = NULL, $conversionPageLanguage = NULL, $backgroundColor = NULL, $userRevenueValue = NULL, $trackingCodeType = NULL, $id = NULL, $name = NULL, $status = NULL, $category = NULL, $stats = NULL, $viewthroughLookbackWindow = NULL, $isProductAdsChargeable = NULL, $productAdsChargeableConversionWindow = NULL, $ConversionTrackerType = NULL) { + parent::__construct(); + $this->snippet = $snippet; + $this->markupLanguage = $markupLanguage; + $this->textFormat = $textFormat; + $this->conversionPageLanguage = $conversionPageLanguage; + $this->backgroundColor = $backgroundColor; + $this->userRevenueValue = $userRevenueValue; + $this->trackingCodeType = $trackingCodeType; + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->category = $category; + $this->stats = $stats; + $this->viewthroughLookbackWindow = $viewthroughLookbackWindow; + $this->isProductAdsChargeable = $isProductAdsChargeable; + $this->productAdsChargeableConversionWindow = $productAdsChargeableConversionWindow; + $this->ConversionTrackerType = $ConversionTrackerType; + } +}} + +if (!class_exists("AppConversion", FALSE)) { +/** + * A ConversionTracker for mobile apps. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AppConversion extends ConversionTracker { + /** + * @access public + * @var string + */ + public $appId; + + /** + * @access public + * @var tnsAppConversionAppPlatform + */ + public $appPlatform; + + /** + * @access public + * @var string + */ + public $userRevenueValue; + + /** + * @access public + * @var string + */ + public $snippet; + + /** + * @access public + * @var tnsAppConversionAppConversionType + */ + public $appConversionType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppConversion"; + } + + public function __construct($appId = NULL, $appPlatform = NULL, $userRevenueValue = NULL, $snippet = NULL, $appConversionType = NULL, $id = NULL, $name = NULL, $status = NULL, $category = NULL, $stats = NULL, $viewthroughLookbackWindow = NULL, $isProductAdsChargeable = NULL, $productAdsChargeableConversionWindow = NULL, $ConversionTrackerType = NULL) { + parent::__construct(); + $this->appId = $appId; + $this->appPlatform = $appPlatform; + $this->userRevenueValue = $userRevenueValue; + $this->snippet = $snippet; + $this->appConversionType = $appConversionType; + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->category = $category; + $this->stats = $stats; + $this->viewthroughLookbackWindow = $viewthroughLookbackWindow; + $this->isProductAdsChargeable = $isProductAdsChargeable; + $this->productAdsChargeableConversionWindow = $productAdsChargeableConversionWindow; + $this->ConversionTrackerType = $ConversionTrackerType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ConversionTrackingError", FALSE)) { +/** + * An error that can occur during calls to the ConversionTypeService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionTrackingError extends ApiError { + /** + * @access public + * @var tnsConversionTrackingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTrackingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ConversionTrackerOperation", FALSE)) { +/** + * Operations for conversion tracker. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionTrackerOperation extends Operation { + /** + * @access public + * @var ConversionTracker + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTrackerOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("ConversionTrackerReturnValue", FALSE)) { +/** + * A container for return values from the ConversionTrackerService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionTrackerReturnValue extends ListReturnValue { + /** + * @access public + * @var ConversionTracker[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTrackerReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("NoStatsPage", FALSE)) { +/** + * Base class for Get results for a page of entities that do not use statistics. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NoStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NoStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("ConversionTrackerPage", FALSE)) { +/** + * Contains a subset of {@link ConversionTracker}s resulting from the filtering + * and paging of the {@link ConversionTrackerService#get} call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionTrackerPage extends NoStatsPage { + /** + * @access public + * @var ConversionTracker[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTrackerPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("ConversionTrackerService", FALSE)) { +/** + * ConversionTrackerService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class ConversionTrackerService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "ConversionTrackerServiceGetResponse", + "get" => "ConversionTrackerServiceGet", + "mutate" => "ConversionTrackerServiceMutate", + "mutateResponse" => "ConversionTrackerServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdWordsConversionTracker" => "AdWordsConversionTracker", + "ConversionTracker" => "ConversionTracker", + "AppConversion" => "AppConversion", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "ConversionTrackingError" => "ConversionTrackingError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "LongValue" => "LongValue", + "Money" => "Money", + "ComparableValue" => "ComparableValue", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "ConversionTrackerStats" => "ConversionTrackerStats", + "ConversionTrackerOperation" => "ConversionTrackerOperation", + "Operation" => "Operation", + "ConversionTrackerReturnValue" => "ConversionTrackerReturnValue", + "ListReturnValue" => "ListReturnValue", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ConversionTrackerPage" => "ConversionTrackerPage", + "NoStatsPage" => "NoStatsPage", + "Page" => "Page", + "Selector" => "Selector", + "AdWordsConversionTracker.MarkupLanguage" => "AdWordsConversionTrackerMarkupLanguage", + "AdWordsConversionTracker.TextFormat" => "AdWordsConversionTrackerTextFormat", + "AdWordsConversionTracker.TrackingCodeType" => "AdWordsConversionTrackerTrackingCodeType", + "AppConversion.AppConversionType" => "AppConversionAppConversionType", + "AppConversion.AppPlatform" => "AppConversionAppPlatform", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "ConversionTracker.Category" => "ConversionTrackerCategory", + "ConversionTracker.Status" => "ConversionTrackerStatus", + "ConversionTrackingError.Reason" => "ConversionTrackingErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/ConversionTrackerService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ConversionTrackerService::$classmap; + parent::__construct($wsdl, $options, $user, 'ConversionTrackerService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of the conversion trackers that match the selector. The + * actual objects contained in the page's list of entries will be specific + * subclasses of the abstract {@link ConversionTracker} class. + * + * @param serviceSelector The selector specifying the + * {@link ConversionTracker}s to return. + * @return List of conversion trackers specified by the selector. + * @throws com.google.ads.api.services.common.error.ApiException if problems + * occurred while retrieving results. + */ + public function get($serviceSelector) { + $arg = new ConversionTrackerServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET. + * + * + * + * Applies the list of mutate operations such as adding or updating conversion trackers. + *

Note: {@link ConversionTrackerOperation} does not support the + * REMOVE operator.

+ * + * @param operations A list of mutate operations to perform. + * @return The list of the conversion trackers as they appear after mutation, + * in the same order as they appeared in the list of operations. + * @throws com.google.ads.api.services.common.error.ApiException if problems + * occurred while updating the data. + */ + public function mutate($operations) { + $arg = new ConversionTrackerServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/CustomerService.php b/src/Google/Api/Ads/AdWords/v201306/CustomerService.php new file mode 100755 index 000000000..03a497d90 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/CustomerService.php @@ -0,0 +1,2119 @@ +authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +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.

+ * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Customer", FALSE)) { +/** + * Represents a customer for the CustomerService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Customer { + /** + * @access public + * @var integer + */ + public $customerId; + + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var string + */ + public $dateTimeZone; + + /** + * @access public + * @var string + */ + public $descriptiveName; + + /** + * @access public + * @var boolean + */ + public $canManageClients; + + /** + * @access public + * @var boolean + */ + public $testAccount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Customer"; + } + + public function __construct($customerId = NULL, $currencyCode = NULL, $dateTimeZone = NULL, $descriptiveName = NULL, $canManageClients = NULL, $testAccount = NULL) { + $this->customerId = $customerId; + $this->currencyCode = $currencyCode; + $this->dateTimeZone = $dateTimeZone; + $this->descriptiveName = $descriptiveName; + $this->canManageClients = $canManageClients; + $this->testAccount = $testAccount; + } +}} + +if (!class_exists("CustomerServiceGet", FALSE)) { +/** + * Returns details of the authorized customer. + * + * @return customer associated with the caller + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CustomerServiceGet { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomerServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CustomerServiceGetResponse { + /** + * @access public + * @var Customer + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("CustomerService", FALSE)) { +/** + * CustomerService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class CustomerService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "CustomerServiceGetResponse", + "get" => "CustomerServiceGet", + "mutate" => "CustomerServiceMutate", + "mutateResponse" => "CustomerServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DistinctError" => "DistinctError", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "OperatorError.Reason" => "OperatorErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "Customer" => "Customer", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/mcm/v201306/CustomerService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CustomerService::$classmap; + parent::__construct($wsdl, $options, $user, 'CustomerService', 'https://adwords.google.com/api/adwords/mcm/v201306'); + } + + /** + * Returns details of the authorized customer. + * + * @return customer associated with the caller + */ + public function get() { + $arg = new CustomerServiceGet(); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/CustomerSyncService.php b/src/Google/Api/Ads/AdWords/v201306/CustomerSyncService.php new file mode 100755 index 000000000..d420c0f8f --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/CustomerSyncService.php @@ -0,0 +1,2340 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * + * + * + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Indicates that this instance is a subtype of ApplicationException. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * + * + * + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * + * + * + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupChangeData", FALSE)) { +/** + * Holds information about a changed adgroup + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupChangeData { + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var tnsChangeStatus + */ + public $adGroupChangeStatus; + + /** + * @access public + * @var integer[] + */ + public $changedAds; + + /** + * @access public + * @var integer[] + */ + public $changedCriteria; + + /** + * @access public + * @var integer[] + */ + public $deletedCriteria; + + /** + * @access public + * @var integer[] + */ + public $changedFeeds; + + /** + * @access public + * @var integer[] + */ + public $deletedFeeds; + + /** + * @access public + * @var integer[] + */ + public $changedAdGroupBidModifierCriteria; + + /** + * @access public + * @var integer[] + */ + public $deletedAdGroupBidModifierCriteria; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupChangeData"; + } + + public function __construct($adGroupId = NULL, $adGroupChangeStatus = NULL, $changedAds = NULL, $changedCriteria = NULL, $deletedCriteria = NULL, $changedFeeds = NULL, $deletedFeeds = NULL, $changedAdGroupBidModifierCriteria = NULL, $deletedAdGroupBidModifierCriteria = NULL) { + $this->adGroupId = $adGroupId; + $this->adGroupChangeStatus = $adGroupChangeStatus; + $this->changedAds = $changedAds; + $this->changedCriteria = $changedCriteria; + $this->deletedCriteria = $deletedCriteria; + $this->changedFeeds = $changedFeeds; + $this->deletedFeeds = $deletedFeeds; + $this->changedAdGroupBidModifierCriteria = $changedAdGroupBidModifierCriteria; + $this->deletedAdGroupBidModifierCriteria = $deletedAdGroupBidModifierCriteria; + } +}} + +if (!class_exists("CampaignChangeData", FALSE)) { +/** + * Holds information about a changed campaign and any ad groups under + * that have changed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignChangeData { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var tnsChangeStatus + */ + public $campaignChangeStatus; + + /** + * @access public + * @var AdGroupChangeData[] + */ + public $changedAdGroups; + + /** + * @access public + * @var integer[] + */ + public $addedCampaignCriteria; + + /** + * @access public + * @var integer[] + */ + public $deletedCampaignCriteria; + + /** + * @access public + * @var integer[] + */ + public $addedAdExtensions; + + /** + * @access public + * @var integer[] + */ + public $deletedAdExtensions; + + /** + * @access public + * @var integer[] + */ + public $changedFeeds; + + /** + * @access public + * @var integer[] + */ + public $deletedFeeds; + + /** + * @access public + * @var boolean + */ + public $campaignTargetingChanged; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignChangeData"; + } + + public function __construct($campaignId = NULL, $campaignChangeStatus = NULL, $changedAdGroups = NULL, $addedCampaignCriteria = NULL, $deletedCampaignCriteria = NULL, $addedAdExtensions = NULL, $deletedAdExtensions = NULL, $changedFeeds = NULL, $deletedFeeds = NULL, $campaignTargetingChanged = NULL) { + $this->campaignId = $campaignId; + $this->campaignChangeStatus = $campaignChangeStatus; + $this->changedAdGroups = $changedAdGroups; + $this->addedCampaignCriteria = $addedCampaignCriteria; + $this->deletedCampaignCriteria = $deletedCampaignCriteria; + $this->addedAdExtensions = $addedAdExtensions; + $this->deletedAdExtensions = $deletedAdExtensions; + $this->changedFeeds = $changedFeeds; + $this->deletedFeeds = $deletedFeeds; + $this->campaignTargetingChanged = $campaignTargetingChanged; + } +}} + +if (!class_exists("CustomerSyncError", FALSE)) { +/** + * Represents CustomerSyncService specific errors + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CustomerSyncError extends ApiError { + /** + * @access public + * @var tnsCustomerSyncErrorReason + */ + public $reason; + + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomerSyncError"; + } + + public function __construct($reason = NULL, $campaignId = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->campaignId = $campaignId; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("FeedChangeData", FALSE)) { +/** + * Holds information about a changed feed and any feeds items within the feed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedChangeData { + /** + * @access public + * @var integer + */ + public $feedId; + + /** + * @access public + * @var tnsChangeStatus + */ + public $feedChangeStatus; + + /** + * @access public + * @var integer[] + */ + public $changedFeedItems; + + /** + * @access public + * @var integer[] + */ + public $deletedFeedItems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedChangeData"; + } + + public function __construct($feedId = NULL, $feedChangeStatus = NULL, $changedFeedItems = NULL, $deletedFeedItems = NULL) { + $this->feedId = $feedId; + $this->feedChangeStatus = $feedChangeStatus; + $this->changedFeedItems = $changedFeedItems; + $this->deletedFeedItems = $deletedFeedItems; + } +}} + +if (!class_exists("CustomerChangeData", FALSE)) { +/** + * Holds information about changes to a customer + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CustomerChangeData { + /** + * @access public + * @var CampaignChangeData[] + */ + public $changedCampaigns; + + /** + * @access public + * @var FeedChangeData[] + */ + public $changedFeeds; + + /** + * @access public + * @var string + */ + public $lastChangeTimestamp; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomerChangeData"; + } + + public function __construct($changedCampaigns = NULL, $changedFeeds = NULL, $lastChangeTimestamp = NULL) { + $this->changedCampaigns = $changedCampaigns; + $this->changedFeeds = $changedFeeds; + $this->lastChangeTimestamp = $lastChangeTimestamp; + } +}} + +if (!class_exists("CustomerSyncSelector", FALSE)) { +/** + * A filter for selecting change history data for a customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CustomerSyncSelector { + /** + * @access public + * @var DateTimeRange + */ + public $dateTimeRange; + + /** + * @access public + * @var integer[] + */ + public $campaignIds; + + /** + * @access public + * @var integer[] + */ + public $feedIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomerSyncSelector"; + } + + public function __construct($dateTimeRange = NULL, $campaignIds = NULL, $feedIds = NULL) { + $this->dateTimeRange = $dateTimeRange; + $this->campaignIds = $campaignIds; + $this->feedIds = $feedIds; + } +}} + +if (!class_exists("ChangeStatus", FALSE)) { +/** + * An enum used to classify the types of changes that have been made to + * an adgroup/campaign during a specified date range. This only refers + * to the field of the entity itself, and not its children. + * + * For example, if an AdGroup name changed, this status would be FIELDS_CHANGED, + * but if only bids on keywords belonging an AdGroup were changed this + * status would be FIELDS_UNCHANGED. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ChangeStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ChangeStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomerSyncErrorReason", FALSE)) { +/** + * The request attempted to access a campaign that either does not + * exist or belongs to a different account. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CustomerSyncErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomerSyncError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomerSyncServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns information about changed entities inside a customer's account. + * + * @param selector Specifies the filter for selecting changehistory events for a customer. + * @return A Customer->Campaign->AdGroup hierarchy containing information about the objects + * changed at each level. All Campaigns that are requested in the selector will be returned, + * regardless of whether or not they have changed, but unchanged AdGroups will be ignored. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CustomerSyncServiceGet { + /** + * @access public + * @var CustomerSyncSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("CustomerSyncServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CustomerSyncServiceGetResponse { + /** + * @access public + * @var CustomerChangeData + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("CustomerSyncService", FALSE)) { +/** + * CustomerSyncService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class CustomerSyncService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "CustomerSyncServiceGetResponse", + "get" => "CustomerSyncServiceGet", + "mutate" => "CustomerSyncServiceMutate", + "mutateResponse" => "CustomerSyncServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DateError" => "DateError", + "DateTimeRange" => "DateTimeRange", + "DistinctError" => "DistinctError", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "AdGroupChangeData" => "AdGroupChangeData", + "CampaignChangeData" => "CampaignChangeData", + "CustomerSyncError" => "CustomerSyncError", + "FeedChangeData" => "FeedChangeData", + "CustomerChangeData" => "CustomerChangeData", + "CustomerSyncSelector" => "CustomerSyncSelector", + "ChangeStatus" => "ChangeStatus", + "CustomerSyncError.Reason" => "CustomerSyncErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/ch/v201306/CustomerSyncService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CustomerSyncService::$classmap; + parent::__construct($wsdl, $options, $user, 'CustomerSyncService', 'https://adwords.google.com/api/adwords/ch/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns information about changed entities inside a customer's account. + * + * @param selector Specifies the filter for selecting changehistory events for a customer. + * @return A Customer->Campaign->AdGroup hierarchy containing information about the objects + * changed at each level. All Campaigns that are requested in the selector will be returned, + * regardless of whether or not they have changed, but unchanged AdGroups will be ignored. + */ + public function get($selector) { + $arg = new CustomerSyncServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/DataService.php b/src/Google/Api/Ads/AdWords/v201306/DataService.php new file mode 100755 index 000000000..978995b0e --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/DataService.php @@ -0,0 +1,3273 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BidLandscapeLandscapePoint", FALSE)) { +/** + * A set of estimates for a criterion's performance for a specific bid + * amount. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BidLandscapeLandscapePoint { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var integer + */ + public $clicks; + + /** + * @access public + * @var Money + */ + public $cost; + + /** + * @access public + * @var Money + */ + public $marginalCpc; + + /** + * @access public + * @var integer + */ + public $impressions; + + /** + * @access public + * @var integer + */ + public $promotedImpressions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidLandscape.LandscapePoint"; + } + + public function __construct($bid = NULL, $clicks = NULL, $cost = NULL, $marginalCpc = NULL, $impressions = NULL, $promotedImpressions = NULL) { + $this->bid = $bid; + $this->clicks = $clicks; + $this->cost = $cost; + $this->marginalCpc = $marginalCpc; + $this->impressions = $impressions; + $this->promotedImpressions = $promotedImpressions; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("DataEntry", FALSE)) { +/** + * The base class of all return types of the table service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DataEntry { + /** + * @access public + * @var string + */ + public $DataEntryType; + + private $_parameterMap = array ( + "DataEntry.Type" => "DataEntryType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DataEntry"; + } + + public function __construct($DataEntryType = NULL) { + $this->DataEntryType = $DataEntryType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupBidLandscapeType", FALSE)) { +/** + * Used to specify the type of {@code AdGroupLandscape} + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupBidLandscapeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidLandscape.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DataErrorReason", FALSE)) { +/** + * Reasons for error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DataErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DataError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getAdGroupBidLandscape", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of bid landscapes for the ad groups specified in the selector. + * + * @param serviceSelector Selects the entities to return bid landscapes for. + * @return A list of bid landscapes. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getAdGroupBidLandscape { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("getAdGroupBidLandscapeResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getAdGroupBidLandscapeResponse { + /** + * @access public + * @var AdGroupBidLandscapePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCriterionBidLandscape", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of bid landscapes for the criteria specified in the selector. + * + * @param serviceSelector Selects the entities to return bid landscapes for. + * @return A list of bid landscapes. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getCriterionBidLandscape { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("getCriterionBidLandscapeResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getCriterionBidLandscapeResponse { + /** + * @access public + * @var CriterionBidLandscapePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * Indicates that a field was rejected due to compatibility issues. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DataError", FALSE)) { +/** + * Represents errors thrown by the get operation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DataError extends ApiError { + /** + * @access public + * @var tnsDataErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DataError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BidLandscape", FALSE)) { +/** + * Represents data about a bid landscape for an ad group or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BidLandscape extends DataEntry { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var string + */ + public $startDate; + + /** + * @access public + * @var string + */ + public $endDate; + + /** + * @access public + * @var BidLandscapeLandscapePoint[] + */ + public $landscapePoints; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidLandscape"; + } + + public function __construct($campaignId = NULL, $adGroupId = NULL, $startDate = NULL, $endDate = NULL, $landscapePoints = NULL, $DataEntryType = NULL) { + parent::__construct(); + $this->campaignId = $campaignId; + $this->adGroupId = $adGroupId; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->landscapePoints = $landscapePoints; + $this->DataEntryType = $DataEntryType; + } +}} + +if (!class_exists("NoStatsPage", FALSE)) { +/** + * Base class for Get results for a page of entities that do not use statistics. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NoStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NoStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupBidLandscape", FALSE)) { +/** + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupBidLandscape extends BidLandscape { + /** + * @access public + * @var tnsAdGroupBidLandscapeType + */ + public $type; + + /** + * @access public + * @var boolean + */ + public $landscapeCurrent; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidLandscape"; + } + + public function __construct($type = NULL, $landscapeCurrent = NULL, $campaignId = NULL, $adGroupId = NULL, $startDate = NULL, $endDate = NULL, $landscapePoints = NULL, $DataEntryType = NULL) { + parent::__construct(); + $this->type = $type; + $this->landscapeCurrent = $landscapeCurrent; + $this->campaignId = $campaignId; + $this->adGroupId = $adGroupId; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->landscapePoints = $landscapePoints; + $this->DataEntryType = $DataEntryType; + } +}} + +if (!class_exists("CriterionBidLandscape", FALSE)) { +/** + * The bid landscape for a criterion. A bid landscape estimates how a + * a criterion will perform based on different bid amounts. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionBidLandscape extends BidLandscape { + /** + * @access public + * @var integer + */ + public $criterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionBidLandscape"; + } + + public function __construct($criterionId = NULL, $campaignId = NULL, $adGroupId = NULL, $startDate = NULL, $endDate = NULL, $landscapePoints = NULL, $DataEntryType = NULL) { + parent::__construct(); + $this->criterionId = $criterionId; + $this->campaignId = $campaignId; + $this->adGroupId = $adGroupId; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->landscapePoints = $landscapePoints; + $this->DataEntryType = $DataEntryType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("AdGroupBidLandscapePage", FALSE)) { +/** + * Contains a subset of {@link AdGroupBidLandscape} objects resulting from the + * filtering and paging of + * {@link com.google.ads.api.services.campaignmgmt.data.DataService#getAdGroupBidLandscape} + * call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupBidLandscapePage extends NoStatsPage { + /** + * @access public + * @var AdGroupBidLandscape[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidLandscapePage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("CriterionBidLandscapePage", FALSE)) { +/** + * Contains a subset of {@link CriterionBidLandscapePage} objects resulting from the + * filtering and paging of + * {@link com.google.ads.api.services.campaignmgmt.data.DataService#getCriterionBidLandscape} + * call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionBidLandscapePage extends NoStatsPage { + /** + * @access public + * @var CriterionBidLandscape[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionBidLandscapePage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("DataService", FALSE)) { +/** + * DataService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class DataService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "DataServiceGetResponse", + "get" => "DataServiceGet", + "mutate" => "DataServiceMutate", + "mutateResponse" => "DataServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdGroupBidLandscape" => "AdGroupBidLandscape", + "BidLandscape" => "BidLandscape", + "AdxError" => "AdxError", + "ApiError" => "ApiError", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "ClientTermsError" => "ClientTermsError", + "CriterionBidLandscape" => "CriterionBidLandscape", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "LongValue" => "LongValue", + "Money" => "Money", + "ComparableValue" => "ComparableValue", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DataError" => "DataError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "BidLandscape.LandscapePoint" => "BidLandscapeLandscapePoint", + "Selector" => "Selector", + "DataEntry" => "DataEntry", + "AdGroupBidLandscapePage" => "AdGroupBidLandscapePage", + "NoStatsPage" => "NoStatsPage", + "CriterionBidLandscapePage" => "CriterionBidLandscapePage", + "Page" => "Page", + "AdGroupBidLandscape.Type" => "AdGroupBidLandscapeType", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + "DataError.Reason" => "DataErrorReason", + "getAdGroupBidLandscape" => "getAdGroupBidLandscape", + "getAdGroupBidLandscapeResponse" => "getAdGroupBidLandscapeResponse", + "getCriterionBidLandscape" => "getCriterionBidLandscape", + "getCriterionBidLandscapeResponse" => "getCriterionBidLandscapeResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/DataService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = DataService::$classmap; + parent::__construct($wsdl, $options, $user, 'DataService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of bid landscapes for the ad groups specified in the selector. + * + * @param serviceSelector Selects the entities to return bid landscapes for. + * @return A list of bid landscapes. + * @throws ApiException when there is at least one error with the request. + */ + public function getAdGroupBidLandscape($serviceSelector) { + $arg = new getAdGroupBidLandscape($serviceSelector); + $result = $this->__soapCall("getAdGroupBidLandscape", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of bid landscapes for the criteria specified in the selector. + * + * @param serviceSelector Selects the entities to return bid landscapes for. + * @return A list of bid landscapes. + * @throws ApiException when there is at least one error with the request. + */ + public function getCriterionBidLandscape($serviceSelector) { + $arg = new getCriterionBidLandscape($serviceSelector); + $result = $this->__soapCall("getCriterionBidLandscape", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/ExperimentService.php b/src/Google/Api/Ads/AdWords/v201306/ExperimentService.php new file mode 100755 index 000000000..dab7eb231 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/ExperimentService.php @@ -0,0 +1,3485 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("ExperimentSummaryStats", FALSE)) { +/** + * Contains how many changes were made associated with an experiment at + * the adgroup, critieria and creative levels + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentSummaryStats { + /** + * @access public + * @var integer + */ + public $adGroupsCount; + + /** + * @access public + * @var integer + */ + public $adGroupCriteriaCount; + + /** + * @access public + * @var integer + */ + public $adGroupAdsCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentSummaryStats"; + } + + public function __construct($adGroupsCount = NULL, $adGroupCriteriaCount = NULL, $adGroupAdsCount = NULL) { + $this->adGroupsCount = $adGroupsCount; + $this->adGroupCriteriaCount = $adGroupCriteriaCount; + $this->adGroupAdsCount = $adGroupAdsCount; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Experiment", FALSE)) { +/** + * Class representing a experiment for the ExperimentService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Experiment { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $controlId; + + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsExperimentStatus + */ + public $status; + + /** + * @access public + * @var tnsExperimentServingStatus + */ + public $servingStatus; + + /** + * @access public + * @var integer + */ + public $queryPercentage; + + /** + * @access public + * @var string + */ + public $startDateTime; + + /** + * @access public + * @var string + */ + public $endDateTime; + + /** + * @access public + * @var string + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var ExperimentSummaryStats + */ + public $experimentSummaryStats; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Experiment"; + } + + public function __construct($id = NULL, $controlId = NULL, $campaignId = NULL, $name = NULL, $status = NULL, $servingStatus = NULL, $queryPercentage = NULL, $startDateTime = NULL, $endDateTime = NULL, $lastModifiedDateTime = NULL, $experimentSummaryStats = NULL) { + $this->id = $id; + $this->controlId = $controlId; + $this->campaignId = $campaignId; + $this->name = $name; + $this->status = $status; + $this->servingStatus = $servingStatus; + $this->queryPercentage = $queryPercentage; + $this->startDateTime = $startDateTime; + $this->endDateTime = $endDateTime; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->experimentSummaryStats = $experimentSummaryStats; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetErrorReason", FALSE)) { +/** + * The reasons for the budget error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentServiceErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentServiceErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentServiceError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentServingStatus", FALSE)) { +/** + * Experiment is currently active and receiving traffic + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentServingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentServingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentStatus", FALSE)) { +/** + * Experiment status. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The reasons for the quota error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of experiments specified by the experiment selector from + * the customer's account. + * @param serviceSelector The selector specifying the {@link Experiment}s to return. + * If selector is empty, all experiments are returned. + * @return List of experiments meeting all the criteria of each selector. + * @throws ApiException if problems occurred while fetching experiment information. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("ExperimentServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentServiceGetResponse { + /** + * @access public + * @var ExperimentPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ExperimentServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET. + * + * + * + * Mutates (add, update or remove) experiments. + * Note: To REMOVE use SET and mark status to DELETED. + * @param operations A list of unique operations. + * The same experiment cannot be specified in more than one operation. + * @return The updated experiments. The list of experiments is returned in + * the same order in which it came in as input. + * @throws ApiException if problems occurred while updating experiment information. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentServiceMutate { + /** + * @access public + * @var ExperimentOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("ExperimentServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentServiceMutateResponse { + /** + * @access public + * @var ExperimentReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BudgetError", FALSE)) { +/** + * A list of all the error codes being used by the common budget domain package. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetError extends ApiError { + /** + * @access public + * @var tnsBudgetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ExperimentServiceError", FALSE)) { +/** + * Base error class for Experiment Service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentServiceError extends ApiError { + /** + * @access public + * @var tnsExperimentServiceErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentServiceError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * Errors that are thrown if a quota limit is exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + public function __construct($reason = NULL, $limit = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->limit = $limit; + $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * Indicates that a field was rejected due to compatibility issues. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ExperimentOperation", FALSE)) { +/** + * Operation for adding, updating or removing operations. For removing, + * use SET and mark status as DELETED. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentOperation extends Operation { + /** + * @access public + * @var Experiment + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("ExperimentReturnValue", FALSE)) { +/** + * A container for return values from the ExperimentService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentReturnValue extends ListReturnValue { + /** + * @access public + * @var Experiment[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ExperimentPage", FALSE)) { +/** + * Contains a subset of experiment resulting from the filtering and paging of the + * {@link com.google.ads.api.services.campaignmgmt.campaign.ExperimentService#get} call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentPage extends Page { + /** + * @access public + * @var Experiment[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("ExperimentService", FALSE)) { +/** + * ExperimentService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class ExperimentService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "ExperimentServiceGetResponse", + "get" => "ExperimentServiceGet", + "mutate" => "ExperimentServiceMutate", + "mutateResponse" => "ExperimentServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdxError" => "AdxError", + "ApiError" => "ApiError", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BudgetError" => "BudgetError", + "ClientTermsError" => "ClientTermsError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityNotFound" => "EntityNotFound", + "ExperimentServiceError" => "ExperimentServiceError", + "ExperimentSummaryStats" => "ExperimentSummaryStats", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "Experiment" => "Experiment", + "ExperimentOperation" => "ExperimentOperation", + "Operation" => "Operation", + "ExperimentReturnValue" => "ExperimentReturnValue", + "ListReturnValue" => "ListReturnValue", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ExperimentPage" => "ExperimentPage", + "Page" => "Page", + "Selector" => "Selector", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BudgetError.Reason" => "BudgetErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "ExperimentServiceError.Reason" => "ExperimentServiceErrorReason", + "ExperimentServingStatus" => "ExperimentServingStatus", + "ExperimentStatus" => "ExperimentStatus", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/ExperimentService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ExperimentService::$classmap; + parent::__construct($wsdl, $options, $user, 'ExperimentService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of experiments specified by the experiment selector from + * the customer's account. + * @param serviceSelector The selector specifying the {@link Experiment}s to return. + * If selector is empty, all experiments are returned. + * @return List of experiments meeting all the criteria of each selector. + * @throws ApiException if problems occurred while fetching experiment information. + */ + public function get($serviceSelector) { + $arg = new ExperimentServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET. + * + * + * + * Mutates (add, update or remove) experiments. + * Note: To REMOVE use SET and mark status to DELETED. + * @param operations A list of unique operations. + * The same experiment cannot be specified in more than one operation. + * @return The updated experiments. The list of experiments is returned in + * the same order in which it came in as input. + * @throws ApiException if problems occurred while updating experiment information. + */ + public function mutate($operations) { + $arg = new ExperimentServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/FeedItemService.php b/src/Google/Api/Ads/AdWords/v201306/FeedItemService.php new file mode 100755 index 000000000..e4953d3dc --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/FeedItemService.php @@ -0,0 +1,3585 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("FeedItemAttributeError", FALSE)) { +/** + * Contains validation error details for a set of feed attributes. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemAttributeError { + /** + * @access public + * @var integer[] + */ + public $feedAttributeIds; + + /** + * @access public + * @var integer + */ + public $validationErrorCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemAttributeError"; + } + + public function __construct($feedAttributeIds = NULL, $validationErrorCode = NULL) { + $this->feedAttributeIds = $feedAttributeIds; + $this->validationErrorCode = $validationErrorCode; + } +}} + +if (!class_exists("FeedItemAttributeValue", FALSE)) { +/** + * Represents a feed item's value for a particular feed attribute. A feed item's value is + * composed of a collection of these attribute values. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemAttributeValue { + /** + * @access public + * @var integer + */ + public $feedAttributeId; + + /** + * @access public + * @var integer + */ + public $integerValue; + + /** + * @access public + * @var double + */ + public $doubleValue; + + /** + * @access public + * @var boolean + */ + public $booleanValue; + + /** + * @access public + * @var string + */ + public $stringValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemAttributeValue"; + } + + public function __construct($feedAttributeId = NULL, $integerValue = NULL, $doubleValue = NULL, $booleanValue = NULL, $stringValue = NULL) { + $this->feedAttributeId = $feedAttributeId; + $this->integerValue = $integerValue; + $this->doubleValue = $doubleValue; + $this->booleanValue = $booleanValue; + $this->stringValue = $stringValue; + } +}} + +if (!class_exists("FeedItemDevicePreference", FALSE)) { +/** + * Represents a FeedItem device preference. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemDevicePreference { + /** + * @access public + * @var integer + */ + public $devicePreference; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemDevicePreference"; + } + + public function __construct($devicePreference = NULL) { + $this->devicePreference = $devicePreference; + } +}} + +if (!class_exists("FeedItemSchedule", FALSE)) { +/** + * Represents a FeedItem schedule, which specifies a time interval on a given day + * when the feed item may serve. The FeedItemSchedule times are in the account's time zone. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemSchedule { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var integer + */ + public $startHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $startMinute; + + /** + * @access public + * @var integer + */ + public $endHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $endMinute; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemSchedule"; + } + + public function __construct($dayOfWeek = NULL, $startHour = NULL, $startMinute = NULL, $endHour = NULL, $endMinute = NULL) { + $this->dayOfWeek = $dayOfWeek; + $this->startHour = $startHour; + $this->startMinute = $startMinute; + $this->endHour = $endHour; + $this->endMinute = $endMinute; + } +}} + +if (!class_exists("FeedItemScheduling", FALSE)) { +/** + * Represents a collection of FeedItem schedules specifying all time intervals for which + * the feed item may serve. Any time range not covered by the specified FeedItemSchedules will + * prevent the feed item from serving during those times. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemScheduling { + /** + * @access public + * @var FeedItemSchedule[] + */ + public $feedItemSchedules; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemScheduling"; + } + + public function __construct($feedItemSchedules = NULL) { + $this->feedItemSchedules = $feedItemSchedules; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("FeedItemValidationDetail", FALSE)) { +/** + * Contains offline-validation and approval results for a given FeedItem and FeedMapping. Each + * validation detail indicates any issues found on the feed item when used in the context + * of the feed mapping. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemValidationDetail { + /** + * @access public + * @var integer + */ + public $feedMappingId; + + /** + * @access public + * @var tnsFeedItemValidationDetailValidationStatus + */ + public $validationStatus; + + /** + * @access public + * @var FeedItemAttributeError[] + */ + public $validationErrors; + + /** + * @access public + * @var tnsFeedItemValidationDetailApprovalStatus + */ + public $approvalStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemValidationDetail"; + } + + public function __construct($feedMappingId = NULL, $validationStatus = NULL, $validationErrors = NULL, $approvalStatus = NULL) { + $this->feedMappingId = $feedMappingId; + $this->validationStatus = $validationStatus; + $this->validationErrors = $validationErrors; + $this->approvalStatus = $approvalStatus; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("FeedItem", FALSE)) { +/** + * Represents an item in a feed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItem { + /** + * @access public + * @var integer + */ + public $feedId; + + /** + * @access public + * @var integer + */ + public $feedItemId; + + /** + * @access public + * @var tnsFeedItemStatus + */ + public $status; + + /** + * @access public + * @var string + */ + public $startTime; + + /** + * @access public + * @var string + */ + public $endTime; + + /** + * @access public + * @var FeedItemAttributeValue[] + */ + public $attributeValues; + + /** + * @access public + * @var FeedItemValidationDetail[] + */ + public $validationDetails; + + /** + * @access public + * @var FeedItemDevicePreference + */ + public $devicePreference; + + /** + * @access public + * @var FeedItemScheduling + */ + public $scheduling; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItem"; + } + + public function __construct($feedId = NULL, $feedItemId = NULL, $status = NULL, $startTime = NULL, $endTime = NULL, $attributeValues = NULL, $validationDetails = NULL, $devicePreference = NULL, $scheduling = NULL) { + $this->feedId = $feedId; + $this->feedItemId = $feedItemId; + $this->status = $status; + $this->startTime = $startTime; + $this->endTime = $endTime; + $this->attributeValues = $attributeValues; + $this->validationDetails = $validationDetails; + $this->devicePreference = $devicePreference; + $this->scheduling = $scheduling; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayOfWeek", FALSE)) { +/** + * Days of the week. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DayOfWeek { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayOfWeek"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemStatus", FALSE)) { +/** + * Feed item is active + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItem.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemErrorReason", FALSE)) { +/** + * The reasons for the error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemValidationDetailApprovalStatus", FALSE)) { +/** + * Feed item approval status. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemValidationDetailApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemValidationDetail.ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemValidationDetailValidationStatus", FALSE)) { +/** + * Feed item validation status. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemValidationDetailValidationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemValidationDetail.ValidationStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MinuteOfHour", FALSE)) { +/** + * Minutes in an hour. Currently only 0, 15, 30, and 45 are supported + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MinuteOfHour { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MinuteOfHour"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of FeedItems that meet the selector criteria. + * + * @param selector Determines which FeedItems to return. If empty all + * FeedItems are returned. + * @return The list of FeedItems. + * @throws ApiException Indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("FeedItemServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemServiceGetResponse { + /** + * @access public + * @var FeedItemPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("FeedItemServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Add, remove, and set FeedItems. + * + * @param operations The operations to apply. + * @return The resulting FeedItems. + * @throws ApiException Indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemServiceMutate { + /** + * @access public + * @var FeedItemOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("FeedItemServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemServiceMutateResponse { + /** + * @access public + * @var FeedItemReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("FeedItemError", FALSE)) { +/** + * FeedItemService related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemError extends ApiError { + /** + * @access public + * @var tnsFeedItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("FeedItemOperation", FALSE)) { +/** + * FeedItem service mutate operation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemOperation extends Operation { + /** + * @access public + * @var FeedItem + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("FeedItemReturnValue", FALSE)) { +/** + * A container for return values from FeedItemService.mutate(). + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemReturnValue extends ListReturnValue { + /** + * @access public + * @var FeedItem[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("NullStatsPage", FALSE)) { +/** + * Base class for Get results for a page of entities that do not use statistics, + * but still require a specific type paramter for {@link StatsEntry} + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("FeedItemPage", FALSE)) { +/** + * Contains a subset of feed items resulting from a {@link FeedItemService#get} call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemPage extends NullStatsPage { + /** + * @access public + * @var FeedItem[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("FeedItemService", FALSE)) { +/** + * FeedItemService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class FeedItemService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "FeedItemServiceGetResponse", + "get" => "FeedItemServiceGet", + "mutate" => "FeedItemServiceMutate", + "mutateResponse" => "FeedItemServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "ClientTermsError" => "ClientTermsError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "FeedItemAttributeError" => "FeedItemAttributeError", + "FeedItemAttributeValue" => "FeedItemAttributeValue", + "FeedItemDevicePreference" => "FeedItemDevicePreference", + "FeedItemError" => "FeedItemError", + "FeedItemSchedule" => "FeedItemSchedule", + "FeedItemScheduling" => "FeedItemScheduling", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "FeedItemValidationDetail" => "FeedItemValidationDetail", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "FeedItem" => "FeedItem", + "FeedItemOperation" => "FeedItemOperation", + "Operation" => "Operation", + "FeedItemPage" => "FeedItemPage", + "NullStatsPage" => "NullStatsPage", + "FeedItemReturnValue" => "FeedItemReturnValue", + "ListReturnValue" => "ListReturnValue", + "Page" => "Page", + "Selector" => "Selector", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DayOfWeek" => "DayOfWeek", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "FeedItem.Status" => "FeedItemStatus", + "FeedItemError.Reason" => "FeedItemErrorReason", + "FeedItemValidationDetail.ApprovalStatus" => "FeedItemValidationDetailApprovalStatus", + "FeedItemValidationDetail.ValidationStatus" => "FeedItemValidationDetailValidationStatus", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "MinuteOfHour" => "MinuteOfHour", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/FeedItemService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = FeedItemService::$classmap; + parent::__construct($wsdl, $options, $user, 'FeedItemService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of FeedItems that meet the selector criteria. + * + * @param selector Determines which FeedItems to return. If empty all + * FeedItems are returned. + * @return The list of FeedItems. + * @throws ApiException Indicates a problem with the request. + */ + public function get($selector) { + $arg = new FeedItemServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Add, remove, and set FeedItems. + * + * @param operations The operations to apply. + * @return The resulting FeedItems. + * @throws ApiException Indicates a problem with the request. + */ + public function mutate($operations) { + $arg = new FeedItemServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/FeedMappingService.php b/src/Google/Api/Ads/AdWords/v201306/FeedMappingService.php new file mode 100755 index 000000000..e7e75b2a0 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/FeedMappingService.php @@ -0,0 +1,2961 @@ +For a list of feed placeholders, see + * + * https://developers.google.com/adwords/api/docs/appendix/placeholders + *

+ * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AttributeFieldMapping { + /** + * @access public + * @var integer + */ + public $feedAttributeId; + + /** + * @access public + * @var integer + */ + public $fieldId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AttributeFieldMapping"; + } + + public function __construct($feedAttributeId = NULL, $fieldId = NULL) { + $this->feedAttributeId = $feedAttributeId; + $this->fieldId = $fieldId; + } +}} + +if (!class_exists("DateRange", FALSE)) { +/** + * Represents a range of dates that has either an upper or a lower bound. + * The format for the date is YYYYMMDD. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("FeedMapping", FALSE)) { +/** + * A FeedMapping represents a mapping between feed attributes in a specific feed + * and placeholder fields for a specific placeholder type. This will tell the + * ads serving system which parts of the feed item should be used when + * populating a placeholder. Without this mapping the placeholder cannot be + * populated and the extension can not be displayed. + * + *

For a list of feed placeholders, see + * + * https://developers.google.com/adwords/api/docs/appendix/placeholders + *

+ * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedMapping { + /** + * @access public + * @var integer + */ + public $feedMappingId; + + /** + * @access public + * @var integer + */ + public $feedId; + + /** + * @access public + * @var integer + */ + public $placeholderType; + + /** + * @access public + * @var tnsFeedMappingStatus + */ + public $status; + + /** + * @access public + * @var AttributeFieldMapping[] + */ + public $attributeFieldMappings; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedMapping"; + } + + public function __construct($feedMappingId = NULL, $feedId = NULL, $placeholderType = NULL, $status = NULL, $attributeFieldMappings = NULL) { + $this->feedMappingId = $feedMappingId; + $this->feedId = $feedId; + $this->placeholderType = $placeholderType; + $this->status = $status; + $this->attributeFieldMappings = $attributeFieldMappings; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedMappingStatus", FALSE)) { +/** + * This mapping is used in feeds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedMappingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedMapping.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedMappingErrorReason", FALSE)) { +/** + * The given placeholder field does not exist. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedMappingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedMappingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedMappingServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of FeedMappings that meet the selector criteria. + * + * @param selector Determines which FeedMappings to return. If empty all + * FeedMappings are returned. + * @return The list of FeedMappings. + * @throws ApiException indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedMappingServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("FeedMappingServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedMappingServiceGetResponse { + /** + * @access public + * @var FeedMappingPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("FeedMappingServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, REMOVE. + * + * + * + * Add and remove FeedMappings. + * + * @param operations The operations to apply. + * @return The resulting FeedMappings. + * @throws ApiException indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedMappingServiceMutate { + /** + * @access public + * @var FeedMappingOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("FeedMappingServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedMappingServiceMutateResponse { + /** + * @access public + * @var FeedMappingReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("FeedMappingError", FALSE)) { +/** + * Errors caused by invalid usage of FeedMappingService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedMappingError extends ApiError { + /** + * @access public + * @var tnsFeedMappingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedMappingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("FeedMappingOperation", FALSE)) { +/** + * Operation used to create a FeedMapping. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedMappingOperation extends Operation { + /** + * @access public + * @var FeedMapping + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedMappingOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("FeedMappingReturnValue", FALSE)) { +/** + * The result of a call to {@link FeedMappingService#mutate}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedMappingReturnValue extends ListReturnValue { + /** + * @access public + * @var FeedMapping[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedMappingReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NullStatsPage", FALSE)) { +/** + * Base class for Get results for a page of entities that do not use statistics, + * but still require a specific type paramter for {@link StatsEntry} + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("FeedMappingPage", FALSE)) { +/** + * The result of a call to {@link FeedMappingService#get}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedMappingPage extends NullStatsPage { + /** + * @access public + * @var FeedMapping[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedMappingPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("FeedMappingService", FALSE)) { +/** + * FeedMappingService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class FeedMappingService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "FeedMappingServiceGetResponse", + "get" => "FeedMappingServiceGet", + "mutate" => "FeedMappingServiceMutate", + "mutateResponse" => "FeedMappingServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AttributeFieldMapping" => "AttributeFieldMapping", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityNotFound" => "EntityNotFound", + "FeedMapping" => "FeedMapping", + "FeedMappingError" => "FeedMappingError", + "FeedMappingOperation" => "FeedMappingOperation", + "Operation" => "Operation", + "FeedMappingPage" => "FeedMappingPage", + "NullStatsPage" => "NullStatsPage", + "FeedMappingReturnValue" => "FeedMappingReturnValue", + "ListReturnValue" => "ListReturnValue", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "Page" => "Page", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Selector" => "Selector", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "FeedMapping.Status" => "FeedMappingStatus", + "FeedMappingError.Reason" => "FeedMappingErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/FeedMappingService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = FeedMappingService::$classmap; + parent::__construct($wsdl, $options, $user, 'FeedMappingService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of FeedMappings that meet the selector criteria. + * + * @param selector Determines which FeedMappings to return. If empty all + * FeedMappings are returned. + * @return The list of FeedMappings. + * @throws ApiException indicates a problem with the request. + */ + public function get($selector) { + $arg = new FeedMappingServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, REMOVE. + * + * + * + * Add and remove FeedMappings. + * + * @param operations The operations to apply. + * @return The resulting FeedMappings. + * @throws ApiException indicates a problem with the request. + */ + public function mutate($operations) { + $arg = new FeedMappingServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/FeedService.php b/src/Google/Api/Ads/AdWords/v201306/FeedService.php new file mode 100755 index 000000000..d84c99e52 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/FeedService.php @@ -0,0 +1,3187 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("FeedAttribute", FALSE)) { +/** + * FeedAttributes define the types of data expected to be present in a Feed. A single FeedAttribute + * specifies the expected type of the FeedItemAttributes with the same FeedAttributeId. Optionally, + * a FeedAttribute can be marked as being part of a FeedItem's unique key. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedAttribute { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsFeedAttributeType + */ + public $type; + + /** + * @access public + * @var boolean + */ + public $isPartOfKey; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedAttribute"; + } + + public function __construct($id = NULL, $name = NULL, $type = NULL, $isPartOfKey = NULL) { + $this->id = $id; + $this->name = $name; + $this->type = $type; + $this->isPartOfKey = $isPartOfKey; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Feed", FALSE)) { +/** + * A Feed identifies a source of data and its schema. The data for the Feed can either be + * user-entered via the FeedItemService or system-generated, in which case the data is provided + * automatically. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Feed { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var FeedAttribute[] + */ + public $attributes; + + /** + * @access public + * @var tnsFeedStatus + */ + public $status; + + /** + * @access public + * @var tnsFeedOrigin + */ + public $origin; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Feed"; + } + + public function __construct($id = NULL, $name = NULL, $attributes = NULL, $status = NULL, $origin = NULL) { + $this->id = $id; + $this->name = $name; + $this->attributes = $attributes; + $this->status = $status; + $this->origin = $origin; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedOrigin", FALSE)) { +/** + * The creator of the {@link Feed}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedOrigin { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Feed.Origin"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedStatus", FALSE)) { +/** + * Status of the Feed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Feed.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedAttributeType", FALSE)) { +/** + * Possible data types. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedAttributeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedAttribute.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedErrorReason", FALSE)) { +/** + * Error reasons. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of Feeds that meet the selector criteria. + * + * @param selector Determines which Feeds to return. If empty all + * Feeds are returned. + * @return The list of Feeds. + * @throws ApiException Indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("FeedServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedServiceGetResponse { + /** + * @access public + * @var FeedPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("FeedServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Add, remove, and set Feeds. + * + * @param operations The operations to apply. + * @return The resulting Feeds. + * @throws ApiException Indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedServiceMutate { + /** + * @access public + * @var FeedOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("FeedServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedServiceMutateResponse { + /** + * @access public + * @var FeedReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("FeedError", FALSE)) { +/** + * An error caused by an invalid Feed in a FeedService request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedError extends ApiError { + /** + * @access public + * @var tnsFeedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("FeedOperation", FALSE)) { +/** + * Operation used to create or mutate a Feed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedOperation extends Operation { + /** + * @access public + * @var Feed + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("FeedReturnValue", FALSE)) { +/** + * The result of a call to FeedService#mutate. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedReturnValue extends ListReturnValue { + /** + * @access public + * @var Feed[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("NullStatsPage", FALSE)) { +/** + * Base class for Get results for a page of entities that do not use statistics, + * but still require a specific type paramter for {@link StatsEntry} + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("FeedPage", FALSE)) { +/** + * The result of a call to FeedService#get. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedPage extends NullStatsPage { + /** + * @access public + * @var Feed[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("FeedService", FALSE)) { +/** + * FeedService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class FeedService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "FeedServiceGetResponse", + "get" => "FeedServiceGet", + "mutate" => "FeedServiceMutate", + "mutateResponse" => "FeedServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "FeedAttribute" => "FeedAttribute", + "FeedError" => "FeedError", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Feed" => "Feed", + "FeedOperation" => "FeedOperation", + "Operation" => "Operation", + "FeedPage" => "FeedPage", + "NullStatsPage" => "NullStatsPage", + "FeedReturnValue" => "FeedReturnValue", + "ListReturnValue" => "ListReturnValue", + "Page" => "Page", + "Selector" => "Selector", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "Feed.Origin" => "FeedOrigin", + "Feed.Status" => "FeedStatus", + "FeedAttribute.Type" => "FeedAttributeType", + "FeedError.Reason" => "FeedErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/FeedService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = FeedService::$classmap; + parent::__construct($wsdl, $options, $user, 'FeedService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of Feeds that meet the selector criteria. + * + * @param selector Determines which Feeds to return. If empty all + * Feeds are returned. + * @return The list of Feeds. + * @throws ApiException Indicates a problem with the request. + */ + public function get($selector) { + $arg = new FeedServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Add, remove, and set Feeds. + * + * @param operations The operations to apply. + * @return The resulting Feeds. + * @throws ApiException Indicates a problem with the request. + */ + public function mutate($operations) { + $arg = new FeedServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/GeoLocationService.php b/src/Google/Api/Ads/AdWords/v201306/GeoLocationService.php new file mode 100755 index 000000000..2cd4434fa --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/GeoLocationService.php @@ -0,0 +1,2165 @@ +streetAddress = $streetAddress; + $this->streetAddress2 = $streetAddress2; + $this->cityName = $cityName; + $this->provinceCode = $provinceCode; + $this->provinceName = $provinceName; + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + } +}} + +if (!class_exists("GeoLocationSelector", FALSE)) { +/** + * A selector used to fetch geographic coordinates for given addresses. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GeoLocationSelector { + /** + * @access public + * @var Address[] + */ + public $addresses; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoLocationSelector"; + } + + public function __construct($addresses = NULL) { + $this->addresses = $addresses; + } +}} + +if (!class_exists("GeoPoint", FALSE)) { +/** + * Specifies a geo location with the supplied latitude/longitude. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GeoPoint { + /** + * @access public + * @var integer + */ + public $latitudeInMicroDegrees; + + /** + * @access public + * @var integer + */ + public $longitudeInMicroDegrees; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoPoint"; + } + + public function __construct($latitudeInMicroDegrees = NULL, $longitudeInMicroDegrees = NULL) { + $this->latitudeInMicroDegrees = $latitudeInMicroDegrees; + $this->longitudeInMicroDegrees = $longitudeInMicroDegrees; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("GeoLocation", FALSE)) { +/** + * Class representing a location with its geographic coordinates. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GeoLocation { + /** + * @access public + * @var GeoPoint + */ + public $geoPoint; + + /** + * @access public + * @var Address + */ + public $address; + + /** + * @access public + * @var base64Binary + */ + public $encodedLocation; + + /** + * @access public + * @var string + */ + public $GeoLocationType; + + private $_parameterMap = array ( + "GeoLocation.Type" => "GeoLocationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoLocation"; + } + + public function __construct($geoPoint = NULL, $address = NULL, $encodedLocation = NULL, $GeoLocationType = NULL) { + $this->geoPoint = $geoPoint; + $this->address = $address; + $this->encodedLocation = $encodedLocation; + $this->GeoLocationType = $GeoLocationType; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoLocationErrorReason", FALSE)) { +/** + * The reasons for the geolocation errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GeoLocationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoLocationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegionCodeErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RegionCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoLocationServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Retrieves the geographic location information for the address specified. + * + * @param selector specifies the addresses. + * @return list of {@link GeoLocation} objects. Returns {@link InvalidGeoLocation} object if + * the address cannot be geocoded. + * @throws ApiException if problems occurred while retrieving the location information + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GeoLocationServiceGet { + /** + * @access public + * @var GeoLocationSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("GeoLocationServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GeoLocationServiceGetResponse { + /** + * @access public + * @var GeoLocation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("GeoLocationError", FALSE)) { +/** + * Errors for {@link GeoLocationService}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GeoLocationError extends ApiError { + /** + * @access public + * @var tnsGeoLocationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoLocationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("InvalidGeoLocation", FALSE)) { +/** + * Invalid GeoLocation object. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InvalidGeoLocation extends GeoLocation { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidGeoLocation"; + } + + public function __construct($geoPoint = NULL, $address = NULL, $encodedLocation = NULL, $GeoLocationType = NULL) { + parent::__construct(); + $this->geoPoint = $geoPoint; + $this->address = $address; + $this->encodedLocation = $encodedLocation; + $this->GeoLocationType = $GeoLocationType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RegionCodeError", FALSE)) { +/** + * A list of all errors associated with the @RegionCode constraints. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RegionCodeError extends ApiError { + /** + * @access public + * @var tnsRegionCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("GeoLocationService", FALSE)) { +/** + * GeoLocationService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class GeoLocationService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "GeoLocationServiceGetResponse", + "get" => "GeoLocationServiceGet", + "mutate" => "GeoLocationServiceMutate", + "mutateResponse" => "GeoLocationServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "Address" => "Address", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DistinctError" => "DistinctError", + "GeoLocationError" => "GeoLocationError", + "GeoLocationSelector" => "GeoLocationSelector", + "GeoPoint" => "GeoPoint", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "InvalidGeoLocation" => "InvalidGeoLocation", + "GeoLocation" => "GeoLocation", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RegionCodeError" => "RegionCodeError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "GeoLocationError.Reason" => "GeoLocationErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RegionCodeError.Reason" => "RegionCodeErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/GeoLocationService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = GeoLocationService::$classmap; + parent::__construct($wsdl, $options, $user, 'GeoLocationService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Retrieves the geographic location information for the address specified. + * + * @param selector specifies the addresses. + * @return list of {@link GeoLocation} objects. Returns {@link InvalidGeoLocation} object if + * the address cannot be geocoded. + * @throws ApiException if problems occurred while retrieving the location information + */ + public function get($selector) { + $arg = new GeoLocationServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/LocationCriterionService.php b/src/Google/Api/Ads/AdWords/v201306/LocationCriterionService.php new file mode 100755 index 000000000..c294a569a --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/LocationCriterionService.php @@ -0,0 +1,3551 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Criterion", FALSE)) { +/** + * Represents a criterion (such as a keyword, placement, or vertical). + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Criterion { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsCriterionType + */ + public $type; + + /** + * @access public + * @var string + */ + public $CriterionType; + + private $_parameterMap = array ( + "Criterion.Type" => "CriterionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + public function __construct($id = NULL, $type = NULL, $CriterionType = NULL) { + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionParameter", FALSE)) { +/** + * Base type of criterion parameters. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionParameter { + /** + * @access public + * @var string + */ + public $CriterionParameterType; + + private $_parameterMap = array ( + "CriterionParameter.Type" => "CriterionParameterType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionParameter"; + } + + public function __construct($CriterionParameterType = NULL) { + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateRange", FALSE)) { +/** + * Represents a range of dates that has either an upper or a lower bound. + * The format for the date is YYYYMMDD. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateRange { + /** + * @access public + * @var Date + */ + public $min; + + /** + * @access public + * @var Date + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Keyword", FALSE)) { +/** + * Represents a keyword. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Keyword extends Criterion { + /** + * @access public + * @var string + */ + public $text; + + /** + * @access public + * @var tnsKeywordMatchType + */ + public $matchType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Keyword"; + } + + public function __construct($text = NULL, $matchType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->text = $text; + $this->matchType = $matchType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Location", FALSE)) { +/** + * Represents Location criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type can be either targeted or excluded. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Location extends Criterion { + /** + * @access public + * @var string + */ + public $locationName; + + /** + * @access public + * @var string + */ + public $displayType; + + /** + * @access public + * @var tnsLocationTargetingStatus + */ + public $targetingStatus; + + /** + * @access public + * @var Location[] + */ + public $parentLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($locationName = NULL, $displayType = NULL, $targetingStatus = NULL, $parentLocations = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->locationName = $locationName; + $this->displayType = $displayType; + $this->targetingStatus = $targetingStatus; + $this->parentLocations = $parentLocations; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("LocationCriterion", FALSE)) { +/** + * Represents data that encapsulates a location criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationCriterion { + /** + * @access public + * @var Location + */ + public $location; + + /** + * @access public + * @var string + */ + public $canonicalName; + + /** + * @access public + * @var integer + */ + public $reach; + + /** + * @access public + * @var string + */ + public $locale; + + /** + * @access public + * @var string + */ + public $searchTerm; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationCriterion"; + } + + public function __construct($location = NULL, $canonicalName = NULL, $reach = NULL, $locale = NULL, $searchTerm = NULL, $countryCode = NULL) { + $this->location = $location; + $this->canonicalName = $canonicalName; + $this->reach = $reach; + $this->locale = $locale; + $this->searchTerm = $searchTerm; + $this->countryCode = $countryCode; + } +}} + +if (!class_exists("LocationCriterionServiceError", FALSE)) { +/** + * Represents errors thrown by the {@link LocationCriterionService#get} operation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationCriterionServiceError extends ApiError { + /** + * @access public + * @var tnsLocationCriterionServiceErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationCriterionServiceError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("MobileAppCategory", FALSE)) { +/** + * Represents the mobile app category to be targeted. + * View the complete list of + * available mobile app categories. + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileAppCategory extends Criterion { + /** + * @access public + * @var integer + */ + public $mobileAppCategoryId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAppCategory"; + } + + public function __construct($mobileAppCategoryId = NULL, $displayName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->mobileAppCategoryId = $mobileAppCategoryId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileApplication", FALSE)) { +/** + * Represents the mobile application to be targeted. + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileApplication extends Criterion { + /** + * @access public + * @var string + */ + public $appId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileApplication"; + } + + public function __construct($appId = NULL, $displayName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->appId = $appId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Placement", FALSE)) { +/** + * A placement used for modifying bids for sites when targeting the content + * network. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Placement extends Criterion { + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + public function __construct($url = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->url = $url; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("Product", FALSE)) { +/** + * Product targeting criteria, represents a filter for products in the + * product feed that is defined by the advertiser. The criteria is used to + * determine the products in a Merchant Center account to be used with the + * ProductAds in the AdGroup. This criteria is available only to some advertisers. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Product extends Criterion { + /** + * @access public + * @var ProductCondition[] + */ + public $conditions; + + /** + * @access public + * @var string + */ + public $text; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + public function __construct($conditions = NULL, $text = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->conditions = $conditions; + $this->text = $text; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ProductCondition", FALSE)) { +/** + * Conditions to filter the products defined in product feed for targeting. + * The condition is defined as operand=argument. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ProductCondition { + /** + * @access public + * @var string + */ + public $argument; + + /** + * @access public + * @var ProductConditionOperand + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductCondition"; + } + + public function __construct($argument = NULL, $operand = NULL) { + $this->argument = $argument; + $this->operand = $operand; + } +}} + +if (!class_exists("ProductConditionOperand", FALSE)) { +/** + * Attribute for the product condition. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ProductConditionOperand { + /** + * @access public + * @var string + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductConditionOperand"; + } + + public function __construct($operand = NULL) { + $this->operand = $operand; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * Indicates that a field was rejected due to compatibility issues. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CriterionUserInterest", FALSE)) { +/** + * User Interest - represents a particular interest based vertical to be targeted. + * Targeting UserInterest is currently in a limited beta. If you'd like access + * please speak with your account representative. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserInterest extends Criterion { + /** + * @access public + * @var integer + */ + public $userInterestId; + + /** + * @access public + * @var string + */ + public $userInterestName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserInterest"; + } + + public function __construct($userInterestId = NULL, $userInterestName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->userInterestId = $userInterestId; + $this->userInterestName = $userInterestName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionUserList", FALSE)) { +/** + * UserList - represents a user list that is defined by the advertiser to be targeted. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserList extends Criterion { + /** + * @access public + * @var integer + */ + public $userListId; + + /** + * @access public + * @var string + */ + public $userListName; + + /** + * @access public + * @var tnsCriterionUserListMembershipStatus + */ + public $userListMembershipStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList"; + } + + public function __construct($userListId = NULL, $userListName = NULL, $userListMembershipStatus = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->userListId = $userListId; + $this->userListName = $userListName; + $this->userListMembershipStatus = $userListMembershipStatus; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Vertical", FALSE)) { +/** + * Use verticals to target or exclude placements in the Google Display Network + * based on the category into which the placement falls (for example, "Pets & + * Animals/Pets/Dogs"). + * View the complete list + * of available vertical categories. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Vertical extends Criterion { + /** + * @access public + * @var integer + */ + public $verticalId; + + /** + * @access public + * @var integer + */ + public $verticalParentId; + + /** + * @access public + * @var string[] + */ + public $path; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Vertical"; + } + + public function __construct($verticalId = NULL, $verticalParentId = NULL, $path = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->verticalId = $verticalId; + $this->verticalParentId = $verticalParentId; + $this->path = $path; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Webpage", FALSE)) { +/** + * Criterion for targeting webpages of an advertiser's website. The + * website domain name is specified at the campaign level. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Webpage extends Criterion { + /** + * @access public + * @var WebpageParameter + */ + public $parameter; + + /** + * @access public + * @var double + */ + public $criteriaCoverage; + + /** + * @access public + * @var string[] + */ + public $criteriaSamples; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Webpage"; + } + + public function __construct($parameter = NULL, $criteriaCoverage = NULL, $criteriaSamples = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->parameter = $parameter; + $this->criteriaCoverage = $criteriaCoverage; + $this->criteriaSamples = $criteriaSamples; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("WebpageCondition", FALSE)) { +/** + * Logical expression for targeting webpages of an advertiser's website. + * + *

A condition is defined as {@code operand OP argument} + * where {@code operand} is one of the values enumerated in + * {@link WebpageConditionOperand}, and, based on this value, + * {@code OP} is either of {@code EQUALS} or {@code CONTAINS}.

+ * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageCondition { + /** + * @access public + * @var tnsWebpageConditionOperand + */ + public $operand; + + /** + * @access public + * @var string + */ + public $argument; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageCondition"; + } + + public function __construct($operand = NULL, $argument = NULL) { + $this->operand = $operand; + $this->argument = $argument; + } +}} + +if (!class_exists("WebpageParameter", FALSE)) { +/** + * Parameter of Webpage criterion, expressed as a list of conditions, or + * logical expressions, for targeting webpages of an advertiser's website. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageParameter extends CriterionParameter { + /** + * @access public + * @var string + */ + public $criterionName; + + /** + * @access public + * @var WebpageCondition[] + */ + public $conditions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageParameter"; + } + + public function __construct($criterionName = NULL, $conditions = NULL, $CriterionParameterType = NULL) { + parent::__construct(); + $this->criterionName = $criterionName; + $this->conditions = $conditions; + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * The types of criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("KeywordMatchType", FALSE)) { +/** + * Match type of a keyword. i.e. the way we match a keyword string with + * search queries. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class KeywordMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationCriterionServiceErrorReason", FALSE)) { +/** + * Reasons for error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationCriterionServiceErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationCriterionServiceError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationTargetingStatus", FALSE)) { +/** + * Enum that represents the different Targeting Status values for a Location criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationTargetingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationTargetingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUserListMembershipStatus", FALSE)) { +/** + * Membership status of the user list. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList.MembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("WebpageConditionOperand", FALSE)) { +/** + * Operand value of {@link WebpageCondition}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageConditionOperand { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageConditionOperand"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationCriterionServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of {@link LocationCriterion}'s that match the specified selector. + * + * @param selector filters the LocationCriterion to be returned. + * @return A list of location criterion. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationCriterionServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("LocationCriterionServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationCriterionServiceGetResponse { + /** + * @access public + * @var LocationCriterion[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("LocationCriterionService", FALSE)) { +/** + * LocationCriterionService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class LocationCriterionService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "LocationCriterionServiceGetResponse", + "get" => "LocationCriterionServiceGet", + "mutate" => "LocationCriterionServiceMutate", + "mutateResponse" => "LocationCriterionServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdxError" => "AdxError", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "Criterion" => "Criterion", + "CriterionParameter" => "CriterionParameter", + "DatabaseError" => "DatabaseError", + "Date" => "Date", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "Keyword" => "Keyword", + "Location" => "Location", + "LocationCriterion" => "LocationCriterion", + "LocationCriterionServiceError" => "LocationCriterionServiceError", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Placement" => "Placement", + "Predicate" => "Predicate", + "Product" => "Product", + "ProductCondition" => "ProductCondition", + "ProductConditionOperand" => "ProductConditionOperand", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "Selector" => "Selector", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "CriterionUserInterest" => "CriterionUserInterest", + "CriterionUserList" => "CriterionUserList", + "Vertical" => "Vertical", + "Webpage" => "Webpage", + "WebpageCondition" => "WebpageCondition", + "WebpageParameter" => "WebpageParameter", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "Criterion.Type" => "CriterionType", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "KeywordMatchType" => "KeywordMatchType", + "LocationCriterionServiceError.Reason" => "LocationCriterionServiceErrorReason", + "LocationTargetingStatus" => "LocationTargetingStatus", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + "CriterionUserList.MembershipStatus" => "CriterionUserListMembershipStatus", + "WebpageConditionOperand" => "WebpageConditionOperand", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/LocationCriterionService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = LocationCriterionService::$classmap; + parent::__construct($wsdl, $options, $user, 'LocationCriterionService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of {@link LocationCriterion}'s that match the specified selector. + * + * @param selector filters the LocationCriterion to be returned. + * @return A list of location criterion. + * @throws ApiException when there is at least one error with the request. + */ + public function get($selector) { + $arg = new LocationCriterionServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/ManagedCustomerService.php b/src/Google/Api/Ads/AdWords/v201306/ManagedCustomerService.php new file mode 100755 index 000000000..cda8be5f3 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/ManagedCustomerService.php @@ -0,0 +1,3775 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +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.

+ * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ManagedCustomerServiceError", FALSE)) { +/** + * Error for {@link ManagedCustomerService} + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManagedCustomerServiceError extends ApiError { + /** + * @access public + * @var tnsManagedCustomerServiceErrorReason + */ + public $reason; + + /** + * @access public + * @var integer[] + */ + public $customerIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManagedCustomerServiceError"; + } + + public function __construct($reason = NULL, $customerIds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->customerIds = $customerIds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PendingInvitationSelector", FALSE)) { +/** + * Selector for getPendingInvitations method. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PendingInvitationSelector { + /** + * @access public + * @var integer[] + */ + public $managerCustomerIds; + + /** + * @access public + * @var integer[] + */ + public $clientCustomerIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PendingInvitationSelector"; + } + + public function __construct($managerCustomerIds = NULL, $clientCustomerIds = NULL) { + $this->managerCustomerIds = $managerCustomerIds; + $this->clientCustomerIds = $clientCustomerIds; + } +}} + +if (!class_exists("ManagedCustomerLink", FALSE)) { +/** + * Represents an AdWords manager-client link. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManagedCustomerLink { + /** + * @access public + * @var integer + */ + public $managerCustomerId; + + /** + * @access public + * @var integer + */ + public $clientCustomerId; + + /** + * @access public + * @var tnsLinkStatus + */ + public $linkStatus; + + /** + * @access public + * @var string + */ + public $pendingDescriptiveName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManagedCustomerLink"; + } + + public function __construct($managerCustomerId = NULL, $clientCustomerId = NULL, $linkStatus = NULL, $pendingDescriptiveName = NULL) { + $this->managerCustomerId = $managerCustomerId; + $this->clientCustomerId = $clientCustomerId; + $this->linkStatus = $linkStatus; + $this->pendingDescriptiveName = $pendingDescriptiveName; + } +}} + +if (!class_exists("LinkOperation", FALSE)) { +/** + * Operation for modifying ManagedCustomer links. See {@link ManagedCustomerService#mutateLink}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LinkOperation extends Operation { + /** + * @access public + * @var ManagedCustomerLink + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LinkOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("MoveOperation", FALSE)) { +/** + * Operation for moving ManagedCustomer links. See {@link ManagedCustomerService#mutateManager}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MoveOperation extends Operation { + /** + * @access public + * @var ManagedCustomerLink + */ + public $operand; + + /** + * @access public + * @var integer + */ + public $oldManagerCustomerId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MoveOperation"; + } + + public function __construct($operand = NULL, $oldManagerCustomerId = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->oldManagerCustomerId = $oldManagerCustomerId; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("MutateLinkResults", FALSE)) { +/** + * Results of a {@link ManagedCustomerService#mutateLink} call which changes + * manager/client links. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MutateLinkResults { + /** + * @access public + * @var ManagedCustomerLink[] + */ + public $links; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MutateLinkResults"; + } + + public function __construct($links = NULL) { + $this->links = $links; + } +}} + +if (!class_exists("MutateManagerResults", FALSE)) { +/** + * Results of a {@link ManagedCustomerService#mutateManager} call, which moves client customers to + * new managers. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MutateManagerResults { + /** + * @access public + * @var ManagedCustomerLink[] + */ + public $links; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MutateManagerResults"; + } + + public function __construct($links = NULL) { + $this->links = $links; + } +}} + +if (!class_exists("ManagedCustomer", FALSE)) { +/** + * Data object that represents a managed customer. Member of {@link ManagedCustomerPage}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManagedCustomer { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $login; + + /** + * @access public + * @var string + */ + public $companyName; + + /** + * @access public + * @var integer + */ + public $customerId; + + /** + * @access public + * @var boolean + */ + public $canManageClients; + + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var string + */ + public $dateTimeZone; + + /** + * @access public + * @var boolean + */ + public $testAccount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManagedCustomer"; + } + + public function __construct($name = NULL, $login = NULL, $companyName = NULL, $customerId = NULL, $canManageClients = NULL, $currencyCode = NULL, $dateTimeZone = NULL, $testAccount = NULL) { + $this->name = $name; + $this->login = $login; + $this->companyName = $companyName; + $this->customerId = $customerId; + $this->canManageClients = $canManageClients; + $this->currencyCode = $currencyCode; + $this->dateTimeZone = $dateTimeZone; + $this->testAccount = $testAccount; + } +}} + +if (!class_exists("ManagedCustomerOperation", FALSE)) { +/** + * An operation on a managed customer. + *

Note: only ADD operator is supported.

+ * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManagedCustomerOperation extends Operation { + /** + * @access public + * @var ManagedCustomer + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManagedCustomerOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("ManagedCustomerPage", FALSE)) { +/** + * Return result of {@link ManagedCustomerService} + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManagedCustomerPage extends Page { + /** + * @access public + * @var ManagedCustomer[] + */ + public $entries; + + /** + * @access public + * @var ManagedCustomerLink[] + */ + public $links; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManagedCustomerPage"; + } + + public function __construct($entries = NULL, $links = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->links = $links; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("ManagedCustomerReturnValue", FALSE)) { +/** + * A container for return values from the ManagedCustomerService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManagedCustomerReturnValue { + /** + * @access public + * @var ManagedCustomer[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManagedCustomerReturnValue"; + } + + public function __construct($value = NULL) { + $this->value = $value; + } +}} + +if (!class_exists("PendingInvitation", FALSE)) { +/** + * Pending invitation result for the getPendingInvitations method. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PendingInvitation { + /** + * @access public + * @var ManagedCustomer + */ + public $manager; + + /** + * @access public + * @var ManagedCustomer + */ + public $client; + + /** + * @access public + * @var string + */ + public $creationDate; + + /** + * @access public + * @var string + */ + public $expirationDate; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PendingInvitation"; + } + + public function __construct($manager = NULL, $client = NULL, $creationDate = NULL, $expirationDate = NULL) { + $this->manager = $manager; + $this->client = $client; + $this->creationDate = $creationDate; + $this->expirationDate = $expirationDate; + } +}} + +if (!class_exists("LinkStatus", FALSE)) { +/** + * These status values match the values in the ServicedAccounts.Status column. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LinkStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LinkStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ManagedCustomerServiceErrorReason", FALSE)) { +/** + * Unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManagedCustomerServiceErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManagedCustomerServiceError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ManagedCustomerServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of customers that meet the selector criteria. + * + * @param selector The selector specifying the {@link ManagedCustomer}s to return. + * @return List of customers identified by the selector. + * @throws ApiException When there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManagedCustomerServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("ManagedCustomerServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManagedCustomerServiceGetResponse { + /** + * @access public + * @var ManagedCustomerPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getPendingInvitations", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the pending invitations for the customer IDs in the selector. + * @param selector the manager customer ids (inviters) or the client customer ids (invitees) + * @throws ApiException when there is at least one error with the request + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getPendingInvitations { + /** + * @access public + * @var PendingInvitationSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("getPendingInvitationsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getPendingInvitationsResponse { + /** + * @access public + * @var PendingInvitation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ManagedCustomerServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: SET, ADD. + * + * + * + * Adds managed customers. + * + *

Note: {@link ManagedCustomerOperation} only supports + * {@code ADD} operator.

+ * + * @param operations List of unique operations. + * @return The list of updated managed customers, returned in the same order as the + * operations array. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManagedCustomerServiceMutate { + /** + * @access public + * @var ManagedCustomerOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("ManagedCustomerServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManagedCustomerServiceMutateResponse { + /** + * @access public + * @var ManagedCustomerReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("mutateLink", FALSE)) { +/** + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: SET, ADD. + * + * + * + * Modifies the ManagedCustomer forest. These actions are possible (categorized by + * Operator + Link Status): + * + *
    + *
  • ADD + PENDING: manager extends invitations + *
  • SET + CANCELLED: manager rescinds invitations + *
  • SET + INACTIVE: manager/client terminates links + *
  • SET + ACTIVE: client accepts invitations + *
  • SET + REFUSED: client declines invitations + *
+ * + * @param operations the list of operations + * @return results for the given operations + * @throws ApiException with a {@link ManagedCustomerServiceError} + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class mutateLink { + /** + * @access public + * @var LinkOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("mutateLinkResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class mutateLinkResponse { + /** + * @access public + * @var MutateLinkResults + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("mutateManager", FALSE)) { +/** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: SET. + * + * + * + * Moves client customers to new managers (moving links). Only the following action is possible: + * + *
    + *
  • SET + ACTIVE: manager moves client customers to new managers within the same MCC + * hierarchy + *
+ * + * @param operations List of unique operations. + * @return results for the given operations + * @throws ApiException with a {@link ManagedCustomerServiceError} + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class mutateManager { + /** + * @access public + * @var MoveOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("mutateManagerResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class mutateManagerResponse { + /** + * @access public + * @var MutateManagerResults + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * Indicates that a field was rejected due to compatibility issues. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ManagedCustomerService", FALSE)) { +/** + * ManagedCustomerService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class ManagedCustomerService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "ManagedCustomerServiceGetResponse", + "get" => "ManagedCustomerServiceGet", + "mutate" => "ManagedCustomerServiceMutate", + "mutateResponse" => "ManagedCustomerServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Selector" => "Selector", + "Operation" => "Operation", + "Page" => "Page", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + "ManagedCustomerServiceError" => "ManagedCustomerServiceError", + "PendingInvitationSelector" => "PendingInvitationSelector", + "ManagedCustomerLink" => "ManagedCustomerLink", + "LinkOperation" => "LinkOperation", + "MoveOperation" => "MoveOperation", + "MutateLinkResults" => "MutateLinkResults", + "MutateManagerResults" => "MutateManagerResults", + "ManagedCustomer" => "ManagedCustomer", + "ManagedCustomerOperation" => "ManagedCustomerOperation", + "ManagedCustomerPage" => "ManagedCustomerPage", + "ManagedCustomerReturnValue" => "ManagedCustomerReturnValue", + "PendingInvitation" => "PendingInvitation", + "LinkStatus" => "LinkStatus", + "ManagedCustomerServiceError.Reason" => "ManagedCustomerServiceErrorReason", + "getPendingInvitations" => "getPendingInvitations", + "getPendingInvitationsResponse" => "getPendingInvitationsResponse", + "mutateLink" => "mutateLink", + "mutateLinkResponse" => "mutateLinkResponse", + "mutateManager" => "mutateManager", + "mutateManagerResponse" => "mutateManagerResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/mcm/v201306/ManagedCustomerService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ManagedCustomerService::$classmap; + parent::__construct($wsdl, $options, $user, 'ManagedCustomerService', 'https://adwords.google.com/api/adwords/mcm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of customers that meet the selector criteria. + * + * @param selector The selector specifying the {@link ManagedCustomer}s to return. + * @return List of customers identified by the selector. + * @throws ApiException When there is at least one error with the request. + */ + public function get($serviceSelector) { + $arg = new ManagedCustomerServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the pending invitations for the customer IDs in the selector. + * @param selector the manager customer ids (inviters) or the client customer ids (invitees) + * @throws ApiException when there is at least one error with the request + */ + public function getPendingInvitations($selector) { + $arg = new getPendingInvitations($selector); + $result = $this->__soapCall("getPendingInvitations", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: SET, ADD. + * + * + * + * Adds managed customers. + * + *

Note: {@link ManagedCustomerOperation} only supports + * {@code ADD} operator.

+ * + * @param operations List of unique operations. + * @return The list of updated managed customers, returned in the same order as the + * operations array. + */ + public function mutate($operations) { + $arg = new ManagedCustomerServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: SET, ADD. + * + * + * + * Modifies the ManagedCustomer forest. These actions are possible (categorized by + * Operator + Link Status): + * + *
    + *
  • ADD + PENDING: manager extends invitations + *
  • SET + CANCELLED: manager rescinds invitations + *
  • SET + INACTIVE: manager/client terminates links + *
  • SET + ACTIVE: client accepts invitations + *
  • SET + REFUSED: client declines invitations + *
+ * + * @param operations the list of operations + * @return results for the given operations + * @throws ApiException with a {@link ManagedCustomerServiceError} + */ + public function mutateLink($operations) { + $arg = new mutateLink($operations); + $result = $this->__soapCall("mutateLink", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: SET. + * + * + * + * Moves client customers to new managers (moving links). Only the following action is possible: + * + *
    + *
  • SET + ACTIVE: manager moves client customers to new managers within the same MCC + * hierarchy + *
+ * + * @param operations List of unique operations. + * @return results for the given operations + * @throws ApiException with a {@link ManagedCustomerServiceError} + */ + public function mutateManager($operations) { + $arg = new mutateManager($operations); + $result = $this->__soapCall("mutateManager", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/MediaService.php b/src/Google/Api/Ads/AdWords/v201306/MediaService.php new file mode 100755 index 000000000..04a788fdc --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/MediaService.php @@ -0,0 +1,3201 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("Dimensions", FALSE)) { +/** + * Represents a simple height-width dimension. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Dimensions { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Dimensions"; + } + + public function __construct($width = NULL, $height = NULL) { + $this->width = $width; + $this->height = $height; + } +}} + +if (!class_exists("Media_Size_DimensionsMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Size + * and value of type Dimensions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Media_Size_DimensionsMapEntry { + /** + * @access public + * @var tnsMediaSize + */ + public $key; + + /** + * @access public + * @var Dimensions + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media_Size_DimensionsMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Media_Size_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Size + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Media_Size_StringMapEntry { + /** + * @access public + * @var tnsMediaSize + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media_Size_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Media", FALSE)) { +/** + * Represents some kind of media. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Media { + /** + * @access public + * @var integer + */ + public $mediaId; + + /** + * @access public + * @var tnsMediaMediaType + */ + public $type; + + /** + * @access public + * @var integer + */ + public $referenceId; + + /** + * @access public + * @var Media_Size_DimensionsMapEntry[] + */ + public $dimensions; + + /** + * @access public + * @var Media_Size_StringMapEntry[] + */ + public $urls; + + /** + * @access public + * @var tnsMediaMimeType + */ + public $mimeType; + + /** + * @access public + * @var string + */ + public $sourceUrl; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $fileSize; + + /** + * @access public + * @var string + */ + public $creationTime; + + /** + * @access public + * @var string + */ + public $MediaType; + + private $_parameterMap = array ( + "Media.Type" => "MediaType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media"; + } + + public function __construct($mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("MediaPage", FALSE)) { +/** + * Page of media returned by the {@link MediaService} which includes + * the media. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaPage { + /** + * @access public + * @var Media[] + */ + public $entries; + + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MediaPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL) { + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AudioErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AudioErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudioError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ImageErrorReason", FALSE)) { +/** + * The image is not valid. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ImageErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaMediaType", FALSE)) { +/** + * Media types + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaMediaType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.MediaType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaMimeType", FALSE)) { +/** + * Mime types + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaMimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.MimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaSize", FALSE)) { +/** + * Sizes for retrieving the original media + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaSize { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.Size"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MediaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoErrorReason", FALSE)) { +/** + * Invalid video. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class VideoErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of media that meet the criteria specified by the selector. + *

Note: {@code MediaService} will not return any + * {@link ImageAd} image files.

+ * + * @param serviceSelector Selects which media objects to return. + * @return A list of {@code Media} objects. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("MediaServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaServiceGetResponse { + /** + * @access public + * @var MediaPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("upload", FALSE)) { +/** + * Uploads new media. Currently, you can only upload {@link Image} files. + * + * @param media A list of {@code Media} objects, each containing the data to + * be uploaded. + * @return A list of uploaded media in the same order as the argument list. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class upload { + /** + * @access public + * @var Media[] + */ + public $media; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($media = NULL) { + $this->media = $media; + } +}} + +if (!class_exists("uploadResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class uploadResponse { + /** + * @access public + * @var Media[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("Audio", FALSE)) { +/** + * Encapsulates an Audio media identified by a MediaId. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Audio extends Media { + /** + * @access public + * @var integer + */ + public $durationMillis; + + /** + * @access public + * @var string + */ + public $streamingUrl; + + /** + * @access public + * @var boolean + */ + public $readyToPlayOnTheWeb; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Audio"; + } + + public function __construct($durationMillis = NULL, $streamingUrl = NULL, $readyToPlayOnTheWeb = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->durationMillis = $durationMillis; + $this->streamingUrl = $streamingUrl; + $this->readyToPlayOnTheWeb = $readyToPlayOnTheWeb; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("AudioError", FALSE)) { +/** + * Error class for errors associated with parsing audio data. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AudioError extends ApiError { + /** + * @access public + * @var tnsAudioErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudioError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Image", FALSE)) { +/** + * Encapsulates an Image media. For {@code SET},{@code REMOVE} operations in + * MediaService, use {@code mediaId}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Image extends Media { + /** + * @access public + * @var base64Binary + */ + public $data; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Image"; + } + + public function __construct($data = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->data = $data; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("ImageError", FALSE)) { +/** + * Error class for errors associated with parsing image data. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ImageError extends ApiError { + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("MediaError", FALSE)) { +/** + * Error class for media related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaError extends ApiError { + /** + * @access public + * @var tnsMediaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MediaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Video", FALSE)) { +/** + * Encapsulates a Video media identified by a MediaId. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Video extends Media { + /** + * @access public + * @var integer + */ + public $durationMillis; + + /** + * @access public + * @var string + */ + public $streamingUrl; + + /** + * @access public + * @var boolean + */ + public $readyToPlayOnTheWeb; + + /** + * @access public + * @var string + */ + public $industryStandardCommercialIdentifier; + + /** + * @access public + * @var string + */ + public $advertisingId; + + /** + * @access public + * @var string + */ + public $youTubeVideoIdString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Video"; + } + + public function __construct($durationMillis = NULL, $streamingUrl = NULL, $readyToPlayOnTheWeb = NULL, $industryStandardCommercialIdentifier = NULL, $advertisingId = NULL, $youTubeVideoIdString = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->durationMillis = $durationMillis; + $this->streamingUrl = $streamingUrl; + $this->readyToPlayOnTheWeb = $readyToPlayOnTheWeb; + $this->industryStandardCommercialIdentifier = $industryStandardCommercialIdentifier; + $this->advertisingId = $advertisingId; + $this->youTubeVideoIdString = $youTubeVideoIdString; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("VideoError", FALSE)) { +/** + * Error class for errors associated with parsing video data. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class VideoError extends ApiError { + /** + * @access public + * @var tnsVideoErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("MediaService", FALSE)) { +/** + * MediaService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class MediaService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "MediaServiceGetResponse", + "get" => "MediaServiceGet", + "mutate" => "MediaServiceMutate", + "mutateResponse" => "MediaServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "Audio" => "Audio", + "Media" => "Media", + "AudioError" => "AudioError", + "ApiError" => "ApiError", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DateRange" => "DateRange", + "Dimensions" => "Dimensions", + "DistinctError" => "DistinctError", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "Image" => "Image", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "MediaError" => "MediaError", + "Media_Size_DimensionsMapEntry" => "Media_Size_DimensionsMapEntry", + "Media_Size_StringMapEntry" => "Media_Size_StringMapEntry", + "NewEntityCreationError" => "NewEntityCreationError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "Video" => "Video", + "VideoError" => "VideoError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "MediaPage" => "MediaPage", + "Selector" => "Selector", + "AudioError.Reason" => "AudioErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "Media.MediaType" => "MediaMediaType", + "Media.MimeType" => "MediaMimeType", + "Media.Size" => "MediaSize", + "MediaError.Reason" => "MediaErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + "VideoError.Reason" => "VideoErrorReason", + "upload" => "upload", + "uploadResponse" => "uploadResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/MediaService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = MediaService::$classmap; + parent::__construct($wsdl, $options, $user, 'MediaService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of media that meet the criteria specified by the selector. + *

Note: {@code MediaService} will not return any + * {@link ImageAd} image files.

+ * + * @param serviceSelector Selects which media objects to return. + * @return A list of {@code Media} objects. + */ + public function get($serviceSelector) { + $arg = new MediaServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * Uploads new media. Currently, you can only upload {@link Image} files. + * + * @param media A list of {@code Media} objects, each containing the data to + * be uploaded. + * @return A list of uploaded media in the same order as the argument list. + */ + public function upload($media) { + $arg = new upload($media); + $result = $this->__soapCall("upload", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/MutateJobService.php b/src/Google/Api/Ads/AdWords/v201306/MutateJobService.php new file mode 100755 index 000000000..1ae26d1cf --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/MutateJobService.php @@ -0,0 +1,17061 @@ +This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Ad { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $url; + + /** + * @access public + * @var string + */ + public $displayUrl; + + /** + * @access public + * @var integer + */ + public $devicePreference; + + /** + * @access public + * @var string[] + */ + public $disapprovalReasons; + + /** + * @access public + * @var string + */ + public $AdType; + + private $_parameterMap = array ( + "Ad.Type" => "AdType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Ad"; + } + + public function __construct($id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("AdExtension", FALSE)) { +/** + * Base class for AdExtension objects. An AdExtension is an extension to + * an existing ad or metadata that will process into an extension. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtension { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $AdExtensionType; + + private $_parameterMap = array ( + "AdExtension.Type" => "AdExtensionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtension"; + } + + public function __construct($id = NULL, $AdExtensionType = NULL) { + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("AdExtensionOverride", FALSE)) { +/** + * Represents an ad level ad extension override. An ad extension override + * specifies the ad extension that must be used if the ad is served with + * any ad extension data. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverride { + /** + * @access public + * @var integer + */ + public $adId; + + /** + * @access public + * @var AdExtension + */ + public $adExtension; + + /** + * @access public + * @var OverrideInfo + */ + public $overrideInfo; + + /** + * @access public + * @var tnsAdExtensionOverrideStatus + */ + public $status; + + /** + * @access public + * @var tnsAdExtensionOverrideApprovalStatus + */ + public $approvalStatus; + + /** + * @access public + * @var AdExtensionOverrideStats + */ + public $stats; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverride"; + } + + public function __construct($adId = NULL, $adExtension = NULL, $overrideInfo = NULL, $status = NULL, $approvalStatus = NULL, $stats = NULL) { + $this->adId = $adId; + $this->adExtension = $adExtension; + $this->overrideInfo = $overrideInfo; + $this->status = $status; + $this->approvalStatus = $approvalStatus; + $this->stats = $stats; + } +}} + +if (!class_exists("AdGroup", FALSE)) { +/** + * Represents an ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroup { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var string + */ + public $campaignName; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsAdGroupStatus + */ + public $status; + + /** + * @access public + * @var Setting[] + */ + public $settings; + + /** + * @access public + * @var AdGroupExperimentData + */ + public $experimentData; + + /** + * @access public + * @var Stats + */ + public $stats; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * @access public + * @var BiddingStrategyConfiguration + */ + public $biddingStrategyConfiguration; + + /** + * @access public + * @var tnsCriterionTypeGroup + */ + public $contentBidCriterionTypeGroup; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroup"; + } + + public function __construct($id = NULL, $campaignId = NULL, $campaignName = NULL, $name = NULL, $status = NULL, $settings = NULL, $experimentData = NULL, $stats = NULL, $forwardCompatibilityMap = NULL, $biddingStrategyConfiguration = NULL, $contentBidCriterionTypeGroup = NULL) { + $this->id = $id; + $this->campaignId = $campaignId; + $this->campaignName = $campaignName; + $this->name = $name; + $this->status = $status; + $this->settings = $settings; + $this->experimentData = $experimentData; + $this->stats = $stats; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->biddingStrategyConfiguration = $biddingStrategyConfiguration; + $this->contentBidCriterionTypeGroup = $contentBidCriterionTypeGroup; + } +}} + +if (!class_exists("AdGroupAd", FALSE)) { +/** + * Represents an ad in an ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAd { + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var Ad + */ + public $ad; + + /** + * @access public + * @var AdGroupAdExperimentData + */ + public $experimentData; + + /** + * @access public + * @var tnsAdGroupAdStatus + */ + public $status; + + /** + * @access public + * @var tnsAdGroupAdApprovalStatus + */ + public $approvalStatus; + + /** + * @access public + * @var boolean + */ + public $trademarkDisapproved; + + /** + * @access public + * @var AdStats + */ + public $stats; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAd"; + } + + public function __construct($adGroupId = NULL, $ad = NULL, $experimentData = NULL, $status = NULL, $approvalStatus = NULL, $trademarkDisapproved = NULL, $stats = NULL, $forwardCompatibilityMap = NULL) { + $this->adGroupId = $adGroupId; + $this->ad = $ad; + $this->experimentData = $experimentData; + $this->status = $status; + $this->approvalStatus = $approvalStatus; + $this->trademarkDisapproved = $trademarkDisapproved; + $this->stats = $stats; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + } +}} + +if (!class_exists("AdGroupAdExperimentData", FALSE)) { +/** + * Data associated with an advertiser experiment for an AdGroupAd + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdExperimentData { + /** + * @access public + * @var integer + */ + public $experimentId; + + /** + * @access public + * @var tnsExperimentDeltaStatus + */ + public $experimentDeltaStatus; + + /** + * @access public + * @var tnsExperimentDataStatus + */ + public $experimentDataStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdExperimentData"; + } + + public function __construct($experimentId = NULL, $experimentDeltaStatus = NULL, $experimentDataStatus = NULL) { + $this->experimentId = $experimentId; + $this->experimentDeltaStatus = $experimentDeltaStatus; + $this->experimentDataStatus = $experimentDataStatus; + } +}} + +if (!class_exists("AdGroupBidModifier", FALSE)) { +/** + * Represents an adgroup level bid modifier override for campaign level criterion + * bid modifier values. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupBidModifier { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var Criterion + */ + public $criterion; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var tnsBidModifierSource + */ + public $bidModifierSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidModifier"; + } + + public function __construct($campaignId = NULL, $adGroupId = NULL, $criterion = NULL, $bidModifier = NULL, $bidModifierSource = NULL) { + $this->campaignId = $campaignId; + $this->adGroupId = $adGroupId; + $this->criterion = $criterion; + $this->bidModifier = $bidModifier; + $this->bidModifierSource = $bidModifierSource; + } +}} + +if (!class_exists("AdGroupCriterion", FALSE)) { +/** + * Represents a criterion in an ad group, used with AdGroupCriterionService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterion { + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var tnsCriterionUse + */ + public $criterionUse; + + /** + * @access public + * @var Criterion + */ + public $criterion; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * @access public + * @var string + */ + public $AdGroupCriterionType; + + private $_parameterMap = array ( + "AdGroupCriterion.Type" => "AdGroupCriterionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterion"; + } + + public function __construct($adGroupId = NULL, $criterionUse = NULL, $criterion = NULL, $forwardCompatibilityMap = NULL, $AdGroupCriterionType = NULL) { + $this->adGroupId = $adGroupId; + $this->criterionUse = $criterionUse; + $this->criterion = $criterion; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->AdGroupCriterionType = $AdGroupCriterionType; + } +}} + +if (!class_exists("AdGroupCriterionExperimentBidMultiplier", FALSE)) { +/** + * Bid multiplier used to modify the bid of a criterion while running + * an experiment. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionExperimentBidMultiplier { + /** + * @access public + * @var string + */ + public $AdGroupCriterionExperimentBidMultiplierType; + + private $_parameterMap = array ( + "AdGroupCriterionExperimentBidMultiplier.Type" => "AdGroupCriterionExperimentBidMultiplierType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionExperimentBidMultiplier"; + } + + public function __construct($AdGroupCriterionExperimentBidMultiplierType = NULL) { + $this->AdGroupCriterionExperimentBidMultiplierType = $AdGroupCriterionExperimentBidMultiplierType; + } +}} + +if (!class_exists("AdGroupExperimentBidMultipliers", FALSE)) { +/** + * Bid multiplier used to modify the bid of an adgroup while running + * an experiment. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupExperimentBidMultipliers { + /** + * @access public + * @var string + */ + public $AdGroupExperimentBidMultipliersType; + + private $_parameterMap = array ( + "AdGroupExperimentBidMultipliers.Type" => "AdGroupExperimentBidMultipliersType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupExperimentBidMultipliers"; + } + + public function __construct($AdGroupExperimentBidMultipliersType = NULL) { + $this->AdGroupExperimentBidMultipliersType = $AdGroupExperimentBidMultipliersType; + } +}} + +if (!class_exists("AdGroupExperimentData", FALSE)) { +/** + * Data associated with an advertiser experiment for this adgroup. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupExperimentData { + /** + * @access public + * @var integer + */ + public $experimentId; + + /** + * @access public + * @var tnsExperimentDeltaStatus + */ + public $experimentDeltaStatus; + + /** + * @access public + * @var tnsExperimentDataStatus + */ + public $experimentDataStatus; + + /** + * @access public + * @var AdGroupExperimentBidMultipliers + */ + public $experimentBidMultipliers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupExperimentData"; + } + + public function __construct($experimentId = NULL, $experimentDeltaStatus = NULL, $experimentDataStatus = NULL, $experimentBidMultipliers = NULL) { + $this->experimentId = $experimentId; + $this->experimentDeltaStatus = $experimentDeltaStatus; + $this->experimentDataStatus = $experimentDataStatus; + $this->experimentBidMultipliers = $experimentBidMultipliers; + } +}} + +if (!class_exists("AdUnionId", FALSE)) { +/** + * Represents an id indicating a grouping of Ads under some heuristic. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdUnionId { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $AdUnionIdType; + + private $_parameterMap = array ( + "AdUnionId.Type" => "AdUnionIdType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnionId"; + } + + public function __construct($id = NULL, $AdUnionIdType = NULL) { + $this->id = $id; + $this->AdUnionIdType = $AdUnionIdType; + } +}} + +if (!class_exists("Address", FALSE)) { +/** + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Address { + /** + * @access public + * @var string + */ + public $streetAddress; + + /** + * @access public + * @var string + */ + public $streetAddress2; + + /** + * @access public + * @var string + */ + public $cityName; + + /** + * @access public + * @var string + */ + public $provinceCode; + + /** + * @access public + * @var string + */ + public $provinceName; + + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Address"; + } + + public function __construct($streetAddress = NULL, $streetAddress2 = NULL, $cityName = NULL, $provinceCode = NULL, $provinceName = NULL, $postalCode = NULL, $countryCode = NULL) { + $this->streetAddress = $streetAddress; + $this->streetAddress2 = $streetAddress2; + $this->cityName = $cityName; + $this->provinceCode = $provinceCode; + $this->provinceName = $provinceName; + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApiErrorReason", FALSE)) { +/** + * Interface that has a reason return an associated service error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiErrorReason { + /** + * @access public + * @var tnsAdErrorReason + */ + public $AdErrorReason; + + /** + * @access public + * @var tnsAdExtensionErrorReason + */ + public $AdExtensionErrorReason; + + /** + * @access public + * @var tnsAdExtensionOverrideErrorReason + */ + public $AdExtensionOverrideErrorReason; + + /** + * @access public + * @var tnsAdGroupAdErrorReason + */ + public $AdGroupAdErrorReason; + + /** + * @access public + * @var tnsAdGroupCriterionErrorReason + */ + public $AdGroupCriterionErrorReason; + + /** + * @access public + * @var tnsAdGroupServiceErrorReason + */ + public $AdGroupServiceErrorReason; + + /** + * @access public + * @var tnsAdxErrorReason + */ + public $AdxErrorReason; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $AuthenticationErrorReason; + + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $AuthorizationErrorReason; + + /** + * @access public + * @var tnsBetaErrorReason + */ + public $BetaErrorReason; + + /** + * @access public + * @var tnsBiddingErrorReason + */ + public $BiddingErrorReason; + + /** + * @access public + * @var tnsBiddingErrorsReason + */ + public $BiddingErrorsReason; + + /** + * @access public + * @var tnsBiddingTransitionErrorReason + */ + public $BiddingTransitionErrorReason; + + /** + * @access public + * @var tnsBudgetErrorReason + */ + public $BudgetErrorReason; + + /** + * @access public + * @var tnsBulkMutateJobErrorReason + */ + public $BulkMutateJobErrorReason; + + /** + * @access public + * @var tnsCampaignAdExtensionErrorReason + */ + public $CampaignAdExtensionErrorReason; + + /** + * @access public + * @var tnsCampaignCriterionErrorReason + */ + public $CampaignCriterionErrorReason; + + /** + * @access public + * @var tnsCampaignErrorReason + */ + public $CampaignErrorReason; + + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $ClientTermsErrorReason; + + /** + * @access public + * @var tnsCriterionErrorReason + */ + public $CriterionErrorReason; + + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $DatabaseErrorReason; + + /** + * @access public + * @var tnsDateErrorReason + */ + public $DateErrorReason; + + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $DistinctErrorReason; + + /** + * @access public + * @var tnsEntityAccessDeniedReason + */ + public $EntityAccessDeniedReason; + + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $EntityCountLimitExceededReason; + + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $EntityNotFoundReason; + + /** + * @access public + * @var tnsFeedItemErrorReason + */ + public $FeedItemErrorReason; + + /** + * @access public + * @var tnsForwardCompatibilityErrorReason + */ + public $ForwardCompatibilityErrorReason; + + /** + * @access public + * @var tnsIdErrorReason + */ + public $IdErrorReason; + + /** + * @access public + * @var tnsImageErrorReason + */ + public $ImageErrorReason; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $InternalApiErrorReason; + + /** + * @access public + * @var tnsJobErrorReason + */ + public $JobErrorReason; + + /** + * @access public + * @var tnsMediaErrorReason + */ + public $MediaErrorReason; + + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $NewEntityCreationErrorReason; + + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $NotEmptyErrorReason; + + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $NotWhitelistedErrorReason; + + /** + * @access public + * @var tnsNullErrorReason + */ + public $NullErrorReason; + + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $OperationAccessDeniedReason; + + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $OperatorErrorReason; + + /** + * @access public + * @var tnsPagingErrorReason + */ + public $PagingErrorReason; + + /** + * @access public + * @var tnsPolicyViolationErrorReason + */ + public $PolicyViolationErrorReason; + + /** + * @access public + * @var tnsQueryErrorReason + */ + public $QueryErrorReason; + + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $QuotaCheckErrorReason; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $QuotaErrorReason; + + /** + * @access public + * @var tnsRangeErrorReason + */ + public $RangeErrorReason; + + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $RateExceededErrorReason; + + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $ReadOnlyErrorReason; + + /** + * @access public + * @var tnsRegionCodeErrorReason + */ + public $RegionCodeErrorReason; + + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $RejectedErrorReason; + + /** + * @access public + * @var tnsRequestErrorReason + */ + public $RequestErrorReason; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $RequiredErrorReason; + + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $SelectorErrorReason; + + /** + * @access public + * @var tnsSettingErrorReason + */ + public $SettingErrorReason; + + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $SizeLimitErrorReason; + + /** + * @access public + * @var tnsStatsQueryErrorReason + */ + public $StatsQueryErrorReason; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $StringLengthErrorReason; + + /** + * @access public + * @var tnsTargetErrorReason + */ + public $TargetErrorReason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiErrorReason"; + } + + public function __construct($AdErrorReason = NULL, $AdExtensionErrorReason = NULL, $AdExtensionOverrideErrorReason = NULL, $AdGroupAdErrorReason = NULL, $AdGroupCriterionErrorReason = NULL, $AdGroupServiceErrorReason = NULL, $AdxErrorReason = NULL, $AuthenticationErrorReason = NULL, $AuthorizationErrorReason = NULL, $BetaErrorReason = NULL, $BiddingErrorReason = NULL, $BiddingErrorsReason = NULL, $BiddingTransitionErrorReason = NULL, $BudgetErrorReason = NULL, $BulkMutateJobErrorReason = NULL, $CampaignAdExtensionErrorReason = NULL, $CampaignCriterionErrorReason = NULL, $CampaignErrorReason = NULL, $ClientTermsErrorReason = NULL, $CriterionErrorReason = NULL, $DatabaseErrorReason = NULL, $DateErrorReason = NULL, $DistinctErrorReason = NULL, $EntityAccessDeniedReason = NULL, $EntityCountLimitExceededReason = NULL, $EntityNotFoundReason = NULL, $FeedItemErrorReason = NULL, $ForwardCompatibilityErrorReason = NULL, $IdErrorReason = NULL, $ImageErrorReason = NULL, $InternalApiErrorReason = NULL, $JobErrorReason = NULL, $MediaErrorReason = NULL, $NewEntityCreationErrorReason = NULL, $NotEmptyErrorReason = NULL, $NotWhitelistedErrorReason = NULL, $NullErrorReason = NULL, $OperationAccessDeniedReason = NULL, $OperatorErrorReason = NULL, $PagingErrorReason = NULL, $PolicyViolationErrorReason = NULL, $QueryErrorReason = NULL, $QuotaCheckErrorReason = NULL, $QuotaErrorReason = NULL, $RangeErrorReason = NULL, $RateExceededErrorReason = NULL, $ReadOnlyErrorReason = NULL, $RegionCodeErrorReason = NULL, $RejectedErrorReason = NULL, $RequestErrorReason = NULL, $RequiredErrorReason = NULL, $SelectorErrorReason = NULL, $SettingErrorReason = NULL, $SizeLimitErrorReason = NULL, $StatsQueryErrorReason = NULL, $StringLengthErrorReason = NULL, $TargetErrorReason = NULL) { + $this->AdErrorReason = $AdErrorReason; + $this->AdExtensionErrorReason = $AdExtensionErrorReason; + $this->AdExtensionOverrideErrorReason = $AdExtensionOverrideErrorReason; + $this->AdGroupAdErrorReason = $AdGroupAdErrorReason; + $this->AdGroupCriterionErrorReason = $AdGroupCriterionErrorReason; + $this->AdGroupServiceErrorReason = $AdGroupServiceErrorReason; + $this->AdxErrorReason = $AdxErrorReason; + $this->AuthenticationErrorReason = $AuthenticationErrorReason; + $this->AuthorizationErrorReason = $AuthorizationErrorReason; + $this->BetaErrorReason = $BetaErrorReason; + $this->BiddingErrorReason = $BiddingErrorReason; + $this->BiddingErrorsReason = $BiddingErrorsReason; + $this->BiddingTransitionErrorReason = $BiddingTransitionErrorReason; + $this->BudgetErrorReason = $BudgetErrorReason; + $this->BulkMutateJobErrorReason = $BulkMutateJobErrorReason; + $this->CampaignAdExtensionErrorReason = $CampaignAdExtensionErrorReason; + $this->CampaignCriterionErrorReason = $CampaignCriterionErrorReason; + $this->CampaignErrorReason = $CampaignErrorReason; + $this->ClientTermsErrorReason = $ClientTermsErrorReason; + $this->CriterionErrorReason = $CriterionErrorReason; + $this->DatabaseErrorReason = $DatabaseErrorReason; + $this->DateErrorReason = $DateErrorReason; + $this->DistinctErrorReason = $DistinctErrorReason; + $this->EntityAccessDeniedReason = $EntityAccessDeniedReason; + $this->EntityCountLimitExceededReason = $EntityCountLimitExceededReason; + $this->EntityNotFoundReason = $EntityNotFoundReason; + $this->FeedItemErrorReason = $FeedItemErrorReason; + $this->ForwardCompatibilityErrorReason = $ForwardCompatibilityErrorReason; + $this->IdErrorReason = $IdErrorReason; + $this->ImageErrorReason = $ImageErrorReason; + $this->InternalApiErrorReason = $InternalApiErrorReason; + $this->JobErrorReason = $JobErrorReason; + $this->MediaErrorReason = $MediaErrorReason; + $this->NewEntityCreationErrorReason = $NewEntityCreationErrorReason; + $this->NotEmptyErrorReason = $NotEmptyErrorReason; + $this->NotWhitelistedErrorReason = $NotWhitelistedErrorReason; + $this->NullErrorReason = $NullErrorReason; + $this->OperationAccessDeniedReason = $OperationAccessDeniedReason; + $this->OperatorErrorReason = $OperatorErrorReason; + $this->PagingErrorReason = $PagingErrorReason; + $this->PolicyViolationErrorReason = $PolicyViolationErrorReason; + $this->QueryErrorReason = $QueryErrorReason; + $this->QuotaCheckErrorReason = $QuotaCheckErrorReason; + $this->QuotaErrorReason = $QuotaErrorReason; + $this->RangeErrorReason = $RangeErrorReason; + $this->RateExceededErrorReason = $RateExceededErrorReason; + $this->ReadOnlyErrorReason = $ReadOnlyErrorReason; + $this->RegionCodeErrorReason = $RegionCodeErrorReason; + $this->RejectedErrorReason = $RejectedErrorReason; + $this->RequestErrorReason = $RequestErrorReason; + $this->RequiredErrorReason = $RequiredErrorReason; + $this->SelectorErrorReason = $SelectorErrorReason; + $this->SettingErrorReason = $SettingErrorReason; + $this->SizeLimitErrorReason = $SizeLimitErrorReason; + $this->StatsQueryErrorReason = $StatsQueryErrorReason; + $this->StringLengthErrorReason = $StringLengthErrorReason; + $this->TargetErrorReason = $TargetErrorReason; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Bid", FALSE)) { +/** + * Represents a bid of a certain amount. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Bid { + /** + * @access public + * @var Money + */ + public $amount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Bid"; + } + + public function __construct($amount = NULL) { + $this->amount = $amount; + } +}} + +if (!class_exists("BidMultiplier", FALSE)) { +/** + * Represents a multiplier to modify a bid. The final value after + * modification is represented by the multiplied bid value. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BidMultiplier { + /** + * @access public + * @var double + */ + public $multiplier; + + /** + * @access public + * @var Bid + */ + public $multipliedBid; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidMultiplier"; + } + + public function __construct($multiplier = NULL, $multipliedBid = NULL) { + $this->multiplier = $multiplier; + $this->multipliedBid = $multipliedBid; + } +}} + +if (!class_exists("BiddableAdGroupCriterion", FALSE)) { +/** + * A biddable (positive) criterion in an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddableAdGroupCriterion extends AdGroupCriterion { + /** + * @access public + * @var tnsUserStatus + */ + public $userStatus; + + /** + * @access public + * @var tnsSystemServingStatus + */ + public $systemServingStatus; + + /** + * @access public + * @var tnsApprovalStatus + */ + public $approvalStatus; + + /** + * @access public + * @var string[] + */ + public $disapprovalReasons; + + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * @access public + * @var BiddableAdGroupCriterionExperimentData + */ + public $experimentData; + + /** + * @access public + * @var Bid + */ + public $firstPageCpc; + + /** + * @access public + * @var Bid + */ + public $topOfPageCpc; + + /** + * @access public + * @var QualityInfo + */ + public $qualityInfo; + + /** + * @access public + * @var Stats + */ + public $stats; + + /** + * @access public + * @var BiddingStrategyConfiguration + */ + public $biddingStrategyConfiguration; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddableAdGroupCriterion"; + } + + public function __construct($userStatus = NULL, $systemServingStatus = NULL, $approvalStatus = NULL, $disapprovalReasons = NULL, $destinationUrl = NULL, $experimentData = NULL, $firstPageCpc = NULL, $topOfPageCpc = NULL, $qualityInfo = NULL, $stats = NULL, $biddingStrategyConfiguration = NULL, $bidModifier = NULL, $adGroupId = NULL, $criterionUse = NULL, $criterion = NULL, $forwardCompatibilityMap = NULL, $AdGroupCriterionType = NULL) { + parent::__construct(); + $this->userStatus = $userStatus; + $this->systemServingStatus = $systemServingStatus; + $this->approvalStatus = $approvalStatus; + $this->disapprovalReasons = $disapprovalReasons; + $this->destinationUrl = $destinationUrl; + $this->experimentData = $experimentData; + $this->firstPageCpc = $firstPageCpc; + $this->topOfPageCpc = $topOfPageCpc; + $this->qualityInfo = $qualityInfo; + $this->stats = $stats; + $this->biddingStrategyConfiguration = $biddingStrategyConfiguration; + $this->bidModifier = $bidModifier; + $this->adGroupId = $adGroupId; + $this->criterionUse = $criterionUse; + $this->criterion = $criterion; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->AdGroupCriterionType = $AdGroupCriterionType; + } +}} + +if (!class_exists("BiddableAdGroupCriterionExperimentData", FALSE)) { +/** + * Data associated with an advertiser experiment for this {@link BiddableAdGroupCriterion}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddableAdGroupCriterionExperimentData { + /** + * @access public + * @var integer + */ + public $experimentId; + + /** + * @access public + * @var tnsExperimentDeltaStatus + */ + public $experimentDeltaStatus; + + /** + * @access public + * @var tnsExperimentDataStatus + */ + public $experimentDataStatus; + + /** + * @access public + * @var AdGroupCriterionExperimentBidMultiplier + */ + public $experimentBidMultiplier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddableAdGroupCriterionExperimentData"; + } + + public function __construct($experimentId = NULL, $experimentDeltaStatus = NULL, $experimentDataStatus = NULL, $experimentBidMultiplier = NULL) { + $this->experimentId = $experimentId; + $this->experimentDeltaStatus = $experimentDeltaStatus; + $this->experimentDataStatus = $experimentDataStatus; + $this->experimentBidMultiplier = $experimentBidMultiplier; + } +}} + +if (!class_exists("BiddingError", FALSE)) { +/** + * Represents bidding errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingError extends ApiError { + /** + * @access public + * @var tnsBiddingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BiddingErrors", FALSE)) { +/** + * Represents error codes for bidding strategy entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingErrors extends ApiError { + /** + * @access public + * @var tnsBiddingErrorsReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BiddingScheme", FALSE)) { +/** + * Base class for all bidding schemes. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingScheme { + /** + * @access public + * @var string + */ + public $BiddingSchemeType; + + private $_parameterMap = array ( + "BiddingScheme.Type" => "BiddingSchemeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("BiddingStrategyConfiguration", FALSE)) { +/** + * Encapsulates the information about bids and bidding strategies. + * + * Bidding Strategy can be set on campaigns, ad groups or ad group criteria. + * A bidding strategy can be set using one of the following: + *
    + *
  • {@linkplain BiddingStrategyConfiguration#biddingScheme bidding scheme}
  • + *
  • {@linkplain BiddingStrategyConfiguration#biddingStrategyType bidding strategy type}
  • + *
  • {@linkplain BiddingStrategyConfiguration#biddingStrategyId bidding strategy ID} for + * flexible bid strategies.
  • + *
+ * If the bidding strategy type is used, then schemes are created using default values. + * + * Bids can be set only on ad groups and ad group criteria. They cannot be set on campaigns. + * Multiple bids can be set at the same time. Only the bids that apply to the campaign's + * {@linkplain Campaign#biddingStrategyConfiguration bidding strategy} will be used. + * + * Flexible bidding is a beta feature. For more information on flexible bidding, + * visit the + * Help Center. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyConfiguration { + /** + * @access public + * @var integer + */ + public $biddingStrategyId; + + /** + * @access public + * @var string + */ + public $biddingStrategyName; + + /** + * @access public + * @var tnsBiddingStrategyType + */ + public $biddingStrategyType; + + /** + * @access public + * @var tnsBiddingStrategySource + */ + public $biddingStrategySource; + + /** + * @access public + * @var BiddingScheme + */ + public $biddingScheme; + + /** + * @access public + * @var Bids[] + */ + public $bids; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyConfiguration"; + } + + public function __construct($biddingStrategyId = NULL, $biddingStrategyName = NULL, $biddingStrategyType = NULL, $biddingStrategySource = NULL, $biddingScheme = NULL, $bids = NULL) { + $this->biddingStrategyId = $biddingStrategyId; + $this->biddingStrategyName = $biddingStrategyName; + $this->biddingStrategyType = $biddingStrategyType; + $this->biddingStrategySource = $biddingStrategySource; + $this->biddingScheme = $biddingScheme; + $this->bids = $bids; + } +}} + +if (!class_exists("BiddingTransitionError", FALSE)) { +/** + * Bidding transition errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingTransitionError extends ApiError { + /** + * @access public + * @var tnsBiddingTransitionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingTransitionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Bids", FALSE)) { +/** + * Base class for all bids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Bids { + /** + * @access public + * @var string + */ + public $BidsType; + + private $_parameterMap = array ( + "Bids.Type" => "BidsType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Bids"; + } + + public function __construct($BidsType = NULL) { + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("BillingSummary", FALSE)) { +/** + * Represents the billing summary of the job that provides the overall cost of + * the job's operations, i.e., for the work done by the job. This + * therefore excludes the cost of operating on the job itself - setting up the + * job, polling for its status, retrieving the result, etc. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BillingSummary { + /** + * @access public + * @var integer + */ + public $numOperations; + + /** + * @access public + * @var integer + */ + public $numUnits; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingSummary"; + } + + public function __construct($numOperations = NULL, $numUnits = NULL) { + $this->numOperations = $numOperations; + $this->numUnits = $numUnits; + } +}} + +if (!class_exists("Budget", FALSE)) { +/** + * Budgets are used for managing the amount of money spent on AdWords. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Budget { + /** + * @access public + * @var integer + */ + public $budgetId; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsBudgetBudgetPeriod + */ + public $period; + + /** + * @access public + * @var Money + */ + public $amount; + + /** + * @access public + * @var tnsBudgetBudgetDeliveryMethod + */ + public $deliveryMethod; + + /** + * @access public + * @var integer + */ + public $referenceCount; + + /** + * @access public + * @var boolean + */ + public $isExplicitlyShared; + + /** + * @access public + * @var tnsBudgetBudgetStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget"; + } + + public function __construct($budgetId = NULL, $name = NULL, $period = NULL, $amount = NULL, $deliveryMethod = NULL, $referenceCount = NULL, $isExplicitlyShared = NULL, $status = NULL) { + $this->budgetId = $budgetId; + $this->name = $name; + $this->period = $period; + $this->amount = $amount; + $this->deliveryMethod = $deliveryMethod; + $this->referenceCount = $referenceCount; + $this->isExplicitlyShared = $isExplicitlyShared; + $this->status = $status; + } +}} + +if (!class_exists("BudgetError", FALSE)) { +/** + * A list of all the error codes being used by the common budget domain package. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetError extends ApiError { + /** + * @access public + * @var tnsBudgetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BudgetOptimizerBiddingScheme", FALSE)) { +/** + * In budget optimizer, Google automatically places bids for the user based on + * their daily/monthly budget. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOptimizerBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("BulkMutateJobError", FALSE)) { +/** + * Bulk mutate job handling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BulkMutateJobError extends ApiError { + /** + * @access public + * @var tnsBulkMutateJobErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateJobError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BulkMutateJobPolicy", FALSE)) { +/** + * A basic job policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BulkMutateJobPolicy { + /** + * @access public + * @var integer[] + */ + public $prerequisiteJobIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateJobPolicy"; + } + + public function __construct($prerequisiteJobIds = NULL) { + $this->prerequisiteJobIds = $prerequisiteJobIds; + } +}} + +if (!class_exists("BulkMutateRequest", FALSE)) { +/** + * A request part of a {@link BulkMutateJob}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BulkMutateRequest { + /** + * @access public + * @var integer + */ + public $partIndex; + + /** + * @access public + * @var OperationStream[] + */ + public $operationStreams; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateRequest"; + } + + public function __construct($partIndex = NULL, $operationStreams = NULL) { + $this->partIndex = $partIndex; + $this->operationStreams = $operationStreams; + } +}} + +if (!class_exists("BulkMutateResult", FALSE)) { +/** + * Represents a result part of a {@link BulkMutateJob}. + * + *

Once one or more mutate operations have been processed, the bulk mutate + * job will eventually be completed. This means that the job will have a result + * corresponding to each operation. The types of results for an operation are: + *

    + *
  • {@link ReturnValueResult}: the corresponding operation was successfully + * processed and this result contains the return value of that operation; + *
  • + *
  • {@link FailureResult} or {@link BatchFailureResult}: the corresponding + * operation was in a batch that failed with errors. Please inspect these + * errors to determine if the operation itself was faulty and if so what + * errors need to be fixed before you submit this operation as part of a + * future job.
  • + *
  • {@link LostResult}: the corresponding operation was processed - it was + * either successful and had a return value, or it was a part of a failed + * batch. Unfortunately, despite our best efforts, we were unable to + * durably save the result. You may have to retrieve the related state of + * your account to determine if this operation actually succeeded.
  • + *
  • {@link UnprocessedResult}: the corresponding operation was not processed + * because the job was aborted Note: The job's status will be + * {@code COMPLETED}, signifying that although it may have some operations + * that were processed, it cannot be resumed.
  • + * + *

    The results of a job are structured so that the each operation can be + * easily matched to its corresponding result. So for every + * {@link BulkMutateRequest} in a job, there is a corresponding + * {@code BulkMutateResult}; For every {@link OperationStream} in a request + * part, there is a corresponding {@link OperationStreamResult}; And, for + * every {@link Operation} in an operation stream, there is an + * {@link OperationResult}.

    + * + *

    Within an operation stream, the operations are processed in atomic + * batches. So even one faulty operation may cause its neighboring non-faulty + * operations to fail just because they happened to be processed in the same + * batch. It is important to keep this batch failure reporting scheme in mind + * when handling operation failures.

    + * + *

    There will be a single {@link ApiException} returned for each failing + * batch of operations, and it will have a similar structure and + * interpretation to the exceptions returned by the synchronous AdWords API + * services. This exception is returned in a {@link FailureResult} that + * corresponds to the first operation of the failing batch.

    + * + *

    The exception may contain multiple errors, and each error may have + * {@code OGNL path}s that identify the faulty operation(s) by index (or + * position within the batch). The first operation in the batch has an + * implicit index of 0. The subsequent operations in the batch have a + * corresponding {@link BatchFailureResult} which explicitly specifies the + * index of the operation within the batch.

    + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BulkMutateResult { + /** + * @access public + * @var integer + */ + public $partIndex; + + /** + * @access public + * @var OperationStreamResult[] + */ + public $operationStreamResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateResult"; + } + + public function __construct($partIndex = NULL, $operationStreamResults = NULL) { + $this->partIndex = $partIndex; + $this->operationStreamResults = $operationStreamResults; + } +}} + +if (!class_exists("Campaign", FALSE)) { +/** + * Data representing an AdWords campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Campaign { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsCampaignStatus + */ + public $status; + + /** + * @access public + * @var tnsServingStatus + */ + public $servingStatus; + + /** + * @access public + * @var string + */ + public $startDate; + + /** + * @access public + * @var string + */ + public $endDate; + + /** + * @access public + * @var Budget + */ + public $budget; + + /** + * @access public + * @var ConversionOptimizerEligibility + */ + public $conversionOptimizerEligibility; + + /** + * @access public + * @var CampaignStats + */ + public $campaignStats; + + /** + * @access public + * @var tnsAdServingOptimizationStatus + */ + public $adServingOptimizationStatus; + + /** + * @access public + * @var FrequencyCap + */ + public $frequencyCap; + + /** + * @access public + * @var Setting[] + */ + public $settings; + + /** + * @access public + * @var NetworkSetting + */ + public $networkSetting; + + /** + * @access public + * @var BiddingStrategyConfiguration + */ + public $biddingStrategyConfiguration; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * @access public + * @var boolean + */ + public $enhanced; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Campaign"; + } + + public function __construct($id = NULL, $name = NULL, $status = NULL, $servingStatus = NULL, $startDate = NULL, $endDate = NULL, $budget = NULL, $conversionOptimizerEligibility = NULL, $campaignStats = NULL, $adServingOptimizationStatus = NULL, $frequencyCap = NULL, $settings = NULL, $networkSetting = NULL, $biddingStrategyConfiguration = NULL, $forwardCompatibilityMap = NULL, $enhanced = NULL) { + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->servingStatus = $servingStatus; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->budget = $budget; + $this->conversionOptimizerEligibility = $conversionOptimizerEligibility; + $this->campaignStats = $campaignStats; + $this->adServingOptimizationStatus = $adServingOptimizationStatus; + $this->frequencyCap = $frequencyCap; + $this->settings = $settings; + $this->networkSetting = $networkSetting; + $this->biddingStrategyConfiguration = $biddingStrategyConfiguration; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->enhanced = $enhanced; + } +}} + +if (!class_exists("CampaignAdExtension", FALSE)) { +/** + * Represents a campaign level ad extension. A campaign ad extension specifies + * a campaign and an ad extension which can extend any ad under that campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtension { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var AdExtension + */ + public $adExtension; + + /** + * @access public + * @var tnsCampaignAdExtensionStatus + */ + public $status; + + /** + * @access public + * @var tnsCampaignAdExtensionApprovalStatus + */ + public $approvalStatus; + + /** + * @access public + * @var CampaignAdExtensionStats + */ + public $stats; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtension"; + } + + public function __construct($campaignId = NULL, $adExtension = NULL, $status = NULL, $approvalStatus = NULL, $stats = NULL) { + $this->campaignId = $campaignId; + $this->adExtension = $adExtension; + $this->status = $status; + $this->approvalStatus = $approvalStatus; + $this->stats = $stats; + } +}} + +if (!class_exists("CampaignAdExtensionError", FALSE)) { +/** + * CampaignAdExtension errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionError extends ApiError { + /** + * @access public + * @var tnsCampaignAdExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CampaignCriterion", FALSE)) { +/** + * Represents a campaign level criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterion { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var boolean + */ + public $isNegative; + + /** + * @access public + * @var Criterion + */ + public $criterion; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * @access public + * @var string + */ + public $CampaignCriterionType; + + private $_parameterMap = array ( + "CampaignCriterion.Type" => "CampaignCriterionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterion"; + } + + public function __construct($campaignId = NULL, $isNegative = NULL, $criterion = NULL, $bidModifier = NULL, $forwardCompatibilityMap = NULL, $CampaignCriterionType = NULL) { + $this->campaignId = $campaignId; + $this->isNegative = $isNegative; + $this->criterion = $criterion; + $this->bidModifier = $bidModifier; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->CampaignCriterionType = $CampaignCriterionType; + } +}} + +if (!class_exists("CampaignCriterionError", FALSE)) { +/** + * Base error class for Campaign Criterion Service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterionError extends ApiError { + /** + * @access public + * @var tnsCampaignCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CampaignError", FALSE)) { +/** + * Base error class for Campaign Service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignError extends ApiError { + /** + * @access public + * @var tnsCampaignErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("ConversionOptimizerBiddingScheme", FALSE)) { +/** + * Conversion optimizer bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + *

    {@code pricingMode} currently defaults to {@code CLICKS} and + * cannot be changed.

    + * + *

    Note that campaigns must meet specific + * eligibility requirements before they can use the ConversionOptimizer + * bidding strategy. + * + * For more information on conversion optimizer, visit the + * Conversion Optimizer site. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemePricingMode + */ + public $pricingMode; + + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemeBidType + */ + public $bidType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme"; + } + + public function __construct($pricingMode = NULL, $bidType = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->pricingMode = $pricingMode; + $this->bidType = $bidType; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ConversionOptimizerEligibility", FALSE)) { +/** + * Eligibility data for Campaign to transition to Conversion Optimizer + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerEligibility { + /** + * @access public + * @var boolean + */ + public $eligible; + + /** + * @access public + * @var tnsConversionOptimizerEligibilityRejectionReason[] + */ + public $rejectionReasons; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerEligibility"; + } + + public function __construct($eligible = NULL, $rejectionReasons = NULL) { + $this->eligible = $eligible; + $this->rejectionReasons = $rejectionReasons; + } +}} + +if (!class_exists("CpaBid", FALSE)) { +/** + * CPA Bids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CpaBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpaBid"; + } + + public function __construct($bid = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("CpcBid", FALSE)) { +/** + * Manual click based bids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CpcBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var Money + */ + public $contentBid; + + /** + * @access public + * @var tnsBidSource + */ + public $cpcBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpcBid"; + } + + public function __construct($bid = NULL, $contentBid = NULL, $cpcBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->contentBid = $contentBid; + $this->cpcBidSource = $cpcBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("CpmBid", FALSE)) { +/** + * Manual impression based bids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CpmBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var tnsBidSource + */ + public $cpmBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpmBid"; + } + + public function __construct($bid = NULL, $cpmBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->cpmBidSource = $cpmBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("Criterion", FALSE)) { +/** + * Represents a criterion (such as a keyword, placement, or vertical). + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Criterion { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsCriterionType + */ + public $type; + + /** + * @access public + * @var string + */ + public $CriterionType; + + private $_parameterMap = array ( + "Criterion.Type" => "CriterionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + public function __construct($id = NULL, $type = NULL, $CriterionType = NULL) { + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionError", FALSE)) { +/** + * Error class used for reporting criteria related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionError extends ApiError { + /** + * @access public + * @var tnsCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CriterionParameter", FALSE)) { +/** + * Base type of criterion parameters. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionParameter { + /** + * @access public + * @var string + */ + public $CriterionParameterType; + + private $_parameterMap = array ( + "CriterionParameter.Type" => "CriterionParameterType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionParameter"; + } + + public function __construct($CriterionParameterType = NULL) { + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DeprecatedAd", FALSE)) { +/** + * Represents a deprecated ad. + * + * Deprecated ads can be deleted, but cannot be created. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DeprecatedAd extends Ad { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsDeprecatedAdType + */ + public $type; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeprecatedAd"; + } + + public function __construct($name = NULL, $type = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->name = $name; + $this->type = $type; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("Dimensions", FALSE)) { +/** + * Represents a simple height-width dimension. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Dimensions { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Dimensions"; + } + + public function __construct($width = NULL, $height = NULL) { + $this->width = $width; + $this->height = $height; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DomainInfoExtension", FALSE)) { +/** + * Domain extension, which adds domain info to ads. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DomainInfoExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $domainName; + + /** + * @access public + * @var string + */ + public $languageCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DomainInfoExtension"; + } + + public function __construct($domainName = NULL, $languageCode = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->domainName = $domainName; + $this->languageCode = $languageCode; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("EnhancedCpcBiddingScheme", FALSE)) { +/** + * Enhanced CPC is a bidding strategy that raises your bids for clicks that seem more likely to + * lead to a conversion and lowers them for clicks where they seem less likely. + * + * This bidding scheme does not support criteria level bidding strategy overrides. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EnhancedCpcBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnhancedCpcBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("EntityAccessDenied", FALSE)) { +/** + * Reports permission problems trying to access an entity. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityAccessDenied extends ApiError { + /** + * @access public + * @var tnsEntityAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityId", FALSE)) { +/** + * A qualified long-valued identity that can identify different types of + * AdWords entities such as campaigns and ad-groups. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityId { + /** + * @access public + * @var tnsEntityIdType + */ + public $type; + + /** + * @access public + * @var integer + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityId"; + } + + public function __construct($type = NULL, $value = NULL) { + $this->type = $type; + $this->value = $value; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ExemptionRequest", FALSE)) { +/** + * A request to be exempted from a {@link PolicyViolationError}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExemptionRequest { + /** + * @access public + * @var PolicyViolationKey + */ + public $key; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExemptionRequest"; + } + + public function __construct($key = NULL) { + $this->key = $key; + } +}} + +if (!class_exists("FeedItem", FALSE)) { +/** + * Represents an item in a feed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItem { + /** + * @access public + * @var integer + */ + public $feedId; + + /** + * @access public + * @var integer + */ + public $feedItemId; + + /** + * @access public + * @var tnsFeedItemStatus + */ + public $status; + + /** + * @access public + * @var string + */ + public $startTime; + + /** + * @access public + * @var string + */ + public $endTime; + + /** + * @access public + * @var FeedItemAttributeValue[] + */ + public $attributeValues; + + /** + * @access public + * @var FeedItemValidationDetail[] + */ + public $validationDetails; + + /** + * @access public + * @var FeedItemDevicePreference + */ + public $devicePreference; + + /** + * @access public + * @var FeedItemScheduling + */ + public $scheduling; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItem"; + } + + public function __construct($feedId = NULL, $feedItemId = NULL, $status = NULL, $startTime = NULL, $endTime = NULL, $attributeValues = NULL, $validationDetails = NULL, $devicePreference = NULL, $scheduling = NULL) { + $this->feedId = $feedId; + $this->feedItemId = $feedItemId; + $this->status = $status; + $this->startTime = $startTime; + $this->endTime = $endTime; + $this->attributeValues = $attributeValues; + $this->validationDetails = $validationDetails; + $this->devicePreference = $devicePreference; + $this->scheduling = $scheduling; + } +}} + +if (!class_exists("FeedItemAttributeError", FALSE)) { +/** + * Contains validation error details for a set of feed attributes. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemAttributeError { + /** + * @access public + * @var integer[] + */ + public $feedAttributeIds; + + /** + * @access public + * @var integer + */ + public $validationErrorCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemAttributeError"; + } + + public function __construct($feedAttributeIds = NULL, $validationErrorCode = NULL) { + $this->feedAttributeIds = $feedAttributeIds; + $this->validationErrorCode = $validationErrorCode; + } +}} + +if (!class_exists("FeedItemAttributeValue", FALSE)) { +/** + * Represents a feed item's value for a particular feed attribute. A feed item's value is + * composed of a collection of these attribute values. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemAttributeValue { + /** + * @access public + * @var integer + */ + public $feedAttributeId; + + /** + * @access public + * @var integer + */ + public $integerValue; + + /** + * @access public + * @var double + */ + public $doubleValue; + + /** + * @access public + * @var boolean + */ + public $booleanValue; + + /** + * @access public + * @var string + */ + public $stringValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemAttributeValue"; + } + + public function __construct($feedAttributeId = NULL, $integerValue = NULL, $doubleValue = NULL, $booleanValue = NULL, $stringValue = NULL) { + $this->feedAttributeId = $feedAttributeId; + $this->integerValue = $integerValue; + $this->doubleValue = $doubleValue; + $this->booleanValue = $booleanValue; + $this->stringValue = $stringValue; + } +}} + +if (!class_exists("FeedItemDevicePreference", FALSE)) { +/** + * Represents a FeedItem device preference. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemDevicePreference { + /** + * @access public + * @var integer + */ + public $devicePreference; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemDevicePreference"; + } + + public function __construct($devicePreference = NULL) { + $this->devicePreference = $devicePreference; + } +}} + +if (!class_exists("FeedItemError", FALSE)) { +/** + * FeedItemService related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemError extends ApiError { + /** + * @access public + * @var tnsFeedItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("FeedItemSchedule", FALSE)) { +/** + * Represents a FeedItem schedule, which specifies a time interval on a given day + * when the feed item may serve. The FeedItemSchedule times are in the account's time zone. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemSchedule { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var integer + */ + public $startHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $startMinute; + + /** + * @access public + * @var integer + */ + public $endHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $endMinute; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemSchedule"; + } + + public function __construct($dayOfWeek = NULL, $startHour = NULL, $startMinute = NULL, $endHour = NULL, $endMinute = NULL) { + $this->dayOfWeek = $dayOfWeek; + $this->startHour = $startHour; + $this->startMinute = $startMinute; + $this->endHour = $endHour; + $this->endMinute = $endMinute; + } +}} + +if (!class_exists("FeedItemScheduling", FALSE)) { +/** + * Represents a collection of FeedItem schedules specifying all time intervals for which + * the feed item may serve. Any time range not covered by the specified FeedItemSchedules will + * prevent the feed item from serving during those times. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemScheduling { + /** + * @access public + * @var FeedItemSchedule[] + */ + public $feedItemSchedules; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemScheduling"; + } + + public function __construct($feedItemSchedules = NULL) { + $this->feedItemSchedules = $feedItemSchedules; + } +}} + +if (!class_exists("FeedItemValidationDetail", FALSE)) { +/** + * Contains offline-validation and approval results for a given FeedItem and FeedMapping. Each + * validation detail indicates any issues found on the feed item when used in the context + * of the feed mapping. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemValidationDetail { + /** + * @access public + * @var integer + */ + public $feedMappingId; + + /** + * @access public + * @var tnsFeedItemValidationDetailValidationStatus + */ + public $validationStatus; + + /** + * @access public + * @var FeedItemAttributeError[] + */ + public $validationErrors; + + /** + * @access public + * @var tnsFeedItemValidationDetailApprovalStatus + */ + public $approvalStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemValidationDetail"; + } + + public function __construct($feedMappingId = NULL, $validationStatus = NULL, $validationErrors = NULL, $approvalStatus = NULL) { + $this->feedMappingId = $feedMappingId; + $this->validationStatus = $validationStatus; + $this->validationErrors = $validationErrors; + $this->approvalStatus = $approvalStatus; + } +}} + +if (!class_exists("ForwardCompatibilityError", FALSE)) { +/** + * A ForwardComptibilityError represents possible errors when using the forwardCompatibilityMap + * in some of the common services. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ForwardCompatibilityError extends ApiError { + /** + * @access public + * @var tnsForwardCompatibilityErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * A frequency cap is the maximum number of times an ad (or some set of ads) can + * be shown to a user over a particular time period. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FrequencyCap { + /** + * @access public + * @var integer + */ + public $impressions; + + /** + * @access public + * @var tnsTimeUnit + */ + public $timeUnit; + + /** + * @access public + * @var tnsLevel + */ + public $level; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCap"; + } + + public function __construct($impressions = NULL, $timeUnit = NULL, $level = NULL) { + $this->impressions = $impressions; + $this->timeUnit = $timeUnit; + $this->level = $level; + } +}} + +if (!class_exists("Gender", FALSE)) { +/** + * Represents a Gender criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only excludable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Gender extends Criterion { + /** + * @access public + * @var tnsGenderGenderType + */ + public $genderType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Gender"; + } + + public function __construct($genderType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->genderType = $genderType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("GeoPoint", FALSE)) { +/** + * Specifies a geo location with the supplied latitude/longitude. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GeoPoint { + /** + * @access public + * @var integer + */ + public $latitudeInMicroDegrees; + + /** + * @access public + * @var integer + */ + public $longitudeInMicroDegrees; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoPoint"; + } + + public function __construct($latitudeInMicroDegrees = NULL, $longitudeInMicroDegrees = NULL) { + $this->latitudeInMicroDegrees = $latitudeInMicroDegrees; + $this->longitudeInMicroDegrees = $longitudeInMicroDegrees; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ImageAd", FALSE)) { +/** + * Represents an ImageAd. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ImageAd extends Ad { + /** + * @access public + * @var Image + */ + public $image; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $adToCopyImageFrom; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageAd"; + } + + public function __construct($image = NULL, $name = NULL, $adToCopyImageFrom = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->image = $image; + $this->name = $name; + $this->adToCopyImageFrom = $adToCopyImageFrom; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("ImageError", FALSE)) { +/** + * Error class for errors associated with parsing image data. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ImageError extends ApiError { + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("InAppLinkExtension", FALSE)) { +/** + *

    This extension is useful for advertisers who wish to provide users with a + * link that points to the advertiser's mobile application in addition to their + * website. + * + *

    It is also known as Mobile App Extension. + * + *

    The API allows one InAppLinkExtension per {@code AppStore} per campaign. + * Only the extension for a given {@code AppStore} will render on the device + * relevant to that {@code AppStore} (e.g. iPhones for {@code AppStore.ITUNES} + * and Android phones for {@code AppStore.GOOGLE_PLAY}). + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InAppLinkExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $inAppLinkText; + + /** + * @access public + * @var string + */ + public $inAppLinkUrl; + + /** + * @access public + * @var tnsInAppLinkExtensionAppStore + */ + public $appStore; + + /** + * @access public + * @var string + */ + public $appId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InAppLinkExtension"; + } + + public function __construct($inAppLinkText = NULL, $inAppLinkUrl = NULL, $appStore = NULL, $appId = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->inAppLinkText = $inAppLinkText; + $this->inAppLinkUrl = $inAppLinkUrl; + $this->appStore = $appStore; + $this->appId = $appId; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Job", FALSE)) { +/** + * Represents an asynchronous macro unit of work. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Job { + /** + * @access public + * @var ApiErrorReason + */ + public $failureReason; + + /** + * @access public + * @var JobStats + */ + public $stats; + + /** + * @access public + * @var BillingSummary + */ + public $billingSummary; + + /** + * @access public + * @var string + */ + public $JobType; + + private $_parameterMap = array ( + "Job.Type" => "JobType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Job"; + } + + public function __construct($failureReason = NULL, $stats = NULL, $billingSummary = NULL, $JobType = NULL) { + $this->failureReason = $failureReason; + $this->stats = $stats; + $this->billingSummary = $billingSummary; + $this->JobType = $JobType; + } +}} + +if (!class_exists("JobError", FALSE)) { +/** + * Job handling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class JobError extends ApiError { + /** + * @access public + * @var tnsJobErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "JobError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("JobEvent", FALSE)) { +/** + * An event defined by a status change of a job. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class JobEvent { + /** + * @access public + * @var string + */ + public $dateTime; + + /** + * @access public + * @var string + */ + public $JobEventType; + + private $_parameterMap = array ( + "JobEvent.Type" => "JobEventType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "JobEvent"; + } + + public function __construct($dateTime = NULL, $JobEventType = NULL) { + $this->dateTime = $dateTime; + $this->JobEventType = $JobEventType; + } +}} + +if (!class_exists("JobResult", FALSE)) { +/** + * Represents the result data of a job. This contains both the results of + * successfully processed operations as well as errors returned by failed + * operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class JobResult { + /** + * @access public + * @var BulkMutateResult + */ + public $BulkMutateResult; + + /** + * @access public + * @var SimpleMutateResult + */ + public $SimpleMutateResult; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "JobResult"; + } + + public function __construct($BulkMutateResult = NULL, $SimpleMutateResult = NULL) { + $this->BulkMutateResult = $BulkMutateResult; + $this->SimpleMutateResult = $SimpleMutateResult; + } +}} + +if (!class_exists("JobSelector", FALSE)) { +/** + * For selecting jobs whose information will be returned from a get method call + * of a job service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class JobSelector { + /** + * @access public + * @var boolean + */ + public $includeHistory; + + /** + * @access public + * @var boolean + */ + public $includeStats; + + /** + * @access public + * @var string + */ + public $JobSelectorType; + + private $_parameterMap = array ( + "JobSelector.Type" => "JobSelectorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "JobSelector"; + } + + public function __construct($includeHistory = NULL, $includeStats = NULL, $JobSelectorType = NULL) { + $this->includeHistory = $includeHistory; + $this->includeStats = $includeStats; + $this->JobSelectorType = $JobSelectorType; + } +}} + +if (!class_exists("JobStats", FALSE)) { +/** + * Job-handling statistics. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class JobStats { + /** + * @access public + * @var integer + */ + public $progressPercent; + + /** + * @access public + * @var integer + */ + public $pendingTimeMillis; + + /** + * @access public + * @var integer + */ + public $processingTimeMillis; + + /** + * @access public + * @var string + */ + public $JobStatsType; + + private $_parameterMap = array ( + "JobStats.Type" => "JobStatsType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "JobStats"; + } + + public function __construct($progressPercent = NULL, $pendingTimeMillis = NULL, $processingTimeMillis = NULL, $JobStatsType = NULL) { + $this->progressPercent = $progressPercent; + $this->pendingTimeMillis = $pendingTimeMillis; + $this->processingTimeMillis = $processingTimeMillis; + $this->JobStatsType = $JobStatsType; + } +}} + +if (!class_exists("Keyword", FALSE)) { +/** + * Represents a keyword. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Keyword extends Criterion { + /** + * @access public + * @var string + */ + public $text; + + /** + * @access public + * @var tnsKeywordMatchType + */ + public $matchType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Keyword"; + } + + public function __construct($text = NULL, $matchType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->text = $text; + $this->matchType = $matchType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Language", FALSE)) { +/** + * Represents a Language criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Language extends Criterion { + /** + * @access public + * @var string + */ + public $code; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Language"; + } + + public function __construct($code = NULL, $name = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->code = $code; + $this->name = $name; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Location", FALSE)) { +/** + * Represents Location criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type can be either targeted or excluded. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Location extends Criterion { + /** + * @access public + * @var string + */ + public $locationName; + + /** + * @access public + * @var string + */ + public $displayType; + + /** + * @access public + * @var tnsLocationTargetingStatus + */ + public $targetingStatus; + + /** + * @access public + * @var Location[] + */ + public $parentLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($locationName = NULL, $displayType = NULL, $targetingStatus = NULL, $parentLocations = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->locationName = $locationName; + $this->displayType = $displayType; + $this->targetingStatus = $targetingStatus; + $this->parentLocations = $parentLocations; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("LocationExtension", FALSE)) { +/** + * Location based ad extension. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationExtension extends AdExtension { + /** + * @access public + * @var Address + */ + public $address; + + /** + * @access public + * @var GeoPoint + */ + public $geoPoint; + + /** + * @access public + * @var base64Binary + */ + public $encodedLocation; + + /** + * @access public + * @var string + */ + public $companyName; + + /** + * @access public + * @var string + */ + public $phoneNumber; + + /** + * @access public + * @var tnsLocationExtensionSource + */ + public $source; + + /** + * @access public + * @var integer + */ + public $iconMediaId; + + /** + * @access public + * @var integer + */ + public $imageMediaId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationExtension"; + } + + public function __construct($address = NULL, $geoPoint = NULL, $encodedLocation = NULL, $companyName = NULL, $phoneNumber = NULL, $source = NULL, $iconMediaId = NULL, $imageMediaId = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->address = $address; + $this->geoPoint = $geoPoint; + $this->encodedLocation = $encodedLocation; + $this->companyName = $companyName; + $this->phoneNumber = $phoneNumber; + $this->source = $source; + $this->iconMediaId = $iconMediaId; + $this->imageMediaId = $imageMediaId; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("LocationOverrideInfo", FALSE)) { +/** + * Represents override info for ad level LocationExtension overrides. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationOverrideInfo { + /** + * @access public + * @var integer + */ + public $radius; + + /** + * @access public + * @var tnsLocationOverrideInfoRadiusUnits + */ + public $radiusUnits; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationOverrideInfo"; + } + + public function __construct($radius = NULL, $radiusUnits = NULL) { + $this->radius = $radius; + $this->radiusUnits = $radiusUnits; + } +}} + +if (!class_exists("LocationSyncExtension", FALSE)) { +/** + * Local business center(LBC) sync extension that ties a LBC account with a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationSyncExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $email; + + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var OAuthInfo + */ + public $oAuthInfo; + + /** + * @access public + * @var integer + */ + public $iconMediaId; + + /** + * @access public + * @var boolean + */ + public $shouldSyncUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationSyncExtension"; + } + + public function __construct($email = NULL, $authToken = NULL, $oAuthInfo = NULL, $iconMediaId = NULL, $shouldSyncUrl = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->email = $email; + $this->authToken = $authToken; + $this->oAuthInfo = $oAuthInfo; + $this->iconMediaId = $iconMediaId; + $this->shouldSyncUrl = $shouldSyncUrl; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("ManualCPCAdGroupCriterionExperimentBidMultiplier", FALSE)) { +/** + * AdGroupCriterion level bid multiplier used in manual CPC bidding strategies. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManualCPCAdGroupCriterionExperimentBidMultiplier extends AdGroupCriterionExperimentBidMultiplier { + /** + * @access public + * @var BidMultiplier + */ + public $maxCpcMultiplier; + + /** + * @access public + * @var tnsMultiplierSource + */ + public $multiplierSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCPCAdGroupCriterionExperimentBidMultiplier"; + } + + public function __construct($maxCpcMultiplier = NULL, $multiplierSource = NULL, $AdGroupCriterionExperimentBidMultiplierType = NULL) { + parent::__construct(); + $this->maxCpcMultiplier = $maxCpcMultiplier; + $this->multiplierSource = $multiplierSource; + $this->AdGroupCriterionExperimentBidMultiplierType = $AdGroupCriterionExperimentBidMultiplierType; + } +}} + +if (!class_exists("ManualCPCAdGroupExperimentBidMultipliers", FALSE)) { +/** + * Adgroup level bid multipliers used in manual CPC bidding strategies. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManualCPCAdGroupExperimentBidMultipliers extends AdGroupExperimentBidMultipliers { + /** + * @access public + * @var BidMultiplier + */ + public $maxCpcMultiplier; + + /** + * @access public + * @var BidMultiplier + */ + public $maxContentCpcMultiplier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCPCAdGroupExperimentBidMultipliers"; + } + + public function __construct($maxCpcMultiplier = NULL, $maxContentCpcMultiplier = NULL, $AdGroupExperimentBidMultipliersType = NULL) { + parent::__construct(); + $this->maxCpcMultiplier = $maxCpcMultiplier; + $this->maxContentCpcMultiplier = $maxContentCpcMultiplier; + $this->AdGroupExperimentBidMultipliersType = $AdGroupExperimentBidMultipliersType; + } +}} + +if (!class_exists("ManualCPMAdGroupExperimentBidMultipliers", FALSE)) { +/** + * Adgroup level bid multipliers used in manual CPM bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManualCPMAdGroupExperimentBidMultipliers extends AdGroupExperimentBidMultipliers { + /** + * @access public + * @var BidMultiplier + */ + public $maxCpmMultiplier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCPMAdGroupExperimentBidMultipliers"; + } + + public function __construct($maxCpmMultiplier = NULL, $AdGroupExperimentBidMultipliersType = NULL) { + parent::__construct(); + $this->maxCpmMultiplier = $maxCpmMultiplier; + $this->AdGroupExperimentBidMultipliersType = $AdGroupExperimentBidMultipliersType; + } +}} + +if (!class_exists("ManualCpcBiddingScheme", FALSE)) { +/** + * Manual click based bidding where user pays per click. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManualCpcBiddingScheme extends BiddingScheme { + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpcBiddingScheme"; + } + + public function __construct($enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ManualCpmBiddingScheme", FALSE)) { +/** + * Manual impression based bidding where user pays per thousand impressions. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManualCpmBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpmBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("Media", FALSE)) { +/** + * Represents some kind of media. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Media { + /** + * @access public + * @var integer + */ + public $mediaId; + + /** + * @access public + * @var tnsMediaMediaType + */ + public $type; + + /** + * @access public + * @var integer + */ + public $referenceId; + + /** + * @access public + * @var Media_Size_DimensionsMapEntry[] + */ + public $dimensions; + + /** + * @access public + * @var Media_Size_StringMapEntry[] + */ + public $urls; + + /** + * @access public + * @var tnsMediaMimeType + */ + public $mimeType; + + /** + * @access public + * @var string + */ + public $sourceUrl; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $fileSize; + + /** + * @access public + * @var string + */ + public $creationTime; + + /** + * @access public + * @var string + */ + public $MediaType; + + private $_parameterMap = array ( + "Media.Type" => "MediaType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media"; + } + + public function __construct($mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("MediaError", FALSE)) { +/** + * Error class for media related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaError extends ApiError { + /** + * @access public + * @var tnsMediaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MediaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Media_Size_DimensionsMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Size + * and value of type Dimensions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Media_Size_DimensionsMapEntry { + /** + * @access public + * @var tnsMediaSize + */ + public $key; + + /** + * @access public + * @var Dimensions + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media_Size_DimensionsMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Media_Size_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Size + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Media_Size_StringMapEntry { + /** + * @access public + * @var tnsMediaSize + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media_Size_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("MobileAd", FALSE)) { +/** + * Represents a mobile ad. + * + *

    + * A mobile ad can contain a click-to-call phone number, a link to a website, + * or both. You specify which features you want by setting certain fields, as + * shown in the following table. For example, to create a click-to-call mobile + * ad, set the fields in the Click-to-call column. A hyphen indicates + * that you should not set the corresponding field. + *

    + *

    + * For more information, see + * + * Create a mobile ad. + *

    + * + * + * + * + * + * + * + * + *
    Click-to-call Website Both
    headline
    + * description
    + * mobileCarriers
    + * phoneNumber
    + * countryCode
    + * businessName
    + * -
    + * -
    + * -
    + *
    headline
    + * description
    + * mobileCarriers
    + * -
    + * -
    + * -
    + * displayUrl
    + * destinationUrl
    + * markupLanguages
    + *
    headline
    + * description
    + * mobileCarriers
    + * phoneNumber
    + * countryCode
    + * businessName
    + * displayUrl
    + * destinationUrl
    + * markupLanguages
    + *
    + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileAd extends Ad { + /** + * @access public + * @var string + */ + public $headline; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsMarkupLanguageType[] + */ + public $markupLanguages; + + /** + * @access public + * @var string[] + */ + public $mobileCarriers; + + /** + * @access public + * @var string + */ + public $businessName; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * @access public + * @var string + */ + public $phoneNumber; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAd"; + } + + public function __construct($headline = NULL, $description = NULL, $markupLanguages = NULL, $mobileCarriers = NULL, $businessName = NULL, $countryCode = NULL, $phoneNumber = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->headline = $headline; + $this->description = $description; + $this->markupLanguages = $markupLanguages; + $this->mobileCarriers = $mobileCarriers; + $this->businessName = $businessName; + $this->countryCode = $countryCode; + $this->phoneNumber = $phoneNumber; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("MobileAppCategory", FALSE)) { +/** + * Represents the mobile app category to be targeted. + * View the complete list of + * available mobile app categories. + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileAppCategory extends Criterion { + /** + * @access public + * @var integer + */ + public $mobileAppCategoryId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAppCategory"; + } + + public function __construct($mobileAppCategoryId = NULL, $displayName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->mobileAppCategoryId = $mobileAppCategoryId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileApplication", FALSE)) { +/** + * Represents the mobile application to be targeted. + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileApplication extends Criterion { + /** + * @access public + * @var string + */ + public $appId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileApplication"; + } + + public function __construct($appId = NULL, $displayName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->appId = $appId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device Criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileDevice extends Criterion { + /** + * @access public + * @var string + */ + public $deviceName; + + /** + * @access public + * @var string + */ + public $manufacturerName; + + /** + * @access public + * @var tnsMobileDeviceDeviceType + */ + public $deviceType; + + /** + * @access public + * @var string + */ + public $operatingSystemName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($deviceName = NULL, $manufacturerName = NULL, $deviceType = NULL, $operatingSystemName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->deviceName = $deviceName; + $this->manufacturerName = $manufacturerName; + $this->deviceType = $deviceType; + $this->operatingSystemName = $operatingSystemName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileExtension", FALSE)) { +/** + * Represents a phone extension. + * + *

    This type of ad extension attaches a phone number + * to a text ad, which lets customers call the advertiser directly from the ad. + * Phone extensions will appear as clickable phone numbers beneath the main text ad, + * and will be visible to high-end mobile device users who access google.com search, + * Voice search, Google Mobile App, or Google Maps for Mobile from their phone. + *

    + *

    Learn more about + * + * phone extensions. + *

    + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $phoneNumber; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * @access public + * @var boolean + */ + public $isCallTrackingEnabled; + + /** + * @access public + * @var boolean + */ + public $isCallOnly; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileExtension"; + } + + public function __construct($phoneNumber = NULL, $countryCode = NULL, $isCallTrackingEnabled = NULL, $isCallOnly = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->phoneNumber = $phoneNumber; + $this->countryCode = $countryCode; + $this->isCallTrackingEnabled = $isCallTrackingEnabled; + $this->isCallOnly = $isCallOnly; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("MobileImageAd", FALSE)) { +/** + * Represents a mobile image ad. + * + *

    For more information, see + * + * Create a mobile ad.

    + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileImageAd extends Ad { + /** + * @access public + * @var tnsMarkupLanguageType[] + */ + public $markupLanguages; + + /** + * @access public + * @var string[] + */ + public $mobileCarriers; + + /** + * @access public + * @var Image + */ + public $image; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileImageAd"; + } + + public function __construct($markupLanguages = NULL, $mobileCarriers = NULL, $image = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->markupLanguages = $markupLanguages; + $this->mobileCarriers = $mobileCarriers; + $this->image = $image; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NegativeAdGroupCriterion", FALSE)) { +/** + * A negative criterion in an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NegativeAdGroupCriterion extends AdGroupCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NegativeAdGroupCriterion"; + } + + public function __construct($adGroupId = NULL, $criterionUse = NULL, $criterion = NULL, $forwardCompatibilityMap = NULL, $AdGroupCriterionType = NULL) { + parent::__construct(); + $this->adGroupId = $adGroupId; + $this->criterionUse = $criterionUse; + $this->criterion = $criterion; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->AdGroupCriterionType = $AdGroupCriterionType; + } +}} + +if (!class_exists("NegativeCampaignCriterion", FALSE)) { +/** + * A negative campaign criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NegativeCampaignCriterion extends CampaignCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NegativeCampaignCriterion"; + } + + public function __construct($campaignId = NULL, $isNegative = NULL, $criterion = NULL, $bidModifier = NULL, $forwardCompatibilityMap = NULL, $CampaignCriterionType = NULL) { + parent::__construct(); + $this->campaignId = $campaignId; + $this->isNegative = $isNegative; + $this->criterion = $criterion; + $this->bidModifier = $bidModifier; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->CampaignCriterionType = $CampaignCriterionType; + } +}} + +if (!class_exists("NetworkSetting", FALSE)) { +/** + * Network settings for a Campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NetworkSetting { + /** + * @access public + * @var boolean + */ + public $targetGoogleSearch; + + /** + * @access public + * @var boolean + */ + public $targetSearchNetwork; + + /** + * @access public + * @var boolean + */ + public $targetContentNetwork; + + /** + * @access public + * @var boolean + */ + public $targetPartnerSearchNetwork; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NetworkSetting"; + } + + public function __construct($targetGoogleSearch = NULL, $targetSearchNetwork = NULL, $targetContentNetwork = NULL, $targetPartnerSearchNetwork = NULL) { + $this->targetGoogleSearch = $targetGoogleSearch; + $this->targetSearchNetwork = $targetSearchNetwork; + $this->targetContentNetwork = $targetContentNetwork; + $this->targetPartnerSearchNetwork = $targetPartnerSearchNetwork; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OAuthInfo", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OAuthInfo { + /** + * @access public + * @var string + */ + public $httpMethod; + + /** + * @access public + * @var string + */ + public $httpRequestUrl; + + /** + * @access public + * @var string + */ + public $httpAuthorizationHeader; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuthInfo"; + } + + public function __construct($httpMethod = NULL, $httpRequestUrl = NULL, $httpAuthorizationHeader = NULL) { + $this->httpMethod = $httpMethod; + $this->httpRequestUrl = $httpRequestUrl; + $this->httpAuthorizationHeader = $httpAuthorizationHeader; + } +}} + +if (!class_exists("Operand", FALSE)) { +/** + * A marker interface for entities that can be operated upon in mutate + * operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operand { + /** + * @access public + * @var AdExtensionOverride + */ + public $AdExtensionOverride; + + /** + * @access public + * @var AdGroupAd + */ + public $AdGroupAd; + + /** + * @access public + * @var AdGroupBidModifier + */ + public $AdGroupBidModifier; + + /** + * @access public + * @var AdGroupCriterion + */ + public $AdGroupCriterion; + + /** + * @access public + * @var AdGroup + */ + public $AdGroup; + + /** + * @access public + * @var Ad + */ + public $Ad; + + /** + * @access public + * @var Budget + */ + public $Budget; + + /** + * @access public + * @var CampaignAdExtension + */ + public $CampaignAdExtension; + + /** + * @access public + * @var CampaignCriterion + */ + public $CampaignCriterion; + + /** + * @access public + * @var Campaign + */ + public $Campaign; + + /** + * @access public + * @var FeedItem + */ + public $FeedItem; + + /** + * @access public + * @var Job + */ + public $Job; + + /** + * @access public + * @var Media + */ + public $Media; + + /** + * @access public + * @var PlaceHolder + */ + public $PlaceHolder; + + /** + * @access public + * @var TargetList + */ + public $TargetList; + + /** + * @access public + * @var Target + */ + public $Target; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operand"; + } + + public function __construct($AdExtensionOverride = NULL, $AdGroupAd = NULL, $AdGroupBidModifier = NULL, $AdGroupCriterion = NULL, $AdGroup = NULL, $Ad = NULL, $Budget = NULL, $CampaignAdExtension = NULL, $CampaignCriterion = NULL, $Campaign = NULL, $FeedItem = NULL, $Job = NULL, $Media = NULL, $PlaceHolder = NULL, $TargetList = NULL, $Target = NULL) { + $this->AdExtensionOverride = $AdExtensionOverride; + $this->AdGroupAd = $AdGroupAd; + $this->AdGroupBidModifier = $AdGroupBidModifier; + $this->AdGroupCriterion = $AdGroupCriterion; + $this->AdGroup = $AdGroup; + $this->Ad = $Ad; + $this->Budget = $Budget; + $this->CampaignAdExtension = $CampaignAdExtension; + $this->CampaignCriterion = $CampaignCriterion; + $this->Campaign = $Campaign; + $this->FeedItem = $FeedItem; + $this->Job = $Job; + $this->Media = $Media; + $this->PlaceHolder = $PlaceHolder; + $this->TargetList = $TargetList; + $this->Target = $Target; + } +}} + +if (!class_exists("OperatingSystemVersion", FALSE)) { +/** + * Represents a Operating System Version Criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatingSystemVersion extends Criterion { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $osMajorVersion; + + /** + * @access public + * @var integer + */ + public $osMinorVersion; + + /** + * @access public + * @var tnsOperatingSystemVersionOperatorType + */ + public $operatorType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($name = NULL, $osMajorVersion = NULL, $osMinorVersion = NULL, $operatorType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->name = $name; + $this->osMajorVersion = $osMajorVersion; + $this->osMinorVersion = $osMinorVersion; + $this->operatorType = $operatorType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperationResult", FALSE)) { +/** + * Represents the result of an individual mutate operation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationResult { + /** + * @access public + * @var string + */ + public $OperationResultType; + + private $_parameterMap = array ( + "OperationResult.Type" => "OperationResultType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationResult"; + } + + public function __construct($OperationResultType = NULL) { + $this->OperationResultType = $OperationResultType; + } +}} + +if (!class_exists("OperationStream", FALSE)) { +/** + * A stream of AdWords API mutate operations that must be performed serially. + * Further, this operation stream must be processed serially with all other + * operation streams in a bulk mutate job that specify the same scoping + * entity. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationStream { + /** + * @access public + * @var EntityId + */ + public $scopingEntityId; + + /** + * @access public + * @var Operation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationStream"; + } + + public function __construct($scopingEntityId = NULL, $operations = NULL) { + $this->scopingEntityId = $scopingEntityId; + $this->operations = $operations; + } +}} + +if (!class_exists("OperationStreamResult", FALSE)) { +/** + * The result of processing an {@link OperationStream}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationStreamResult { + /** + * @access public + * @var OperationResult[] + */ + public $operationResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationStreamResult"; + } + + public function __construct($operationResults = NULL) { + $this->operationResults = $operationResults; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OverrideInfo", FALSE)) { +/** + * Represents additional override info with which to augment the override + * extension. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OverrideInfo { + /** + * @access public + * @var LocationOverrideInfo + */ + public $LocationOverrideInfo; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OverrideInfo"; + } + + public function __construct($LocationOverrideInfo = NULL) { + $this->LocationOverrideInfo = $LocationOverrideInfo; + } +}} + +if (!class_exists("PageOnePromotedBiddingScheme", FALSE)) { +/** + * Page-One Promoted bidding scheme, which sets max cpc bids to + * target impressions on page one or page one promoted slots on google.com. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PageOnePromotedBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsPageOnePromotedBiddingSchemeStrategyGoal + */ + public $strategyGoal; + + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var boolean + */ + public $bidChangesForRaisesOnly; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenBudgetConstained; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenLowQualityScore; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme"; + } + + public function __construct($strategyGoal = NULL, $bidCeiling = NULL, $bidModifier = NULL, $bidChangesForRaisesOnly = NULL, $raiseBidWhenBudgetConstained = NULL, $raiseBidWhenLowQualityScore = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->strategyGoal = $strategyGoal; + $this->bidCeiling = $bidCeiling; + $this->bidModifier = $bidModifier; + $this->bidChangesForRaisesOnly = $bidChangesForRaisesOnly; + $this->raiseBidWhenBudgetConstained = $raiseBidWhenBudgetConstained; + $this->raiseBidWhenLowQualityScore = $raiseBidWhenLowQualityScore; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("PagingError", FALSE)) { +/** + * Error codes for pagination. + * See {@link com.google.ads.api.services.common.pagination.Paging}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PagingError extends ApiError { + /** + * @access public + * @var tnsPagingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PercentCpaBid", FALSE)) { +/** + * Percentage CPA based bidding where user pays a percent of conversions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PercentCpaBid extends Bids { + /** + * @access public + * @var integer + */ + public $bid; + + /** + * @access public + * @var tnsBidSource + */ + public $percentCpaBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBid"; + } + + public function __construct($bid = NULL, $percentCpaBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->percentCpaBidSource = $percentCpaBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("PercentCpaBiddingScheme", FALSE)) { +/** + * Percentage CPA based bidding scheme attributes where user pays a percent of conversions. + * This bidding strategy is available only to some advertisers. + *

    A campaign can only be created with PercentCPA bidding strategy. Existing + * campaigns with a different bidding strategy cannot be transitioned to PercentCPA. + *

    Similarly, once created as a PercentCPA, a campaign cannot be transitioned to + * any other bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PercentCpaBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("PlaceHolder", FALSE)) { +/** + * A place holder for a result which is not available. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PlaceHolder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlaceHolder"; + } + + public function __construct() { + } +}} + +if (!class_exists("Placement", FALSE)) { +/** + * A placement used for modifying bids for sites when targeting the content + * network. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Placement extends Criterion { + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + public function __construct($url = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->url = $url; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Platform", FALSE)) { +/** + * Represents Platform criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Platform extends Criterion { + /** + * @access public + * @var string + */ + public $platformName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Platform"; + } + + public function __construct($platformName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->platformName = $platformName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("PolicyViolationError", FALSE)) { +/** + * Represents violations of a single policy by some text in a field. + * + * Violations of a single policy by the same string in multiple places + * within a field is reported in one instance of this class and only one + * exemption needs to be filed. + * Violations of a single policy by two different strings is reported + * as two separate instances of this class. + * + * e.g. If 'ACME' violates 'capitalization' and occurs twice in a text ad it + * would be represented by one instance. If the ad also contains 'INC' which + * also violates 'capitalization' it would be represented in a separate + * instance. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PolicyViolationError extends ApiError { + /** + * @access public + * @var PolicyViolationKey + */ + public $key; + + /** + * @access public + * @var string + */ + public $externalPolicyName; + + /** + * @access public + * @var string + */ + public $externalPolicyUrl; + + /** + * @access public + * @var string + */ + public $externalPolicyDescription; + + /** + * @access public + * @var boolean + */ + public $isExemptable; + + /** + * @access public + * @var PolicyViolationErrorPart[] + */ + public $violatingParts; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PolicyViolationErrorPart", FALSE)) { +/** + * Points to a substring within an ad field or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PolicyViolationErrorPart { + /** + * @access public + * @var integer + */ + public $index; + + /** + * @access public + * @var integer + */ + public $length; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError.Part"; + } + + public function __construct($index = NULL, $length = NULL) { + $this->index = $index; + $this->length = $length; + } +}} + +if (!class_exists("PolicyViolationKey", FALSE)) { +/** + * Key of the violation. The key is used for referring to a violation when + * filing an exemption request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PolicyViolationKey { + /** + * @access public + * @var string + */ + public $policyName; + + /** + * @access public + * @var string + */ + public $violatingText; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationKey"; + } + + public function __construct($policyName = NULL, $violatingText = NULL) { + $this->policyName = $policyName; + $this->violatingText = $violatingText; + } +}} + +if (!class_exists("Product", FALSE)) { +/** + * Product targeting criteria, represents a filter for products in the + * product feed that is defined by the advertiser. The criteria is used to + * determine the products in a Merchant Center account to be used with the + * ProductAds in the AdGroup. This criteria is available only to some advertisers. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Product extends Criterion { + /** + * @access public + * @var ProductCondition[] + */ + public $conditions; + + /** + * @access public + * @var string + */ + public $text; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + public function __construct($conditions = NULL, $text = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->conditions = $conditions; + $this->text = $text; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ProductAd", FALSE)) { +/** + * Represents a product ad (known as a product + * listing ad in the AdWords user interface). A product ad displays + * product data (managed using the Google Merchant Center) that is + * pulled from the Google base product feed specified in the parent campaign's + * {@linkplain ProductExtension product extension}. + * + *

    Product ads are only available to a limited set of advertisers. If you + * are not eligible to use product ads, they will not serve.

    + * + *

    Caution: Product ads do not use {@link #url url} or + * {@link #displayUrl displayUrl}; setting these fields on a product ad will + * cause an error.

    + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ProductAd extends Ad { + /** + * @access public + * @var string + */ + public $promotionLine; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductAd"; + } + + public function __construct($promotionLine = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->promotionLine = $promotionLine; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("ProductCondition", FALSE)) { +/** + * Conditions to filter the products defined in product feed for targeting. + * The condition is defined as operand=argument. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ProductCondition { + /** + * @access public + * @var string + */ + public $argument; + + /** + * @access public + * @var ProductConditionOperand + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductCondition"; + } + + public function __construct($argument = NULL, $operand = NULL) { + $this->argument = $argument; + $this->operand = $operand; + } +}} + +if (!class_exists("ProductConditionOperand", FALSE)) { +/** + * Attribute for the product condition. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ProductConditionOperand { + /** + * @access public + * @var string + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductConditionOperand"; + } + + public function __construct($operand = NULL) { + $this->operand = $operand; + } +}} + +if (!class_exists("Proximity", FALSE)) { +/** + * Represents a Proximity Criterion. + * + * A proximity is an area within a certain radius of a point with the center point being described + * by a lat/long pair. The caller may also alternatively provide address fields which will be + * geocoded into a lat/long pair. Note: If a geoPoint value is provided, the address is not + * used for calculating the lat/long to target. + *

    A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Proximity extends Criterion { + /** + * @access public + * @var GeoPoint + */ + public $geoPoint; + + /** + * @access public + * @var tnsProximityDistanceUnits + */ + public $radiusDistanceUnits; + + /** + * @access public + * @var double + */ + public $radiusInUnits; + + /** + * @access public + * @var Address + */ + public $address; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Proximity"; + } + + public function __construct($geoPoint = NULL, $radiusDistanceUnits = NULL, $radiusInUnits = NULL, $address = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->geoPoint = $geoPoint; + $this->radiusDistanceUnits = $radiusDistanceUnits; + $this->radiusInUnits = $radiusInUnits; + $this->address = $address; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("QualityInfo", FALSE)) { +/** + * Container for criterion quality information. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QualityInfo { + /** + * @access public + * @var boolean + */ + public $isKeywordAdRelevanceAcceptable; + + /** + * @access public + * @var boolean + */ + public $isLandingPageQualityAcceptable; + + /** + * @access public + * @var boolean + */ + public $isLandingPageLatencyAcceptable; + + /** + * @access public + * @var integer + */ + public $qualityScore; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QualityInfo"; + } + + public function __construct($isKeywordAdRelevanceAcceptable = NULL, $isLandingPageQualityAcceptable = NULL, $isLandingPageLatencyAcceptable = NULL, $qualityScore = NULL) { + $this->isKeywordAdRelevanceAcceptable = $isKeywordAdRelevanceAcceptable; + $this->isLandingPageQualityAcceptable = $isLandingPageQualityAcceptable; + $this->isLandingPageLatencyAcceptable = $isLandingPageLatencyAcceptable; + $this->qualityScore = $qualityScore; + } +}} + +if (!class_exists("QueryError", FALSE)) { +/** + * A QueryError represents possible errors for query parsing and execution. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QueryError extends ApiError { + /** + * @access public + * @var tnsQueryErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError"; + } + + public function __construct($reason = NULL, $message = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->message = $message; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * Errors that are thrown if a quota limit is exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + public function __construct($reason = NULL, $limit = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->limit = $limit; + $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RegionCodeError", FALSE)) { +/** + * A list of all errors associated with the @RegionCode constraints. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RegionCodeError extends ApiError { + /** + * @access public + * @var tnsRegionCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * Indicates that a field was rejected due to compatibility issues. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReturnValueResult", FALSE)) { +/** + * Represents a success result of processing a mutate operation that returned + * a value. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReturnValueResult extends OperationResult { + /** + * @access public + * @var Operand + */ + public $returnValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReturnValueResult"; + } + + public function __construct($returnValue = NULL, $OperationResultType = NULL) { + parent::__construct(); + $this->returnValue = $returnValue; + $this->OperationResultType = $OperationResultType; + } +}} + +if (!class_exists("RichMediaAd", FALSE)) { +/** + * Data associated with a rich media ad. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RichMediaAd extends Ad { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var Dimensions + */ + public $dimensions; + + /** + * @access public + * @var string + */ + public $snippet; + + /** + * @access public + * @var string + */ + public $impressionBeaconUrl; + + /** + * @access public + * @var integer + */ + public $adDuration; + + /** + * @access public + * @var integer + */ + public $certifiedVendorFormatId; + + /** + * @access public + * @var string + */ + public $sourceUrl; + + /** + * @access public + * @var tnsRichMediaAdRichMediaAdType + */ + public $richMediaAdType; + + /** + * @access public + * @var tnsRichMediaAdAdAttribute[] + */ + public $adAttributes; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaAd"; + } + + public function __construct($name = NULL, $dimensions = NULL, $snippet = NULL, $impressionBeaconUrl = NULL, $adDuration = NULL, $certifiedVendorFormatId = NULL, $sourceUrl = NULL, $richMediaAdType = NULL, $adAttributes = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->name = $name; + $this->dimensions = $dimensions; + $this->snippet = $snippet; + $this->impressionBeaconUrl = $impressionBeaconUrl; + $this->adDuration = $adDuration; + $this->certifiedVendorFormatId = $certifiedVendorFormatId; + $this->sourceUrl = $sourceUrl; + $this->richMediaAdType = $richMediaAdType; + $this->adAttributes = $adAttributes; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Setting", FALSE)) { +/** + * Base type for AdWords campaign settings. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Setting { + /** + * @access public + * @var string + */ + public $SettingType; + + private $_parameterMap = array ( + "Setting.Type" => "SettingType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Setting"; + } + + public function __construct($SettingType = NULL) { + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("SettingError", FALSE)) { +/** + * Indicates a problem with campaign settings. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SettingError extends ApiError { + /** + * @access public + * @var tnsSettingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SettingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SimpleMutateJob", FALSE)) { +/** + * A mutation job, which was submitted using + * {@link MutateJobService#mutate}, and will execute asynchronously + * sometime after submission. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SimpleMutateJob extends Job { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsBasicJobStatus + */ + public $status; + + /** + * @access public + * @var JobEvent[] + */ + public $history; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SimpleMutateJob"; + } + + public function __construct($id = NULL, $status = NULL, $history = NULL, $failureReason = NULL, $stats = NULL, $billingSummary = NULL, $JobType = NULL) { + parent::__construct(); + $this->id = $id; + $this->status = $status; + $this->history = $history; + $this->failureReason = $failureReason; + $this->stats = $stats; + $this->billingSummary = $billingSummary; + $this->JobType = $JobType; + } +}} + +if (!class_exists("SimpleMutateResult", FALSE)) { +/** + * The results of a simple mutation job. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SimpleMutateResult { + /** + * @access public + * @var Operand[] + */ + public $results; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SimpleMutateResult"; + } + + public function __construct($results = NULL, $errors = NULL) { + $this->results = $results; + $this->errors = $errors; + } +}} + +if (!class_exists("Sitelink", FALSE)) { +/** + * Class to represent a single sitelink + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Sitelink { + /** + * @access public + * @var string + */ + public $displayText; + + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Sitelink"; + } + + public function __construct($displayText = NULL, $destinationUrl = NULL) { + $this->displayText = $displayText; + $this->destinationUrl = $destinationUrl; + } +}} + +if (!class_exists("SitelinksExtension", FALSE)) { +/** + * Class to represent a set of sitelinks and their order of preference. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SitelinksExtension extends AdExtension { + /** + * @access public + * @var Sitelink[] + */ + public $sitelinks; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SitelinksExtension"; + } + + public function __construct($sitelinks = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->sitelinks = $sitelinks; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Stats", FALSE)) { +/** + * Statistics about an ad or criterion within an ad group or campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Stats { + /** + * @access public + * @var string + */ + public $startDate; + + /** + * @access public + * @var string + */ + public $endDate; + + /** + * @access public + * @var tnsStatsNetwork + */ + public $network; + + /** + * @access public + * @var integer + */ + public $clicks; + + /** + * @access public + * @var integer + */ + public $impressions; + + /** + * @access public + * @var Money + */ + public $cost; + + /** + * @access public + * @var double + */ + public $averagePosition; + + /** + * @access public + * @var Money + */ + public $averageCpc; + + /** + * @access public + * @var Money + */ + public $averageCpm; + + /** + * @access public + * @var double + */ + public $ctr; + + /** + * @access public + * @var integer + */ + public $conversions; + + /** + * @access public + * @var integer + */ + public $viewThroughConversions; + + /** + * @access public + * @var Money + */ + public $totalBudget; + + /** + * @access public + * @var string + */ + public $StatsType; + + private $_parameterMap = array ( + "Stats.Type" => "StatsType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats"; + } + + public function __construct($startDate = NULL, $endDate = NULL, $network = NULL, $clicks = NULL, $impressions = NULL, $cost = NULL, $averagePosition = NULL, $averageCpc = NULL, $averageCpm = NULL, $ctr = NULL, $conversions = NULL, $viewThroughConversions = NULL, $totalBudget = NULL, $StatsType = NULL) { + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->network = $network; + $this->clicks = $clicks; + $this->impressions = $impressions; + $this->cost = $cost; + $this->averagePosition = $averagePosition; + $this->averageCpc = $averageCpc; + $this->averageCpm = $averageCpm; + $this->ctr = $ctr; + $this->conversions = $conversions; + $this->viewThroughConversions = $viewThroughConversions; + $this->totalBudget = $totalBudget; + $this->StatsType = $StatsType; + } +}} + +if (!class_exists("StatsQueryError", FALSE)) { +/** + * Represents possible error codes when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsQueryError extends ApiError { + /** + * @access public + * @var tnsStatsQueryErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class String_StringMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Target", FALSE)) { +/** + * Target abstract class. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Target { + /** + * @access public + * @var string + */ + public $TargetType; + + private $_parameterMap = array ( + "Target.Type" => "TargetType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Target"; + } + + public function __construct($TargetType = NULL) { + $this->TargetType = $TargetType; + } +}} + +if (!class_exists("TargetCpaBiddingScheme", FALSE)) { +/** + * Target Cpa bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + * This is similar to the ConversionOptimizerBiddingScheme but does not + * support user-entered AdGroup-level target CPA bids, but rather a strategy-wide + * average CPA target. + * + *

    Note that campaigns must meet specific + * eligibility requirements before they can use the TargetCpaBiddingScheme + * bidding strategy. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetCpaBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $targetCpa; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetCpaBiddingScheme"; + } + + public function __construct($targetCpa = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->targetCpa = $targetCpa; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetError", FALSE)) { +/** + * A list of all the error codes being used by the common targeting package. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetError extends ApiError { + /** + * @access public + * @var tnsTargetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TargetList", FALSE)) { +/** + * Targets list abstract class (a list of a given type of targets along with their campaign ID). + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetList { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var string + */ + public $TargetListType; + + private $_parameterMap = array ( + "TargetList.Type" => "TargetListType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetList"; + } + + public function __construct($campaignId = NULL, $TargetListType = NULL) { + $this->campaignId = $campaignId; + $this->TargetListType = $TargetListType; + } +}} + +if (!class_exists("TargetingSettingDetail", FALSE)) { +/** + * Specifies if criteria of this type group should be used to restrict + * targeting, or if ads can serve anywhere and criteria are only used in + * determining the bid. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetingSettingDetail { + /** + * @access public + * @var tnsCriterionTypeGroup + */ + public $criterionTypeGroup; + + /** + * @access public + * @var boolean + */ + public $targetAll; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingSettingDetail"; + } + + public function __construct($criterionTypeGroup = NULL, $targetAll = NULL) { + $this->criterionTypeGroup = $criterionTypeGroup; + $this->targetAll = $targetAll; + } +}} + +if (!class_exists("TargetSpendBiddingScheme", FALSE)) { +/** + * Target Spend bidding scheme, in which Google automatically places + * bids for the user based on their daily/monthly budget or optional + * spend target. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetSpendBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var Money + */ + public $spendTarget; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetSpendBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $spendTarget = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->spendTarget = $spendTarget; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetingSetting", FALSE)) { +/** + * Setting for targeting related features. + * This is applicable at Campaign and AdGroup level. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetingSetting extends Setting { + /** + * @access public + * @var TargetingSettingDetail[] + */ + public $details; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingSetting"; + } + + public function __construct($details = NULL, $SettingType = NULL) { + parent::__construct(); + $this->details = $details; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("TempAdUnionId", FALSE)) { +/** + * Represents the temporary id for an ad union id, which the user can specify. + * The temporary id can be used to group ads together during ad creation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TempAdUnionId extends AdUnionId { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TempAdUnionId"; + } + + public function __construct($id = NULL, $AdUnionIdType = NULL) { + parent::__construct(); + $this->id = $id; + $this->AdUnionIdType = $AdUnionIdType; + } +}} + +if (!class_exists("TemplateAd", FALSE)) { +/** + * Represents a Display Ad Builder template ad. A template ad is + * composed of a template (specified by its ID) and the data that populates + * the template's fields. For a list of available templates and their required + * fields, see Template Ads. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TemplateAd extends Ad { + /** + * @access public + * @var integer + */ + public $templateId; + + /** + * @access public + * @var AdUnionId + */ + public $adUnionId; + + /** + * @access public + * @var TemplateElement[] + */ + public $templateElements; + + /** + * @access public + * @var Dimensions + */ + public $dimensions; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateAd"; + } + + public function __construct($templateId = NULL, $adUnionId = NULL, $templateElements = NULL, $dimensions = NULL, $name = NULL, $duration = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->templateId = $templateId; + $this->adUnionId = $adUnionId; + $this->templateElements = $templateElements; + $this->dimensions = $dimensions; + $this->name = $name; + $this->duration = $duration; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("TemplateElement", FALSE)) { +/** + * Represents an element in a template. Each template element is composed + * of a list of fields (actual value data). + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TemplateElement { + /** + * @access public + * @var string + */ + public $uniqueName; + + /** + * @access public + * @var TemplateElementField[] + */ + public $fields; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateElement"; + } + + public function __construct($uniqueName = NULL, $fields = NULL) { + $this->uniqueName = $uniqueName; + $this->fields = $fields; + } +}} + +if (!class_exists("TemplateElementField", FALSE)) { +/** + * Represents a field in a template element. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TemplateElementField { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsTemplateElementFieldType + */ + public $type; + + /** + * @access public + * @var string + */ + public $fieldText; + + /** + * @access public + * @var Media + */ + public $fieldMedia; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateElementField"; + } + + public function __construct($name = NULL, $type = NULL, $fieldText = NULL, $fieldMedia = NULL) { + $this->name = $name; + $this->type = $type; + $this->fieldText = $fieldText; + $this->fieldMedia = $fieldMedia; + } +}} + +if (!class_exists("TextAd", FALSE)) { +/** + * Represents a TextAd. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TextAd extends Ad { + /** + * @access public + * @var string + */ + public $headline; + + /** + * @access public + * @var string + */ + public $description1; + + /** + * @access public + * @var string + */ + public $description2; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextAd"; + } + + public function __construct($headline = NULL, $description1 = NULL, $description2 = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->headline = $headline; + $this->description1 = $description1; + $this->description2 = $description2; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("ThirdPartyRedirectAd", FALSE)) { +/** + * Data associated with rich media extension attributes. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ThirdPartyRedirectAd extends RichMediaAd { + /** + * @access public + * @var boolean + */ + public $isCookieTargeted; + + /** + * @access public + * @var boolean + */ + public $isUserInterestTargeted; + + /** + * @access public + * @var boolean + */ + public $isTagged; + + /** + * @access public + * @var tnsVideoType[] + */ + public $videoTypes; + + /** + * @access public + * @var tnsThirdPartyRedirectAdExpandingDirection[] + */ + public $expandingDirections; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartyRedirectAd"; + } + + public function __construct($isCookieTargeted = NULL, $isUserInterestTargeted = NULL, $isTagged = NULL, $videoTypes = NULL, $expandingDirections = NULL, $name = NULL, $dimensions = NULL, $snippet = NULL, $impressionBeaconUrl = NULL, $adDuration = NULL, $certifiedVendorFormatId = NULL, $sourceUrl = NULL, $richMediaAdType = NULL, $adAttributes = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->isCookieTargeted = $isCookieTargeted; + $this->isUserInterestTargeted = $isUserInterestTargeted; + $this->isTagged = $isTagged; + $this->videoTypes = $videoTypes; + $this->expandingDirections = $expandingDirections; + $this->name = $name; + $this->dimensions = $dimensions; + $this->snippet = $snippet; + $this->impressionBeaconUrl = $impressionBeaconUrl; + $this->adDuration = $adDuration; + $this->certifiedVendorFormatId = $certifiedVendorFormatId; + $this->sourceUrl = $sourceUrl; + $this->richMediaAdType = $richMediaAdType; + $this->adAttributes = $adAttributes; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("TrackingSetting", FALSE)) { +/** + * Campaign level settings for tracking information. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TrackingSetting extends Setting { + /** + * @access public + * @var string + */ + public $trackingUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrackingSetting"; + } + + public function __construct($trackingUrl = NULL, $SettingType = NULL) { + parent::__construct(); + $this->trackingUrl = $trackingUrl; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("UnprocessedResult", FALSE)) { +/** + * Indicates that the mutate operation was not processed. This could result + * if the job was aborted by the back-end workflow because the developer's API + * quota was exceeded or if the job encountered some severe workflow system + * failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class UnprocessedResult extends OperationResult { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnprocessedResult"; + } + + public function __construct($OperationResultType = NULL) { + parent::__construct(); + $this->OperationResultType = $OperationResultType; + } +}} + +if (!class_exists("CriterionUserInterest", FALSE)) { +/** + * User Interest - represents a particular interest based vertical to be targeted. + * Targeting UserInterest is currently in a limited beta. If you'd like access + * please speak with your account representative. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserInterest extends Criterion { + /** + * @access public + * @var integer + */ + public $userInterestId; + + /** + * @access public + * @var string + */ + public $userInterestName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserInterest"; + } + + public function __construct($userInterestId = NULL, $userInterestName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->userInterestId = $userInterestId; + $this->userInterestName = $userInterestName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionUserList", FALSE)) { +/** + * UserList - represents a user list that is defined by the advertiser to be targeted. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserList extends Criterion { + /** + * @access public + * @var integer + */ + public $userListId; + + /** + * @access public + * @var string + */ + public $userListName; + + /** + * @access public + * @var tnsCriterionUserListMembershipStatus + */ + public $userListMembershipStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList"; + } + + public function __construct($userListId = NULL, $userListName = NULL, $userListMembershipStatus = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->userListId = $userListId; + $this->userListName = $userListName; + $this->userListMembershipStatus = $userListMembershipStatus; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Vertical", FALSE)) { +/** + * Use verticals to target or exclude placements in the Google Display Network + * based on the category into which the placement falls (for example, "Pets & + * Animals/Pets/Dogs"). + * View the complete list + * of available vertical categories. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Vertical extends Criterion { + /** + * @access public + * @var integer + */ + public $verticalId; + + /** + * @access public + * @var integer + */ + public $verticalParentId; + + /** + * @access public + * @var string[] + */ + public $path; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Vertical"; + } + + public function __construct($verticalId = NULL, $verticalParentId = NULL, $path = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->verticalId = $verticalId; + $this->verticalParentId = $verticalParentId; + $this->path = $path; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Video", FALSE)) { +/** + * Encapsulates a Video media identified by a MediaId. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Video extends Media { + /** + * @access public + * @var integer + */ + public $durationMillis; + + /** + * @access public + * @var string + */ + public $streamingUrl; + + /** + * @access public + * @var boolean + */ + public $readyToPlayOnTheWeb; + + /** + * @access public + * @var string + */ + public $industryStandardCommercialIdentifier; + + /** + * @access public + * @var string + */ + public $advertisingId; + + /** + * @access public + * @var string + */ + public $youTubeVideoIdString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Video"; + } + + public function __construct($durationMillis = NULL, $streamingUrl = NULL, $readyToPlayOnTheWeb = NULL, $industryStandardCommercialIdentifier = NULL, $advertisingId = NULL, $youTubeVideoIdString = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->durationMillis = $durationMillis; + $this->streamingUrl = $streamingUrl; + $this->readyToPlayOnTheWeb = $readyToPlayOnTheWeb; + $this->industryStandardCommercialIdentifier = $industryStandardCommercialIdentifier; + $this->advertisingId = $advertisingId; + $this->youTubeVideoIdString = $youTubeVideoIdString; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("Webpage", FALSE)) { +/** + * Criterion for targeting webpages of an advertiser's website. The + * website domain name is specified at the campaign level. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Webpage extends Criterion { + /** + * @access public + * @var WebpageParameter + */ + public $parameter; + + /** + * @access public + * @var double + */ + public $criteriaCoverage; + + /** + * @access public + * @var string[] + */ + public $criteriaSamples; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Webpage"; + } + + public function __construct($parameter = NULL, $criteriaCoverage = NULL, $criteriaSamples = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->parameter = $parameter; + $this->criteriaCoverage = $criteriaCoverage; + $this->criteriaSamples = $criteriaSamples; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("WebpageCondition", FALSE)) { +/** + * Logical expression for targeting webpages of an advertiser's website. + * + *

    A condition is defined as {@code operand OP argument} + * where {@code operand} is one of the values enumerated in + * {@link WebpageConditionOperand}, and, based on this value, + * {@code OP} is either of {@code EQUALS} or {@code CONTAINS}.

    + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageCondition { + /** + * @access public + * @var tnsWebpageConditionOperand + */ + public $operand; + + /** + * @access public + * @var string + */ + public $argument; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageCondition"; + } + + public function __construct($operand = NULL, $argument = NULL) { + $this->operand = $operand; + $this->argument = $argument; + } +}} + +if (!class_exists("WebpageParameter", FALSE)) { +/** + * Parameter of Webpage criterion, expressed as a list of conditions, or + * logical expressions, for targeting webpages of an advertiser's website. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageParameter extends CriterionParameter { + /** + * @access public + * @var string + */ + public $criterionName; + + /** + * @access public + * @var WebpageCondition[] + */ + public $conditions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageParameter"; + } + + public function __construct($criterionName = NULL, $conditions = NULL, $CriterionParameterType = NULL) { + parent::__construct(); + $this->criterionName = $criterionName; + $this->conditions = $conditions; + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("DynamicSearchAd", FALSE)) { +/** + * Represents a dynamic search ad. This ad will have its headline and + * destination URL auto-generated at serving time according to domain name + * specific information provided by {@link DomainInfoExtension} linked at the + * campaign level. + * + *

    Auto-generated fields: headline and destination URL (may contain an optional + * tracking URL)

    + * + *

    Required fields: description1, description2, displayUrl

    + * + *

    The URL field must contain at least one of the following placeholder tags + * (URL parameters): {unescapedlpurl}, {escapedlpurl}, {lpurlpath}. If no URL is + * specified, {unescapedlpurl} will be used as default.

    + * + *

    {unescapedlpurl} can only be used at the beginning of the URL field. It + * will be replaced with the full landing page URL of the displayed ad. Extra query + * parameters can be added to the end, e.g. "{unescapedlpurl}?lang=en".

    + * + *

    {escapedlpurl} will be replaced with the URL-encoded version of the full + * landing page URL. This makes it suitable for use as a query parameter + * value (e.g. "http://www.3rdpartytracker.com/?lp={escapedlpurl}") but + * not at the beginning of the url field.

    + * + *

    {lpurlpath} will be replaced with the path and query part of the landing + * page URL and can be added to a different URL, e.g. + * "http://www.mygoodbusiness.com/tracking/{lpurlpath}".

    + * + *

    There are also special rules that come into play depending on whether the + * destination URL uses local click tracking or third-party click tracking.

    + * + *

    For more information, see the article Using dynamic tracking URLs. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DynamicSearchAd extends Ad { + /** + * @access public + * @var string + */ + public $description1; + + /** + * @access public + * @var string + */ + public $description2; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DynamicSearchAd"; + } + + public function __construct($description1 = NULL, $description2 = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->description1 = $description1; + $this->description2 = $description2; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("AdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdExtensionErrorReason", FALSE)) { +/** + * Account has been deleted + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdExtensionOverrideApprovalStatus", FALSE)) { +/** + * Approval status for the AdExtensionOverride + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverride.ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdExtensionOverrideStatus", FALSE)) { +/** + * Status of the AdExtensionOverride + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverride.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdExtensionOverrideErrorReason", FALSE)) { +/** + * Cannot override an ad that is already overriden with an adextension + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverrideError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupAdApprovalStatus", FALSE)) { +/** + * Represents the possible approval statuses. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAd.ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupAdStatus", FALSE)) { +/** + * The current status of an Ad. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAd.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupAdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupCriterionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupCriterionLimitExceededCriteriaLimitType", FALSE)) { +/** + * The entity type that exceeded the limit. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionLimitExceededCriteriaLimitType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionLimitExceeded.CriteriaLimitType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupServiceErrorReason", FALSE)) { +/** + * The reasons for the adgroup service error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupServiceErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupServiceError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupStatus", FALSE)) { +/** + * Status of this ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroup.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdServingOptimizationStatus", FALSE)) { +/** + * Ad serving status of campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdServingOptimizationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdServingOptimizationStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AgeRangeAgeRangeType", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AgeRangeAgeRangeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AgeRange.AgeRangeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApprovalStatus", FALSE)) { +/** + * Approval status for the criterion. + * Note: there are more states involved but we only expose two to users. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BasicJobStatus", FALSE)) { +/** + * A basic set of job statuses. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BasicJobStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BasicJobStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BidModifierSource", FALSE)) { +/** + * Enumerates possible sources for bid modifier. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BidModifierSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidModifierSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BidSource", FALSE)) { +/** + * Indicate where a criterion's bid came from: criterion or the adgroup it + * belongs to. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BidSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorReason", FALSE)) { +/** + * Reason for bidding error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorsReason", FALSE)) { +/** + * Bidding strategy is available for enhanced campaign only. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingErrorsReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategySource", FALSE)) { +/** + * Indicates where bidding strategy came from: campaign, adgroup or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategySource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategySource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategyType", FALSE)) { +/** + * The bidding strategy type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyType"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingTransitionErrorReason", FALSE)) { +/** + * Reason for bidding transition error. + * It is used by capability service as denial reasons, for bidding transition + * capability. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingTransitionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingTransitionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetDeliveryMethod", FALSE)) { +/** + * Budget delivery methods. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetBudgetDeliveryMethod { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetDeliveryMethod"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetPeriod", FALSE)) { +/** + * Budget periods. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetBudgetPeriod { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetPeriod"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetStatus", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetBudgetStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetErrorReason", FALSE)) { +/** + * The reasons for the budget error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BulkMutateJobErrorReason", FALSE)) { +/** + * The reasons for the bulk mutate job handling error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BulkMutateJobErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateJobError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignAdExtensionApprovalStatus", FALSE)) { +/** + * Approval status of the CampaignAdExtension. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtension.ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignAdExtensionStatus", FALSE)) { +/** + * Status of the CampaignAdExtension. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtension.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignAdExtensionErrorReason", FALSE)) { +/** + * Cannot operate on an adextensions under the wrong campaign + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignCriterionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignCriterionLimitExceededCriteriaLimitType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterionLimitExceededCriteriaLimitType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionLimitExceeded.CriteriaLimitType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignStatus", FALSE)) { +/** + * Campaign status. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContentLabelType", FALSE)) { +/** + * Content label type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ContentLabelType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentLabelType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemeBidType", FALSE)) { +/** + * Average cost-per-acquisition (targetCPA) bid type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerBiddingSchemeBidType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.BidType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemePricingMode", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerBiddingSchemePricingMode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.PricingMode"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerEligibilityRejectionReason", FALSE)) { +/** + * Campaign is not active + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerEligibilityRejectionReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerEligibility.RejectionReason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * The types of criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionErrorReason", FALSE)) { +/** + * Concrete type of criterion is required for ADD and SET operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionTypeGroup", FALSE)) { +/** + * The list of groupings of criteria types. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionTypeGroup { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionTypeGroup"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUse", FALSE)) { +/** + * The way a criterion is used - biddable or negative. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUse { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUse"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayOfWeek", FALSE)) { +/** + * Days of the week. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DayOfWeek { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayOfWeek"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeprecatedAdType", FALSE)) { +/** + * Video ad. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DeprecatedAdType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeprecatedAd.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityAccessDeniedReason", FALSE)) { +/** + * User did not have read access. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityIdType", FALSE)) { +/** + * Type of entity identity. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityIdType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityId.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentDataStatus", FALSE)) { +/** + * Status of the experimental change associated with an entity. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentDataStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentDataStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentDeltaStatus", FALSE)) { +/** + * Status of an entity denoting its type of experimental change in a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentDeltaStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentDeltaStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemStatus", FALSE)) { +/** + * Feed item is active + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItem.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemErrorReason", FALSE)) { +/** + * The reasons for the error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemValidationDetailApprovalStatus", FALSE)) { +/** + * Feed item approval status. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemValidationDetailApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemValidationDetail.ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemValidationDetailValidationStatus", FALSE)) { +/** + * Feed item validation status. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemValidationDetailValidationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemValidationDetail.ValidationStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForwardCompatibilityErrorReason", FALSE)) { +/** + * The reason for the error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ForwardCompatibilityErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenderGenderType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GenderGenderType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Gender.GenderType"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetTypeSettingNegativeGeoTargetType", FALSE)) { +/** + * The various signals a negative location target may use. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GeoTargetTypeSettingNegativeGeoTargetType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetTypeSetting.NegativeGeoTargetType"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetTypeSettingPositiveGeoTargetType", FALSE)) { +/** + * The various signals a positive location target may use. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GeoTargetTypeSettingPositiveGeoTargetType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetTypeSetting.PositiveGeoTargetType"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ImageErrorReason", FALSE)) { +/** + * The image is not valid. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ImageErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InAppLinkExtensionAppStore", FALSE)) { +/** + * The AppStore this extension will render for. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InAppLinkExtensionAppStore { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InAppLinkExtension.AppStore"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("JobErrorReason", FALSE)) { +/** + * The reasons for the job handling error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class JobErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "JobError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("KeywordMatchType", FALSE)) { +/** + * Match type of a keyword. i.e. the way we match a keyword string with + * search queries. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class KeywordMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("Level", FALSE)) { +/** + * The level on which the cap is to be applied. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Level { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Level"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationExtensionSource", FALSE)) { +/** + * From manual entry in adwords frontend + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationExtensionSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationExtension.Source"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationOverrideInfoRadiusUnits", FALSE)) { +/** + * Radius units + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationOverrideInfoRadiusUnits { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationOverrideInfo.RadiusUnits"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationTargetingStatus", FALSE)) { +/** + * Enum that represents the different Targeting Status values for a Location criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationTargetingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationTargetingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("MarkupLanguageType", FALSE)) { +/** + * Markup languages to use for mobile ads. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MarkupLanguageType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MarkupLanguageType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaMediaType", FALSE)) { +/** + * Media types + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaMediaType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.MediaType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaMimeType", FALSE)) { +/** + * Mime types + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaMimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.MimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaSize", FALSE)) { +/** + * Sizes for retrieving the original media + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaSize { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.Size"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MediaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MinuteOfHour", FALSE)) { +/** + * Minutes in an hour. Currently only 0, 15, 30, and 45 are supported + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MinuteOfHour { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MinuteOfHour"; + } + + public function __construct() { + } +}} + +if (!class_exists("MobileDeviceDeviceType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileDeviceDeviceType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice.DeviceType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MultiplierSource", FALSE)) { +/** + * Denotes whether the bid multiplier is derived from the adgroup + * or the criterion + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MultiplierSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MultiplierSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatingSystemVersionOperatorType", FALSE)) { +/** + * The operator type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatingSystemVersionOperatorType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion.OperatorType"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PageOnePromotedBiddingSchemeStrategyGoal", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PageOnePromotedBiddingSchemeStrategyGoal { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme.StrategyGoal"; + } + + public function __construct() { + } +}} + +if (!class_exists("PagingErrorReason", FALSE)) { +/** + * The reasons for errors when using pagination. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PagingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PolicyViolationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PolicyViolationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProximityDistanceUnits", FALSE)) { +/** + * The radius distance is expressed in either kilometers or miles. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ProximityDistanceUnits { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Proximity.DistanceUnits"; + } + + public function __construct() { + } +}} + +if (!class_exists("QueryErrorReason", FALSE)) { +/** + * The reason for the query error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The reasons for the quota error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegionCodeErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RegionCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaAdAdAttribute", FALSE)) { +/** + * A set of attributes that describe the rich media ad capabilities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RichMediaAdAdAttribute { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaAd.AdAttribute"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaAdRichMediaAdType", FALSE)) { +/** + * Different types of rich media ad that are available to customers. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RichMediaAdRichMediaAdType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaAd.RichMediaAdType"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServingStatus", FALSE)) { +/** + * Campaign serving status. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ServingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("SettingErrorReason", FALSE)) { +/** + * The reasons for the setting error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SettingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SettingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsNetwork", FALSE)) { +/** + * Ad network. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsNetwork { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats.Network"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsQueryErrorReason", FALSE)) { +/** + * The reasons for errors when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsQueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SystemServingStatus", FALSE)) { +/** + * Reported by system to reflect the criterion's serving status. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SystemServingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SystemServingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TemplateElementFieldType", FALSE)) { +/** + * Possible field types of template element fields. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TemplateElementFieldType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateElementField.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("ThirdPartyRedirectAdExpandingDirection", FALSE)) { +/** + * Allowed expanding directions for ads that are expandable. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ThirdPartyRedirectAdExpandingDirection { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartyRedirectAd.ExpandingDirection"; + } + + public function __construct() { + } +}} + +if (!class_exists("TimeUnit", FALSE)) { +/** + * Unit of time the cap is defined at. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TimeUnit { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeUnit"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUserListMembershipStatus", FALSE)) { +/** + * Membership status of the user list. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList.MembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserStatus", FALSE)) { +/** + * Specified by user to pause or unpause a criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class UserStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoType", FALSE)) { +/** + * VideoType enum values that are permitted for video filterable + * creative attribute IDs. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class VideoType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoType"; + } + + public function __construct() { + } +}} + +if (!class_exists("WebpageConditionOperand", FALSE)) { +/** + * Operand value of {@link WebpageCondition}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageConditionOperand { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageConditionOperand"; + } + + public function __construct() { + } +}} + +if (!class_exists("MutateJobServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Query the status of existing jobs, both simple and bulk API. + *

    Use a {@link JobSelector} to query and return a list which may + * contain both {@link BulkMutateJob} and/or {@link SimpleMutateJob}.

    + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MutateJobServiceGet { + /** + * @access public + * @var JobSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("MutateJobServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MutateJobServiceGetResponse { + /** + * @access public + * @var Job[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getResult", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Query mutation results, of a {@code COMPLETED} job. + *

    Use a {@link JobSelector} to query and return either a + * {@link BulkMutateResult} or a {@link SimpleMutateResult}. Submit only one job ID + * at a time.

    + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getResult { + /** + * @access public + * @var JobSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("getResultResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getResultResponse { + /** + * @access public + * @var JobResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("MutateJobServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Simplified way of submitting a mutation job. The provided list of + * operations, if valid, will create a new job with a unique id, which will + * be returned. This id can later be used in invocations of + * {@link #get} and {@link #getResult}. Policy can optionally be specified. + * + *

    When this method returns with success, the job will be in + * {@code PROCESSING} or {@code PENDING} state and no further action is + * needed for the job to get executed.

    + * + *

    You should not use the returned {@link BulkMutateJobId} with bulk API + * {@link BulkMutateJobService#mutate} method.

    + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MutateJobServiceMutate { + /** + * @access public + * @var Operation[] + */ + public $operations; + + /** + * @access public + * @var BulkMutateJobPolicy + */ + public $policy; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL, $policy = NULL) { + $this->operations = $operations; + $this->policy = $policy; + } +}} + +if (!class_exists("MutateJobServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MutateJobServiceMutateResponse { + /** + * @access public + * @var SimpleMutateJob + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdError", FALSE)) { +/** + * Base error class for Ad Service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdError extends ApiError { + /** + * @access public + * @var tnsAdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdExtensionError", FALSE)) { +/** + * AdExtension errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionError extends ApiError { + /** + * @access public + * @var tnsAdExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdExtensionOverrideError", FALSE)) { +/** + * AdExtensionOverride errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideError extends ApiError { + /** + * @access public + * @var tnsAdExtensionOverrideErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverrideError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdExtensionOverrideOperation", FALSE)) { +/** + * AdExtensionOverride service operation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideOperation extends Operation { + /** + * @access public + * @var AdExtensionOverride + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverrideOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdExtensionOverrideStats", FALSE)) { +/** + * Represents stats specific to AdExtensionOverrides. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideStats extends Stats { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverrideStats"; + } + + public function __construct($startDate = NULL, $endDate = NULL, $network = NULL, $clicks = NULL, $impressions = NULL, $cost = NULL, $averagePosition = NULL, $averageCpc = NULL, $averageCpm = NULL, $ctr = NULL, $conversions = NULL, $viewThroughConversions = NULL, $totalBudget = NULL, $StatsType = NULL) { + parent::__construct(); + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->network = $network; + $this->clicks = $clicks; + $this->impressions = $impressions; + $this->cost = $cost; + $this->averagePosition = $averagePosition; + $this->averageCpc = $averageCpc; + $this->averageCpm = $averageCpm; + $this->ctr = $ctr; + $this->conversions = $conversions; + $this->viewThroughConversions = $viewThroughConversions; + $this->totalBudget = $totalBudget; + $this->StatsType = $StatsType; + } +}} + +if (!class_exists("AdGroupAdCountLimitExceeded", FALSE)) { +/** + * Indicates too many ads were added/enabled under the specified adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdCountLimitExceeded extends EntityCountLimitExceeded { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdGroupAdError", FALSE)) { +/** + * Error information for AdGroupAdService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdError extends ApiError { + /** + * @access public + * @var tnsAdGroupAdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdGroupAdOperation", FALSE)) { +/** + * AdGroupAd service operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdOperation extends Operation { + /** + * @access public + * @var AdGroupAd + */ + public $operand; + + /** + * @access public + * @var ExemptionRequest[] + */ + public $exemptionRequests; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdOperation"; + } + + public function __construct($operand = NULL, $exemptionRequests = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->exemptionRequests = $exemptionRequests; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupBidModifierOperation", FALSE)) { +/** + * Operation used to create or mutate a AdGroupBidModifier. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupBidModifierOperation extends Operation { + /** + * @access public + * @var AdGroupBidModifier + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidModifierOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupCriterionError", FALSE)) { +/** + * Base error class for Ad Group Criterion Service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionError extends ApiError { + /** + * @access public + * @var tnsAdGroupCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdGroupCriterionLimitExceeded", FALSE)) { +/** + * Signals that too many criteria were added to some ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionLimitExceeded extends EntityCountLimitExceeded { + /** + * @access public + * @var tnsAdGroupCriterionLimitExceededCriteriaLimitType + */ + public $limitType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionLimitExceeded"; + } + + public function __construct($limitType = NULL, $reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->limitType = $limitType; + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdGroupCriterionOperation", FALSE)) { +/** + * Operation (add, remove and set) on adgroup criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionOperation extends Operation { + /** + * @access public + * @var AdGroupCriterion + */ + public $operand; + + /** + * @access public + * @var ExemptionRequest[] + */ + public $exemptionRequests; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionOperation"; + } + + public function __construct($operand = NULL, $exemptionRequests = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->exemptionRequests = $exemptionRequests; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupOperation", FALSE)) { +/** + * AdGroup operations for adding/updating/removing adgroups. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupOperation extends Operation { + /** + * @access public + * @var AdGroup + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupServiceError", FALSE)) { +/** + * Represents possible error codes in AdGroupService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupServiceError extends ApiError { + /** + * @access public + * @var tnsAdGroupServiceErrorReason + */ + public $reason; + + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupServiceError"; + } + + public function __construct($reason = NULL, $adGroupId = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->adGroupId = $adGroupId; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdSchedule", FALSE)) { +/** + * Represents an AdSchedule Criterion. + * AdSchedule is specified as day and time of the week criteria to target + * the Ads. + *

    Note: An AdSchedule may not have more than six intervals + * in a day.

    + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdSchedule extends Criterion { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var integer + */ + public $startHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $startMinute; + + /** + * @access public + * @var integer + */ + public $endHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $endMinute; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSchedule"; + } + + public function __construct($dayOfWeek = NULL, $startHour = NULL, $startMinute = NULL, $endHour = NULL, $endMinute = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->dayOfWeek = $dayOfWeek; + $this->startHour = $startHour; + $this->startMinute = $startMinute; + $this->endHour = $endHour; + $this->endMinute = $endMinute; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("AdScheduleTarget", FALSE)) { +/** + * Immutable structure to hold an ad schedule target. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdScheduleTarget extends Target { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var integer + */ + public $startHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $startMinute; + + /** + * @access public + * @var integer + */ + public $endHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $endMinute; + + /** + * @access public + * @var double + */ + public $bidMultiplier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdScheduleTarget"; + } + + public function __construct($dayOfWeek = NULL, $startHour = NULL, $startMinute = NULL, $endHour = NULL, $endMinute = NULL, $bidMultiplier = NULL, $TargetType = NULL) { + parent::__construct(); + $this->dayOfWeek = $dayOfWeek; + $this->startHour = $startHour; + $this->startMinute = $startMinute; + $this->endHour = $endHour; + $this->endMinute = $endMinute; + $this->bidMultiplier = $bidMultiplier; + $this->TargetType = $TargetType; + } +}} + +if (!class_exists("AdScheduleTargetList", FALSE)) { +/** + * List of ad schedule targets. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdScheduleTargetList extends TargetList { + /** + * @access public + * @var AdScheduleTarget[] + */ + public $targets; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdScheduleTargetList"; + } + + public function __construct($targets = NULL, $campaignId = NULL, $TargetListType = NULL) { + parent::__construct(); + $this->targets = $targets; + $this->campaignId = $campaignId; + $this->TargetListType = $TargetListType; + } +}} + +if (!class_exists("AdStats", FALSE)) { +/** + * Represents stats specific to Ads. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdStats extends Stats { + /** + * @access public + * @var double + */ + public $percentServed; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdStats"; + } + + public function __construct($percentServed = NULL, $startDate = NULL, $endDate = NULL, $network = NULL, $clicks = NULL, $impressions = NULL, $cost = NULL, $averagePosition = NULL, $averageCpc = NULL, $averageCpm = NULL, $ctr = NULL, $conversions = NULL, $viewThroughConversions = NULL, $totalBudget = NULL, $StatsType = NULL) { + parent::__construct(); + $this->percentServed = $percentServed; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->network = $network; + $this->clicks = $clicks; + $this->impressions = $impressions; + $this->cost = $cost; + $this->averagePosition = $averagePosition; + $this->averageCpc = $averageCpc; + $this->averageCpm = $averageCpm; + $this->ctr = $ctr; + $this->conversions = $conversions; + $this->viewThroughConversions = $viewThroughConversions; + $this->totalBudget = $totalBudget; + $this->StatsType = $StatsType; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AgeRange", FALSE)) { +/** + * Represents an Age Range criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only excludable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AgeRange extends Criterion { + /** + * @access public + * @var tnsAgeRangeAgeRangeType + */ + public $ageRangeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AgeRange"; + } + + public function __construct($ageRangeType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->ageRangeType = $ageRangeType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Audio", FALSE)) { +/** + * Encapsulates an Audio media identified by a MediaId. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Audio extends Media { + /** + * @access public + * @var integer + */ + public $durationMillis; + + /** + * @access public + * @var string + */ + public $streamingUrl; + + /** + * @access public + * @var boolean + */ + public $readyToPlayOnTheWeb; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Audio"; + } + + public function __construct($durationMillis = NULL, $streamingUrl = NULL, $readyToPlayOnTheWeb = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->durationMillis = $durationMillis; + $this->streamingUrl = $streamingUrl; + $this->readyToPlayOnTheWeb = $readyToPlayOnTheWeb; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("BatchFailureResult", FALSE)) { +/** + * Represents a failure result for a mutate operation that was applied in a + * transactional batch. It does not imply that the corresponding operation + * for this result itself caused the failure. To determine that, please see + * the {@link FailureResult} provided for the first operation of the batch. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BatchFailureResult extends OperationResult { + /** + * @access public + * @var integer + */ + public $operationIndexInBatch; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BatchFailureResult"; + } + + public function __construct($operationIndexInBatch = NULL, $OperationResultType = NULL) { + parent::__construct(); + $this->operationIndexInBatch = $operationIndexInBatch; + $this->OperationResultType = $OperationResultType; + } +}} + +if (!class_exists("BudgetOperation", FALSE)) { +/** + * Operations for adding/updating Budget entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOperation extends Operation { + /** + * @access public + * @var Budget + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("BulkMutateJob", FALSE)) { +/** + * A {@code BulkMutateJob} is essentially a mixed collection of mutate + * operations from the following AdWords API campaign management services: + *

      + *
    • {@link CampaignService}
    • + *
    • {@link CampaignTargetService}
    • + *
    • {@link CampaignCriterionService}
    • + *
    • {@link AdGroupService}
    • + *
    • {@link AdGroupAdService}
    • + *
    • {@link AdGroupCriterionService}
    • + *
    + * + *

    The mutate operations in a job's request are constructed in exactly the + * same way as they are for synchronous calls to these services.

    + * + *

    The mutate operations are grouped by their scoping entity in the + * AdWords customer tree. Currently, mutate operations can be grouped either + * by the customer or by their parent campaign. However, they cannot be + * grouped both ways - some by customer and others by campaigns - in the same + * job.

    + * + *

    Note: A job may have no more than 500,000 mutate + * operations in total, and no more than 10 different scoping campaigns.

    + * + *

    The mutate operations must be packaged into containers called + * {@code Operation Streams}, each tagged with the ID of the scoping entity of + * its operations.

    + * + *

    To facilitate the building of very large bulk mutate jobs, the operation + * streams of a job can be submitted using multiple request parts. A job is + * queued for processing as soon as it can be determined that all of its + * request parts have been received.

    + * + *

    Note: A job may have no more than 100 request parts. + * Each part may have no more than 25 operation streams and no more than 10,000 + * operations in total.

    + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BulkMutateJob extends Job { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var BulkMutateJobPolicy + */ + public $policy; + + /** + * @access public + * @var BulkMutateRequest + */ + public $request; + + /** + * @access public + * @var tnsBasicJobStatus + */ + public $status; + + /** + * @access public + * @var BulkMutateJobEvent[] + */ + public $history; + + /** + * @access public + * @var BulkMutateResult + */ + public $result; + + /** + * @access public + * @var integer + */ + public $numRequestParts; + + /** + * @access public + * @var integer + */ + public $numRequestPartsReceived; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateJob"; + } + + public function __construct($id = NULL, $policy = NULL, $request = NULL, $status = NULL, $history = NULL, $result = NULL, $numRequestParts = NULL, $numRequestPartsReceived = NULL, $failureReason = NULL, $stats = NULL, $billingSummary = NULL, $JobType = NULL) { + parent::__construct(); + $this->id = $id; + $this->policy = $policy; + $this->request = $request; + $this->status = $status; + $this->history = $history; + $this->result = $result; + $this->numRequestParts = $numRequestParts; + $this->numRequestPartsReceived = $numRequestPartsReceived; + $this->failureReason = $failureReason; + $this->stats = $stats; + $this->billingSummary = $billingSummary; + $this->JobType = $JobType; + } +}} + +if (!class_exists("BulkMutateJobEvent", FALSE)) { +/** + * An event defined by a status change of a bulk mutate job. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BulkMutateJobEvent extends JobEvent { + /** + * @access public + * @var tnsBasicJobStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateJobEvent"; + } + + public function __construct($status = NULL, $dateTime = NULL, $JobEventType = NULL) { + parent::__construct(); + $this->status = $status; + $this->dateTime = $dateTime; + $this->JobEventType = $JobEventType; + } +}} + +if (!class_exists("BulkMutateJobSelector", FALSE)) { +/** + * Specifies additional criteria for selecting bulk mutate jobs. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BulkMutateJobSelector extends JobSelector { + /** + * @access public + * @var integer[] + */ + public $jobIds; + + /** + * @access public + * @var integer + */ + public $resultPartIndex; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateJobSelector"; + } + + public function __construct($jobIds = NULL, $resultPartIndex = NULL, $includeHistory = NULL, $includeStats = NULL, $JobSelectorType = NULL) { + parent::__construct(); + $this->jobIds = $jobIds; + $this->resultPartIndex = $resultPartIndex; + $this->includeHistory = $includeHistory; + $this->includeStats = $includeStats; + $this->JobSelectorType = $JobSelectorType; + } +}} + +if (!class_exists("BulkMutateJobStats", FALSE)) { +/** + * Bulk mutate job-handling statistics. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BulkMutateJobStats extends JobStats { + /** + * @access public + * @var integer + */ + public $numOperations; + + /** + * @access public + * @var integer + */ + public $numFailedOperations; + + /** + * @access public + * @var integer + */ + public $numUnprocessedOperations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateJobStats"; + } + + public function __construct($numOperations = NULL, $numFailedOperations = NULL, $numUnprocessedOperations = NULL, $progressPercent = NULL, $pendingTimeMillis = NULL, $processingTimeMillis = NULL, $JobStatsType = NULL) { + parent::__construct(); + $this->numOperations = $numOperations; + $this->numFailedOperations = $numFailedOperations; + $this->numUnprocessedOperations = $numUnprocessedOperations; + $this->progressPercent = $progressPercent; + $this->pendingTimeMillis = $pendingTimeMillis; + $this->processingTimeMillis = $processingTimeMillis; + $this->JobStatsType = $JobStatsType; + } +}} + +if (!class_exists("CampaignAdExtensionOperation", FALSE)) { +/** + * CampaignAdExtension service operation. Note: The {@code SET} operator + * is not supported. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionOperation extends Operation { + /** + * @access public + * @var CampaignAdExtension + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("CampaignAdExtensionStats", FALSE)) { +/** + * Represents stats specific to CampaignAdExtensions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionStats extends Stats { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionStats"; + } + + public function __construct($startDate = NULL, $endDate = NULL, $network = NULL, $clicks = NULL, $impressions = NULL, $cost = NULL, $averagePosition = NULL, $averageCpc = NULL, $averageCpm = NULL, $ctr = NULL, $conversions = NULL, $viewThroughConversions = NULL, $totalBudget = NULL, $StatsType = NULL) { + parent::__construct(); + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->network = $network; + $this->clicks = $clicks; + $this->impressions = $impressions; + $this->cost = $cost; + $this->averagePosition = $averagePosition; + $this->averageCpc = $averageCpc; + $this->averageCpm = $averageCpm; + $this->ctr = $ctr; + $this->conversions = $conversions; + $this->viewThroughConversions = $viewThroughConversions; + $this->totalBudget = $totalBudget; + $this->StatsType = $StatsType; + } +}} + +if (!class_exists("CampaignCriterionLimitExceeded", FALSE)) { +/** + * Error to indicate that too many negative criteria added to some campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterionLimitExceeded extends EntityCountLimitExceeded { + /** + * @access public + * @var tnsCampaignCriterionLimitExceededCriteriaLimitType + */ + public $limitType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionLimitExceeded"; + } + + public function __construct($limitType = NULL, $reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->limitType = $limitType; + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CampaignCriterionOperation", FALSE)) { +/** + * Generic operation (add, remove and set) for campaign criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterionOperation extends Operation { + /** + * @access public + * @var CampaignCriterion + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("CampaignOperation", FALSE)) { +/** + * An operation on an AdWords campaign. + *

    Note: The REMOVE operator is not + * supported. To remove a campaign, set its {@link Campaign#status status} + * to DELETED.

    + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignOperation extends Operation { + /** + * @access public + * @var Campaign + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("CampaignStats", FALSE)) { +/** + * Represents stats specific to Campaigns. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignStats extends Stats { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignStats"; + } + + public function __construct($startDate = NULL, $endDate = NULL, $network = NULL, $clicks = NULL, $impressions = NULL, $cost = NULL, $averagePosition = NULL, $averageCpc = NULL, $averageCpm = NULL, $ctr = NULL, $conversions = NULL, $viewThroughConversions = NULL, $totalBudget = NULL, $StatsType = NULL) { + parent::__construct(); + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->network = $network; + $this->clicks = $clicks; + $this->impressions = $impressions; + $this->cost = $cost; + $this->averagePosition = $averagePosition; + $this->averageCpc = $averageCpc; + $this->averageCpm = $averageCpm; + $this->ctr = $ctr; + $this->conversions = $conversions; + $this->viewThroughConversions = $viewThroughConversions; + $this->totalBudget = $totalBudget; + $this->StatsType = $StatsType; + } +}} + +if (!class_exists("CampaignTargetOperation", FALSE)) { +/** + * Sets a list of targets on a specified campaign. + *

    Note: Only the SET operator is supported.

    + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignTargetOperation extends Operation { + /** + * @access public + * @var TargetList + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignTargetOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Carrier", FALSE)) { +/** + * Represents a Carrier Criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Carrier extends Criterion { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Carrier"; + } + + public function __construct($name = NULL, $countryCode = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->name = $name; + $this->countryCode = $countryCode; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ContentLabel", FALSE)) { +/** + * Content Label for category exclusion. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ContentLabel extends Criterion { + /** + * @access public + * @var tnsContentLabelType + */ + public $contentLabelType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentLabel"; + } + + public function __construct($contentLabelType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->contentLabelType = $contentLabelType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionPolicyError", FALSE)) { +/** + * Contains the policy violations for a single BiddableAdGroupCriterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionPolicyError extends PolicyViolationError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionPolicyError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("FailureResult", FALSE)) { +/** + * Represents a failure result for an individual mutate operation. + * + *

    Currently, operations are applied in transactional batches, so the + * corresponding operation for this result may not itself be faulty.

    + * + *

    The errors in the exception may contain {@code OGNL path}s that identify + * the faulty operations in the batch. Please see the subsequent + * {@link BatchFailureResult}s to determine the remaining operations that were + * also applied in the batch and their positions within the batch.

    + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FailureResult extends OperationResult { + /** + * @access public + * @var ApiException + */ + public $cause; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FailureResult"; + } + + public function __construct($cause = NULL, $OperationResultType = NULL) { + parent::__construct(); + $this->cause = $cause; + $this->OperationResultType = $OperationResultType; + } +}} + +if (!class_exists("FeedItemOperation", FALSE)) { +/** + * FeedItem service mutate operation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemOperation extends Operation { + /** + * @access public + * @var FeedItem + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("GeoTargetTypeSetting", FALSE)) { +/** + * Represents a collection of settings related to ads geotargeting. + * + *

    AdWords ads can be geotargeted using Location of Presence (LOP), + * Area of Interest (AOI), or both. LOP is the physical location + * of the user performing the search; AOI is the geographical region + * in which the searcher is interested. For example, if a user in + * New York City performs a search "hotels california", their LOP + * is New York City and their AOI is California. + * + *

    Additionally, ads can be positively or negatively geotargeted. + * An ad that is positively geotargeted to New York City only appears + * to users whose location is related (via AOI or LOP) to New York City. An ad + * that is negatively geotargeted to New York City appears for all + * users except those whose location is related to New York City. Ads can + * only be negatively geotargeted if a positive geotargeting is also supplied, and + * the negatively geotargeted region must be contained within the positive + * region. + * + *

    Geotargeting settings allow ads to be targeted in the following way: + *

      + *
    • Positively geotargeted using solely AOI, solely LOP, or either. + *
    • Negatively geotargeted using solely LOP, or both. + *
    + * + *

    This setting applies only to ads shown on the search network, and does + * not affect ads shown on the Google Display Network. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GeoTargetTypeSetting extends Setting { + /** + * @access public + * @var tnsGeoTargetTypeSettingPositiveGeoTargetType + */ + public $positiveGeoTargetType; + + /** + * @access public + * @var tnsGeoTargetTypeSettingNegativeGeoTargetType + */ + public $negativeGeoTargetType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetTypeSetting"; + } + + public function __construct($positiveGeoTargetType = NULL, $negativeGeoTargetType = NULL, $SettingType = NULL) { + parent::__construct(); + $this->positiveGeoTargetType = $positiveGeoTargetType; + $this->negativeGeoTargetType = $negativeGeoTargetType; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("Image", FALSE)) { +/** + * Encapsulates an Image media. For {@code SET},{@code REMOVE} operations in + * MediaService, use {@code mediaId}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Image extends Media { + /** + * @access public + * @var base64Binary + */ + public $data; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Image"; + } + + public function __construct($data = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->data = $data; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("KeywordMatchSetting", FALSE)) { +/** + * Improved exact and phrase match option includes misspellings, plurals, + * and other close variants of your keywords. + * + * Default value set to {@code true} to include close variants. For more + * information, see the article + * + * What are keyword matching options?. + * + * This setting is required when creating new campaigns. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class KeywordMatchSetting extends Setting { + /** + * @access public + * @var boolean + */ + public $optIn; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchSetting"; + } + + public function __construct($optIn = NULL, $SettingType = NULL) { + parent::__construct(); + $this->optIn = $optIn; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LostResult", FALSE)) { +/** + * Represents the result of processing an individual mutate operation that + * however failed to get durably saved despite the service's best efforts. + * + *

    The operation is considered to have completed processing because it + * either was successfully performed or failed with validation errors, and + * cannot be retried without the risk of doing duplicate work. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LostResult extends OperationResult { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LostResult"; + } + + public function __construct($OperationResultType = NULL) { + parent::__construct(); + $this->OperationResultType = $OperationResultType; + } +}} + +if (!class_exists("RealTimeBiddingSetting", FALSE)) { +/** + * Settings for Real-Time Bidding, a feature only available for campaigns + * targeting the Ad Exchange network. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RealTimeBiddingSetting extends Setting { + /** + * @access public + * @var boolean + */ + public $optIn; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RealTimeBiddingSetting"; + } + + public function __construct($optIn = NULL, $SettingType = NULL) { + parent::__construct(); + $this->optIn = $optIn; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("MutateJobService", FALSE)) { +/** + * MutateJobService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class MutateJobService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "MutateJobServiceGetResponse", + "get" => "MutateJobServiceGet", + "mutate" => "MutateJobServiceMutate", + "mutateResponse" => "MutateJobServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "Ad" => "Ad", + "AdError" => "AdError", + "ApiError" => "ApiError", + "AdExtension" => "AdExtension", + "AdExtensionError" => "AdExtensionError", + "AdExtensionOverride" => "AdExtensionOverride", + "AdExtensionOverrideError" => "AdExtensionOverrideError", + "AdExtensionOverrideOperation" => "AdExtensionOverrideOperation", + "Operation" => "Operation", + "AdExtensionOverrideStats" => "AdExtensionOverrideStats", + "Stats" => "Stats", + "AdGroup" => "AdGroup", + "AdGroupAd" => "AdGroupAd", + "AdGroupAdCountLimitExceeded" => "AdGroupAdCountLimitExceeded", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "AdGroupAdError" => "AdGroupAdError", + "AdGroupAdExperimentData" => "AdGroupAdExperimentData", + "AdGroupAdOperation" => "AdGroupAdOperation", + "AdGroupBidModifier" => "AdGroupBidModifier", + "AdGroupBidModifierOperation" => "AdGroupBidModifierOperation", + "AdGroupCriterion" => "AdGroupCriterion", + "AdGroupCriterionError" => "AdGroupCriterionError", + "AdGroupCriterionExperimentBidMultiplier" => "AdGroupCriterionExperimentBidMultiplier", + "AdGroupCriterionLimitExceeded" => "AdGroupCriterionLimitExceeded", + "AdGroupCriterionOperation" => "AdGroupCriterionOperation", + "AdGroupExperimentBidMultipliers" => "AdGroupExperimentBidMultipliers", + "AdGroupExperimentData" => "AdGroupExperimentData", + "AdGroupOperation" => "AdGroupOperation", + "AdGroupServiceError" => "AdGroupServiceError", + "AdSchedule" => "AdSchedule", + "Criterion" => "Criterion", + "AdScheduleTarget" => "AdScheduleTarget", + "Target" => "Target", + "AdScheduleTargetList" => "AdScheduleTargetList", + "TargetList" => "TargetList", + "AdStats" => "AdStats", + "AdUnionId" => "AdUnionId", + "Address" => "Address", + "AdxError" => "AdxError", + "AgeRange" => "AgeRange", + "ApiErrorReason" => "ApiErrorReason", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Audio" => "Audio", + "Media" => "Media", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BatchFailureResult" => "BatchFailureResult", + "OperationResult" => "OperationResult", + "BetaError" => "BetaError", + "Bid" => "Bid", + "BidMultiplier" => "BidMultiplier", + "BiddableAdGroupCriterion" => "BiddableAdGroupCriterion", + "BiddableAdGroupCriterionExperimentData" => "BiddableAdGroupCriterionExperimentData", + "BiddingError" => "BiddingError", + "BiddingErrors" => "BiddingErrors", + "BiddingScheme" => "BiddingScheme", + "BiddingStrategyConfiguration" => "BiddingStrategyConfiguration", + "BiddingTransitionError" => "BiddingTransitionError", + "Bids" => "Bids", + "BillingSummary" => "BillingSummary", + "Budget" => "Budget", + "BudgetError" => "BudgetError", + "BudgetOperation" => "BudgetOperation", + "BudgetOptimizerBiddingScheme" => "BudgetOptimizerBiddingScheme", + "BulkMutateJob" => "BulkMutateJob", + "Job" => "Job", + "BulkMutateJobError" => "BulkMutateJobError", + "BulkMutateJobEvent" => "BulkMutateJobEvent", + "JobEvent" => "JobEvent", + "BulkMutateJobPolicy" => "BulkMutateJobPolicy", + "BulkMutateJobSelector" => "BulkMutateJobSelector", + "JobSelector" => "JobSelector", + "BulkMutateJobStats" => "BulkMutateJobStats", + "JobStats" => "JobStats", + "BulkMutateRequest" => "BulkMutateRequest", + "BulkMutateResult" => "BulkMutateResult", + "Campaign" => "Campaign", + "CampaignAdExtension" => "CampaignAdExtension", + "CampaignAdExtensionError" => "CampaignAdExtensionError", + "CampaignAdExtensionOperation" => "CampaignAdExtensionOperation", + "CampaignAdExtensionStats" => "CampaignAdExtensionStats", + "CampaignCriterion" => "CampaignCriterion", + "CampaignCriterionError" => "CampaignCriterionError", + "CampaignCriterionLimitExceeded" => "CampaignCriterionLimitExceeded", + "CampaignCriterionOperation" => "CampaignCriterionOperation", + "CampaignError" => "CampaignError", + "CampaignOperation" => "CampaignOperation", + "CampaignStats" => "CampaignStats", + "CampaignTargetOperation" => "CampaignTargetOperation", + "Carrier" => "Carrier", + "ClientTermsError" => "ClientTermsError", + "ComparableValue" => "ComparableValue", + "ContentLabel" => "ContentLabel", + "ConversionOptimizerBiddingScheme" => "ConversionOptimizerBiddingScheme", + "ConversionOptimizerEligibility" => "ConversionOptimizerEligibility", + "CpaBid" => "CpaBid", + "CpcBid" => "CpcBid", + "CpmBid" => "CpmBid", + "CriterionError" => "CriterionError", + "CriterionParameter" => "CriterionParameter", + "CriterionPolicyError" => "CriterionPolicyError", + "PolicyViolationError" => "PolicyViolationError", + "DatabaseError" => "DatabaseError", + "DateError" => "DateError", + "DeprecatedAd" => "DeprecatedAd", + "Dimensions" => "Dimensions", + "DistinctError" => "DistinctError", + "DomainInfoExtension" => "DomainInfoExtension", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EnhancedCpcBiddingScheme" => "EnhancedCpcBiddingScheme", + "EntityAccessDenied" => "EntityAccessDenied", + "EntityId" => "EntityId", + "EntityNotFound" => "EntityNotFound", + "ExemptionRequest" => "ExemptionRequest", + "FailureResult" => "FailureResult", + "FeedItem" => "FeedItem", + "FeedItemAttributeError" => "FeedItemAttributeError", + "FeedItemAttributeValue" => "FeedItemAttributeValue", + "FeedItemDevicePreference" => "FeedItemDevicePreference", + "FeedItemError" => "FeedItemError", + "FeedItemOperation" => "FeedItemOperation", + "FeedItemSchedule" => "FeedItemSchedule", + "FeedItemScheduling" => "FeedItemScheduling", + "FeedItemValidationDetail" => "FeedItemValidationDetail", + "ForwardCompatibilityError" => "ForwardCompatibilityError", + "FrequencyCap" => "FrequencyCap", + "Gender" => "Gender", + "GeoPoint" => "GeoPoint", + "GeoTargetTypeSetting" => "GeoTargetTypeSetting", + "Setting" => "Setting", + "IdError" => "IdError", + "Image" => "Image", + "ImageAd" => "ImageAd", + "ImageError" => "ImageError", + "InAppLinkExtension" => "InAppLinkExtension", + "InternalApiError" => "InternalApiError", + "JobError" => "JobError", + "JobResult" => "JobResult", + "Keyword" => "Keyword", + "KeywordMatchSetting" => "KeywordMatchSetting", + "Language" => "Language", + "Location" => "Location", + "LocationExtension" => "LocationExtension", + "LocationOverrideInfo" => "LocationOverrideInfo", + "LocationSyncExtension" => "LocationSyncExtension", + "LongValue" => "LongValue", + "LostResult" => "LostResult", + "ManualCPCAdGroupCriterionExperimentBidMultiplier" => "ManualCPCAdGroupCriterionExperimentBidMultiplier", + "ManualCPCAdGroupExperimentBidMultipliers" => "ManualCPCAdGroupExperimentBidMultipliers", + "ManualCPMAdGroupExperimentBidMultipliers" => "ManualCPMAdGroupExperimentBidMultipliers", + "ManualCpcBiddingScheme" => "ManualCpcBiddingScheme", + "ManualCpmBiddingScheme" => "ManualCpmBiddingScheme", + "MediaError" => "MediaError", + "Media_Size_DimensionsMapEntry" => "Media_Size_DimensionsMapEntry", + "Media_Size_StringMapEntry" => "Media_Size_StringMapEntry", + "MobileAd" => "MobileAd", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "MobileDevice" => "MobileDevice", + "MobileExtension" => "MobileExtension", + "MobileImageAd" => "MobileImageAd", + "Money" => "Money", + "NegativeAdGroupCriterion" => "NegativeAdGroupCriterion", + "NegativeCampaignCriterion" => "NegativeCampaignCriterion", + "NetworkSetting" => "NetworkSetting", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OAuthInfo" => "OAuthInfo", + "Operand" => "Operand", + "OperatingSystemVersion" => "OperatingSystemVersion", + "OperationAccessDenied" => "OperationAccessDenied", + "OperationStream" => "OperationStream", + "OperationStreamResult" => "OperationStreamResult", + "OperatorError" => "OperatorError", + "OverrideInfo" => "OverrideInfo", + "PageOnePromotedBiddingScheme" => "PageOnePromotedBiddingScheme", + "PagingError" => "PagingError", + "PercentCpaBid" => "PercentCpaBid", + "PercentCpaBiddingScheme" => "PercentCpaBiddingScheme", + "PlaceHolder" => "PlaceHolder", + "Placement" => "Placement", + "Platform" => "Platform", + "PolicyViolationError.Part" => "PolicyViolationErrorPart", + "PolicyViolationKey" => "PolicyViolationKey", + "Product" => "Product", + "ProductAd" => "ProductAd", + "ProductCondition" => "ProductCondition", + "ProductConditionOperand" => "ProductConditionOperand", + "Proximity" => "Proximity", + "QualityInfo" => "QualityInfo", + "QueryError" => "QueryError", + "QuotaCheckError" => "QuotaCheckError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RealTimeBiddingSetting" => "RealTimeBiddingSetting", + "RegionCodeError" => "RegionCodeError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "ReturnValueResult" => "ReturnValueResult", + "RichMediaAd" => "RichMediaAd", + "SelectorError" => "SelectorError", + "SettingError" => "SettingError", + "SimpleMutateJob" => "SimpleMutateJob", + "SimpleMutateResult" => "SimpleMutateResult", + "Sitelink" => "Sitelink", + "SitelinksExtension" => "SitelinksExtension", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StatsQueryError" => "StatsQueryError", + "StringLengthError" => "StringLengthError", + "String_StringMapEntry" => "String_StringMapEntry", + "TargetCpaBiddingScheme" => "TargetCpaBiddingScheme", + "TargetError" => "TargetError", + "TargetingSettingDetail" => "TargetingSettingDetail", + "TargetSpendBiddingScheme" => "TargetSpendBiddingScheme", + "TargetingSetting" => "TargetingSetting", + "TempAdUnionId" => "TempAdUnionId", + "TemplateAd" => "TemplateAd", + "TemplateElement" => "TemplateElement", + "TemplateElementField" => "TemplateElementField", + "TextAd" => "TextAd", + "ThirdPartyRedirectAd" => "ThirdPartyRedirectAd", + "TrackingSetting" => "TrackingSetting", + "UnprocessedResult" => "UnprocessedResult", + "CriterionUserInterest" => "CriterionUserInterest", + "CriterionUserList" => "CriterionUserList", + "Vertical" => "Vertical", + "Video" => "Video", + "Webpage" => "Webpage", + "WebpageCondition" => "WebpageCondition", + "WebpageParameter" => "WebpageParameter", + "DynamicSearchAd" => "DynamicSearchAd", + "AdError.Reason" => "AdErrorReason", + "AdExtensionError.Reason" => "AdExtensionErrorReason", + "AdExtensionOverride.ApprovalStatus" => "AdExtensionOverrideApprovalStatus", + "AdExtensionOverride.Status" => "AdExtensionOverrideStatus", + "AdExtensionOverrideError.Reason" => "AdExtensionOverrideErrorReason", + "AdGroupAd.ApprovalStatus" => "AdGroupAdApprovalStatus", + "AdGroupAd.Status" => "AdGroupAdStatus", + "AdGroupAdError.Reason" => "AdGroupAdErrorReason", + "AdGroupCriterionError.Reason" => "AdGroupCriterionErrorReason", + "AdGroupCriterionLimitExceeded.CriteriaLimitType" => "AdGroupCriterionLimitExceededCriteriaLimitType", + "AdGroupServiceError.Reason" => "AdGroupServiceErrorReason", + "AdGroup.Status" => "AdGroupStatus", + "AdServingOptimizationStatus" => "AdServingOptimizationStatus", + "AdxError.Reason" => "AdxErrorReason", + "AgeRange.AgeRangeType" => "AgeRangeAgeRangeType", + "ApprovalStatus" => "ApprovalStatus", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BasicJobStatus" => "BasicJobStatus", + "BetaError.Reason" => "BetaErrorReason", + "BidModifierSource" => "BidModifierSource", + "BidSource" => "BidSource", + "BiddingError.Reason" => "BiddingErrorReason", + "BiddingErrors.Reason" => "BiddingErrorsReason", + "BiddingStrategySource" => "BiddingStrategySource", + "BiddingStrategyType" => "BiddingStrategyType", + "BiddingTransitionError.Reason" => "BiddingTransitionErrorReason", + "Budget.BudgetDeliveryMethod" => "BudgetBudgetDeliveryMethod", + "Budget.BudgetPeriod" => "BudgetBudgetPeriod", + "Budget.BudgetStatus" => "BudgetBudgetStatus", + "BudgetError.Reason" => "BudgetErrorReason", + "BulkMutateJobError.Reason" => "BulkMutateJobErrorReason", + "CampaignAdExtension.ApprovalStatus" => "CampaignAdExtensionApprovalStatus", + "CampaignAdExtension.Status" => "CampaignAdExtensionStatus", + "CampaignAdExtensionError.Reason" => "CampaignAdExtensionErrorReason", + "CampaignCriterionError.Reason" => "CampaignCriterionErrorReason", + "CampaignCriterionLimitExceeded.CriteriaLimitType" => "CampaignCriterionLimitExceededCriteriaLimitType", + "CampaignError.Reason" => "CampaignErrorReason", + "CampaignStatus" => "CampaignStatus", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "ContentLabelType" => "ContentLabelType", + "ConversionOptimizerBiddingScheme.BidType" => "ConversionOptimizerBiddingSchemeBidType", + "ConversionOptimizerBiddingScheme.PricingMode" => "ConversionOptimizerBiddingSchemePricingMode", + "ConversionOptimizerEligibility.RejectionReason" => "ConversionOptimizerEligibilityRejectionReason", + "Criterion.Type" => "CriterionType", + "CriterionError.Reason" => "CriterionErrorReason", + "CriterionTypeGroup" => "CriterionTypeGroup", + "CriterionUse" => "CriterionUse", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DayOfWeek" => "DayOfWeek", + "DeprecatedAd.Type" => "DeprecatedAdType", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityAccessDenied.Reason" => "EntityAccessDeniedReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityId.Type" => "EntityIdType", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "ExperimentDataStatus" => "ExperimentDataStatus", + "ExperimentDeltaStatus" => "ExperimentDeltaStatus", + "FeedItem.Status" => "FeedItemStatus", + "FeedItemError.Reason" => "FeedItemErrorReason", + "FeedItemValidationDetail.ApprovalStatus" => "FeedItemValidationDetailApprovalStatus", + "FeedItemValidationDetail.ValidationStatus" => "FeedItemValidationDetailValidationStatus", + "ForwardCompatibilityError.Reason" => "ForwardCompatibilityErrorReason", + "Gender.GenderType" => "GenderGenderType", + "GeoTargetTypeSetting.NegativeGeoTargetType" => "GeoTargetTypeSettingNegativeGeoTargetType", + "GeoTargetTypeSetting.PositiveGeoTargetType" => "GeoTargetTypeSettingPositiveGeoTargetType", + "IdError.Reason" => "IdErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InAppLinkExtension.AppStore" => "InAppLinkExtensionAppStore", + "InternalApiError.Reason" => "InternalApiErrorReason", + "JobError.Reason" => "JobErrorReason", + "KeywordMatchType" => "KeywordMatchType", + "Level" => "Level", + "LocationExtension.Source" => "LocationExtensionSource", + "LocationOverrideInfo.RadiusUnits" => "LocationOverrideInfoRadiusUnits", + "LocationTargetingStatus" => "LocationTargetingStatus", + "MarkupLanguageType" => "MarkupLanguageType", + "Media.MediaType" => "MediaMediaType", + "Media.MimeType" => "MediaMimeType", + "Media.Size" => "MediaSize", + "MediaError.Reason" => "MediaErrorReason", + "MinuteOfHour" => "MinuteOfHour", + "MobileDevice.DeviceType" => "MobileDeviceDeviceType", + "MultiplierSource" => "MultiplierSource", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperatingSystemVersion.OperatorType" => "OperatingSystemVersionOperatorType", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "PageOnePromotedBiddingScheme.StrategyGoal" => "PageOnePromotedBiddingSchemeStrategyGoal", + "PagingError.Reason" => "PagingErrorReason", + "PolicyViolationError.Reason" => "PolicyViolationErrorReason", + "Proximity.DistanceUnits" => "ProximityDistanceUnits", + "QueryError.Reason" => "QueryErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RegionCodeError.Reason" => "RegionCodeErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RichMediaAd.AdAttribute" => "RichMediaAdAdAttribute", + "RichMediaAd.RichMediaAdType" => "RichMediaAdRichMediaAdType", + "SelectorError.Reason" => "SelectorErrorReason", + "ServingStatus" => "ServingStatus", + "SettingError.Reason" => "SettingErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "Stats.Network" => "StatsNetwork", + "StatsQueryError.Reason" => "StatsQueryErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "SystemServingStatus" => "SystemServingStatus", + "TargetError.Reason" => "TargetErrorReason", + "TemplateElementField.Type" => "TemplateElementFieldType", + "ThirdPartyRedirectAd.ExpandingDirection" => "ThirdPartyRedirectAdExpandingDirection", + "TimeUnit" => "TimeUnit", + "CriterionUserList.MembershipStatus" => "CriterionUserListMembershipStatus", + "UserStatus" => "UserStatus", + "VideoType" => "VideoType", + "WebpageConditionOperand" => "WebpageConditionOperand", + "getResult" => "getResult", + "getResultResponse" => "getResultResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/MutateJobService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = MutateJobService::$classmap; + parent::__construct($wsdl, $options, $user, 'MutateJobService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Query the status of existing jobs, both simple and bulk API. + *

    Use a {@link JobSelector} to query and return a list which may + * contain both {@link BulkMutateJob} and/or {@link SimpleMutateJob}.

    + */ + public function get($selector) { + $arg = new MutateJobServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Query mutation results, of a {@code COMPLETED} job. + *

    Use a {@link JobSelector} to query and return either a + * {@link BulkMutateResult} or a {@link SimpleMutateResult}. Submit only one job ID + * at a time.

    + */ + public function getResult($selector) { + $arg = new getResult($selector); + $result = $this->__soapCall("getResult", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Simplified way of submitting a mutation job. The provided list of + * operations, if valid, will create a new job with a unique id, which will + * be returned. This id can later be used in invocations of + * {@link #get} and {@link #getResult}. Policy can optionally be specified. + * + *

    When this method returns with success, the job will be in + * {@code PROCESSING} or {@code PENDING} state and no further action is + * needed for the job to get executed.

    + * + *

    You should not use the returned {@link BulkMutateJobId} with bulk API + * {@link BulkMutateJobService#mutate} method.

    + */ + public function mutate($operations, $policy) { + $arg = new MutateJobServiceMutate($operations, $policy); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/ReportDefinitionService.php b/src/Google/Api/Ads/AdWords/v201306/ReportDefinitionService.php new file mode 100755 index 000000000..e2da92cc9 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/ReportDefinitionService.php @@ -0,0 +1,2345 @@ +enumValue = $enumValue; + $this->enumDisplayValue = $enumDisplayValue; + } +}} + +if (!class_exists("ReportDefinitionField", FALSE)) { +/** + * Represents the fields that can be used to create a ReportDefinition. + * This class allows the user to query the list of fields applicable to a + * given report type. Consumers of reports will be able use the retrieved + * fields through the {@link ReportDefinitionService#getReportFields} + * api and run the corresponding reports. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReportDefinitionField { + /** + * @access public + * @var string + */ + public $fieldName; + + /** + * @access public + * @var string + */ + public $displayFieldName; + + /** + * @access public + * @var string + */ + public $xmlAttributeName; + + /** + * @access public + * @var string + */ + public $fieldType; + + /** + * @access public + * @var string[] + */ + public $enumValues; + + /** + * @access public + * @var boolean + */ + public $canSelect; + + /** + * @access public + * @var boolean + */ + public $canFilter; + + /** + * @access public + * @var boolean + */ + public $isEnumType; + + /** + * @access public + * @var boolean + */ + public $isBeta; + + /** + * @access public + * @var EnumValuePair[] + */ + public $enumValuePairs; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportDefinitionField"; + } + + public function __construct($fieldName = NULL, $displayFieldName = NULL, $xmlAttributeName = NULL, $fieldType = NULL, $enumValues = NULL, $canSelect = NULL, $canFilter = NULL, $isEnumType = NULL, $isBeta = NULL, $enumValuePairs = NULL) { + $this->fieldName = $fieldName; + $this->displayFieldName = $displayFieldName; + $this->xmlAttributeName = $xmlAttributeName; + $this->fieldType = $fieldType; + $this->enumValues = $enumValues; + $this->canSelect = $canSelect; + $this->canFilter = $canFilter; + $this->isEnumType = $isEnumType; + $this->isBeta = $isBeta; + $this->enumValuePairs = $enumValuePairs; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CollectionSizeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CollectionSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReportDefinitionReportType", FALSE)) { +/** + * Enums for report types. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReportDefinitionReportType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportDefinition.ReportType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReportDefinitionErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * a {@link ReportDefinitionService#mutate(java.util.List)} operation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReportDefinitionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportDefinitionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getReportFields", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the available report fields for a given report type. + * + * @param reportType The type of report. + * @return The list of available report fields. Each + * {@link ReportDefinitionField} encapsulates the field name, the + * field data type, and the enum values (if the field's type is + * {@code enum}). + * @throws ApiException if a problem occurred while fetching the + * ReportDefinitionField information. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getReportFields { + /** + * @access public + * @var tnsReportDefinitionReportType + */ + public $reportType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reportType = NULL) { + $this->reportType = $reportType; + } +}} + +if (!class_exists("getReportFieldsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getReportFieldsResponse { + /** + * @access public + * @var ReportDefinitionField[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CollectionSizeError", FALSE)) { +/** + * Errors associated with the size of the given collection being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CollectionSizeError extends ApiError { + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * Indicates that a field was rejected due to compatibility issues. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReportDefinitionError", FALSE)) { +/** + * Encapsulates the errors that can be thrown during {@link ReportDefinition} + * mutate operation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReportDefinitionError extends ApiError { + /** + * @access public + * @var tnsReportDefinitionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportDefinitionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ReportDefinitionService", FALSE)) { +/** + * ReportDefinitionService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class ReportDefinitionService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "ReportDefinitionServiceGetResponse", + "get" => "ReportDefinitionServiceGet", + "mutate" => "ReportDefinitionServiceMutate", + "mutateResponse" => "ReportDefinitionServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "ClientTermsError" => "ClientTermsError", + "CollectionSizeError" => "CollectionSizeError", + "DateError" => "DateError", + "DistinctError" => "DistinctError", + "EnumValuePair" => "EnumValuePair", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperatorError" => "OperatorError", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "ReportDefinitionError" => "ReportDefinitionError", + "ReportDefinitionField" => "ReportDefinitionField", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperatorError.Reason" => "OperatorErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "ReportDefinition.ReportType" => "ReportDefinitionReportType", + "ReportDefinitionError.Reason" => "ReportDefinitionErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "getReportFields" => "getReportFields", + "getReportFieldsResponse" => "getReportFieldsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/ReportDefinitionService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ReportDefinitionService::$classmap; + parent::__construct($wsdl, $options, $user, 'ReportDefinitionService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the available report fields for a given report type. + * + * @param reportType The type of report. + * @return The list of available report fields. Each + * {@link ReportDefinitionField} encapsulates the field name, the + * field data type, and the enum values (if the field's type is + * {@code enum}). + * @throws ApiException if a problem occurred while fetching the + * ReportDefinitionField information. + */ + public function getReportFields($reportType) { + $arg = new getReportFields($reportType); + $result = $this->__soapCall("getReportFields", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/SharedCriterionService.php b/src/Google/Api/Ads/AdWords/v201306/SharedCriterionService.php new file mode 100755 index 000000000..21f6ab2dd --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/SharedCriterionService.php @@ -0,0 +1,3842 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * This field must be greater than or equal to 0. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("ProductConditionOperand", FALSE)) { +/** + * This field can be selected using the value "Operand". + * This field is required and should not be {@code null}. + * This string must not be empty. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ProductConditionOperand { + /** + * @access public + * @var string + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductConditionOperand"; + } + + public function __construct($operand = NULL) { + $this->operand = $operand; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("WebpageCondition", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageCondition { + /** + * @access public + * @var tnsWebpageConditionOperand + */ + public $operand; + + /** + * @access public + * @var string + */ + public $argument; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageCondition"; + } + + public function __construct($operand = NULL, $argument = NULL) { + $this->operand = $operand; + $this->argument = $argument; + } +}} + +if (!class_exists("CriterionParameter", FALSE)) { +/** + * Indicates that this instance is a subtype of CriterionParameter. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionParameter { + /** + * @access public + * @var string + */ + public $CriterionParameterType; + + private $_parameterMap = array ( + "CriterionParameter.Type" => "CriterionParameterType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionParameter"; + } + + public function __construct($CriterionParameterType = NULL) { + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("ProductCondition", FALSE)) { +/** + * This field can be selected using the value "Argument". + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ProductCondition { + /** + * @access public + * @var string + */ + public $argument; + + /** + * @access public + * @var ProductConditionOperand + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductCondition"; + } + + public function __construct($argument = NULL, $operand = NULL) { + $this->argument = $argument; + $this->operand = $operand; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Indicates that this instance is a subtype of ApplicationException. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * This field must contain distinct elements. + * This field must not contain {@code null} elements. + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("Criterion", FALSE)) { +/** + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Criterion { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsCriterionType + */ + public $type; + + /** + * @access public + * @var string + */ + public $CriterionType; + + private $_parameterMap = array ( + "Criterion.Type" => "CriterionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + public function __construct($id = NULL, $type = NULL, $CriterionType = NULL) { + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("SharedCriterion", FALSE)) { +/** + * This field can be selected using the value "SharedSetId".This field can be filtered on. + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedCriterion { + /** + * @access public + * @var integer + */ + public $sharedSetId; + + /** + * @access public + * @var Criterion + */ + public $criterion; + + /** + * @access public + * @var boolean + */ + public $negative; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedCriterion"; + } + + public function __construct($sharedSetId = NULL, $criterion = NULL, $negative = NULL) { + $this->sharedSetId = $sharedSetId; + $this->criterion = $criterion; + $this->negative = $negative; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Indicates that this instance is a subtype of ListReturnValue. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Indicates that this instance is a subtype of Page. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("KeywordMatchType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class KeywordMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SharedCriterionErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedCriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedCriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUserListMembershipStatus", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList.MembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("WebpageConditionOperand", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageConditionOperand { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageConditionOperand"; + } + + public function __construct() { + } +}} + +if (!class_exists("SharedCriterionServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * @param selector filters the criteria returned + * @return + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedCriterionServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("SharedCriterionServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedCriterionServiceGetResponse { + /** + * @access public + * @var SharedCriterionPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("SharedCriterionServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, REMOVE. + * + * + * + * Adds, removes criteria in a shared set. + * @param operations + * @return + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedCriterionServiceMutate { + /** + * @access public + * @var SharedCriterionOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("SharedCriterionServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedCriterionServiceMutateResponse { + /** + * @access public + * @var SharedCriterionReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CriterionError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionError extends ApiError { + /** + * @access public + * @var tnsCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Keyword", FALSE)) { +/** + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Keyword extends Criterion { + /** + * @access public + * @var string + */ + public $text; + + /** + * @access public + * @var tnsKeywordMatchType + */ + public $matchType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Keyword"; + } + + public function __construct($text = NULL, $matchType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->text = $text; + $this->matchType = $matchType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileAppCategory", FALSE)) { +/** + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileAppCategory extends Criterion { + /** + * @access public + * @var integer + */ + public $mobileAppCategoryId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAppCategory"; + } + + public function __construct($mobileAppCategoryId = NULL, $displayName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->mobileAppCategoryId = $mobileAppCategoryId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileApplication", FALSE)) { +/** + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileApplication extends Criterion { + /** + * @access public + * @var string + */ + public $appId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileApplication"; + } + + public function __construct($appId = NULL, $displayName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->appId = $appId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Placement", FALSE)) { +/** + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Placement extends Criterion { + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + public function __construct($url = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->url = $url; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SharedCriterionError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedCriterionError extends ApiError { + /** + * @access public + * @var tnsSharedCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedCriterionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CriterionUserInterest", FALSE)) { +/** + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserInterest extends Criterion { + /** + * @access public + * @var integer + */ + public $userInterestId; + + /** + * @access public + * @var string + */ + public $userInterestName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserInterest"; + } + + public function __construct($userInterestId = NULL, $userInterestName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->userInterestId = $userInterestId; + $this->userInterestName = $userInterestName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionUserList", FALSE)) { +/** + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserList extends Criterion { + /** + * @access public + * @var integer + */ + public $userListId; + + /** + * @access public + * @var string + */ + public $userListName; + + /** + * @access public + * @var tnsCriterionUserListMembershipStatus + */ + public $userListMembershipStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList"; + } + + public function __construct($userListId = NULL, $userListName = NULL, $userListMembershipStatus = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->userListId = $userListId; + $this->userListName = $userListName; + $this->userListMembershipStatus = $userListMembershipStatus; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Vertical", FALSE)) { +/** + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Vertical extends Criterion { + /** + * @access public + * @var integer + */ + public $verticalId; + + /** + * @access public + * @var integer + */ + public $verticalParentId; + + /** + * @access public + * @var string[] + */ + public $path; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Vertical"; + } + + public function __construct($verticalId = NULL, $verticalParentId = NULL, $path = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->verticalId = $verticalId; + $this->verticalParentId = $verticalParentId; + $this->path = $path; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("WebpageParameter", FALSE)) { +/** + * This field is required and should not be {@code null}. + * The length of this string should be between 1 and 2048, inclusive. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageParameter extends CriterionParameter { + /** + * @access public + * @var string + */ + public $criterionName; + + /** + * @access public + * @var WebpageCondition[] + */ + public $conditions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageParameter"; + } + + public function __construct($criterionName = NULL, $conditions = NULL, $CriterionParameterType = NULL) { + parent::__construct(); + $this->criterionName = $criterionName; + $this->conditions = $conditions; + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Webpage", FALSE)) { +/** + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Webpage extends Criterion { + /** + * @access public + * @var WebpageParameter + */ + public $parameter; + + /** + * @access public + * @var double + */ + public $criteriaCoverage; + + /** + * @access public + * @var string[] + */ + public $criteriaSamples; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Webpage"; + } + + public function __construct($parameter = NULL, $criteriaCoverage = NULL, $criteriaSamples = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->parameter = $parameter; + $this->criteriaCoverage = $criteriaCoverage; + $this->criteriaSamples = $criteriaSamples; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Product", FALSE)) { +/** + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Product extends Criterion { + /** + * @access public + * @var ProductCondition[] + */ + public $conditions; + + /** + * @access public + * @var string + */ + public $text; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + public function __construct($conditions = NULL, $text = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->conditions = $conditions; + $this->text = $text; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("SharedCriterionOperation", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedCriterionOperation extends Operation { + /** + * @access public + * @var SharedCriterion + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedCriterionOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("SharedCriterionPage", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedCriterionPage extends Page { + /** + * @access public + * @var SharedCriterion[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedCriterionPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("SharedCriterionReturnValue", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedCriterionReturnValue extends ListReturnValue { + /** + * @access public + * @var SharedCriterion[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedCriterionReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("SharedCriterionService", FALSE)) { +/** + * SharedCriterionService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class SharedCriterionService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "SharedCriterionServiceGetResponse", + "get" => "SharedCriterionServiceGet", + "mutate" => "SharedCriterionServiceMutate", + "mutateResponse" => "SharedCriterionServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "ClientTermsError" => "ClientTermsError", + "CriterionError" => "CriterionError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "Keyword" => "Keyword", + "Criterion" => "Criterion", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Placement" => "Placement", + "Predicate" => "Predicate", + "ProductConditionOperand" => "ProductConditionOperand", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SharedCriterionError" => "SharedCriterionError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "CriterionUserInterest" => "CriterionUserInterest", + "CriterionUserList" => "CriterionUserList", + "Vertical" => "Vertical", + "WebpageCondition" => "WebpageCondition", + "WebpageParameter" => "WebpageParameter", + "CriterionParameter" => "CriterionParameter", + "DatabaseError" => "DatabaseError", + "ProductCondition" => "ProductCondition", + "Webpage" => "Webpage", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Product" => "Product", + "Selector" => "Selector", + "SharedCriterion" => "SharedCriterion", + "SharedCriterionOperation" => "SharedCriterionOperation", + "Operation" => "Operation", + "SharedCriterionPage" => "SharedCriterionPage", + "Page" => "Page", + "SharedCriterionReturnValue" => "SharedCriterionReturnValue", + "ListReturnValue" => "ListReturnValue", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "Criterion.Type" => "CriterionType", + "CriterionError.Reason" => "CriterionErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "KeywordMatchType" => "KeywordMatchType", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SharedCriterionError.Reason" => "SharedCriterionErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + "CriterionUserList.MembershipStatus" => "CriterionUserListMembershipStatus", + "WebpageConditionOperand" => "WebpageConditionOperand", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/SharedCriterionService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = SharedCriterionService::$classmap; + parent::__construct($wsdl, $options, $user, 'SharedCriterionService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * @param selector filters the criteria returned + * @return + * @throws ApiException + */ + public function get($selector) { + $arg = new SharedCriterionServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, REMOVE. + * + * + * + * Adds, removes criteria in a shared set. + * @param operations + * @return + * @throws ApiException + */ + public function mutate($operations) { + $arg = new SharedCriterionServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/SharedSetService.php b/src/Google/Api/Ads/AdWords/v201306/SharedSetService.php new file mode 100755 index 000000000..35d301e1f --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/SharedSetService.php @@ -0,0 +1,3296 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * This field must be greater than or equal to 0. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SharedSet", FALSE)) { +/** + * This field can be selected using the value "SharedSetId".This field can be filtered on. + * This field is required and should not be {@code null} when it is contained within {@link Operator}s : SET, REMOVE. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedSet { + /** + * @access public + * @var integer + */ + public $sharedSetId; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsSharedSetType + */ + public $type; + + /** + * @access public + * @var integer + */ + public $memberCount; + + /** + * @access public + * @var integer + */ + public $referenceCount; + + /** + * @access public + * @var tnsSharedSetStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSet"; + } + + public function __construct($sharedSetId = NULL, $name = NULL, $type = NULL, $memberCount = NULL, $referenceCount = NULL, $status = NULL) { + $this->sharedSetId = $sharedSetId; + $this->name = $name; + $this->type = $type; + $this->memberCount = $memberCount; + $this->referenceCount = $referenceCount; + $this->status = $status; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Indicates that this instance is a subtype of ListReturnValue. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Indicates that this instance is a subtype of Page. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Indicates that this instance is a subtype of ApplicationException. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * This field must contain distinct elements. + * This field must not contain {@code null} elements. + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PagingErrorReason", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PagingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SharedSetStatus", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedSetStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSet.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("SharedSetErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedSetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SharedSetType", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedSetType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSetType"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SharedSetServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of SharedSets based on the given selector. + * @param selector the selector specifying the query + * @return a list of SharedSet entities that meet the criterion specified + * by the selector + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedSetServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("SharedSetServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedSetServiceGetResponse { + /** + * @access public + * @var SharedSetPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("SharedSetServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Applies the list of mutate operations. + * @param operations the operations to apply + * @return the modified CriterionList entities + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedSetServiceMutate { + /** + * @access public + * @var SharedSetOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("SharedSetServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedSetServiceMutateResponse { + /** + * @access public + * @var SharedSetReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PagingError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PagingError extends ApiError { + /** + * @access public + * @var tnsPagingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SharedSetError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedSetError extends ApiError { + /** + * @access public + * @var tnsSharedSetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSetError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SharedSetOperation", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedSetOperation extends Operation { + /** + * @access public + * @var SharedSet + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSetOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("SharedSetReturnValue", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedSetReturnValue extends ListReturnValue { + /** + * @access public + * @var SharedSet[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSetReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NullStatsPage", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("SharedSetPage", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedSetPage extends NullStatsPage { + /** + * @access public + * @var SharedSet[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSetPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("SharedSetService", FALSE)) { +/** + * SharedSetService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class SharedSetService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "SharedSetServiceGetResponse", + "get" => "SharedSetServiceGet", + "mutate" => "SharedSetServiceMutate", + "mutateResponse" => "SharedSetServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "ClientTermsError" => "ClientTermsError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PagingError" => "PagingError", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SharedSet" => "SharedSet", + "SharedSetError" => "SharedSetError", + "SharedSetOperation" => "SharedSetOperation", + "Operation" => "Operation", + "SharedSetPage" => "SharedSetPage", + "NullStatsPage" => "NullStatsPage", + "SharedSetReturnValue" => "SharedSetReturnValue", + "ListReturnValue" => "ListReturnValue", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "Page" => "Page", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Selector" => "Selector", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "PagingError.Reason" => "PagingErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SharedSet.Status" => "SharedSetStatus", + "SharedSetError.Reason" => "SharedSetErrorReason", + "SharedSetType" => "SharedSetType", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/SharedSetService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = SharedSetService::$classmap; + parent::__construct($wsdl, $options, $user, 'SharedSetService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of SharedSets based on the given selector. + * @param selector the selector specifying the query + * @return a list of SharedSet entities that meet the criterion specified + * by the selector + * @throws ApiException + */ + public function get($selector) { + $arg = new SharedSetServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Applies the list of mutate operations. + * @param operations the operations to apply + * @return the modified CriterionList entities + * @throws ApiException + */ + public function mutate($operations) { + $arg = new SharedSetServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/TargetingIdeaService.php b/src/Google/Api/Ads/AdWords/v201306/TargetingIdeaService.php new file mode 100755 index 000000000..848fb541a --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/TargetingIdeaService.php @@ -0,0 +1,8266 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BidLandscapeLandscapePoint", FALSE)) { +/** + * A set of estimates for a criterion's performance for a specific bid + * amount. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BidLandscapeLandscapePoint { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var integer + */ + public $clicks; + + /** + * @access public + * @var Money + */ + public $cost; + + /** + * @access public + * @var Money + */ + public $marginalCpc; + + /** + * @access public + * @var integer + */ + public $impressions; + + /** + * @access public + * @var integer + */ + public $promotedImpressions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidLandscape.LandscapePoint"; + } + + public function __construct($bid = NULL, $clicks = NULL, $cost = NULL, $marginalCpc = NULL, $impressions = NULL, $promotedImpressions = NULL) { + $this->bid = $bid; + $this->clicks = $clicks; + $this->cost = $cost; + $this->marginalCpc = $marginalCpc; + $this->impressions = $impressions; + $this->promotedImpressions = $promotedImpressions; + } +}} + +if (!class_exists("BiddingError", FALSE)) { +/** + * Represents bidding errors. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingError extends ApiError { + /** + * @access public + * @var tnsBiddingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BudgetError", FALSE)) { +/** + * A list of all the error codes being used by the common budget domain package. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetError extends ApiError { + /** + * @access public + * @var tnsBudgetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CollectionSizeError", FALSE)) { +/** + * Errors associated with the size of the given collection being + * out of bounds. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CollectionSizeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError"; + } + + 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("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("Criterion", FALSE)) { +/** + * Represents a criterion (such as a keyword, placement, or vertical). + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Criterion { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsCriterionType + */ + public $type; + + /** + * @access public + * @var string + */ + public $CriterionType; + + private $_parameterMap = array ( + "Criterion.Type" => "CriterionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + public function __construct($id = NULL, $type = NULL, $CriterionType = NULL) { + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionError", FALSE)) { +/** + * Error class used for reporting criteria related errors. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionError extends ApiError { + /** + * @access public + * @var tnsCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CriterionParameter", FALSE)) { +/** + * Base type of criterion parameters. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionParameter { + /** + * @access public + * @var string + */ + public $CriterionParameterType; + + private $_parameterMap = array ( + "CriterionParameter.Type" => "CriterionParameterType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionParameter"; + } + + public function __construct($CriterionParameterType = NULL) { + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Keyword", FALSE)) { +/** + * Represents a keyword. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Keyword extends Criterion { + /** + * @access public + * @var string + */ + public $text; + + /** + * @access public + * @var tnsKeywordMatchType + */ + public $matchType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Keyword"; + } + + public function __construct($text = NULL, $matchType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->text = $text; + $this->matchType = $matchType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Language", FALSE)) { +/** + * Represents a Language criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Language extends Criterion { + /** + * @access public + * @var string + */ + public $code; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Language"; + } + + public function __construct($code = NULL, $name = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->code = $code; + $this->name = $name; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Location", FALSE)) { +/** + * Represents Location criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type can be either targeted or excluded. + * This is enabled for AdX. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Location extends Criterion { + /** + * @access public + * @var string + */ + public $locationName; + + /** + * @access public + * @var string + */ + public $displayType; + + /** + * @access public + * @var tnsLocationTargetingStatus + */ + public $targetingStatus; + + /** + * @access public + * @var Location[] + */ + public $parentLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($locationName = NULL, $displayType = NULL, $targetingStatus = NULL, $parentLocations = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->locationName = $locationName; + $this->displayType = $displayType; + $this->targetingStatus = $targetingStatus; + $this->parentLocations = $parentLocations; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileAppCategory", FALSE)) { +/** + * Represents the mobile app category to be targeted. + * View the complete list of + * available mobile app categories. + * This is enabled for AdX. + * This is a beta feature. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileAppCategory extends Criterion { + /** + * @access public + * @var integer + */ + public $mobileAppCategoryId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAppCategory"; + } + + public function __construct($mobileAppCategoryId = NULL, $displayName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->mobileAppCategoryId = $mobileAppCategoryId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileApplication", FALSE)) { +/** + * Represents the mobile application to be targeted. + * This is enabled for AdX. + * This is a beta feature. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileApplication extends Criterion { + /** + * @access public + * @var string + */ + public $appId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileApplication"; + } + + public function __construct($appId = NULL, $displayName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->appId = $appId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NetworkSetting", FALSE)) { +/** + * Network settings for a Campaign. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NetworkSetting { + /** + * @access public + * @var boolean + */ + public $targetGoogleSearch; + + /** + * @access public + * @var boolean + */ + public $targetSearchNetwork; + + /** + * @access public + * @var boolean + */ + public $targetContentNetwork; + + /** + * @access public + * @var boolean + */ + public $targetPartnerSearchNetwork; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NetworkSetting"; + } + + public function __construct($targetGoogleSearch = NULL, $targetSearchNetwork = NULL, $targetContentNetwork = NULL, $targetPartnerSearchNetwork = NULL) { + $this->targetGoogleSearch = $targetGoogleSearch; + $this->targetSearchNetwork = $targetSearchNetwork; + $this->targetContentNetwork = $targetContentNetwork; + $this->targetPartnerSearchNetwork = $targetPartnerSearchNetwork; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Placement", FALSE)) { +/** + * A placement used for modifying bids for sites when targeting the content + * network. + * This is enabled for AdX. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Placement extends Criterion { + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + public function __construct($url = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->url = $url; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Platform", FALSE)) { +/** + * Represents Platform criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Platform extends Criterion { + /** + * @access public + * @var string + */ + public $platformName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Platform"; + } + + public function __construct($platformName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->platformName = $platformName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("PolicyViolationError", FALSE)) { +/** + * Represents violations of a single policy by some text in a field. + * + * Violations of a single policy by the same string in multiple places + * within a field is reported in one instance of this class and only one + * exemption needs to be filed. + * Violations of a single policy by two different strings is reported + * as two separate instances of this class. + * + * e.g. If 'ACME' violates 'capitalization' and occurs twice in a text ad it + * would be represented by one instance. If the ad also contains 'INC' which + * also violates 'capitalization' it would be represented in a separate + * instance. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PolicyViolationError extends ApiError { + /** + * @access public + * @var PolicyViolationKey + */ + public $key; + + /** + * @access public + * @var string + */ + public $externalPolicyName; + + /** + * @access public + * @var string + */ + public $externalPolicyUrl; + + /** + * @access public + * @var string + */ + public $externalPolicyDescription; + + /** + * @access public + * @var boolean + */ + public $isExemptable; + + /** + * @access public + * @var PolicyViolationErrorPart[] + */ + public $violatingParts; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PolicyViolationErrorPart", FALSE)) { +/** + * Points to a substring within an ad field or criterion. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PolicyViolationErrorPart { + /** + * @access public + * @var integer + */ + public $index; + + /** + * @access public + * @var integer + */ + public $length; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError.Part"; + } + + public function __construct($index = NULL, $length = NULL) { + $this->index = $index; + $this->length = $length; + } +}} + +if (!class_exists("PolicyViolationKey", FALSE)) { +/** + * Key of the violation. The key is used for referring to a violation when + * filing an exemption request. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PolicyViolationKey { + /** + * @access public + * @var string + */ + public $policyName; + + /** + * @access public + * @var string + */ + public $violatingText; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationKey"; + } + + public function __construct($policyName = NULL, $violatingText = NULL) { + $this->policyName = $policyName; + $this->violatingText = $violatingText; + } +}} + +if (!class_exists("Product", FALSE)) { +/** + * Product targeting criteria, represents a filter for products in the + * product feed that is defined by the advertiser. The criteria is used to + * determine the products in a Merchant Center account to be used with the + * ProductAds in the AdGroup. This criteria is available only to some advertisers. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Product extends Criterion { + /** + * @access public + * @var ProductCondition[] + */ + public $conditions; + + /** + * @access public + * @var string + */ + public $text; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + public function __construct($conditions = NULL, $text = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->conditions = $conditions; + $this->text = $text; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ProductCondition", FALSE)) { +/** + * Conditions to filter the products defined in product feed for targeting. + * The condition is defined as operand=argument. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ProductCondition { + /** + * @access public + * @var string + */ + public $argument; + + /** + * @access public + * @var ProductConditionOperand + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductCondition"; + } + + public function __construct($argument = NULL, $operand = NULL) { + $this->argument = $argument; + $this->operand = $operand; + } +}} + +if (!class_exists("ProductConditionOperand", FALSE)) { +/** + * Attribute for the product condition. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ProductConditionOperand { + /** + * @access public + * @var string + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductConditionOperand"; + } + + public function __construct($operand = NULL) { + $this->operand = $operand; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RegionCodeError", FALSE)) { +/** + * A list of all errors associated with the @RegionCode constraints. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RegionCodeError extends ApiError { + /** + * @access public + * @var tnsRegionCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("StatsQueryError", FALSE)) { +/** + * Represents possible error codes when querying for stats. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsQueryError extends ApiError { + /** + * @access public + * @var tnsStatsQueryErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DataEntry", FALSE)) { +/** + * The base class of all return types of the table service. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DataEntry { + /** + * @access public + * @var string + */ + public $DataEntryType; + + private $_parameterMap = array ( + "DataEntry.Type" => "DataEntryType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DataEntry"; + } + + public function __construct($DataEntryType = NULL) { + $this->DataEntryType = $DataEntryType; + } +}} + +if (!class_exists("TargetError", FALSE)) { +/** + * A list of all the error codes being used by the common targeting package. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetError extends ApiError { + /** + * @access public + * @var tnsTargetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CriterionUserInterest", FALSE)) { +/** + * User Interest - represents a particular interest based vertical to be targeted. + * Targeting UserInterest is currently in a limited beta. If you'd like access + * please speak with your account representative. + * This is enabled for AdX. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserInterest extends Criterion { + /** + * @access public + * @var integer + */ + public $userInterestId; + + /** + * @access public + * @var string + */ + public $userInterestName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserInterest"; + } + + public function __construct($userInterestId = NULL, $userInterestName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->userInterestId = $userInterestId; + $this->userInterestName = $userInterestName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionUserList", FALSE)) { +/** + * UserList - represents a user list that is defined by the advertiser to be targeted. + * This is enabled for AdX. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserList extends Criterion { + /** + * @access public + * @var integer + */ + public $userListId; + + /** + * @access public + * @var string + */ + public $userListName; + + /** + * @access public + * @var tnsCriterionUserListMembershipStatus + */ + public $userListMembershipStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList"; + } + + public function __construct($userListId = NULL, $userListName = NULL, $userListMembershipStatus = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->userListId = $userListId; + $this->userListName = $userListName; + $this->userListMembershipStatus = $userListMembershipStatus; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Vertical", FALSE)) { +/** + * Use verticals to target or exclude placements in the Google Display Network + * based on the category into which the placement falls (for example, "Pets & + * Animals/Pets/Dogs"). + * View the complete list + * of available vertical categories. + * This is enabled for AdX. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Vertical extends Criterion { + /** + * @access public + * @var integer + */ + public $verticalId; + + /** + * @access public + * @var integer + */ + public $verticalParentId; + + /** + * @access public + * @var string[] + */ + public $path; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Vertical"; + } + + public function __construct($verticalId = NULL, $verticalParentId = NULL, $path = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->verticalId = $verticalId; + $this->verticalParentId = $verticalParentId; + $this->path = $path; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Webpage", FALSE)) { +/** + * Criterion for targeting webpages of an advertiser's website. The + * website domain name is specified at the campaign level. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * This is a beta feature. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Webpage extends Criterion { + /** + * @access public + * @var WebpageParameter + */ + public $parameter; + + /** + * @access public + * @var double + */ + public $criteriaCoverage; + + /** + * @access public + * @var string[] + */ + public $criteriaSamples; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Webpage"; + } + + public function __construct($parameter = NULL, $criteriaCoverage = NULL, $criteriaSamples = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->parameter = $parameter; + $this->criteriaCoverage = $criteriaCoverage; + $this->criteriaSamples = $criteriaSamples; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("WebpageCondition", FALSE)) { +/** + * Logical expression for targeting webpages of an advertiser's website. + * + *

    A condition is defined as {@code operand OP argument} + * where {@code operand} is one of the values enumerated in + * {@link WebpageConditionOperand}, and, based on this value, + * {@code OP} is either of {@code EQUALS} or {@code CONTAINS}.

    + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageCondition { + /** + * @access public + * @var tnsWebpageConditionOperand + */ + public $operand; + + /** + * @access public + * @var string + */ + public $argument; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageCondition"; + } + + public function __construct($operand = NULL, $argument = NULL) { + $this->operand = $operand; + $this->argument = $argument; + } +}} + +if (!class_exists("WebpageParameter", FALSE)) { +/** + * Parameter of Webpage criterion, expressed as a list of conditions, or + * logical expressions, for targeting webpages of an advertiser's website. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageParameter extends CriterionParameter { + /** + * @access public + * @var string + */ + public $criterionName; + + /** + * @access public + * @var WebpageCondition[] + */ + public $conditions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageParameter"; + } + + public function __construct($criterionName = NULL, $conditions = NULL, $CriterionParameterType = NULL) { + parent::__construct(); + $this->criterionName = $criterionName; + $this->conditions = $conditions; + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("AdGroupBidLandscapeType", FALSE)) { +/** + * Used to specify the type of {@code AdGroupLandscape} + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupBidLandscapeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidLandscape.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupCriterionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupCriterionLimitExceededCriteriaLimitType", FALSE)) { +/** + * The entity type that exceeded the limit. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionLimitExceededCriteriaLimitType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionLimitExceeded.CriteriaLimitType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorReason", FALSE)) { +/** + * Reason for bidding error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetErrorReason", FALSE)) { +/** + * The reasons for the budget error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * The types of criteria. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionErrorReason", FALSE)) { +/** + * Concrete type of criterion is required for ADD and SET operations. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("KeywordMatchType", FALSE)) { +/** + * Match type of a keyword. i.e. the way we match a keyword string with + * search queries. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class KeywordMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationTargetingStatus", FALSE)) { +/** + * Enum that represents the different Targeting Status values for a Location criterion. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationTargetingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationTargetingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegionCodeErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RegionCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsQueryErrorReason", FALSE)) { +/** + * The reasons for errors when querying for stats. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsQueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUserListMembershipStatus", FALSE)) { +/** + * Membership status of the user list. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList.MembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("WebpageConditionOperand", FALSE)) { +/** + * Operand value of {@link WebpageCondition}. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageConditionOperand { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageConditionOperand"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdFormatSpec", FALSE)) { +/** + * A placement response object which provides information about one of the ad formats + * supported by a placement. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdFormatSpec { + /** + * @access public + * @var tnsSiteConstantsAdFormat + */ + public $format; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdFormatSpec"; + } + + public function __construct($format = NULL) { + $this->format = $format; + } +}} + +if (!class_exists("AdSpec", FALSE)) { +/** + * Interface for ad specifications to implement. See individual spec + * documentation for more details on how to use each type, and + * {@link AdSpecListSearchParameter} to understand what these specs are for. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdSpec { + /** + * @access public + * @var DisplayAdSpec + */ + public $DisplayAdSpec; + + /** + * @access public + * @var InStreamAdSpec + */ + public $InStreamAdSpec; + + /** + * @access public + * @var TextAdSpec + */ + public $TextAdSpec; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSpec"; + } + + public function __construct($DisplayAdSpec = NULL, $InStreamAdSpec = NULL, $TextAdSpec = NULL) { + $this->DisplayAdSpec = $DisplayAdSpec; + $this->InStreamAdSpec = $InStreamAdSpec; + $this->TextAdSpec = $TextAdSpec; + } +}} + +if (!class_exists("Attribute", FALSE)) { +/** + * {@link Attribute}s encompass the core information about a particular + * {@link com.google.ads.api.services.targetingideas.TargetingIdea}. Some + * attributes are for {@code KEYWORD} {@link IdeaType}s, some are for + * {@code PLACEMENT} {@link IdeaType}s, and some are for both. Ultimately, an + * {@link Attribute} instance simply wraps an actual value of interest. For + * example, {@link KeywordAttribute} wraps the keyword itself, while a + * {@link BooleanAttribute} simply wraps a boolean describing some information + * about the keyword idea. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Attribute { + /** + * @access public + * @var string + */ + public $AttributeType; + + private $_parameterMap = array ( + "Attribute.Type" => "AttributeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Attribute"; + } + + public function __construct($AttributeType = NULL) { + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("BidLandscapeAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a {@link BidLandscape} value. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BidLandscapeAttribute extends Attribute { + /** + * @access public + * @var BidLandscape + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidLandscapeAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("BooleanAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a boolean value. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BooleanAttribute extends Attribute { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("CriterionAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a {@link Criterion} value. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionAttribute extends Attribute { + /** + * @access public + * @var Criterion + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("CurrencyCodeError", FALSE)) { +/** + * Errors for currency codes. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CurrencyCodeError extends ApiError { + /** + * @access public + * @var tnsCurrencyCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CurrencyCodeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DisplayAdSpec", FALSE)) { +/** + * Placement request/response object which provides details about display + * ad types, options, and other available configuration variables. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DisplayAdSpec { + /** + * @access public + * @var DisplayType[] + */ + public $displayTypes; + + /** + * @access public + * @var tnsDisplayAdSpecActivationOption[] + */ + public $activationOptions; + + /** + * @access public + * @var DisplayAdSpecAdSizeSpec[] + */ + public $adSizeSpecs; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DisplayAdSpec"; + } + + public function __construct($displayTypes = NULL, $activationOptions = NULL, $adSizeSpecs = NULL) { + $this->displayTypes = $displayTypes; + $this->activationOptions = $activationOptions; + $this->adSizeSpecs = $adSizeSpecs; + } +}} + +if (!class_exists("DisplayAdSpecAdSizeSpec", FALSE)) { +/** + * Specification for an ad size. This specification allows customization by + * display options for more fine-grained control over returns, so that + * customers can associate ad options with specific sizes. For example, + * suppose the customer in general would like to see placements with + * {@code DisplayOption.STANDARD} and {@code DisplayOption.POP_UNDER} - + * except for 300x250 ads which should only be STANDARD. The customer would + * create a {@code DisplayAdSpec} with {@code DisplayOption.STANDARD} and + * {@code DisplayOption.POP_UNDER}, and also send in an {@code AdSizeSpec} + * with {@code width} of 300, {@code} height of 250, and {@code displayOptionFilter} + * set to {@code DisplayOption.STANDARD}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DisplayAdSpecAdSizeSpec { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var tnsDisplayAdSpecActivationOption[] + */ + public $activationOptionFilter; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DisplayAdSpec.AdSizeSpec"; + } + + public function __construct($width = NULL, $height = NULL, $activationOptionFilter = NULL) { + $this->width = $width; + $this->height = $height; + $this->activationOptionFilter = $activationOptionFilter; + } +}} + +if (!class_exists("DisplayType", FALSE)) { +/** + * Base interface for types of display ads. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DisplayType { + /** + * @access public + * @var FlashDisplayType + */ + public $FlashDisplayType; + + /** + * @access public + * @var HtmlDisplayType + */ + public $HtmlDisplayType; + + /** + * @access public + * @var ImageDisplayType + */ + public $ImageDisplayType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DisplayType"; + } + + public function __construct($FlashDisplayType = NULL, $HtmlDisplayType = NULL, $ImageDisplayType = NULL) { + $this->FlashDisplayType = $FlashDisplayType; + $this->HtmlDisplayType = $HtmlDisplayType; + $this->ImageDisplayType = $ImageDisplayType; + } +}} + +if (!class_exists("DoubleAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a double value. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DoubleAttribute extends Attribute { + /** + * @access public + * @var double + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("FlashDisplayType", FALSE)) { +/** + * {@link DisplayType} implementation for Flash display ads. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FlashDisplayType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashDisplayType"; + } + + public function __construct() { + } +}} + +if (!class_exists("HtmlDisplayType", FALSE)) { +/** + * HTML-specific options for display ads are contained within + * this class. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class HtmlDisplayType { + /** + * @access public + * @var tnsHtmlDisplayTypeHtmlOption + */ + public $htmlOption; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "HtmlDisplayType"; + } + + public function __construct($htmlOption = NULL) { + $this->htmlOption = $htmlOption; + } +}} + +if (!class_exists("IdeaTypeAttribute", FALSE)) { +/** + * {@link Attribute} type that contains an {@link IdeaType} value. For example, + * if a {@link com.google.ads.api.services.targetingideas.TargetingIdea} + * represents a keyword idea, its {@link IdeaTypeAttribute} would contain a + * {@code KEYWORD} {@link IdeaType}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdeaTypeAttribute extends Attribute { + /** + * @access public + * @var tnsIdeaType + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdeaTypeAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("ImageDisplayType", FALSE)) { +/** + * {@link DisplayType} implementation for images. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ImageDisplayType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageDisplayType"; + } + + public function __construct() { + } +}} + +if (!class_exists("InStreamAdInfo", FALSE)) { +/** + * Information specific to the instream ad format. Instream ads are video ads + * which play as part of the delivery of video content, either before, during, + * or after the content itself. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InStreamAdInfo { + /** + * @access public + * @var integer + */ + public $maxAdDuration; + + /** + * @access public + * @var integer + */ + public $minAdDuration; + + /** + * @access public + * @var integer + */ + public $medianAdDuration; + + /** + * @access public + * @var double + */ + public $preRollPercent; + + /** + * @access public + * @var double + */ + public $midRollPercent; + + /** + * @access public + * @var double + */ + public $postRollPercent; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InStreamAdInfo"; + } + + public function __construct($maxAdDuration = NULL, $minAdDuration = NULL, $medianAdDuration = NULL, $preRollPercent = NULL, $midRollPercent = NULL, $postRollPercent = NULL) { + $this->maxAdDuration = $maxAdDuration; + $this->minAdDuration = $minAdDuration; + $this->medianAdDuration = $medianAdDuration; + $this->preRollPercent = $preRollPercent; + $this->midRollPercent = $midRollPercent; + $this->postRollPercent = $postRollPercent; + } +}} + +if (!class_exists("InStreamAdInfoAttribute", FALSE)) { +/** + * {@link Attribute} type that contains an {@link InStreamAdInfo} value. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InStreamAdInfoAttribute extends Attribute { + /** + * @access public + * @var InStreamAdInfo + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InStreamAdInfoAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("InStreamAdSpec", FALSE)) { +/** + * Placement request/response object which provides details about instream + * ad types, options, and other available configuration variables. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InStreamAdSpec { + /** + * @access public + * @var tnsInStreamAdSpecInStreamType[] + */ + public $inStreamTypes; + + /** + * @access public + * @var integer[] + */ + public $durations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InStreamAdSpec"; + } + + public function __construct($inStreamTypes = NULL, $durations = NULL) { + $this->inStreamTypes = $inStreamTypes; + $this->durations = $durations; + } +}} + +if (!class_exists("IntegerAttribute", FALSE)) { +/** + * {@link Attribute} type that contains an integer value. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IntegerAttribute extends Attribute { + /** + * @access public + * @var integer + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IntegerAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("IntegerSetAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a Set of integer values. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IntegerSetAttribute extends Attribute { + /** + * @access public + * @var integer[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IntegerSetAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("KeywordAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a {@link Keyword} value. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class KeywordAttribute extends Attribute { + /** + * @access public + * @var Keyword + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("LongAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a long value. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LongAttribute extends Attribute { + /** + * @access public + * @var integer + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("LongComparisonOperation", FALSE)) { +/** + * Object representing integer comparison operations. This is usually used within + * a particular + * {@link com.google.ads.api.services.targetingideas.search.SearchParameter} to + * specify the valid values requested for the specific + * {@link com.google.ads.api.services.common.optimization.attributes.Attribute}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LongComparisonOperation { + /** + * @access public + * @var integer + */ + public $minimum; + + /** + * @access public + * @var integer + */ + public $maximum; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongComparisonOperation"; + } + + public function __construct($minimum = NULL, $maximum = NULL) { + $this->minimum = $minimum; + $this->maximum = $maximum; + } +}} + +if (!class_exists("LongRangeAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a {@link Range} of {@link LongValue} + * values. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LongRangeAttribute extends Attribute { + /** + * @access public + * @var Range + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongRangeAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("MatchesRegexError", FALSE)) { +/** + * Errors associated with a given string not matching the provided + * regular expression. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MatchesRegexError extends ApiError { + /** + * @access public + * @var tnsMatchesRegexErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MatchesRegexError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("MoneyAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a {@link Money} value. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MoneyAttribute extends Attribute { + /** + * @access public + * @var Money + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MoneyAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("MonthlySearchVolume", FALSE)) { +/** + * A keyword response value representing search volume for a single month. An + * instance with a {@code null} count is valid, indicating that the information + * is unavailable. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MonthlySearchVolume { + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $count; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MonthlySearchVolume"; + } + + public function __construct($year = NULL, $month = NULL, $count = NULL) { + $this->year = $year; + $this->month = $month; + $this->count = $count; + } +}} + +if (!class_exists("MonthlySearchVolumeAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a list of {@link MonthlySearchVolume} + * values. The list contains the past 12 {@link MonthlySearchVolume}s + * (excluding the current month). The first item is the data for the most + * recent month and the last item is the data for the oldest month. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MonthlySearchVolumeAttribute extends Attribute { + /** + * @access public + * @var MonthlySearchVolume[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MonthlySearchVolumeAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("OpportunityIdeaTypeAttribute", FALSE)) { +/** + * {@link Attribute} type that contains an {@link OpportunityIdeaType} value. + * For example, if a + * {@link com.google.ads.api.services.optimization.bulkopportunity.OpportunityIdea} + * represents a keyword idea, its {@link OpportunityIdeaTypeAttribute} would + * contain a {@code KEYWORD} {@link OpportunityIdeaType}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OpportunityIdeaTypeAttribute extends Attribute { + /** + * @access public + * @var tnsOpportunityIdeaType + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OpportunityIdeaTypeAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("PlacementAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a {@link Placement} value. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PlacementAttribute extends Attribute { + /** + * @access public + * @var Placement + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("PlacementTypeAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a {@link PlacementType} value. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PlacementTypeAttribute extends Attribute { + /** + * @access public + * @var tnsSiteConstantsPlacementType + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementTypeAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("Range", FALSE)) { +/** + * Represents a range of values that has either an upper or a lower bound. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Range { + /** + * @access public + * @var ComparableValue + */ + public $min; + + /** + * @access public + * @var ComparableValue + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Range"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("SearchParameter", FALSE)) { +/** + * A set of {@link SearchParameter}s are supplied to the + * {@link com.google.ads.api.services.targetingideas.TargetingIdeaSelector} + * to specify how the user wants to filter the set of all possible + * {@link com.google.ads.api.services.targetingideas.TargetingIdea}s. + * + * There is a {@link SearchParameter} for all types of inputs. + * {@link SearchParameter}s can conceptually be broken down into two types. + *
      + *
    • Input {@link SearchParameter}s provide the seed information from which + * ideas should be generated or statistic information is desired + * (e.g. {@link RelatedToQuerySearchParameter}, + * {@link RelatedToUrlSearchParameter}, etc). + * Such {@link SearchParameters} are required for valid requests.
    • + *
    • Filter {@link SearchParameter}s are used to trim down the results based + * on {@link com.google.ads.api.services.targetingideas.attributes.Attribute} + * related information (eg. {@link CompetitionSearchParameter}, etc.).
    • + *

    + * + * A request should only contain one instance of each {@link SearchParameter} + *

    One or more of the following {@link SearchParameter}s are required:
    + *

    • {@link CategoryProductsAndServicesSearchParameter}
    • + *
    • {@link RelatedToQuerySearchParameter}
    • + *
    • {@link RelatedToUrlSearchParameter}
    • + *
    • {@link SeedAdGroupIdSearchParameter}
    • + *

    + *

    {@link IdeaType} KEYWORD supports following {@link SearchParameter}s:
    + *

      + *
    • {@link CompetitionSearchParameter}
    • + *
    • {@link ExcludedKeywordSearchParameter}
    • + *
    • {@link IdeaTextFilterSearchParameter}
    • + *
    • {@link IncludeAdultContentSearchParameter}
    • + *
    • {@link CategoryProductsAndServicesSearchParameter}
    • + *
    • {@link LanguageSearchParameter}
    • + *
    • {@link NetworkSearchParameter}
    • + *
    • {@link RelatedToQuerySearchParameter}
    • + *
    • {@link RelatedToUrlSearchParameter}
    • + *
    • {@link SearchVolumeSearchParameter}
    • + *
    • {@link SeedAdGroupIdSearchParameter}
    • + *

    + *

    {@link IdeaType} PLACEMENT supports following {@link SearchParameter}s:
    + *

      + *
    • {@link LanguageSearchParameter}
    • + *
    • {@link PlacementTypeSearchParameter}
    • + *
    • {@link RelatedToQuerySearchParameter}
    • + *
    • {@link RelatedToUrlSearchParameter}
    • + *

    + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SearchParameter { + /** + * @access public + * @var string + */ + public $SearchParameterType; + + private $_parameterMap = array ( + "SearchParameter.Type" => "SearchParameterType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SearchParameter"; + } + + public function __construct($SearchParameterType = NULL) { + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("SearchVolumeSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} that specifies the level of search volume expected in results, + * and it has a direct relationship to + * {@link com.google.ads.api.services.targetingideas.external.AttributeType#SEARCH_VOLUME}. + * Absence of a {@link SearchVolumeSearchParameter} in a + * {@link com.google.ads.api.services.targetingideas.TargetingIdeaSelector} is + * equivalent to having no constraint on search volume specified. + *

    This element is supported by following {@link IdeaType}s: KEYWORD. + *

    This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SearchVolumeSearchParameter extends SearchParameter { + /** + * @access public + * @var LongComparisonOperation + */ + public $operation; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SearchVolumeSearchParameter"; + } + + public function __construct($operation = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->operation = $operation; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("SeedAdGroupIdSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for {@code KEYWORD} {@link IdeaType}s + * that specifies that the supplied AdGroup should be used as a seed + * for generating new ideas. For example, an AdGroup's keywords + * would be used to generate new and related keywords. + *

    This element is supported by following {@link IdeaType}s: KEYWORD. + *

    This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SeedAdGroupIdSearchParameter extends SearchParameter { + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SeedAdGroupIdSearchParameter"; + } + + public function __construct($adGroupId = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->adGroupId = $adGroupId; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("StringAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a string value. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringAttribute extends Attribute { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("TargetingIdea", FALSE)) { +/** + * Represents a {@link TargetingIdea} returned by search criteria specified in + * the {@link TargetingIdeaSelector}. Targeting ideas are keywords or placements + * that are similar to those the user inputs. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetingIdea { + /** + * @access public + * @var Type_AttributeMapEntry[] + */ + public $data; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingIdea"; + } + + public function __construct($data = NULL) { + $this->data = $data; + } +}} + +if (!class_exists("TargetingIdeaError", FALSE)) { +/** + * Base error class for the + * {@link com.google.ads.api.services.targetingideas.TargetingIdeaService}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetingIdeaError extends ApiError { + /** + * @access public + * @var tnsTargetingIdeaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingIdeaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TargetingIdeaPage", FALSE)) { +/** + * Contains a subset of {@link TargetingIdea}s from the search criteria + * specified by a {@link TargetingIdeaSelector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetingIdeaPage { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var TargetingIdea[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingIdeaPage"; + } + + public function __construct($totalNumEntries = NULL, $entries = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->entries = $entries; + } +}} + +if (!class_exists("TargetingIdeaSelector", FALSE)) { +/** + * A descriptor for finding {@link TargetingIdea}s that match the specified + * criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetingIdeaSelector { + /** + * @access public + * @var SearchParameter[] + */ + public $searchParameters; + + /** + * @access public + * @var tnsIdeaType + */ + public $ideaType; + + /** + * @access public + * @var tnsRequestType + */ + public $requestType; + + /** + * @access public + * @var tnsAttributeType[] + */ + public $requestedAttributeTypes; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * @access public + * @var string + */ + public $localeCode; + + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingIdeaSelector"; + } + + public function __construct($searchParameters = NULL, $ideaType = NULL, $requestType = NULL, $requestedAttributeTypes = NULL, $paging = NULL, $localeCode = NULL, $currencyCode = NULL) { + $this->searchParameters = $searchParameters; + $this->ideaType = $ideaType; + $this->requestType = $requestType; + $this->requestedAttributeTypes = $requestedAttributeTypes; + $this->paging = $paging; + $this->localeCode = $localeCode; + $this->currencyCode = $currencyCode; + } +}} + +if (!class_exists("TextAdSpec", FALSE)) { +/** + * Specification for a text ad. Currently there are no customizable + * options on text ads, but the presence of a {@code TextAdSpec} in a + * request indicates that text ads are a desired result, and the presence + * of a {@code TextAdSpec} in a response indicates that there are text + * ads available in the requested inventory. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TextAdSpec { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextAdSpec"; + } + + public function __construct() { + } +}} + +if (!class_exists("TrafficEstimatorError", FALSE)) { +/** + * Base error class for + * {@link com.google.ads.api.services.trafficestimator.TrafficEstimatorService}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TrafficEstimatorError extends ApiError { + /** + * @access public + * @var tnsTrafficEstimatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrafficEstimatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Type_AttributeMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Type + * and value of type Attribute. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Type_AttributeMapEntry { + /** + * @access public + * @var tnsAttributeType + */ + public $key; + + /** + * @access public + * @var Attribute + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Type_AttributeMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("WebpageDescriptor", FALSE)) { +/** + * Basic information about a webpage. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageDescriptor { + /** + * @access public + * @var string + */ + public $url; + + /** + * @access public + * @var string + */ + public $title; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageDescriptor"; + } + + public function __construct($url = NULL, $title = NULL) { + $this->url = $url; + $this->title = $title; + } +}} + +if (!class_exists("WebpageDescriptorAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a {@link WebpageDescriptor} value. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageDescriptorAttribute extends Attribute { + /** + * @access public + * @var WebpageDescriptor + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageDescriptorAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("AttributeType", FALSE)) { +/** + * Represents the type of + * {@link com.google.ads.api.services.common.optimization.attributes.Attribute}. + *

    {@link IdeaType} KEYWORD supports the following {@link AttributeType}s:
    + *

    • {@link #AD_SHARE}
    • + *
    • {@link #AVERAGE_CPC}
    • + *
    • {@link #AVERAGE_TARGETED_MONTHLY_SEARCHES}
    • + *
    • {@link #CATEGORY_PRODUCTS_AND_SERVICES}
    • + *
    • {@link #COMPETITION}
    • + *
    • {@link #CRITERION}
    • + *
    • {@link #EXTRACTED_FROM_WEBPAGE}
    • + *
    • {@link #GLOBAL_MONTHLY_SEARCHES}
    • + *
    • {@link #IDEA_TYPE}
    • + *
    • {@link #KEYWORD}
    • + *
    • {@link #KEYWORD_CATEGORY}
    • + *
    • {@link #KEYWORD_TEXT}
    • + *
    • {@link #NEGATIVE_KEYWORDS}
    • + *
    • {@link #NGRAM_GROUP}
    • + *
    • {@link #SEARCH_SHARE}
    • + *
    • {@link #SEARCH_VOLUME}
    • + *
    • {@link #TARGETED_MONTHLY_SEARCHES}
    • + *
    + *

    {@link IdeaType} PLACEMENT supports the following {@link AttributeType}s:
    + *

    • {@link #AD_TYPE_SPEC}
    • + *
    • {@link #APPROX_CONTENT_IMPRESSIONS_PER_DAY}
    • + *
    • {@link #CRITERION}
    • + *
    • {@link #FORMATS}
    • + *
    • {@link #IDEA_TYPE}
    • + *
    • {@link #IN_STREAM_AD_INFO}
    • + *
    • {@link #PLACEMENT}
    • + *
    • {@link #PLACEMENT_CATEGORY}
    • + *
    • {@link #PLACEMENT_NAME}
    • + *
    • {@link #PLACEMENT_TYPE}
    • + *
    • {@link #PUBLISHER_DESCRIPTION}
    • + *
    • {@link #SAMPLE_URL}
    • + *
    + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AttributeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AttributeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompetitionSearchParameterLevel", FALSE)) { +/** + * An enumeration of possible values to be used in conjunction with the + * {@link CompetitionSearchParameter} to specify the granularity of + * competition to be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CompetitionSearchParameterLevel { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompetitionSearchParameter.Level"; + } + + public function __construct() { + } +}} + +if (!class_exists("CurrencyCodeErrorReason", FALSE)) { +/** + * Encodes the reason (cause) of a particular {@link CurrencyCodeError}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CurrencyCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CurrencyCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DisplayAdSpecActivationOption", FALSE)) { +/** + * Activation options. Describes the ad's activated mode. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DisplayAdSpecActivationOption { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DisplayAdSpec.ActivationOption"; + } + + public function __construct() { + } +}} + +if (!class_exists("HtmlDisplayTypeHtmlOption", FALSE)) { +/** + * Served by a third party. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class HtmlDisplayTypeHtmlOption { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "HtmlDisplayType.HtmlOption"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdeaType", FALSE)) { +/** + * Represents the type of idea. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdeaType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdeaType"; + } + + public function __construct() { + } +}} + +if (!class_exists("InStreamAdSpecInStreamType", FALSE)) { +/** + * Display subtype. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InStreamAdSpecInStreamType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InStreamAdSpec.InStreamType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MatchesRegexErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MatchesRegexErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MatchesRegexError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OpportunityIdeaType", FALSE)) { +/** + * Represents the type of opportunity. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OpportunityIdeaType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OpportunityIdeaType"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestType", FALSE)) { +/** + * Represents the type of the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestType"; + } + + public function __construct() { + } +}} + +if (!class_exists("SiteConstantsAdFormat", FALSE)) { +/** + * Enumerates the ad formats which can be reported in search results. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SiteConstantsAdFormat { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SiteConstants.AdFormat"; + } + + public function __construct() { + } +}} + +if (!class_exists("SiteConstantsPlacementType", FALSE)) { +/** + * A placement request and response value indicating the type of site or other medium + * (for example, a web page, in a feed, in a video) where ads will appear. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SiteConstantsPlacementType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SiteConstants.PlacementType"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetingIdeaErrorReason", FALSE)) { +/** + * An enumeration of + * {@link com.google.ads.api.services.targetingideas.TargetingIdeaService} + * specific errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetingIdeaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingIdeaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TrafficEstimatorErrorReason", FALSE)) { +/** + * When the request with {@code null} campaign ID in + * {@link com.google.ads.api.services.trafficestimator.CampaignEstimateRequest} + * contains an + * {@link com.google.ads.api.services.trafficestimator.AdGroupEstimateRequest} + * with an ID. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TrafficEstimatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrafficEstimatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetingIdeaServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a page of ideas that match the query described by the specified + * {@link TargetingIdeaSelector}. + * + *

    The selector must specify a {@code paging} value, with {@code numberResults} set to 800 or + * less. Large result sets must be composed through multiple calls to this method, advancing the + * paging {@code startIndex} value by {@code numberResults} with each call. + * + *

    Only a relatively small total number of results will be available through this method. + * Much larger result sets may be available using + * {@link #getBulkKeywordIdeas(TargetingIdeaSelector)} at the price of reduced flexibility in + * selector options. + * + * @param selector Query describing the types of results to return when + * finding matches (similar keyword ideas/placement ideas). + * @return A {@link TargetingIdeaPage} of results, that is a subset of the + * list of possible ideas meeting the criteria of the + * {@link TargetingIdeaSelector}. + * @throws ApiException If problems occurred while querying for ideas. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetingIdeaServiceGet { + /** + * @access public + * @var TargetingIdeaSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("TargetingIdeaServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetingIdeaServiceGetResponse { + /** + * @access public + * @var TargetingIdeaPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getBulkKeywordIdeas", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a page of ideas that match the query described by the specified + * {@link TargetingIdeaSelector}. This method is specialized for returning + * bulk keyword ideas, and thus the selector must be set for + * {@link com.google.ads.api.services.targetingideas.attributes.RequestType#IDEAS} and + * {@link com.google.ads.api.services.common.optimization.attributes.IdeaType#KEYWORD}. + * A limited, fixed set of attributes will be returned. + * + *

    A single-valued + * {@link com.google.ads.api.services.targetingideas.search.RelatedToUrlSearchParameter} + * must be supplied. Single-valued + * {@link com.google.ads.api.services.targetingideas.search.LanguageSearchParameter} and + * {@link com.google.ads.api.services.targetingideas.search.LocationSearchParameter} are + * both optional. Other search parameters compatible with a keyword query may also be + * supplied. + * + *

    The selector must specify a {@code paging} value, with {@code numberResults} set to 800 + * or less. If a URL based search is performed it will return up to 100 keywords when the site is + * not owned, or up to 800 if it is. Number of keywords returned on a keyword based search is up + * to 800. Large result sets must be composed through multiple calls to this method, advancing the + * paging {@code startIndex} value by {@code numberResults} with each call. + * + *

    This method can make many more results available than {@link #get(TargetingIdeaSelector)}, + * but allows less control over the query. For fine-tuned queries that do not need large numbers + * of results, prefer {@link #get(TargetingIdeaSelector)}. + * + * @param selector Query describing the bulk keyword ideas to return. + * @return A {@link TargetingIdeaPage} of results, that is a subset of the + * list of possible ideas meeting the criteria of the + * {@link TargetingIdeaSelector}. + * @throws ApiException If problems occurred while querying for ideas. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getBulkKeywordIdeas { + /** + * @access public + * @var TargetingIdeaSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("getBulkKeywordIdeasResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getBulkKeywordIdeasResponse { + /** + * @access public + * @var TargetingIdeaPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupCriterionError", FALSE)) { +/** + * Base error class for Ad Group Criterion Service. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionError extends ApiError { + /** + * @access public + * @var tnsAdGroupCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdGroupCriterionLimitExceeded", FALSE)) { +/** + * Signals that too many criteria were added to some ad group. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionLimitExceeded extends EntityCountLimitExceeded { + /** + * @access public + * @var tnsAdGroupCriterionLimitExceededCriteriaLimitType + */ + public $limitType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionLimitExceeded"; + } + + public function __construct($limitType = NULL, $reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->limitType = $limitType; + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BidLandscape", FALSE)) { +/** + * Represents data about a bid landscape for an ad group or criterion. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BidLandscape extends DataEntry { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var string + */ + public $startDate; + + /** + * @access public + * @var string + */ + public $endDate; + + /** + * @access public + * @var BidLandscapeLandscapePoint[] + */ + public $landscapePoints; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidLandscape"; + } + + public function __construct($campaignId = NULL, $adGroupId = NULL, $startDate = NULL, $endDate = NULL, $landscapePoints = NULL, $DataEntryType = NULL) { + parent::__construct(); + $this->campaignId = $campaignId; + $this->adGroupId = $adGroupId; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->landscapePoints = $landscapePoints; + $this->DataEntryType = $DataEntryType; + } +}} + +if (!class_exists("CriterionBidLandscape", FALSE)) { +/** + * The bid landscape for a criterion. A bid landscape estimates how a + * a criterion will perform based on different bid amounts. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionBidLandscape extends BidLandscape { + /** + * @access public + * @var integer + */ + public $criterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionBidLandscape"; + } + + public function __construct($criterionId = NULL, $campaignId = NULL, $adGroupId = NULL, $startDate = NULL, $endDate = NULL, $landscapePoints = NULL, $DataEntryType = NULL) { + parent::__construct(); + $this->criterionId = $criterionId; + $this->campaignId = $campaignId; + $this->adGroupId = $adGroupId; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->landscapePoints = $landscapePoints; + $this->DataEntryType = $DataEntryType; + } +}} + +if (!class_exists("CriterionPolicyError", FALSE)) { +/** + * Contains the policy violations for a single BiddableAdGroupCriterion. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionPolicyError extends PolicyViolationError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionPolicyError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("AdFormatSpecListAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a list of {@link AdFormatSpec} values. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdFormatSpecListAttribute extends Attribute { + /** + * @access public + * @var AdFormatSpec[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdFormatSpecListAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("AdSpecListAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a list of {@link AdSpec} values. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdSpecListAttribute extends Attribute { + /** + * @access public + * @var AdSpec[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSpecListAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("AdSpecListSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for {@code PLACEMENT} {@link IdeaType}s used to + * filter the results by the list of {@link AdSpec}s. See {@link AdSpec} + * documentation for details on available options. + *

    This element is supported by following {@link IdeaType}s: PLACEMENT. + *

    This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdSpecListSearchParameter extends SearchParameter { + /** + * @access public + * @var AdSpec[] + */ + public $adSpecs; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSpecListSearchParameter"; + } + + public function __construct($adSpecs = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->adSpecs = $adSpecs; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("CategoryProductsAndServicesSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for {@code KEYWORD} {@link IdeaType}s that + * sets a keyword category that all search results should belong to. + * Uses the newer "Products and Services" taxonomy. + *

    This search parameter can be used in bulk keyword requests through the {@link com.google.ads.api.services.targetingideas.TargetingIdeaService#getBulkKeywordIdeas(TargetingIdeaSelector)} method. + *

    This element is supported by following {@link IdeaType}s: KEYWORD. + *

    This element is supported by following {@link RequestType}s: IDEAS. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CategoryProductsAndServicesSearchParameter extends SearchParameter { + /** + * @access public + * @var integer + */ + public $categoryId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CategoryProductsAndServicesSearchParameter"; + } + + public function __construct($categoryId = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->categoryId = $categoryId; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("CompetitionSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for {@code KEYWORD} {@link IdeaType}s used to + * filter the results by the amount of competition (eg: LOW, MEDIUM, HIGH). + *

    This element is supported by following {@link IdeaType}s: KEYWORD. + *

    This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CompetitionSearchParameter extends SearchParameter { + /** + * @access public + * @var tnsCompetitionSearchParameterLevel[] + */ + public $levels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompetitionSearchParameter"; + } + + public function __construct($levels = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->levels = $levels; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("ExcludedKeywordSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for {@code KEYWORD} {@link IdeaType}s that + * specifies {@link Keyword}s that should be excluded from the results.

    + * + * The {@link KeywordMatchType} associated with these keywords is used to + * provide various filtering strategies. For example, the excluded keyword + * "brand x player" will exclude ideas from the resulting ideas as + * described by the table below. + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
    Idea{@code BROAD}{@code PHRASE}{@code EXACT}
    brand x playerExcludeExcludeExclude
    blu-ray brand x playerExcludeExcludeInclude
    brand x dvd playerExcludeIncludeInclude
    brand x dvdIncludeIncludeInclude
    + *

    This element is supported by following {@link IdeaType}s: KEYWORD. + *

    This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExcludedKeywordSearchParameter extends SearchParameter { + /** + * @access public + * @var Keyword[] + */ + public $keywords; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExcludedKeywordSearchParameter"; + } + + public function __construct($keywords = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->keywords = $keywords; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("IdeaTextFilterSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for {@code KEYWORD} {@link IdeaType}s that + * specifies a collection of strings by which the results should be + * constrained. This guarantees that each idea in the result will match + * at least one of the {@code included} values. + * + * For this {@link SearchParameter}, excluded items will always take + * priority over included ones. + * + * This can handle a maximum of 200 (included + excluded) elements. + *

    This element is supported by following {@link IdeaType}s: KEYWORD. + *

    This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdeaTextFilterSearchParameter extends SearchParameter { + /** + * @access public + * @var string[] + */ + public $included; + + /** + * @access public + * @var string[] + */ + public $excluded; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdeaTextFilterSearchParameter"; + } + + public function __construct($included = NULL, $excluded = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->included = $included; + $this->excluded = $excluded; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("IncludeAdultContentSearchParameter", FALSE)) { +/** + * {@link SearchParameter} that specifies whether adult content should be + * returned.

    + * + * Presence of this {@link SearchParameter} will allow adult keywords + * to be included in the results. + *

    This element is supported by following {@link IdeaType}s: KEYWORD. + *

    This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IncludeAdultContentSearchParameter extends SearchParameter { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IncludeAdultContentSearchParameter"; + } + + public function __construct($SearchParameterType = NULL) { + parent::__construct(); + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("LanguageSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for both {@code PLACEMENT} and {@code KEYWORD} + * {@link IdeaType}s used to indicate multiple language being targeted. This can + * be used, for example, to search for {@code KEYWORD} {@link IdeaType}s that + * are best for Japanese language. + * + *

    The service allows at most one language to be targeted for KEYWORD requests and 10 languages + * for PLACEMENT requests. + *

    This search parameter can be used in bulk keyword requests through the {@link com.google.ads.api.services.targetingideas.TargetingIdeaService#getBulkKeywordIdeas(TargetingIdeaSelector)} method. It must be single-valued when used in a call to that method. + *

    This element is supported by following {@link IdeaType}s: KEYWORD, PLACEMENT. + *

    This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LanguageSearchParameter extends SearchParameter { + /** + * @access public + * @var Language[] + */ + public $languages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LanguageSearchParameter"; + } + + public function __construct($languages = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->languages = $languages; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("LocationSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for both {@code PLACEMENT} and {@code KEYWORD} + * {@link IdeaType}s used to indicate the locations being targeted. This can + * be used, for example, to search for {@code KEYWORD} {@link IdeaType}s that + * are best for Japan and Los Angeles. + * + *

    This parameter replaces the {@code CountryTargetSearchParameter}. + * + *

    Warning: Not all back-ends support sub-country precision. + * + *

    The service allows up to 10 locations to be targeted for KEYWORD requests and 50 locations + * for PLACEMENT requests. + *

    This search parameter can be used in bulk keyword requests through the {@link com.google.ads.api.services.targetingideas.TargetingIdeaService#getBulkKeywordIdeas(TargetingIdeaSelector)} method. It must be single-valued when used in a call to that method. + *

    This element is supported by following {@link IdeaType}s: KEYWORD, PLACEMENT. + *

    This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationSearchParameter extends SearchParameter { + /** + * @access public + * @var Location[] + */ + public $locations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationSearchParameter"; + } + + public function __construct($locations = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->locations = $locations; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("NetworkSearchParameter", FALSE)) { +/** + *

    A {@link SearchParameter} for setting the search network. Currently we + * support two network setting options: + *

      + *
    • Google search network
    • + *
    • Google search network and AFS
    • + *
    + *

    This element is supported by following {@link IdeaType}s: KEYWORD. + *

    This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NetworkSearchParameter extends SearchParameter { + /** + * @access public + * @var NetworkSetting + */ + public $networkSetting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NetworkSearchParameter"; + } + + public function __construct($networkSetting = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->networkSetting = $networkSetting; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("PlacementTypeSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for {@code PLACEMENT} {@link IdeaType}s + * used to filter results based on the type of website, known as + * {@link com.google.ads.api.services.targetingideas.attributes.Type#PLACEMENT_TYPE}, + * that they appear in. For example, searches may be limited to find + * results that only appear within mobile websites or feeds. + *

    This element is supported by following {@link IdeaType}s: PLACEMENT. + *

    This element is supported by following {@link RequestType}s: IDEAS. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PlacementTypeSearchParameter extends SearchParameter { + /** + * @access public + * @var tnsSiteConstantsPlacementType[] + */ + public $placementTypes; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementTypeSearchParameter"; + } + + public function __construct($placementTypes = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->placementTypes = $placementTypes; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("RelatedToQuerySearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for a query of {@code String}s. + *

    This search parameter can be used in bulk keyword requests through the {@link com.google.ads.api.services.targetingideas.TargetingIdeaService#getBulkKeywordIdeas(TargetingIdeaSelector)} method. + *

    This element is supported by following {@link IdeaType}s: KEYWORD, PLACEMENT. + *

    This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RelatedToQuerySearchParameter extends SearchParameter { + /** + * @access public + * @var string[] + */ + public $queries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RelatedToQuerySearchParameter"; + } + + public function __construct($queries = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->queries = $queries; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("RelatedToUrlSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for {@code KEYWORD} and {@code PLACEMENT} + * {@link IdeaType}s that specifies a set of URLs that results should + * in some way be related too. For example, keyword results would be + * similar to content keywords found on the related URLs. + *

    This search parameter can be used in bulk keyword requests through the {@link com.google.ads.api.services.targetingideas.TargetingIdeaService#getBulkKeywordIdeas(TargetingIdeaSelector)} method. It must be single-valued when used in a call to that method. + *

    This element is supported by following {@link IdeaType}s: KEYWORD, PLACEMENT. + *

    This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RelatedToUrlSearchParameter extends SearchParameter { + /** + * @access public + * @var string[] + */ + public $urls; + + /** + * @access public + * @var boolean + */ + public $includeSubUrls; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RelatedToUrlSearchParameter"; + } + + public function __construct($urls = NULL, $includeSubUrls = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->urls = $urls; + $this->includeSubUrls = $includeSubUrls; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("AdGroupBidLandscape", FALSE)) { +/** + * Represents data about a bidlandscape for an adgroup. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupBidLandscape extends BidLandscape { + /** + * @access public + * @var tnsAdGroupBidLandscapeType + */ + public $type; + + /** + * @access public + * @var boolean + */ + public $landscapeCurrent; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidLandscape"; + } + + public function __construct($type = NULL, $landscapeCurrent = NULL, $campaignId = NULL, $adGroupId = NULL, $startDate = NULL, $endDate = NULL, $landscapePoints = NULL, $DataEntryType = NULL) { + parent::__construct(); + $this->type = $type; + $this->landscapeCurrent = $landscapeCurrent; + $this->campaignId = $campaignId; + $this->adGroupId = $adGroupId; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->landscapePoints = $landscapePoints; + $this->DataEntryType = $DataEntryType; + } +}} + +if (!class_exists("TargetingIdeaService", FALSE)) { +/** + * TargetingIdeaService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class TargetingIdeaService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "TargetingIdeaServiceGetResponse", + "get" => "TargetingIdeaServiceGet", + "mutate" => "TargetingIdeaServiceMutate", + "mutateResponse" => "TargetingIdeaServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdGroupBidLandscape" => "AdGroupBidLandscape", + "BidLandscape" => "BidLandscape", + "AdGroupCriterionError" => "AdGroupCriterionError", + "ApiError" => "ApiError", + "AdGroupCriterionLimitExceeded" => "AdGroupCriterionLimitExceeded", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "AdxError" => "AdxError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "DataEntry" => "DataEntry", + "BidLandscape.LandscapePoint" => "BidLandscapeLandscapePoint", + "BiddingError" => "BiddingError", + "BudgetError" => "BudgetError", + "ClientTermsError" => "ClientTermsError", + "CollectionSizeError" => "CollectionSizeError", + "ComparableValue" => "ComparableValue", + "Criterion" => "Criterion", + "CriterionBidLandscape" => "CriterionBidLandscape", + "CriterionError" => "CriterionError", + "CriterionParameter" => "CriterionParameter", + "CriterionPolicyError" => "CriterionPolicyError", + "PolicyViolationError" => "PolicyViolationError", + "DatabaseError" => "DatabaseError", + "DateError" => "DateError", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "Keyword" => "Keyword", + "Language" => "Language", + "Location" => "Location", + "LongValue" => "LongValue", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "Money" => "Money", + "NetworkSetting" => "NetworkSetting", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "Paging" => "Paging", + "Placement" => "Placement", + "Platform" => "Platform", + "PolicyViolationError.Part" => "PolicyViolationErrorPart", + "PolicyViolationKey" => "PolicyViolationKey", + "Product" => "Product", + "ProductCondition" => "ProductCondition", + "ProductConditionOperand" => "ProductConditionOperand", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RegionCodeError" => "RegionCodeError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StatsQueryError" => "StatsQueryError", + "StringLengthError" => "StringLengthError", + "TargetError" => "TargetError", + "CriterionUserInterest" => "CriterionUserInterest", + "CriterionUserList" => "CriterionUserList", + "Vertical" => "Vertical", + "Webpage" => "Webpage", + "WebpageCondition" => "WebpageCondition", + "WebpageParameter" => "WebpageParameter", + "AdGroupBidLandscape.Type" => "AdGroupBidLandscapeType", + "AdGroupCriterionError.Reason" => "AdGroupCriterionErrorReason", + "AdGroupCriterionLimitExceeded.CriteriaLimitType" => "AdGroupCriterionLimitExceededCriteriaLimitType", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BiddingError.Reason" => "BiddingErrorReason", + "BudgetError.Reason" => "BudgetErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "Criterion.Type" => "CriterionType", + "CriterionError.Reason" => "CriterionErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "KeywordMatchType" => "KeywordMatchType", + "LocationTargetingStatus" => "LocationTargetingStatus", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RegionCodeError.Reason" => "RegionCodeErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "StatsQueryError.Reason" => "StatsQueryErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetError.Reason" => "TargetErrorReason", + "CriterionUserList.MembershipStatus" => "CriterionUserListMembershipStatus", + "WebpageConditionOperand" => "WebpageConditionOperand", + "AdFormatSpec" => "AdFormatSpec", + "AdFormatSpecListAttribute" => "AdFormatSpecListAttribute", + "Attribute" => "Attribute", + "AdSpec" => "AdSpec", + "AdSpecListAttribute" => "AdSpecListAttribute", + "AdSpecListSearchParameter" => "AdSpecListSearchParameter", + "SearchParameter" => "SearchParameter", + "BidLandscapeAttribute" => "BidLandscapeAttribute", + "BooleanAttribute" => "BooleanAttribute", + "CategoryProductsAndServicesSearchParameter" => "CategoryProductsAndServicesSearchParameter", + "CompetitionSearchParameter" => "CompetitionSearchParameter", + "CriterionAttribute" => "CriterionAttribute", + "CurrencyCodeError" => "CurrencyCodeError", + "DisplayAdSpec" => "DisplayAdSpec", + "DisplayAdSpec.AdSizeSpec" => "DisplayAdSpecAdSizeSpec", + "DisplayType" => "DisplayType", + "DoubleAttribute" => "DoubleAttribute", + "ExcludedKeywordSearchParameter" => "ExcludedKeywordSearchParameter", + "FlashDisplayType" => "FlashDisplayType", + "HtmlDisplayType" => "HtmlDisplayType", + "IdeaTextFilterSearchParameter" => "IdeaTextFilterSearchParameter", + "IdeaTypeAttribute" => "IdeaTypeAttribute", + "ImageDisplayType" => "ImageDisplayType", + "InStreamAdInfo" => "InStreamAdInfo", + "InStreamAdInfoAttribute" => "InStreamAdInfoAttribute", + "InStreamAdSpec" => "InStreamAdSpec", + "IncludeAdultContentSearchParameter" => "IncludeAdultContentSearchParameter", + "IntegerAttribute" => "IntegerAttribute", + "IntegerSetAttribute" => "IntegerSetAttribute", + "KeywordAttribute" => "KeywordAttribute", + "LanguageSearchParameter" => "LanguageSearchParameter", + "LocationSearchParameter" => "LocationSearchParameter", + "LongAttribute" => "LongAttribute", + "LongComparisonOperation" => "LongComparisonOperation", + "LongRangeAttribute" => "LongRangeAttribute", + "MatchesRegexError" => "MatchesRegexError", + "MoneyAttribute" => "MoneyAttribute", + "MonthlySearchVolume" => "MonthlySearchVolume", + "MonthlySearchVolumeAttribute" => "MonthlySearchVolumeAttribute", + "NetworkSearchParameter" => "NetworkSearchParameter", + "OpportunityIdeaTypeAttribute" => "OpportunityIdeaTypeAttribute", + "PlacementAttribute" => "PlacementAttribute", + "PlacementTypeAttribute" => "PlacementTypeAttribute", + "PlacementTypeSearchParameter" => "PlacementTypeSearchParameter", + "Range" => "Range", + "RelatedToQuerySearchParameter" => "RelatedToQuerySearchParameter", + "RelatedToUrlSearchParameter" => "RelatedToUrlSearchParameter", + "SearchVolumeSearchParameter" => "SearchVolumeSearchParameter", + "SeedAdGroupIdSearchParameter" => "SeedAdGroupIdSearchParameter", + "StringAttribute" => "StringAttribute", + "TargetingIdea" => "TargetingIdea", + "TargetingIdeaError" => "TargetingIdeaError", + "TargetingIdeaPage" => "TargetingIdeaPage", + "TargetingIdeaSelector" => "TargetingIdeaSelector", + "TextAdSpec" => "TextAdSpec", + "TrafficEstimatorError" => "TrafficEstimatorError", + "Type_AttributeMapEntry" => "Type_AttributeMapEntry", + "WebpageDescriptor" => "WebpageDescriptor", + "WebpageDescriptorAttribute" => "WebpageDescriptorAttribute", + "AttributeType" => "AttributeType", + "CompetitionSearchParameter.Level" => "CompetitionSearchParameterLevel", + "CurrencyCodeError.Reason" => "CurrencyCodeErrorReason", + "DisplayAdSpec.ActivationOption" => "DisplayAdSpecActivationOption", + "HtmlDisplayType.HtmlOption" => "HtmlDisplayTypeHtmlOption", + "IdeaType" => "IdeaType", + "InStreamAdSpec.InStreamType" => "InStreamAdSpecInStreamType", + "MatchesRegexError.Reason" => "MatchesRegexErrorReason", + "OpportunityIdeaType" => "OpportunityIdeaType", + "RequestType" => "RequestType", + "SiteConstants.AdFormat" => "SiteConstantsAdFormat", + "SiteConstants.PlacementType" => "SiteConstantsPlacementType", + "TargetingIdeaError.Reason" => "TargetingIdeaErrorReason", + "TrafficEstimatorError.Reason" => "TrafficEstimatorErrorReason", + "getBulkKeywordIdeas" => "getBulkKeywordIdeas", + "getBulkKeywordIdeasResponse" => "getBulkKeywordIdeasResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/o/v201306/TargetingIdeaService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = TargetingIdeaService::$classmap; + parent::__construct($wsdl, $options, $user, 'TargetingIdeaService', 'https://adwords.google.com/api/adwords/o/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a page of ideas that match the query described by the specified + * {@link TargetingIdeaSelector}. + * + *

    The selector must specify a {@code paging} value, with {@code numberResults} set to 800 or + * less. Large result sets must be composed through multiple calls to this method, advancing the + * paging {@code startIndex} value by {@code numberResults} with each call. + * + *

    Only a relatively small total number of results will be available through this method. + * Much larger result sets may be available using + * {@link #getBulkKeywordIdeas(TargetingIdeaSelector)} at the price of reduced flexibility in + * selector options. + * + * @param selector Query describing the types of results to return when + * finding matches (similar keyword ideas/placement ideas). + * @return A {@link TargetingIdeaPage} of results, that is a subset of the + * list of possible ideas meeting the criteria of the + * {@link TargetingIdeaSelector}. + * @throws ApiException If problems occurred while querying for ideas. + */ + public function get($selector) { + $arg = new TargetingIdeaServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a page of ideas that match the query described by the specified + * {@link TargetingIdeaSelector}. This method is specialized for returning + * bulk keyword ideas, and thus the selector must be set for + * {@link com.google.ads.api.services.targetingideas.attributes.RequestType#IDEAS} and + * {@link com.google.ads.api.services.common.optimization.attributes.IdeaType#KEYWORD}. + * A limited, fixed set of attributes will be returned. + * + *

    A single-valued + * {@link com.google.ads.api.services.targetingideas.search.RelatedToUrlSearchParameter} + * must be supplied. Single-valued + * {@link com.google.ads.api.services.targetingideas.search.LanguageSearchParameter} and + * {@link com.google.ads.api.services.targetingideas.search.LocationSearchParameter} are + * both optional. Other search parameters compatible with a keyword query may also be + * supplied. + * + *

    The selector must specify a {@code paging} value, with {@code numberResults} set to 800 + * or less. If a URL based search is performed it will return up to 100 keywords when the site is + * not owned, or up to 800 if it is. Number of keywords returned on a keyword based search is up + * to 800. Large result sets must be composed through multiple calls to this method, advancing the + * paging {@code startIndex} value by {@code numberResults} with each call. + * + *

    This method can make many more results available than {@link #get(TargetingIdeaSelector)}, + * but allows less control over the query. For fine-tuned queries that do not need large numbers + * of results, prefer {@link #get(TargetingIdeaSelector)}. + * + * @param selector Query describing the bulk keyword ideas to return. + * @return A {@link TargetingIdeaPage} of results, that is a subset of the + * list of possible ideas meeting the criteria of the + * {@link TargetingIdeaSelector}. + * @throws ApiException If problems occurred while querying for ideas. + */ + public function getBulkKeywordIdeas($selector) { + $arg = new getBulkKeywordIdeas($selector); + $result = $this->__soapCall("getBulkKeywordIdeas", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/TrafficEstimatorService.php b/src/Google/Api/Ads/AdWords/v201306/TrafficEstimatorService.php new file mode 100755 index 000000000..aa925af9e --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/TrafficEstimatorService.php @@ -0,0 +1,4856 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CollectionSizeError", FALSE)) { +/** + * Errors associated with the size of the given collection being + * out of bounds. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CollectionSizeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError"; + } + + 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("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("Criterion", FALSE)) { +/** + * Represents a criterion (such as a keyword, placement, or vertical). + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Criterion { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsCriterionType + */ + public $type; + + /** + * @access public + * @var string + */ + public $CriterionType; + + private $_parameterMap = array ( + "Criterion.Type" => "CriterionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + public function __construct($id = NULL, $type = NULL, $CriterionType = NULL) { + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionParameter", FALSE)) { +/** + * Base type of criterion parameters. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionParameter { + /** + * @access public + * @var string + */ + public $CriterionParameterType; + + private $_parameterMap = array ( + "CriterionParameter.Type" => "CriterionParameterType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionParameter"; + } + + public function __construct($CriterionParameterType = NULL) { + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityAccessDenied", FALSE)) { +/** + * Reports permission problems trying to access an entity. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityAccessDenied extends ApiError { + /** + * @access public + * @var tnsEntityAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Keyword", FALSE)) { +/** + * Represents a keyword. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Keyword extends Criterion { + /** + * @access public + * @var string + */ + public $text; + + /** + * @access public + * @var tnsKeywordMatchType + */ + public $matchType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Keyword"; + } + + public function __construct($text = NULL, $matchType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->text = $text; + $this->matchType = $matchType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Language", FALSE)) { +/** + * Represents a Language criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Language extends Criterion { + /** + * @access public + * @var string + */ + public $code; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Language"; + } + + public function __construct($code = NULL, $name = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->code = $code; + $this->name = $name; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Location", FALSE)) { +/** + * Represents Location criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type can be either targeted or excluded. + * This is enabled for AdX. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Location extends Criterion { + /** + * @access public + * @var string + */ + public $locationName; + + /** + * @access public + * @var string + */ + public $displayType; + + /** + * @access public + * @var tnsLocationTargetingStatus + */ + public $targetingStatus; + + /** + * @access public + * @var Location[] + */ + public $parentLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($locationName = NULL, $displayType = NULL, $targetingStatus = NULL, $parentLocations = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->locationName = $locationName; + $this->displayType = $displayType; + $this->targetingStatus = $targetingStatus; + $this->parentLocations = $parentLocations; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileAppCategory", FALSE)) { +/** + * Represents the mobile app category to be targeted. + * View the complete list of + * available mobile app categories. + * This is enabled for AdX. + * This is a beta feature. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileAppCategory extends Criterion { + /** + * @access public + * @var integer + */ + public $mobileAppCategoryId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAppCategory"; + } + + public function __construct($mobileAppCategoryId = NULL, $displayName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->mobileAppCategoryId = $mobileAppCategoryId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileApplication", FALSE)) { +/** + * Represents the mobile application to be targeted. + * This is enabled for AdX. + * This is a beta feature. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileApplication extends Criterion { + /** + * @access public + * @var string + */ + public $appId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileApplication"; + } + + public function __construct($appId = NULL, $displayName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->appId = $appId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NetworkSetting", FALSE)) { +/** + * Network settings for a Campaign. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NetworkSetting { + /** + * @access public + * @var boolean + */ + public $targetGoogleSearch; + + /** + * @access public + * @var boolean + */ + public $targetSearchNetwork; + + /** + * @access public + * @var boolean + */ + public $targetContentNetwork; + + /** + * @access public + * @var boolean + */ + public $targetPartnerSearchNetwork; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NetworkSetting"; + } + + public function __construct($targetGoogleSearch = NULL, $targetSearchNetwork = NULL, $targetContentNetwork = NULL, $targetPartnerSearchNetwork = NULL) { + $this->targetGoogleSearch = $targetGoogleSearch; + $this->targetSearchNetwork = $targetSearchNetwork; + $this->targetContentNetwork = $targetContentNetwork; + $this->targetPartnerSearchNetwork = $targetPartnerSearchNetwork; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Placement", FALSE)) { +/** + * A placement used for modifying bids for sites when targeting the content + * network. + * This is enabled for AdX. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Placement extends Criterion { + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + public function __construct($url = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->url = $url; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Product", FALSE)) { +/** + * Product targeting criteria, represents a filter for products in the + * product feed that is defined by the advertiser. The criteria is used to + * determine the products in a Merchant Center account to be used with the + * ProductAds in the AdGroup. This criteria is available only to some advertisers. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Product extends Criterion { + /** + * @access public + * @var ProductCondition[] + */ + public $conditions; + + /** + * @access public + * @var string + */ + public $text; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + public function __construct($conditions = NULL, $text = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->conditions = $conditions; + $this->text = $text; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ProductCondition", FALSE)) { +/** + * Conditions to filter the products defined in product feed for targeting. + * The condition is defined as operand=argument. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ProductCondition { + /** + * @access public + * @var string + */ + public $argument; + + /** + * @access public + * @var ProductConditionOperand + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductCondition"; + } + + public function __construct($argument = NULL, $operand = NULL) { + $this->argument = $argument; + $this->operand = $operand; + } +}} + +if (!class_exists("ProductConditionOperand", FALSE)) { +/** + * Attribute for the product condition. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ProductConditionOperand { + /** + * @access public + * @var string + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductConditionOperand"; + } + + public function __construct($operand = NULL) { + $this->operand = $operand; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RegionCodeError", FALSE)) { +/** + * A list of all errors associated with the @RegionCode constraints. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RegionCodeError extends ApiError { + /** + * @access public + * @var tnsRegionCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * Indicates that a field was rejected due to compatibility issues. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TargetError", FALSE)) { +/** + * A list of all the error codes being used by the common targeting package. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetError extends ApiError { + /** + * @access public + * @var tnsTargetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CriterionUserInterest", FALSE)) { +/** + * User Interest - represents a particular interest based vertical to be targeted. + * Targeting UserInterest is currently in a limited beta. If you'd like access + * please speak with your account representative. + * This is enabled for AdX. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserInterest extends Criterion { + /** + * @access public + * @var integer + */ + public $userInterestId; + + /** + * @access public + * @var string + */ + public $userInterestName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserInterest"; + } + + public function __construct($userInterestId = NULL, $userInterestName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->userInterestId = $userInterestId; + $this->userInterestName = $userInterestName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionUserList", FALSE)) { +/** + * UserList - represents a user list that is defined by the advertiser to be targeted. + * This is enabled for AdX. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserList extends Criterion { + /** + * @access public + * @var integer + */ + public $userListId; + + /** + * @access public + * @var string + */ + public $userListName; + + /** + * @access public + * @var tnsCriterionUserListMembershipStatus + */ + public $userListMembershipStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList"; + } + + public function __construct($userListId = NULL, $userListName = NULL, $userListMembershipStatus = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->userListId = $userListId; + $this->userListName = $userListName; + $this->userListMembershipStatus = $userListMembershipStatus; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Vertical", FALSE)) { +/** + * Use verticals to target or exclude placements in the Google Display Network + * based on the category into which the placement falls (for example, "Pets & + * Animals/Pets/Dogs"). + * View the complete list + * of available vertical categories. + * This is enabled for AdX. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Vertical extends Criterion { + /** + * @access public + * @var integer + */ + public $verticalId; + + /** + * @access public + * @var integer + */ + public $verticalParentId; + + /** + * @access public + * @var string[] + */ + public $path; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Vertical"; + } + + public function __construct($verticalId = NULL, $verticalParentId = NULL, $path = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->verticalId = $verticalId; + $this->verticalParentId = $verticalParentId; + $this->path = $path; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Webpage", FALSE)) { +/** + * Criterion for targeting webpages of an advertiser's website. The + * website domain name is specified at the campaign level. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * This is a beta feature. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Webpage extends Criterion { + /** + * @access public + * @var WebpageParameter + */ + public $parameter; + + /** + * @access public + * @var double + */ + public $criteriaCoverage; + + /** + * @access public + * @var string[] + */ + public $criteriaSamples; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Webpage"; + } + + public function __construct($parameter = NULL, $criteriaCoverage = NULL, $criteriaSamples = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->parameter = $parameter; + $this->criteriaCoverage = $criteriaCoverage; + $this->criteriaSamples = $criteriaSamples; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("WebpageCondition", FALSE)) { +/** + * Logical expression for targeting webpages of an advertiser's website. + * + *

    A condition is defined as {@code operand OP argument} + * where {@code operand} is one of the values enumerated in + * {@link WebpageConditionOperand}, and, based on this value, + * {@code OP} is either of {@code EQUALS} or {@code CONTAINS}.

    + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageCondition { + /** + * @access public + * @var tnsWebpageConditionOperand + */ + public $operand; + + /** + * @access public + * @var string + */ + public $argument; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageCondition"; + } + + public function __construct($operand = NULL, $argument = NULL) { + $this->operand = $operand; + $this->argument = $argument; + } +}} + +if (!class_exists("WebpageParameter", FALSE)) { +/** + * Parameter of Webpage criterion, expressed as a list of conditions, or + * logical expressions, for targeting webpages of an advertiser's website. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageParameter extends CriterionParameter { + /** + * @access public + * @var string + */ + public $criterionName; + + /** + * @access public + * @var WebpageCondition[] + */ + public $conditions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageParameter"; + } + + public function __construct($criterionName = NULL, $conditions = NULL, $CriterionParameterType = NULL) { + parent::__construct(); + $this->criterionName = $criterionName; + $this->conditions = $conditions; + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * The types of criteria. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityAccessDeniedReason", FALSE)) { +/** + * User did not have read access. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("KeywordMatchType", FALSE)) { +/** + * Match type of a keyword. i.e. the way we match a keyword string with + * search queries. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class KeywordMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationTargetingStatus", FALSE)) { +/** + * Enum that represents the different Targeting Status values for a Location criterion. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationTargetingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationTargetingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegionCodeErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RegionCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUserListMembershipStatus", FALSE)) { +/** + * Membership status of the user list. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList.MembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("WebpageConditionOperand", FALSE)) { +/** + * Operand value of {@link WebpageCondition}. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageConditionOperand { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageConditionOperand"; + } + + public function __construct() { + } +}} + +if (!class_exists("CurrencyCodeError", FALSE)) { +/** + * Errors for currency codes. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CurrencyCodeError extends ApiError { + /** + * @access public + * @var tnsCurrencyCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CurrencyCodeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Estimate", FALSE)) { +/** + * Abstract class representing an reply to an {@link EstimateRequest}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Estimate { + /** + * @access public + * @var string + */ + public $EstimateType; + + private $_parameterMap = array ( + "Estimate.Type" => "EstimateType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Estimate"; + } + + public function __construct($EstimateType = NULL) { + $this->EstimateType = $EstimateType; + } +}} + +if (!class_exists("EstimateRequest", FALSE)) { +/** + * Abstract class representing a request to estimate stats. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EstimateRequest { + /** + * @access public + * @var string + */ + public $EstimateRequestType; + + private $_parameterMap = array ( + "EstimateRequest.Type" => "EstimateRequestType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EstimateRequest"; + } + + public function __construct($EstimateRequestType = NULL) { + $this->EstimateRequestType = $EstimateRequestType; + } +}} + +if (!class_exists("KeywordEstimate", FALSE)) { +/** + * Represents the traffic estimate result for a single keyword. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class KeywordEstimate extends Estimate { + /** + * @access public + * @var integer + */ + public $criterionId; + + /** + * @access public + * @var StatsEstimate + */ + public $min; + + /** + * @access public + * @var StatsEstimate + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordEstimate"; + } + + public function __construct($criterionId = NULL, $min = NULL, $max = NULL, $EstimateType = NULL) { + parent::__construct(); + $this->criterionId = $criterionId; + $this->min = $min; + $this->max = $max; + $this->EstimateType = $EstimateType; + } +}} + +if (!class_exists("KeywordEstimateRequest", FALSE)) { +/** + * Represents a keyword to be estimated. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class KeywordEstimateRequest extends EstimateRequest { + /** + * @access public + * @var Keyword + */ + public $keyword; + + /** + * @access public + * @var Money + */ + public $maxCpc; + + /** + * @access public + * @var boolean + */ + public $isNegative; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordEstimateRequest"; + } + + public function __construct($keyword = NULL, $maxCpc = NULL, $isNegative = NULL, $EstimateRequestType = NULL) { + parent::__construct(); + $this->keyword = $keyword; + $this->maxCpc = $maxCpc; + $this->isNegative = $isNegative; + $this->EstimateRequestType = $EstimateRequestType; + } +}} + +if (!class_exists("MatchesRegexError", FALSE)) { +/** + * Errors associated with a given string not matching the provided + * regular expression. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MatchesRegexError extends ApiError { + /** + * @access public + * @var tnsMatchesRegexErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MatchesRegexError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("StatsEstimate", FALSE)) { +/** + * Represents a set of stats for a traffic estimate. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsEstimate { + /** + * @access public + * @var Money + */ + public $averageCpc; + + /** + * @access public + * @var double + */ + public $averagePosition; + + /** + * @access public + * @var double + */ + public $clicksPerDay; + + /** + * @access public + * @var double + */ + public $impressionsPerDay; + + /** + * @access public + * @var double + */ + public $clickThroughRate; + + /** + * @access public + * @var Money + */ + public $totalCost; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsEstimate"; + } + + public function __construct($averageCpc = NULL, $averagePosition = NULL, $clicksPerDay = NULL, $impressionsPerDay = NULL, $clickThroughRate = NULL, $totalCost = NULL) { + $this->averageCpc = $averageCpc; + $this->averagePosition = $averagePosition; + $this->clicksPerDay = $clicksPerDay; + $this->impressionsPerDay = $impressionsPerDay; + $this->clickThroughRate = $clickThroughRate; + $this->totalCost = $totalCost; + } +}} + +if (!class_exists("TrafficEstimatorError", FALSE)) { +/** + * Base error class for + * {@link com.google.ads.api.services.trafficestimator.TrafficEstimatorService}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TrafficEstimatorError extends ApiError { + /** + * @access public + * @var tnsTrafficEstimatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrafficEstimatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TrafficEstimatorResult", FALSE)) { +/** + * Contains results of traffic estimation request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TrafficEstimatorResult { + /** + * @access public + * @var CampaignEstimate[] + */ + public $campaignEstimates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrafficEstimatorResult"; + } + + public function __construct($campaignEstimates = NULL) { + $this->campaignEstimates = $campaignEstimates; + } +}} + +if (!class_exists("TrafficEstimatorSelector", FALSE)) { +/** + * Contains a list of campaigns to perform a traffic estimate on. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TrafficEstimatorSelector { + /** + * @access public + * @var CampaignEstimateRequest[] + */ + public $campaignEstimateRequests; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrafficEstimatorSelector"; + } + + public function __construct($campaignEstimateRequests = NULL) { + $this->campaignEstimateRequests = $campaignEstimateRequests; + } +}} + +if (!class_exists("CurrencyCodeErrorReason", FALSE)) { +/** + * Encodes the reason (cause) of a particular {@link CurrencyCodeError}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CurrencyCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CurrencyCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MatchesRegexErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MatchesRegexErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MatchesRegexError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TrafficEstimatorErrorReason", FALSE)) { +/** + * When the request with {@code null} campaign ID in + * {@link com.google.ads.api.services.trafficestimator.CampaignEstimateRequest} + * contains an + * {@link com.google.ads.api.services.trafficestimator.AdGroupEstimateRequest} + * with an ID. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TrafficEstimatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrafficEstimatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TrafficEstimatorServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns traffic estimates for specified criteria. + * + * @param selector Campaigns, ad groups and keywords for which traffic + * should be estimated. + * @return Traffic estimation results. + * @throws ApiException if problems occurred while retrieving estimates + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TrafficEstimatorServiceGet { + /** + * @access public + * @var TrafficEstimatorSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("TrafficEstimatorServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TrafficEstimatorServiceGetResponse { + /** + * @access public + * @var TrafficEstimatorResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("AdGroupEstimate", FALSE)) { +/** + * Represents the estimate results for a single ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupEstimate extends Estimate { + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var KeywordEstimate[] + */ + public $keywordEstimates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupEstimate"; + } + + public function __construct($adGroupId = NULL, $keywordEstimates = NULL, $EstimateType = NULL) { + parent::__construct(); + $this->adGroupId = $adGroupId; + $this->keywordEstimates = $keywordEstimates; + $this->EstimateType = $EstimateType; + } +}} + +if (!class_exists("AdGroupEstimateRequest", FALSE)) { +/** + * Represents an ad group that will be estimated. Ad groups may be all + * new or all existing, or a mixture of new and existing. Only existing + * campaigns can contain estimates for existing ad groups.

    + * + *

    To make a keyword estimates request in which estimates do not consider + * existing account information (e.g. historical ad group performance), set both + * {@link #adGroupId} and the enclosing {@link CampaignEstimateRequest}'s + * {@code campaignId} to {@code null}. + * + *

    For more details on usage, refer to document at + * {@link CampaignEstimateRequest}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupEstimateRequest extends EstimateRequest { + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var KeywordEstimateRequest[] + */ + public $keywordEstimateRequests; + + /** + * @access public + * @var Money + */ + public $maxCpc; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupEstimateRequest"; + } + + public function __construct($adGroupId = NULL, $keywordEstimateRequests = NULL, $maxCpc = NULL, $EstimateRequestType = NULL) { + parent::__construct(); + $this->adGroupId = $adGroupId; + $this->keywordEstimateRequests = $keywordEstimateRequests; + $this->maxCpc = $maxCpc; + $this->EstimateRequestType = $EstimateRequestType; + } +}} + +if (!class_exists("CampaignEstimate", FALSE)) { +/** + * Represents the estimate results for a single campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignEstimate extends Estimate { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var AdGroupEstimate[] + */ + public $adGroupEstimates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignEstimate"; + } + + public function __construct($campaignId = NULL, $adGroupEstimates = NULL, $EstimateType = NULL) { + parent::__construct(); + $this->campaignId = $campaignId; + $this->adGroupEstimates = $adGroupEstimates; + $this->EstimateType = $EstimateType; + } +}} + +if (!class_exists("CampaignEstimateRequest", FALSE)) { +/** + * Represents a campaign that will be estimated.

    + * + * Returns traffic estimates for the requested set of campaigns. + * The campaigns can be all new or all existing, or a mixture of + * new and existing. Only existing campaigns may contain estimates for existing + * ad groups.

    + * + * For existing campaigns, the campaign and optionally the ad group will be + * used as context to produce more accurate estimates. Traffic estimates may + * only be requested on keywords, so regardless of whether campaign and ad group + * IDs are provided or left blank, at least one keyword is required to estimate + * traffic.

    + * + * To make a keyword estimates request in which estimates do not consider + * existing account information (e.g. historical ad group performance), set + * {@link #campaignId} to {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignEstimateRequest extends EstimateRequest { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var AdGroupEstimateRequest[] + */ + public $adGroupEstimateRequests; + + /** + * @access public + * @var Criterion[] + */ + public $criteria; + + /** + * @access public + * @var NetworkSetting + */ + public $networkSetting; + + /** + * @access public + * @var Money + */ + public $dailyBudget; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignEstimateRequest"; + } + + public function __construct($campaignId = NULL, $adGroupEstimateRequests = NULL, $criteria = NULL, $networkSetting = NULL, $dailyBudget = NULL, $EstimateRequestType = NULL) { + parent::__construct(); + $this->campaignId = $campaignId; + $this->adGroupEstimateRequests = $adGroupEstimateRequests; + $this->criteria = $criteria; + $this->networkSetting = $networkSetting; + $this->dailyBudget = $dailyBudget; + $this->EstimateRequestType = $EstimateRequestType; + } +}} + +if (!class_exists("TrafficEstimatorService", FALSE)) { +/** + * TrafficEstimatorService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class TrafficEstimatorService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "TrafficEstimatorServiceGetResponse", + "get" => "TrafficEstimatorServiceGet", + "mutate" => "TrafficEstimatorServiceMutate", + "mutateResponse" => "TrafficEstimatorServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdxError" => "AdxError", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "CollectionSizeError" => "CollectionSizeError", + "ComparableValue" => "ComparableValue", + "Criterion" => "Criterion", + "CriterionParameter" => "CriterionParameter", + "DatabaseError" => "DatabaseError", + "DateError" => "DateError", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EntityAccessDenied" => "EntityAccessDenied", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "Keyword" => "Keyword", + "Language" => "Language", + "Location" => "Location", + "LongValue" => "LongValue", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "Money" => "Money", + "NetworkSetting" => "NetworkSetting", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "Placement" => "Placement", + "Product" => "Product", + "ProductCondition" => "ProductCondition", + "ProductConditionOperand" => "ProductConditionOperand", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RegionCodeError" => "RegionCodeError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "TargetError" => "TargetError", + "CriterionUserInterest" => "CriterionUserInterest", + "CriterionUserList" => "CriterionUserList", + "Vertical" => "Vertical", + "Webpage" => "Webpage", + "WebpageCondition" => "WebpageCondition", + "WebpageParameter" => "WebpageParameter", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "Criterion.Type" => "CriterionType", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityAccessDenied.Reason" => "EntityAccessDeniedReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "KeywordMatchType" => "KeywordMatchType", + "LocationTargetingStatus" => "LocationTargetingStatus", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "OperatorError.Reason" => "OperatorErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RegionCodeError.Reason" => "RegionCodeErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetError.Reason" => "TargetErrorReason", + "CriterionUserList.MembershipStatus" => "CriterionUserListMembershipStatus", + "WebpageConditionOperand" => "WebpageConditionOperand", + "AdGroupEstimate" => "AdGroupEstimate", + "Estimate" => "Estimate", + "AdGroupEstimateRequest" => "AdGroupEstimateRequest", + "EstimateRequest" => "EstimateRequest", + "CampaignEstimate" => "CampaignEstimate", + "CampaignEstimateRequest" => "CampaignEstimateRequest", + "CurrencyCodeError" => "CurrencyCodeError", + "KeywordEstimate" => "KeywordEstimate", + "KeywordEstimateRequest" => "KeywordEstimateRequest", + "MatchesRegexError" => "MatchesRegexError", + "StatsEstimate" => "StatsEstimate", + "TrafficEstimatorError" => "TrafficEstimatorError", + "TrafficEstimatorResult" => "TrafficEstimatorResult", + "TrafficEstimatorSelector" => "TrafficEstimatorSelector", + "CurrencyCodeError.Reason" => "CurrencyCodeErrorReason", + "MatchesRegexError.Reason" => "MatchesRegexErrorReason", + "TrafficEstimatorError.Reason" => "TrafficEstimatorErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/o/v201306/TrafficEstimatorService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = TrafficEstimatorService::$classmap; + parent::__construct($wsdl, $options, $user, 'TrafficEstimatorService', 'https://adwords.google.com/api/adwords/o/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns traffic estimates for specified criteria. + * + * @param selector Campaigns, ad groups and keywords for which traffic + * should be estimated. + * @return Traffic estimation results. + * @throws ApiException if problems occurred while retrieving estimates + */ + public function get($selector) { + $arg = new TrafficEstimatorServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/AdGroupAdService.php b/src/Google/Api/Ads/AdWords/v201309/AdGroupAdService.php new file mode 100755 index 000000000..895ff9b59 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/AdGroupAdService.php @@ -0,0 +1,6111 @@ +This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Ad { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $url; + + /** + * @access public + * @var string + */ + public $displayUrl; + + /** + * @access public + * @var integer + */ + public $devicePreference; + + /** + * @access public + * @var string + */ + public $AdType; + + private $_parameterMap = array ( + "Ad.Type" => "AdType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Ad"; + } + + public function __construct($id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("AdGroupAd", FALSE)) { +/** + * Represents an ad in an ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAd { + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var Ad + */ + public $ad; + + /** + * @access public + * @var AdGroupAdExperimentData + */ + public $experimentData; + + /** + * @access public + * @var tnsAdGroupAdStatus + */ + public $status; + + /** + * @access public + * @var tnsAdGroupAdApprovalStatus + */ + public $approvalStatus; + + /** + * @access public + * @var string[] + */ + public $disapprovalReasons; + + /** + * @access public + * @var boolean + */ + public $trademarkDisapproved; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAd"; + } + + public function __construct($adGroupId = NULL, $ad = NULL, $experimentData = NULL, $status = NULL, $approvalStatus = NULL, $disapprovalReasons = NULL, $trademarkDisapproved = NULL, $forwardCompatibilityMap = NULL) { + $this->adGroupId = $adGroupId; + $this->ad = $ad; + $this->experimentData = $experimentData; + $this->status = $status; + $this->approvalStatus = $approvalStatus; + $this->disapprovalReasons = $disapprovalReasons; + $this->trademarkDisapproved = $trademarkDisapproved; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + } +}} + +if (!class_exists("AdGroupAdExperimentData", FALSE)) { +/** + * Data associated with an advertiser experiment for an AdGroupAd + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdExperimentData { + /** + * @access public + * @var integer + */ + public $experimentId; + + /** + * @access public + * @var tnsExperimentDeltaStatus + */ + public $experimentDeltaStatus; + + /** + * @access public + * @var tnsExperimentDataStatus + */ + public $experimentDataStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdExperimentData"; + } + + public function __construct($experimentId = NULL, $experimentDeltaStatus = NULL, $experimentDataStatus = NULL) { + $this->experimentId = $experimentId; + $this->experimentDeltaStatus = $experimentDeltaStatus; + $this->experimentDataStatus = $experimentDataStatus; + } +}} + +if (!class_exists("AdUnionId", FALSE)) { +/** + * Represents an id indicating a grouping of Ads under some heuristic. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdUnionId { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $AdUnionIdType; + + private $_parameterMap = array ( + "AdUnionId.Type" => "AdUnionIdType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnionId"; + } + + public function __construct($id = NULL, $AdUnionIdType = NULL) { + $this->id = $id; + $this->AdUnionIdType = $AdUnionIdType; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateRange", FALSE)) { +/** + * Represents a range of dates that has either an upper or a lower bound. + * The format for the date is YYYYMMDD. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("DeprecatedAd", FALSE)) { +/** + * Represents a deprecated ad. + * + * Deprecated ads can be deleted, but cannot be created. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DeprecatedAd extends Ad { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsDeprecatedAdType + */ + public $type; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeprecatedAd"; + } + + public function __construct($name = NULL, $type = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->name = $name; + $this->type = $type; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("Dimensions", FALSE)) { +/** + * Represents a simple height-width dimension. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Dimensions { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Dimensions"; + } + + public function __construct($width = NULL, $height = NULL) { + $this->width = $width; + $this->height = $height; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ExemptionRequest", FALSE)) { +/** + * A request to be exempted from a {@link PolicyViolationError}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExemptionRequest { + /** + * @access public + * @var PolicyViolationKey + */ + public $key; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExemptionRequest"; + } + + public function __construct($key = NULL) { + $this->key = $key; + } +}} + +if (!class_exists("ForwardCompatibilityError", FALSE)) { +/** + * A ForwardComptibilityError represents possible errors when using the forwardCompatibilityMap + * in some of the common services. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ForwardCompatibilityError extends ApiError { + /** + * @access public + * @var tnsForwardCompatibilityErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ImageAd", FALSE)) { +/** + * Represents an ImageAd. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ImageAd extends Ad { + /** + * @access public + * @var Image + */ + public $image; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $adToCopyImageFrom; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageAd"; + } + + public function __construct($image = NULL, $name = NULL, $adToCopyImageFrom = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->image = $image; + $this->name = $name; + $this->adToCopyImageFrom = $adToCopyImageFrom; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("ImageError", FALSE)) { +/** + * Error class for errors associated with parsing image data. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ImageError extends ApiError { + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Media", FALSE)) { +/** + * Represents some kind of media. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Media { + /** + * @access public + * @var integer + */ + public $mediaId; + + /** + * @access public + * @var tnsMediaMediaType + */ + public $type; + + /** + * @access public + * @var integer + */ + public $referenceId; + + /** + * @access public + * @var Media_Size_DimensionsMapEntry[] + */ + public $dimensions; + + /** + * @access public + * @var Media_Size_StringMapEntry[] + */ + public $urls; + + /** + * @access public + * @var tnsMediaMimeType + */ + public $mimeType; + + /** + * @access public + * @var string + */ + public $sourceUrl; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $fileSize; + + /** + * @access public + * @var string + */ + public $creationTime; + + /** + * @access public + * @var string + */ + public $MediaType; + + private $_parameterMap = array ( + "Media.Type" => "MediaType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media"; + } + + public function __construct($mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("MediaError", FALSE)) { +/** + * Error class for media related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaError extends ApiError { + /** + * @access public + * @var tnsMediaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MediaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Media_Size_DimensionsMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Size + * and value of type Dimensions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Media_Size_DimensionsMapEntry { + /** + * @access public + * @var tnsMediaSize + */ + public $key; + + /** + * @access public + * @var Dimensions + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media_Size_DimensionsMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Media_Size_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Size + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Media_Size_StringMapEntry { + /** + * @access public + * @var tnsMediaSize + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media_Size_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("MobileAd", FALSE)) { +/** + * Represents a mobile ad. + * + *

    + * A mobile ad can contain a click-to-call phone number, a link to a website, + * or both. You specify which features you want by setting certain fields, as + * shown in the following table. For example, to create a click-to-call mobile + * ad, set the fields in the Click-to-call column. A hyphen indicates + * that you should not set the corresponding field. + *

    + *

    + * For more information, see + * + * Create a mobile ad. + *

    + * + * + * + * + * + * + * + * + *
    Click-to-call Website Both
    headline
    + * description
    + * mobileCarriers
    + * phoneNumber
    + * countryCode
    + * businessName
    + * -
    + * -
    + * -
    + *
    headline
    + * description
    + * mobileCarriers
    + * -
    + * -
    + * -
    + * displayUrl
    + * destinationUrl
    + * markupLanguages
    + *
    headline
    + * description
    + * mobileCarriers
    + * phoneNumber
    + * countryCode
    + * businessName
    + * displayUrl
    + * destinationUrl
    + * markupLanguages
    + *
    + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileAd extends Ad { + /** + * @access public + * @var string + */ + public $headline; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsMarkupLanguageType[] + */ + public $markupLanguages; + + /** + * @access public + * @var string[] + */ + public $mobileCarriers; + + /** + * @access public + * @var string + */ + public $businessName; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * @access public + * @var string + */ + public $phoneNumber; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAd"; + } + + public function __construct($headline = NULL, $description = NULL, $markupLanguages = NULL, $mobileCarriers = NULL, $businessName = NULL, $countryCode = NULL, $phoneNumber = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->headline = $headline; + $this->description = $description; + $this->markupLanguages = $markupLanguages; + $this->mobileCarriers = $mobileCarriers; + $this->businessName = $businessName; + $this->countryCode = $countryCode; + $this->phoneNumber = $phoneNumber; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("MobileImageAd", FALSE)) { +/** + * Represents a mobile image ad. + * + *

    For more information, see + * + * Create a mobile ad.

    + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileImageAd extends Ad { + /** + * @access public + * @var tnsMarkupLanguageType[] + */ + public $markupLanguages; + + /** + * @access public + * @var string[] + */ + public $mobileCarriers; + + /** + * @access public + * @var Image + */ + public $image; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileImageAd"; + } + + public function __construct($markupLanguages = NULL, $mobileCarriers = NULL, $image = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->markupLanguages = $markupLanguages; + $this->mobileCarriers = $mobileCarriers; + $this->image = $image; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("PagingError", FALSE)) { +/** + * Error codes for pagination. + * See {@link com.google.ads.api.services.common.pagination.Paging}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingError extends ApiError { + /** + * @access public + * @var tnsPagingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PolicyViolationError", FALSE)) { +/** + * Represents violations of a single policy by some text in a field. + * + * Violations of a single policy by the same string in multiple places + * within a field is reported in one instance of this class and only one + * exemption needs to be filed. + * Violations of a single policy by two different strings is reported + * as two separate instances of this class. + * + * e.g. If 'ACME' violates 'capitalization' and occurs twice in a text ad it + * would be represented by one instance. If the ad also contains 'INC' which + * also violates 'capitalization' it would be represented in a separate + * instance. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PolicyViolationError extends ApiError { + /** + * @access public + * @var PolicyViolationKey + */ + public $key; + + /** + * @access public + * @var string + */ + public $externalPolicyName; + + /** + * @access public + * @var string + */ + public $externalPolicyUrl; + + /** + * @access public + * @var string + */ + public $externalPolicyDescription; + + /** + * @access public + * @var boolean + */ + public $isExemptable; + + /** + * @access public + * @var PolicyViolationErrorPart[] + */ + public $violatingParts; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PolicyViolationErrorPart", FALSE)) { +/** + * Points to a substring within an ad field or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PolicyViolationErrorPart { + /** + * @access public + * @var integer + */ + public $index; + + /** + * @access public + * @var integer + */ + public $length; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError.Part"; + } + + public function __construct($index = NULL, $length = NULL) { + $this->index = $index; + $this->length = $length; + } +}} + +if (!class_exists("PolicyViolationKey", FALSE)) { +/** + * Key of the violation. The key is used for referring to a violation when + * filing an exemption request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PolicyViolationKey { + /** + * @access public + * @var string + */ + public $policyName; + + /** + * @access public + * @var string + */ + public $violatingText; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationKey"; + } + + public function __construct($policyName = NULL, $violatingText = NULL) { + $this->policyName = $policyName; + $this->violatingText = $violatingText; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("ProductAd", FALSE)) { +/** + * Represents a product ad (known as a product + * listing ad in the AdWords user interface). A product ad displays + * product data (managed using the Google Merchant Center) that is + * pulled from the Google base product feed specified in the parent campaign's + * {@linkplain ProductExtension product extension}. + * + *

    Product ads are only available to a limited set of advertisers. If you + * are not eligible to use product ads, they will not serve.

    + * + *

    Caution: Product ads do not use {@link #url url} or + * {@link #displayUrl displayUrl}; setting these fields on a product ad will + * cause an error.

    + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProductAd extends Ad { + /** + * @access public + * @var string + */ + public $promotionLine; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductAd"; + } + + public function __construct($promotionLine = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->promotionLine = $promotionLine; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("QueryError", FALSE)) { +/** + * A QueryError represents possible errors for query parsing and execution. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QueryError extends ApiError { + /** + * @access public + * @var tnsQueryErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError"; + } + + public function __construct($reason = NULL, $message = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->message = $message; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RichMediaAd", FALSE)) { +/** + * Data associated with a rich media ad. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RichMediaAd extends Ad { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var Dimensions + */ + public $dimensions; + + /** + * @access public + * @var string + */ + public $snippet; + + /** + * @access public + * @var string + */ + public $impressionBeaconUrl; + + /** + * @access public + * @var integer + */ + public $adDuration; + + /** + * @access public + * @var integer + */ + public $certifiedVendorFormatId; + + /** + * @access public + * @var string + */ + public $sourceUrl; + + /** + * @access public + * @var tnsRichMediaAdRichMediaAdType + */ + public $richMediaAdType; + + /** + * @access public + * @var tnsRichMediaAdAdAttribute[] + */ + public $adAttributes; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaAd"; + } + + public function __construct($name = NULL, $dimensions = NULL, $snippet = NULL, $impressionBeaconUrl = NULL, $adDuration = NULL, $certifiedVendorFormatId = NULL, $sourceUrl = NULL, $richMediaAdType = NULL, $adAttributes = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->name = $name; + $this->dimensions = $dimensions; + $this->snippet = $snippet; + $this->impressionBeaconUrl = $impressionBeaconUrl; + $this->adDuration = $adDuration; + $this->certifiedVendorFormatId = $certifiedVendorFormatId; + $this->sourceUrl = $sourceUrl; + $this->richMediaAdType = $richMediaAdType; + $this->adAttributes = $adAttributes; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("StatsQueryError", FALSE)) { +/** + * Represents possible error codes when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StatsQueryError extends ApiError { + /** + * @access public + * @var tnsStatsQueryErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class String_StringMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TempAdUnionId", FALSE)) { +/** + * Represents the temporary id for an ad union id, which the user can specify. + * The temporary id can be used to group ads together during ad creation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TempAdUnionId extends AdUnionId { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TempAdUnionId"; + } + + public function __construct($id = NULL, $AdUnionIdType = NULL) { + parent::__construct(); + $this->id = $id; + $this->AdUnionIdType = $AdUnionIdType; + } +}} + +if (!class_exists("TemplateAd", FALSE)) { +/** + * Represents a Display Ad Builder template ad. A template ad is + * composed of a template (specified by its ID) and the data that populates + * the template's fields. For a list of available templates and their required + * fields, see Template Ads. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TemplateAd extends Ad { + /** + * @access public + * @var integer + */ + public $templateId; + + /** + * @access public + * @var AdUnionId + */ + public $adUnionId; + + /** + * @access public + * @var TemplateElement[] + */ + public $templateElements; + + /** + * @access public + * @var Dimensions + */ + public $dimensions; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var integer + */ + public $originAdId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateAd"; + } + + public function __construct($templateId = NULL, $adUnionId = NULL, $templateElements = NULL, $dimensions = NULL, $name = NULL, $duration = NULL, $originAdId = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->templateId = $templateId; + $this->adUnionId = $adUnionId; + $this->templateElements = $templateElements; + $this->dimensions = $dimensions; + $this->name = $name; + $this->duration = $duration; + $this->originAdId = $originAdId; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("TemplateElement", FALSE)) { +/** + * Represents an element in a template. Each template element is composed + * of a list of fields (actual value data). + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TemplateElement { + /** + * @access public + * @var string + */ + public $uniqueName; + + /** + * @access public + * @var TemplateElementField[] + */ + public $fields; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateElement"; + } + + public function __construct($uniqueName = NULL, $fields = NULL) { + $this->uniqueName = $uniqueName; + $this->fields = $fields; + } +}} + +if (!class_exists("TemplateElementField", FALSE)) { +/** + * Represents a field in a template element. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TemplateElementField { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsTemplateElementFieldType + */ + public $type; + + /** + * @access public + * @var string + */ + public $fieldText; + + /** + * @access public + * @var Media + */ + public $fieldMedia; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateElementField"; + } + + public function __construct($name = NULL, $type = NULL, $fieldText = NULL, $fieldMedia = NULL) { + $this->name = $name; + $this->type = $type; + $this->fieldText = $fieldText; + $this->fieldMedia = $fieldMedia; + } +}} + +if (!class_exists("TextAd", FALSE)) { +/** + * Represents a TextAd. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TextAd extends Ad { + /** + * @access public + * @var string + */ + public $headline; + + /** + * @access public + * @var string + */ + public $description1; + + /** + * @access public + * @var string + */ + public $description2; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextAd"; + } + + public function __construct($headline = NULL, $description1 = NULL, $description2 = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->headline = $headline; + $this->description1 = $description1; + $this->description2 = $description2; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("ThirdPartyRedirectAd", FALSE)) { +/** + * Data associated with rich media extension attributes. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ThirdPartyRedirectAd extends RichMediaAd { + /** + * @access public + * @var boolean + */ + public $isCookieTargeted; + + /** + * @access public + * @var boolean + */ + public $isUserInterestTargeted; + + /** + * @access public + * @var boolean + */ + public $isTagged; + + /** + * @access public + * @var tnsVideoType[] + */ + public $videoTypes; + + /** + * @access public + * @var tnsThirdPartyRedirectAdExpandingDirection[] + */ + public $expandingDirections; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartyRedirectAd"; + } + + public function __construct($isCookieTargeted = NULL, $isUserInterestTargeted = NULL, $isTagged = NULL, $videoTypes = NULL, $expandingDirections = NULL, $name = NULL, $dimensions = NULL, $snippet = NULL, $impressionBeaconUrl = NULL, $adDuration = NULL, $certifiedVendorFormatId = NULL, $sourceUrl = NULL, $richMediaAdType = NULL, $adAttributes = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->isCookieTargeted = $isCookieTargeted; + $this->isUserInterestTargeted = $isUserInterestTargeted; + $this->isTagged = $isTagged; + $this->videoTypes = $videoTypes; + $this->expandingDirections = $expandingDirections; + $this->name = $name; + $this->dimensions = $dimensions; + $this->snippet = $snippet; + $this->impressionBeaconUrl = $impressionBeaconUrl; + $this->adDuration = $adDuration; + $this->certifiedVendorFormatId = $certifiedVendorFormatId; + $this->sourceUrl = $sourceUrl; + $this->richMediaAdType = $richMediaAdType; + $this->adAttributes = $adAttributes; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("Video", FALSE)) { +/** + * Encapsulates a Video media identified by a MediaId. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Video extends Media { + /** + * @access public + * @var integer + */ + public $durationMillis; + + /** + * @access public + * @var string + */ + public $streamingUrl; + + /** + * @access public + * @var boolean + */ + public $readyToPlayOnTheWeb; + + /** + * @access public + * @var string + */ + public $industryStandardCommercialIdentifier; + + /** + * @access public + * @var string + */ + public $advertisingId; + + /** + * @access public + * @var string + */ + public $youTubeVideoIdString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Video"; + } + + public function __construct($durationMillis = NULL, $streamingUrl = NULL, $readyToPlayOnTheWeb = NULL, $industryStandardCommercialIdentifier = NULL, $advertisingId = NULL, $youTubeVideoIdString = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->durationMillis = $durationMillis; + $this->streamingUrl = $streamingUrl; + $this->readyToPlayOnTheWeb = $readyToPlayOnTheWeb; + $this->industryStandardCommercialIdentifier = $industryStandardCommercialIdentifier; + $this->advertisingId = $advertisingId; + $this->youTubeVideoIdString = $youTubeVideoIdString; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("DynamicSearchAd", FALSE)) { +/** + * Represents a dynamic search ad. This ad will have its headline and + * destination URL auto-generated at serving time according to domain name + * specific information provided by {@link DomainInfoExtension} linked at the + * campaign level. + * + *

    Auto-generated fields: headline and destination URL (may contain an optional + * tracking URL)

    + * + *

    Required fields: description1, description2, displayUrl

    + * + *

    The URL field must contain at least one of the following placeholder tags + * (URL parameters): {unescapedlpurl}, {escapedlpurl}, {lpurlpath}. If no URL is + * specified, {unescapedlpurl} will be used as default.

    + * + *

    {unescapedlpurl} can only be used at the beginning of the URL field. It + * will be replaced with the full landing page URL of the displayed ad. Extra query + * parameters can be added to the end, e.g. "{unescapedlpurl}?lang=en".

    + * + *

    {escapedlpurl} will be replaced with the URL-encoded version of the full + * landing page URL. This makes it suitable for use as a query parameter + * value (e.g. "http://www.3rdpartytracker.com/?lp={escapedlpurl}") but + * not at the beginning of the url field.

    + * + *

    {lpurlpath} will be replaced with the path and query part of the landing + * page URL and can be added to a different URL, e.g. + * "http://www.mygoodbusiness.com/tracking/{lpurlpath}".

    + * + *

    There are also special rules that come into play depending on whether the + * destination URL uses local click tracking or third-party click tracking.

    + * + *

    For more information, see the article Using dynamic tracking URLs. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DynamicSearchAd extends Ad { + /** + * @access public + * @var string + */ + public $description1; + + /** + * @access public + * @var string + */ + public $description2; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DynamicSearchAd"; + } + + public function __construct($description1 = NULL, $description2 = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->description1 = $description1; + $this->description2 = $description2; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("AdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupAdApprovalStatus", FALSE)) { +/** + * Represents the possible approval statuses. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAd.ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupAdStatus", FALSE)) { +/** + * The current status of an Ad. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAd.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupAdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeprecatedAdType", FALSE)) { +/** + * Video ad. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DeprecatedAdType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeprecatedAd.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentDataStatus", FALSE)) { +/** + * Status of the experimental change associated with an entity. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentDataStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentDataStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentDeltaStatus", FALSE)) { +/** + * Status of an entity denoting its type of experimental change in a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentDeltaStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentDeltaStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForwardCompatibilityErrorReason", FALSE)) { +/** + * The reason for the error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ForwardCompatibilityErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ImageErrorReason", FALSE)) { +/** + * The image is not valid. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ImageErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MarkupLanguageType", FALSE)) { +/** + * Markup languages to use for mobile ads. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MarkupLanguageType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MarkupLanguageType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaMediaType", FALSE)) { +/** + * Media types + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaMediaType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.MediaType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaMimeType", FALSE)) { +/** + * Mime types + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaMimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.MimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaSize", FALSE)) { +/** + * Sizes for retrieving the original media + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaSize { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.Size"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MediaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("PagingErrorReason", FALSE)) { +/** + * The reasons for errors when using pagination. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QueryErrorReason", FALSE)) { +/** + * The reason for the query error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaAdAdAttribute", FALSE)) { +/** + * A set of attributes that describe the rich media ad capabilities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RichMediaAdAdAttribute { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaAd.AdAttribute"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaAdRichMediaAdType", FALSE)) { +/** + * Different types of rich media ad that are available to customers. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RichMediaAdRichMediaAdType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaAd.RichMediaAdType"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsQueryErrorReason", FALSE)) { +/** + * The reasons for errors when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StatsQueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TemplateElementFieldType", FALSE)) { +/** + * Possible field types of template element fields. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TemplateElementFieldType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateElementField.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("ThirdPartyRedirectAdExpandingDirection", FALSE)) { +/** + * Allowed expanding directions for ads that are expandable. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ThirdPartyRedirectAdExpandingDirection { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartyRedirectAd.ExpandingDirection"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoType", FALSE)) { +/** + * VideoType enum values that are permitted for video filterable + * creative attribute IDs. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class VideoType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupAdServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of AdGroupAds. + * Deleted AdGroupAds are not returned by default. + * + * @param serviceSelector The selector specifying the {@link AdGroupAd}s to return. + * @return The page containing the AdGroupAds that meet the criteria specified by the selector. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("AdGroupAdServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdServiceGetResponse { + /** + * @access public + * @var AdGroupAdPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupAdServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Applies the list of mutate operations (ie. add, set, remove): + *

    Add - Creates a new {@linkplain AdGroupAd ad group ad}. The + * {@code adGroupId} must + * reference an existing ad group. The child {@code Ad} must be sufficiently + * specified by constructing a concrete ad type (such as {@code TextAd}) + * and setting its fields accordingly.

    + *

    Set - Updates an ad group ad. Except for {@code status}, + * ad group ad fields are not mutable. Status updates are + * straightforward - the status of the ad group ad is updated as + * specified. If any other field has changed, it will be ignored. If + * you want to change any of the fields other than status, you must + * make a new ad and then delete the old one.

    + *

    Remove - Removes the link between the specified AdGroup and + * Ad.

    + * @param operations The operations to apply. + * @return A list of AdGroupAds where each entry in the list is the result of + * applying the operation in the input list with the same index. For an + * add/set operation, the return AdGroupAd will be what is saved to the db. + * In the case of the remove operation, the return AdGroupAd will simply be + * an AdGroupAd containing an Ad with the id set to the Ad being deleted from + * the AdGroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdServiceMutate { + /** + * @access public + * @var AdGroupAdOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("AdGroupAdServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdServiceMutateResponse { + /** + * @access public + * @var AdGroupAdReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("query", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of AdGroupAds based on the query. + * + * @param query The SQL-like AWQL query string. + * @return A list of AdGroupAds. + * @throws ApiException if problems occur while parsing the query or fetching AdGroupAds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class query { + /** + * @access public + * @var string + */ + public $query; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($query = NULL) { + $this->query = $query; + } +}} + +if (!class_exists("queryResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class queryResponse { + /** + * @access public + * @var AdGroupAdPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdError", FALSE)) { +/** + * Base error class for Ad Service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdError extends ApiError { + /** + * @access public + * @var tnsAdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdGroupAdCountLimitExceeded", FALSE)) { +/** + * Indicates too many ads were added/enabled under the specified adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdCountLimitExceeded extends EntityCountLimitExceeded { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdGroupAdError", FALSE)) { +/** + * Error information for AdGroupAdService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdError extends ApiError { + /** + * @access public + * @var tnsAdGroupAdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdGroupAdOperation", FALSE)) { +/** + * AdGroupAd service operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdOperation extends Operation { + /** + * @access public + * @var AdGroupAd + */ + public $operand; + + /** + * @access public + * @var ExemptionRequest[] + */ + public $exemptionRequests; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdOperation"; + } + + public function __construct($operand = NULL, $exemptionRequests = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->exemptionRequests = $exemptionRequests; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupAdPage", FALSE)) { +/** + * Represents a page of {@link AdGroupAd}s resulting from the query done by + * {@link AdGroupAdService}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdPage extends Page { + /** + * @access public + * @var AdGroupAd[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupAdReturnValue", FALSE)) { +/** + * A container for return values from the AdGroupAdService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdReturnValue extends ListReturnValue { + /** + * @access public + * @var AdGroupAd[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Audio", FALSE)) { +/** + * Encapsulates an Audio media identified by a MediaId. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Audio extends Media { + /** + * @access public + * @var integer + */ + public $durationMillis; + + /** + * @access public + * @var string + */ + public $streamingUrl; + + /** + * @access public + * @var boolean + */ + public $readyToPlayOnTheWeb; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Audio"; + } + + public function __construct($durationMillis = NULL, $streamingUrl = NULL, $readyToPlayOnTheWeb = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->durationMillis = $durationMillis; + $this->streamingUrl = $streamingUrl; + $this->readyToPlayOnTheWeb = $readyToPlayOnTheWeb; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("Image", FALSE)) { +/** + * Encapsulates an Image media. For {@code SET},{@code REMOVE} operations in + * MediaService, use {@code mediaId}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Image extends Media { + /** + * @access public + * @var base64Binary + */ + public $data; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Image"; + } + + public function __construct($data = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->data = $data; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("AdGroupAdService", FALSE)) { +/** + * AdGroupAdService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class AdGroupAdService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "AdGroupAdServiceGetResponse", + "get" => "AdGroupAdServiceGet", + "mutate" => "AdGroupAdServiceMutate", + "mutateResponse" => "AdGroupAdServiceMutateResponse", + "mutateCallToAction" => "AdGroupAdServiceMutateCallToAction", + "search" => "AdGroupAdServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "Ad" => "Ad", + "AdError" => "AdError", + "ApiError" => "ApiError", + "AdGroupAd" => "AdGroupAd", + "AdGroupAdCountLimitExceeded" => "AdGroupAdCountLimitExceeded", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "AdGroupAdError" => "AdGroupAdError", + "AdGroupAdExperimentData" => "AdGroupAdExperimentData", + "AdGroupAdOperation" => "AdGroupAdOperation", + "Operation" => "Operation", + "AdGroupAdPage" => "AdGroupAdPage", + "Page" => "Page", + "AdGroupAdReturnValue" => "AdGroupAdReturnValue", + "ListReturnValue" => "ListReturnValue", + "AdUnionId" => "AdUnionId", + "AdxError" => "AdxError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Audio" => "Audio", + "Media" => "Media", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "ClientTermsError" => "ClientTermsError", + "DatabaseError" => "DatabaseError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DeprecatedAd" => "DeprecatedAd", + "Dimensions" => "Dimensions", + "DistinctError" => "DistinctError", + "EntityNotFound" => "EntityNotFound", + "ExemptionRequest" => "ExemptionRequest", + "ForwardCompatibilityError" => "ForwardCompatibilityError", + "IdError" => "IdError", + "Image" => "Image", + "ImageAd" => "ImageAd", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "MediaError" => "MediaError", + "Media_Size_DimensionsMapEntry" => "Media_Size_DimensionsMapEntry", + "Media_Size_StringMapEntry" => "Media_Size_StringMapEntry", + "MobileAd" => "MobileAd", + "MobileImageAd" => "MobileImageAd", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PagingError" => "PagingError", + "PolicyViolationError" => "PolicyViolationError", + "PolicyViolationError.Part" => "PolicyViolationErrorPart", + "PolicyViolationKey" => "PolicyViolationKey", + "Predicate" => "Predicate", + "ProductAd" => "ProductAd", + "QueryError" => "QueryError", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "RichMediaAd" => "RichMediaAd", + "Selector" => "Selector", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StatsQueryError" => "StatsQueryError", + "StringLengthError" => "StringLengthError", + "String_StringMapEntry" => "String_StringMapEntry", + "TempAdUnionId" => "TempAdUnionId", + "TemplateAd" => "TemplateAd", + "TemplateElement" => "TemplateElement", + "TemplateElementField" => "TemplateElementField", + "TextAd" => "TextAd", + "ThirdPartyRedirectAd" => "ThirdPartyRedirectAd", + "Video" => "Video", + "DynamicSearchAd" => "DynamicSearchAd", + "AdError.Reason" => "AdErrorReason", + "AdGroupAd.ApprovalStatus" => "AdGroupAdApprovalStatus", + "AdGroupAd.Status" => "AdGroupAdStatus", + "AdGroupAdError.Reason" => "AdGroupAdErrorReason", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DeprecatedAd.Type" => "DeprecatedAdType", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "ExperimentDataStatus" => "ExperimentDataStatus", + "ExperimentDeltaStatus" => "ExperimentDeltaStatus", + "ForwardCompatibilityError.Reason" => "ForwardCompatibilityErrorReason", + "IdError.Reason" => "IdErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "MarkupLanguageType" => "MarkupLanguageType", + "Media.MediaType" => "MediaMediaType", + "Media.MimeType" => "MediaMimeType", + "Media.Size" => "MediaSize", + "MediaError.Reason" => "MediaErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "PagingError.Reason" => "PagingErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QueryError.Reason" => "QueryErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RichMediaAd.AdAttribute" => "RichMediaAdAdAttribute", + "RichMediaAd.RichMediaAdType" => "RichMediaAdRichMediaAdType", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StatsQueryError.Reason" => "StatsQueryErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TemplateElementField.Type" => "TemplateElementFieldType", + "ThirdPartyRedirectAd.ExpandingDirection" => "ThirdPartyRedirectAdExpandingDirection", + "VideoType" => "VideoType", + "query" => "query", + "queryResponse" => "queryResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/AdGroupAdService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AdGroupAdService::$classmap; + parent::__construct($wsdl, $options, $user, 'AdGroupAdService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of AdGroupAds. + * Deleted AdGroupAds are not returned by default. + * + * @param serviceSelector The selector specifying the {@link AdGroupAd}s to return. + * @return The page containing the AdGroupAds that meet the criteria specified by the selector. + * @throws ApiException when there is at least one error with the request. + */ + public function get($serviceSelector) { + $arg = new AdGroupAdServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Applies the list of mutate operations (ie. add, set, remove): + *

    Add - Creates a new {@linkplain AdGroupAd ad group ad}. The + * {@code adGroupId} must + * reference an existing ad group. The child {@code Ad} must be sufficiently + * specified by constructing a concrete ad type (such as {@code TextAd}) + * and setting its fields accordingly.

    + *

    Set - Updates an ad group ad. Except for {@code status}, + * ad group ad fields are not mutable. Status updates are + * straightforward - the status of the ad group ad is updated as + * specified. If any other field has changed, it will be ignored. If + * you want to change any of the fields other than status, you must + * make a new ad and then delete the old one.

    + *

    Remove - Removes the link between the specified AdGroup and + * Ad.

    + * @param operations The operations to apply. + * @return A list of AdGroupAds where each entry in the list is the result of + * applying the operation in the input list with the same index. For an + * add/set operation, the return AdGroupAd will be what is saved to the db. + * In the case of the remove operation, the return AdGroupAd will simply be + * an AdGroupAd containing an Ad with the id set to the Ad being deleted from + * the AdGroup. + */ + public function mutate($operations) { + $arg = new AdGroupAdServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of AdGroupAds based on the query. + * + * @param query The SQL-like AWQL query string. + * @return A list of AdGroupAds. + * @throws ApiException if problems occur while parsing the query or fetching AdGroupAds. + */ + public function query($query) { + $arg = new query($query); + $result = $this->__soapCall("query", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/AdGroupBidModifierService.php b/src/Google/Api/Ads/AdWords/v201309/AdGroupBidModifierService.php new file mode 100755 index 000000000..a6321c0b3 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/AdGroupBidModifierService.php @@ -0,0 +1,3035 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("Criterion", FALSE)) { +/** + * Represents a criterion (such as a keyword, placement, or vertical). + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Criterion { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsCriterionType + */ + public $type; + + /** + * @access public + * @var string + */ + public $CriterionType; + + private $_parameterMap = array ( + "Criterion.Type" => "CriterionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + public function __construct($id = NULL, $type = NULL, $CriterionType = NULL) { + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("AdGroupBidModifier", FALSE)) { +/** + * Represents an adgroup level bid modifier override for campaign level criterion + * bid modifier values. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupBidModifier { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var Criterion + */ + public $criterion; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var tnsBidModifierSource + */ + public $bidModifierSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidModifier"; + } + + public function __construct($campaignId = NULL, $adGroupId = NULL, $criterion = NULL, $bidModifier = NULL, $bidModifierSource = NULL) { + $this->campaignId = $campaignId; + $this->adGroupId = $adGroupId; + $this->criterion = $criterion; + $this->bidModifier = $bidModifier; + $this->bidModifierSource = $bidModifierSource; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BidModifierSource", FALSE)) { +/** + * Enumerates possible sources for bid modifier. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BidModifierSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidModifierSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * The types of criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionErrorReason", FALSE)) { +/** + * Concrete type of criterion is required for ADD and SET operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupBidModifierServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Gets ad group level criterion bid modifiers. + * + * @param selector The selector specifying the {@link AdGroupBidModifier}s to return. + * @return A list of ad group bid modifiers. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupBidModifierServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("AdGroupBidModifierServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupBidModifierServiceGetResponse { + /** + * @access public + * @var AdGroupBidModifierPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupBidModifierServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, REMOVE, SET. + * + * + * + * Adds, removes or updates ad group bid modifier overrides. + * + * @param operations The operations to apply. + * @return The added ad group bid modifier overrides. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupBidModifierServiceMutate { + /** + * @access public + * @var AdGroupBidModifierOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("AdGroupBidModifierServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupBidModifierServiceMutateResponse { + /** + * @access public + * @var AdGroupBidModifierReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CriterionError", FALSE)) { +/** + * Error class used for reporting criteria related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionError extends ApiError { + /** + * @access public + * @var tnsCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Platform", FALSE)) { +/** + * Represents Platform criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Platform extends Criterion { + /** + * @access public + * @var string + */ + public $platformName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Platform"; + } + + public function __construct($platformName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->platformName = $platformName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AdGroupBidModifierOperation", FALSE)) { +/** + * Operation used to create or mutate a AdGroupBidModifier. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupBidModifierOperation extends Operation { + /** + * @access public + * @var AdGroupBidModifier + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidModifierOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupBidModifierPage", FALSE)) { +/** + * Contains a subset of adgroup bid modifiers resulting from a call to + * {@link AdGroupBidModifierService#get}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupBidModifierPage extends Page { + /** + * @access public + * @var AdGroupBidModifier[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidModifierPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupBidModifierReturnValue", FALSE)) { +/** + * A container for return values from the AdGroupBidModifierService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupBidModifierReturnValue extends ListReturnValue { + /** + * @access public + * @var AdGroupBidModifier[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidModifierReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("AdGroupBidModifierService", FALSE)) { +/** + * AdGroupBidModifierService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class AdGroupBidModifierService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "AdGroupBidModifierServiceGetResponse", + "get" => "AdGroupBidModifierServiceGet", + "mutate" => "AdGroupBidModifierServiceMutate", + "mutateResponse" => "AdGroupBidModifierServiceMutateResponse", + "mutateCallToAction" => "AdGroupBidModifierServiceMutateCallToAction", + "search" => "AdGroupBidModifierServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "CriterionError" => "CriterionError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Platform" => "Platform", + "Criterion" => "Criterion", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Selector" => "Selector", + "AdGroupBidModifier" => "AdGroupBidModifier", + "AdGroupBidModifierOperation" => "AdGroupBidModifierOperation", + "Operation" => "Operation", + "AdGroupBidModifierPage" => "AdGroupBidModifierPage", + "Page" => "Page", + "AdGroupBidModifierReturnValue" => "AdGroupBidModifierReturnValue", + "ListReturnValue" => "ListReturnValue", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BidModifierSource" => "BidModifierSource", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "Criterion.Type" => "CriterionType", + "CriterionError.Reason" => "CriterionErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/AdGroupBidModifierService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AdGroupBidModifierService::$classmap; + parent::__construct($wsdl, $options, $user, 'AdGroupBidModifierService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Gets ad group level criterion bid modifiers. + * + * @param selector The selector specifying the {@link AdGroupBidModifier}s to return. + * @return A list of ad group bid modifiers. + * @throws ApiException when there is at least one error with the request. + */ + public function get($selector) { + $arg = new AdGroupBidModifierServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, REMOVE, SET. + * + * + * + * Adds, removes or updates ad group bid modifier overrides. + * + * @param operations The operations to apply. + * @return The added ad group bid modifier overrides. + * @throws ApiException when there is at least one error with the request. + */ + public function mutate($operations) { + $arg = new AdGroupBidModifierServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/AdGroupCriterionService.php b/src/Google/Api/Ads/AdWords/v201309/AdGroupCriterionService.php new file mode 100755 index 000000000..9411d40fe --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/AdGroupCriterionService.php @@ -0,0 +1,7201 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("PolicyViolationErrorPart", FALSE)) { +/** + * Points to a substring within an ad field or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PolicyViolationErrorPart { + /** + * @access public + * @var integer + */ + public $index; + + /** + * @access public + * @var integer + */ + public $length; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError.Part"; + } + + public function __construct($index = NULL, $length = NULL) { + $this->index = $index; + $this->length = $length; + } +}} + +if (!class_exists("PolicyViolationKey", FALSE)) { +/** + * Key of the violation. The key is used for referring to a violation when + * filing an exemption request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PolicyViolationKey { + /** + * @access public + * @var string + */ + public $policyName; + + /** + * @access public + * @var string + */ + public $violatingText; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationKey"; + } + + public function __construct($policyName = NULL, $violatingText = NULL) { + $this->policyName = $policyName; + $this->violatingText = $violatingText; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("ProductConditionOperand", FALSE)) { +/** + * Attribute for the product condition. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProductConditionOperand { + /** + * @access public + * @var string + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductConditionOperand"; + } + + public function __construct($operand = NULL) { + $this->operand = $operand; + } +}} + +if (!class_exists("QualityInfo", FALSE)) { +/** + * Container for criterion quality information. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QualityInfo { + /** + * @access public + * @var boolean + */ + public $isKeywordAdRelevanceAcceptable; + + /** + * @access public + * @var boolean + */ + public $isLandingPageQualityAcceptable; + + /** + * @access public + * @var boolean + */ + public $isLandingPageLatencyAcceptable; + + /** + * @access public + * @var integer + */ + public $qualityScore; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QualityInfo"; + } + + public function __construct($isKeywordAdRelevanceAcceptable = NULL, $isLandingPageQualityAcceptable = NULL, $isLandingPageLatencyAcceptable = NULL, $qualityScore = NULL) { + $this->isKeywordAdRelevanceAcceptable = $isKeywordAdRelevanceAcceptable; + $this->isLandingPageQualityAcceptable = $isLandingPageQualityAcceptable; + $this->isLandingPageLatencyAcceptable = $isLandingPageLatencyAcceptable; + $this->qualityScore = $qualityScore; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("String_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class String_StringMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("WebpageCondition", FALSE)) { +/** + * Logical expression for targeting webpages of an advertiser's website. + * + *

    A condition is defined as {@code operand OP argument} + * where {@code operand} is one of the values enumerated in + * {@link WebpageConditionOperand}, and, based on this value, + * {@code OP} is either of {@code EQUALS} or {@code CONTAINS}.

    + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageCondition { + /** + * @access public + * @var tnsWebpageConditionOperand + */ + public $operand; + + /** + * @access public + * @var string + */ + public $argument; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageCondition"; + } + + public function __construct($operand = NULL, $argument = NULL) { + $this->operand = $operand; + $this->argument = $argument; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("CriterionParameter", FALSE)) { +/** + * Base type of criterion parameters. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionParameter { + /** + * @access public + * @var string + */ + public $CriterionParameterType; + + private $_parameterMap = array ( + "CriterionParameter.Type" => "CriterionParameterType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionParameter"; + } + + public function __construct($CriterionParameterType = NULL) { + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("ExemptionRequest", FALSE)) { +/** + * A request to be exempted from a {@link PolicyViolationError}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExemptionRequest { + /** + * @access public + * @var PolicyViolationKey + */ + public $key; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExemptionRequest"; + } + + public function __construct($key = NULL) { + $this->key = $key; + } +}} + +if (!class_exists("ProductCondition", FALSE)) { +/** + * Conditions to filter the products defined in product feed for targeting. + * The condition is defined as operand=argument. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProductCondition { + /** + * @access public + * @var string + */ + public $argument; + + /** + * @access public + * @var ProductConditionOperand + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductCondition"; + } + + public function __construct($argument = NULL, $operand = NULL) { + $this->argument = $argument; + $this->operand = $operand; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Bid", FALSE)) { +/** + * Represents a bid of a certain amount. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Bid { + /** + * @access public + * @var Money + */ + public $amount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Bid"; + } + + public function __construct($amount = NULL) { + $this->amount = $amount; + } +}} + +if (!class_exists("BidMultiplier", FALSE)) { +/** + * Represents a multiplier to modify a bid. The final value after + * modification is represented by the multiplied bid value. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BidMultiplier { + /** + * @access public + * @var double + */ + public $multiplier; + + /** + * @access public + * @var Bid + */ + public $multipliedBid; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidMultiplier"; + } + + public function __construct($multiplier = NULL, $multipliedBid = NULL) { + $this->multiplier = $multiplier; + $this->multipliedBid = $multipliedBid; + } +}} + +if (!class_exists("Bids", FALSE)) { +/** + * Base class for all bids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Bids { + /** + * @access public + * @var string + */ + public $BidsType; + + private $_parameterMap = array ( + "Bids.Type" => "BidsType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Bids"; + } + + public function __construct($BidsType = NULL) { + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AdGroupCriterionExperimentBidMultiplier", FALSE)) { +/** + * Bid multiplier used to modify the bid of a criterion while running + * an experiment. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionExperimentBidMultiplier { + /** + * @access public + * @var string + */ + public $AdGroupCriterionExperimentBidMultiplierType; + + private $_parameterMap = array ( + "AdGroupCriterionExperimentBidMultiplier.Type" => "AdGroupCriterionExperimentBidMultiplierType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionExperimentBidMultiplier"; + } + + public function __construct($AdGroupCriterionExperimentBidMultiplierType = NULL) { + $this->AdGroupCriterionExperimentBidMultiplierType = $AdGroupCriterionExperimentBidMultiplierType; + } +}} + +if (!class_exists("BiddableAdGroupCriterionExperimentData", FALSE)) { +/** + * Data associated with an advertiser experiment for this {@link BiddableAdGroupCriterion}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddableAdGroupCriterionExperimentData { + /** + * @access public + * @var integer + */ + public $experimentId; + + /** + * @access public + * @var tnsExperimentDeltaStatus + */ + public $experimentDeltaStatus; + + /** + * @access public + * @var tnsExperimentDataStatus + */ + public $experimentDataStatus; + + /** + * @access public + * @var AdGroupCriterionExperimentBidMultiplier + */ + public $experimentBidMultiplier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddableAdGroupCriterionExperimentData"; + } + + public function __construct($experimentId = NULL, $experimentDeltaStatus = NULL, $experimentDataStatus = NULL, $experimentBidMultiplier = NULL) { + $this->experimentId = $experimentId; + $this->experimentDeltaStatus = $experimentDeltaStatus; + $this->experimentDataStatus = $experimentDataStatus; + $this->experimentBidMultiplier = $experimentBidMultiplier; + } +}} + +if (!class_exists("BiddingScheme", FALSE)) { +/** + * Base class for all bidding schemes. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingScheme { + /** + * @access public + * @var string + */ + public $BiddingSchemeType; + + private $_parameterMap = array ( + "BiddingScheme.Type" => "BiddingSchemeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("BiddingStrategyConfiguration", FALSE)) { +/** + * Encapsulates the information about bids and bidding strategies. + * + * Bidding Strategy can be set on campaigns, ad groups or ad group criteria. + * A bidding strategy can be set using one of the following: + *
      + *
    • {@linkplain BiddingStrategyConfiguration#biddingScheme bidding scheme}
    • + *
    • {@linkplain BiddingStrategyConfiguration#biddingStrategyType bidding strategy type}
    • + *
    • {@linkplain BiddingStrategyConfiguration#biddingStrategyId bidding strategy ID} for + * flexible bid strategies.
    • + *
    + * If the bidding strategy type is used, then schemes are created using default values. + * + * Bids can be set only on ad groups and ad group criteria. They cannot be set on campaigns. + * Multiple bids can be set at the same time. Only the bids that apply to the campaign's + * {@linkplain Campaign#biddingStrategyConfiguration bidding strategy} will be used. + * + * For more information on flexible bidding, visit the + * Help Center. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyConfiguration { + /** + * @access public + * @var integer + */ + public $biddingStrategyId; + + /** + * @access public + * @var string + */ + public $biddingStrategyName; + + /** + * @access public + * @var tnsBiddingStrategyType + */ + public $biddingStrategyType; + + /** + * @access public + * @var tnsBiddingStrategySource + */ + public $biddingStrategySource; + + /** + * @access public + * @var BiddingScheme + */ + public $biddingScheme; + + /** + * @access public + * @var Bids[] + */ + public $bids; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyConfiguration"; + } + + public function __construct($biddingStrategyId = NULL, $biddingStrategyName = NULL, $biddingStrategyType = NULL, $biddingStrategySource = NULL, $biddingScheme = NULL, $bids = NULL) { + $this->biddingStrategyId = $biddingStrategyId; + $this->biddingStrategyName = $biddingStrategyName; + $this->biddingStrategyType = $biddingStrategyType; + $this->biddingStrategySource = $biddingStrategySource; + $this->biddingScheme = $biddingScheme; + $this->bids = $bids; + } +}} + +if (!class_exists("Criterion", FALSE)) { +/** + * Represents a criterion (such as a keyword, placement, or vertical). + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Criterion { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsCriterionType + */ + public $type; + + /** + * @access public + * @var string + */ + public $CriterionType; + + private $_parameterMap = array ( + "Criterion.Type" => "CriterionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + public function __construct($id = NULL, $type = NULL, $CriterionType = NULL) { + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("AdGroupCriterion", FALSE)) { +/** + * Represents a criterion in an ad group, used with AdGroupCriterionService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterion { + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var tnsCriterionUse + */ + public $criterionUse; + + /** + * @access public + * @var Criterion + */ + public $criterion; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * @access public + * @var string + */ + public $AdGroupCriterionType; + + private $_parameterMap = array ( + "AdGroupCriterion.Type" => "AdGroupCriterionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterion"; + } + + public function __construct($adGroupId = NULL, $criterionUse = NULL, $criterion = NULL, $forwardCompatibilityMap = NULL, $AdGroupCriterionType = NULL) { + $this->adGroupId = $adGroupId; + $this->criterionUse = $criterionUse; + $this->criterion = $criterion; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->AdGroupCriterionType = $AdGroupCriterionType; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupCriterionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupCriterionLimitExceededCriteriaLimitType", FALSE)) { +/** + * The entity type that exceeded the limit. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionLimitExceededCriteriaLimitType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionLimitExceeded.CriteriaLimitType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AgeRangeAgeRangeType", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AgeRangeAgeRangeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AgeRange.AgeRangeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApprovalStatus", FALSE)) { +/** + * Approval status for the criterion. + * Note: there are more states involved but we only expose two to users. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BidSource", FALSE)) { +/** + * Indicate where a criterion's bid came from: criterion or the adgroup it + * belongs to. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BidSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorReason", FALSE)) { +/** + * Reason for bidding error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorsReason", FALSE)) { +/** + * Bidding strategy cannot override ad group or campaign bidding strategy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingErrorsReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategySource", FALSE)) { +/** + * Indicates where bidding strategy came from: campaign, adgroup or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategySource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategySource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategyType", FALSE)) { +/** + * The bidding strategy type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemeBidType", FALSE)) { +/** + * Average cost-per-acquisition (targetCPA) bid type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerBiddingSchemeBidType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.BidType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemePricingMode", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerBiddingSchemePricingMode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.PricingMode"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * The types of criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionErrorReason", FALSE)) { +/** + * Concrete type of criterion is required for ADD and SET operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUse", FALSE)) { +/** + * The way a criterion is used - biddable or negative. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUse { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUse"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityAccessDeniedReason", FALSE)) { +/** + * User did not have read access. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentDataStatus", FALSE)) { +/** + * Status of the experimental change associated with an entity. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentDataStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentDataStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentDeltaStatus", FALSE)) { +/** + * Status of an entity denoting its type of experimental change in a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentDeltaStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentDeltaStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForwardCompatibilityErrorReason", FALSE)) { +/** + * The reason for the error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ForwardCompatibilityErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenderGenderType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GenderGenderType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Gender.GenderType"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("KeywordMatchType", FALSE)) { +/** + * Match type of a keyword. i.e. the way we match a keyword string with + * search queries. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class KeywordMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MultiplierSource", FALSE)) { +/** + * Denotes whether the bid multiplier is derived from the adgroup + * or the criterion + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MultiplierSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MultiplierSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("PageOnePromotedBiddingSchemeStrategyGoal", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PageOnePromotedBiddingSchemeStrategyGoal { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme.StrategyGoal"; + } + + public function __construct() { + } +}} + +if (!class_exists("PagingErrorReason", FALSE)) { +/** + * The reasons for errors when using pagination. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QueryErrorReason", FALSE)) { +/** + * The reason for the query error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsQueryErrorReason", FALSE)) { +/** + * The reasons for errors when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StatsQueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SystemServingStatus", FALSE)) { +/** + * Reported by system to reflect the criterion's serving status. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SystemServingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SystemServingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUserListMembershipStatus", FALSE)) { +/** + * Membership status of the user list. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList.MembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserStatus", FALSE)) { +/** + * Specified by user to pause or unpause a criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class UserStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("WebpageConditionOperand", FALSE)) { +/** + * Operand value of {@link WebpageCondition}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageConditionOperand { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageConditionOperand"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupCriterionServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Gets adgroup criteria. + * + * @param serviceSelector filters the adgroup criteria to be returned. + * @return a page (subset) view of the criteria selected + * @throws ApiException when there is at least one error with the request + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("AdGroupCriterionServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionServiceGetResponse { + /** + * @access public + * @var AdGroupCriterionPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupCriterionServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET, REMOVE. + * + * + * + * Adds, removes or updates adgroup criteria. + * + * @param operations operations to do + * during checks on keywords to be added. + * @return added and updated adgroup criteria (without optional parts) + * @throws ApiException when there is at least one error with the request + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionServiceMutate { + /** + * @access public + * @var AdGroupCriterionOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("AdGroupCriterionServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionServiceMutateResponse { + /** + * @access public + * @var AdGroupCriterionReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("query", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of AdGroupCriterion that match the query. + * + * @param query The SQL-like AWQL query string + * @returns A list of AdGroupCriterion + * @throws ApiException when the query is invalid or there are errors processing the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class query { + /** + * @access public + * @var string + */ + public $query; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($query = NULL) { + $this->query = $query; + } +}} + +if (!class_exists("queryResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class queryResponse { + /** + * @access public + * @var AdGroupCriterionPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupCriterionError", FALSE)) { +/** + * Base error class for Ad Group Criterion Service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionError extends ApiError { + /** + * @access public + * @var tnsAdGroupCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AgeRange", FALSE)) { +/** + * Represents an Age Range criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only excludable. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AgeRange extends Criterion { + /** + * @access public + * @var tnsAgeRangeAgeRangeType + */ + public $ageRangeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AgeRange"; + } + + public function __construct($ageRangeType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->ageRangeType = $ageRangeType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BiddingError", FALSE)) { +/** + * Represents bidding errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingError extends ApiError { + /** + * @access public + * @var tnsBiddingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BiddingErrors", FALSE)) { +/** + * Represents error codes for bidding strategy entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingErrors extends ApiError { + /** + * @access public + * @var tnsBiddingErrorsReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ConversionOptimizerBiddingScheme", FALSE)) { +/** + * Conversion optimizer bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + *

    {@code pricingMode} currently defaults to {@code CLICKS} and + * cannot be changed.

    + * + *

    Note that campaigns must meet specific + * eligibility requirements before they can use the ConversionOptimizer + * bidding strategy. + * + * For more information on conversion optimizer, visit the + * Conversion Optimizer site. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemePricingMode + */ + public $pricingMode; + + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemeBidType + */ + public $bidType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme"; + } + + public function __construct($pricingMode = NULL, $bidType = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->pricingMode = $pricingMode; + $this->bidType = $bidType; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("CriterionError", FALSE)) { +/** + * Error class used for reporting criteria related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionError extends ApiError { + /** + * @access public + * @var tnsCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EnhancedCpcBiddingScheme", FALSE)) { +/** + * Enhanced CPC is a bidding strategy that raises your bids for clicks that seem more likely to + * lead to a conversion and lowers them for clicks where they seem less likely. + * + * This bidding scheme does not support criteria level bidding strategy overrides. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EnhancedCpcBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnhancedCpcBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("EntityAccessDenied", FALSE)) { +/** + * Reports permission problems trying to access an entity. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityAccessDenied extends ApiError { + /** + * @access public + * @var tnsEntityAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ForwardCompatibilityError", FALSE)) { +/** + * A ForwardComptibilityError represents possible errors when using the forwardCompatibilityMap + * in some of the common services. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ForwardCompatibilityError extends ApiError { + /** + * @access public + * @var tnsForwardCompatibilityErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Gender", FALSE)) { +/** + * Represents a Gender criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only excludable. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Gender extends Criterion { + /** + * @access public + * @var tnsGenderGenderType + */ + public $genderType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Gender"; + } + + public function __construct($genderType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->genderType = $genderType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Keyword", FALSE)) { +/** + * Represents a keyword. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Keyword extends Criterion { + /** + * @access public + * @var string + */ + public $text; + + /** + * @access public + * @var tnsKeywordMatchType + */ + public $matchType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Keyword"; + } + + public function __construct($text = NULL, $matchType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->text = $text; + $this->matchType = $matchType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ManualCpcBiddingScheme", FALSE)) { +/** + * Manual click based bidding where user pays per click. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManualCpcBiddingScheme extends BiddingScheme { + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpcBiddingScheme"; + } + + public function __construct($enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ManualCpmBiddingScheme", FALSE)) { +/** + * Manual impression based bidding where user pays per thousand impressions. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManualCpmBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpmBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("MobileAppCategory", FALSE)) { +/** + * Represents the mobile app category to be targeted. + * View the complete list of + * available mobile app categories. + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileAppCategory extends Criterion { + /** + * @access public + * @var integer + */ + public $mobileAppCategoryId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAppCategory"; + } + + public function __construct($mobileAppCategoryId = NULL, $displayName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->mobileAppCategoryId = $mobileAppCategoryId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileApplication", FALSE)) { +/** + * Represents the mobile application to be targeted. + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileApplication extends Criterion { + /** + * @access public + * @var string + */ + public $appId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileApplication"; + } + + public function __construct($appId = NULL, $displayName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->appId = $appId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NegativeAdGroupCriterion", FALSE)) { +/** + * A negative criterion in an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NegativeAdGroupCriterion extends AdGroupCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NegativeAdGroupCriterion"; + } + + public function __construct($adGroupId = NULL, $criterionUse = NULL, $criterion = NULL, $forwardCompatibilityMap = NULL, $AdGroupCriterionType = NULL) { + parent::__construct(); + $this->adGroupId = $adGroupId; + $this->criterionUse = $criterionUse; + $this->criterion = $criterion; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->AdGroupCriterionType = $AdGroupCriterionType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PagingError", FALSE)) { +/** + * Error codes for pagination. + * See {@link com.google.ads.api.services.common.pagination.Paging}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingError extends ApiError { + /** + * @access public + * @var tnsPagingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PercentCpaBid", FALSE)) { +/** + * Percentage CPA based bidding where user pays a percent of conversions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PercentCpaBid extends Bids { + /** + * @access public + * @var integer + */ + public $bid; + + /** + * @access public + * @var tnsBidSource + */ + public $percentCpaBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBid"; + } + + public function __construct($bid = NULL, $percentCpaBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->percentCpaBidSource = $percentCpaBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("PercentCpaBiddingScheme", FALSE)) { +/** + * Percentage CPA based bidding scheme attributes where user pays a percent of conversions. + * This bidding strategy is available only to some advertisers. + *

    A campaign can only be created with PercentCPA bidding strategy. Existing + * campaigns with a different bidding strategy cannot be transitioned to PercentCPA. + *

    Similarly, once created as a PercentCPA, a campaign cannot be transitioned to + * any other bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PercentCpaBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("Placement", FALSE)) { +/** + * A placement used for modifying bids for sites when targeting the content + * network. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Placement extends Criterion { + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + public function __construct($url = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->url = $url; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("QueryError", FALSE)) { +/** + * A QueryError represents possible errors for query parsing and execution. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QueryError extends ApiError { + /** + * @access public + * @var tnsQueryErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError"; + } + + public function __construct($reason = NULL, $message = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->message = $message; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * Indicates that a field was rejected due to compatibility issues. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("StatsQueryError", FALSE)) { +/** + * Represents possible error codes when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StatsQueryError extends ApiError { + /** + * @access public + * @var tnsStatsQueryErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CriterionUserInterest", FALSE)) { +/** + * User Interest - represents a particular interest based vertical to be targeted. + * Targeting UserInterest is currently in a limited beta. If you'd like access + * please speak with your account representative. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserInterest extends Criterion { + /** + * @access public + * @var integer + */ + public $userInterestId; + + /** + * @access public + * @var string + */ + public $userInterestName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserInterest"; + } + + public function __construct($userInterestId = NULL, $userInterestName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->userInterestId = $userInterestId; + $this->userInterestName = $userInterestName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionUserList", FALSE)) { +/** + * UserList - represents a user list that is defined by the advertiser to be targeted. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserList extends Criterion { + /** + * @access public + * @var integer + */ + public $userListId; + + /** + * @access public + * @var string + */ + public $userListName; + + /** + * @access public + * @var tnsCriterionUserListMembershipStatus + */ + public $userListMembershipStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList"; + } + + public function __construct($userListId = NULL, $userListName = NULL, $userListMembershipStatus = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->userListId = $userListId; + $this->userListName = $userListName; + $this->userListMembershipStatus = $userListMembershipStatus; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Vertical", FALSE)) { +/** + * Use verticals to target or exclude placements in the Google Display Network + * based on the category into which the placement falls (for example, "Pets & + * Animals/Pets/Dogs"). + * View the complete list + * of available vertical categories. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Vertical extends Criterion { + /** + * @access public + * @var integer + */ + public $verticalId; + + /** + * @access public + * @var integer + */ + public $verticalParentId; + + /** + * @access public + * @var string[] + */ + public $path; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Vertical"; + } + + public function __construct($verticalId = NULL, $verticalParentId = NULL, $path = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->verticalId = $verticalId; + $this->verticalParentId = $verticalParentId; + $this->path = $path; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("WebpageParameter", FALSE)) { +/** + * Parameter of Webpage criterion, expressed as a list of conditions, or + * logical expressions, for targeting webpages of an advertiser's website. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageParameter extends CriterionParameter { + /** + * @access public + * @var string + */ + public $criterionName; + + /** + * @access public + * @var WebpageCondition[] + */ + public $conditions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageParameter"; + } + + public function __construct($criterionName = NULL, $conditions = NULL, $CriterionParameterType = NULL) { + parent::__construct(); + $this->criterionName = $criterionName; + $this->conditions = $conditions; + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("CpaBid", FALSE)) { +/** + * CPA Bids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CpaBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpaBid"; + } + + public function __construct($bid = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("CpcBid", FALSE)) { +/** + * Manual click based bids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CpcBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var Money + */ + public $contentBid; + + /** + * @access public + * @var tnsBidSource + */ + public $cpcBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpcBid"; + } + + public function __construct($bid = NULL, $contentBid = NULL, $cpcBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->contentBid = $contentBid; + $this->cpcBidSource = $cpcBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("CpmBid", FALSE)) { +/** + * Manual impression based bids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CpmBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var tnsBidSource + */ + public $cpmBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpmBid"; + } + + public function __construct($bid = NULL, $cpmBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->cpmBidSource = $cpmBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PageOnePromotedBiddingScheme", FALSE)) { +/** + * Page-One Promoted bidding scheme, which sets max cpc bids to + * target impressions on page one or page one promoted slots on google.com. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PageOnePromotedBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsPageOnePromotedBiddingSchemeStrategyGoal + */ + public $strategyGoal; + + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var boolean + */ + public $bidChangesForRaisesOnly; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenBudgetConstained; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenLowQualityScore; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme"; + } + + public function __construct($strategyGoal = NULL, $bidCeiling = NULL, $bidModifier = NULL, $bidChangesForRaisesOnly = NULL, $raiseBidWhenBudgetConstained = NULL, $raiseBidWhenLowQualityScore = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->strategyGoal = $strategyGoal; + $this->bidCeiling = $bidCeiling; + $this->bidModifier = $bidModifier; + $this->bidChangesForRaisesOnly = $bidChangesForRaisesOnly; + $this->raiseBidWhenBudgetConstained = $raiseBidWhenBudgetConstained; + $this->raiseBidWhenLowQualityScore = $raiseBidWhenLowQualityScore; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("PolicyViolationError", FALSE)) { +/** + * Represents violations of a single policy by some text in a field. + * + * Violations of a single policy by the same string in multiple places + * within a field is reported in one instance of this class and only one + * exemption needs to be filed. + * Violations of a single policy by two different strings is reported + * as two separate instances of this class. + * + * e.g. If 'ACME' violates 'capitalization' and occurs twice in a text ad it + * would be represented by one instance. If the ad also contains 'INC' which + * also violates 'capitalization' it would be represented in a separate + * instance. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PolicyViolationError extends ApiError { + /** + * @access public + * @var PolicyViolationKey + */ + public $key; + + /** + * @access public + * @var string + */ + public $externalPolicyName; + + /** + * @access public + * @var string + */ + public $externalPolicyUrl; + + /** + * @access public + * @var string + */ + public $externalPolicyDescription; + + /** + * @access public + * @var boolean + */ + public $isExemptable; + + /** + * @access public + * @var PolicyViolationErrorPart[] + */ + public $violatingParts; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TargetCpaBiddingScheme", FALSE)) { +/** + * Target Cpa bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + * This is similar to the ConversionOptimizerBiddingScheme but does not + * support user-entered AdGroup-level target CPA bids, but rather a strategy-wide + * average CPA target. + * + *

    Note that campaigns must meet specific + * eligibility requirements before they can use the TargetCpaBiddingScheme + * bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetCpaBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $targetCpa; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetCpaBiddingScheme"; + } + + public function __construct($targetCpa = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->targetCpa = $targetCpa; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetSpendBiddingScheme", FALSE)) { +/** + * Target Spend bidding scheme, in which Google automatically places + * bids for the user based on their daily/monthly budget or optional + * spend target. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetSpendBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var Money + */ + public $spendTarget; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetSpendBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $spendTarget = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->spendTarget = $spendTarget; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("Webpage", FALSE)) { +/** + * Criterion for targeting webpages of an advertiser's website. The + * website domain name is specified at the campaign level. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Webpage extends Criterion { + /** + * @access public + * @var WebpageParameter + */ + public $parameter; + + /** + * @access public + * @var double + */ + public $criteriaCoverage; + + /** + * @access public + * @var string[] + */ + public $criteriaSamples; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Webpage"; + } + + public function __construct($parameter = NULL, $criteriaCoverage = NULL, $criteriaSamples = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->parameter = $parameter; + $this->criteriaCoverage = $criteriaCoverage; + $this->criteriaSamples = $criteriaSamples; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BudgetOptimizerBiddingScheme", FALSE)) { +/** + * In budget optimizer, Google automatically places bids for the user based on + * their daily/monthly budget. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOptimizerBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ManualCPCAdGroupCriterionExperimentBidMultiplier", FALSE)) { +/** + * AdGroupCriterion level bid multiplier used in manual CPC bidding strategies. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManualCPCAdGroupCriterionExperimentBidMultiplier extends AdGroupCriterionExperimentBidMultiplier { + /** + * @access public + * @var BidMultiplier + */ + public $maxCpcMultiplier; + + /** + * @access public + * @var tnsMultiplierSource + */ + public $multiplierSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCPCAdGroupCriterionExperimentBidMultiplier"; + } + + public function __construct($maxCpcMultiplier = NULL, $multiplierSource = NULL, $AdGroupCriterionExperimentBidMultiplierType = NULL) { + parent::__construct(); + $this->maxCpcMultiplier = $maxCpcMultiplier; + $this->multiplierSource = $multiplierSource; + $this->AdGroupCriterionExperimentBidMultiplierType = $AdGroupCriterionExperimentBidMultiplierType; + } +}} + +if (!class_exists("Product", FALSE)) { +/** + * Product targeting criteria, represents a filter for products in the + * product feed that is defined by the advertiser. The criteria is used to + * determine the products in a Merchant Center account to be used with the + * ProductAds in the AdGroup. This criteria is available only to some advertisers. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Product extends Criterion { + /** + * @access public + * @var ProductCondition[] + */ + public $conditions; + + /** + * @access public + * @var string + */ + public $text; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + public function __construct($conditions = NULL, $text = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->conditions = $conditions; + $this->text = $text; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("BiddableAdGroupCriterion", FALSE)) { +/** + * A biddable (positive) criterion in an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddableAdGroupCriterion extends AdGroupCriterion { + /** + * @access public + * @var tnsUserStatus + */ + public $userStatus; + + /** + * @access public + * @var tnsSystemServingStatus + */ + public $systemServingStatus; + + /** + * @access public + * @var tnsApprovalStatus + */ + public $approvalStatus; + + /** + * @access public + * @var string[] + */ + public $disapprovalReasons; + + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * @access public + * @var BiddableAdGroupCriterionExperimentData + */ + public $experimentData; + + /** + * @access public + * @var Bid + */ + public $firstPageCpc; + + /** + * @access public + * @var Bid + */ + public $topOfPageCpc; + + /** + * @access public + * @var QualityInfo + */ + public $qualityInfo; + + /** + * @access public + * @var BiddingStrategyConfiguration + */ + public $biddingStrategyConfiguration; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddableAdGroupCriterion"; + } + + public function __construct($userStatus = NULL, $systemServingStatus = NULL, $approvalStatus = NULL, $disapprovalReasons = NULL, $destinationUrl = NULL, $experimentData = NULL, $firstPageCpc = NULL, $topOfPageCpc = NULL, $qualityInfo = NULL, $biddingStrategyConfiguration = NULL, $bidModifier = NULL, $adGroupId = NULL, $criterionUse = NULL, $criterion = NULL, $forwardCompatibilityMap = NULL, $AdGroupCriterionType = NULL) { + parent::__construct(); + $this->userStatus = $userStatus; + $this->systemServingStatus = $systemServingStatus; + $this->approvalStatus = $approvalStatus; + $this->disapprovalReasons = $disapprovalReasons; + $this->destinationUrl = $destinationUrl; + $this->experimentData = $experimentData; + $this->firstPageCpc = $firstPageCpc; + $this->topOfPageCpc = $topOfPageCpc; + $this->qualityInfo = $qualityInfo; + $this->biddingStrategyConfiguration = $biddingStrategyConfiguration; + $this->bidModifier = $bidModifier; + $this->adGroupId = $adGroupId; + $this->criterionUse = $criterionUse; + $this->criterion = $criterion; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->AdGroupCriterionType = $AdGroupCriterionType; + } +}} + +if (!class_exists("AdGroupCriterionOperation", FALSE)) { +/** + * Operation (add, remove and set) on adgroup criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionOperation extends Operation { + /** + * @access public + * @var AdGroupCriterion + */ + public $operand; + + /** + * @access public + * @var ExemptionRequest[] + */ + public $exemptionRequests; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionOperation"; + } + + public function __construct($operand = NULL, $exemptionRequests = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->exemptionRequests = $exemptionRequests; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupCriterionPage", FALSE)) { +/** + * Contains a subset of adgroup criteria resulting from a + * {@link AdGroupCriterionService#get} call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionPage extends Page { + /** + * @access public + * @var AdGroupCriterion[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupCriterionReturnValue", FALSE)) { +/** + * A container for return values from the AdGroupCriterionService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionReturnValue extends ListReturnValue { + /** + * @access public + * @var AdGroupCriterion[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("AdGroupCriterionLimitExceeded", FALSE)) { +/** + * Signals that too many criteria were added to some ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionLimitExceeded extends EntityCountLimitExceeded { + /** + * @access public + * @var tnsAdGroupCriterionLimitExceededCriteriaLimitType + */ + public $limitType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionLimitExceeded"; + } + + public function __construct($limitType = NULL, $reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->limitType = $limitType; + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CriterionPolicyError", FALSE)) { +/** + * Contains the policy violations for a single BiddableAdGroupCriterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionPolicyError extends PolicyViolationError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionPolicyError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("AdGroupCriterionService", FALSE)) { +/** + * AdGroupCriterionService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class AdGroupCriterionService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "AdGroupCriterionServiceGetResponse", + "get" => "AdGroupCriterionServiceGet", + "mutate" => "AdGroupCriterionServiceMutate", + "mutateResponse" => "AdGroupCriterionServiceMutateResponse", + "mutateCallToAction" => "AdGroupCriterionServiceMutateCallToAction", + "search" => "AdGroupCriterionServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdGroupCriterionError" => "AdGroupCriterionError", + "ApiError" => "ApiError", + "AdGroupCriterionLimitExceeded" => "AdGroupCriterionLimitExceeded", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "AdxError" => "AdxError", + "AgeRange" => "AgeRange", + "Criterion" => "Criterion", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "BiddingError" => "BiddingError", + "BiddingErrors" => "BiddingErrors", + "ClientTermsError" => "ClientTermsError", + "ConversionOptimizerBiddingScheme" => "ConversionOptimizerBiddingScheme", + "BiddingScheme" => "BiddingScheme", + "CriterionError" => "CriterionError", + "CriterionPolicyError" => "CriterionPolicyError", + "PolicyViolationError" => "PolicyViolationError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EnhancedCpcBiddingScheme" => "EnhancedCpcBiddingScheme", + "EntityAccessDenied" => "EntityAccessDenied", + "EntityNotFound" => "EntityNotFound", + "ForwardCompatibilityError" => "ForwardCompatibilityError", + "Gender" => "Gender", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "Keyword" => "Keyword", + "LongValue" => "LongValue", + "ManualCpcBiddingScheme" => "ManualCpcBiddingScheme", + "ManualCpmBiddingScheme" => "ManualCpmBiddingScheme", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "Money" => "Money", + "ComparableValue" => "ComparableValue", + "NegativeAdGroupCriterion" => "NegativeAdGroupCriterion", + "AdGroupCriterion" => "AdGroupCriterion", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PagingError" => "PagingError", + "PercentCpaBid" => "PercentCpaBid", + "Bids" => "Bids", + "PercentCpaBiddingScheme" => "PercentCpaBiddingScheme", + "Placement" => "Placement", + "PolicyViolationError.Part" => "PolicyViolationErrorPart", + "PolicyViolationKey" => "PolicyViolationKey", + "Predicate" => "Predicate", + "ProductConditionOperand" => "ProductConditionOperand", + "QualityInfo" => "QualityInfo", + "QueryError" => "QueryError", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StatsQueryError" => "StatsQueryError", + "StringLengthError" => "StringLengthError", + "String_StringMapEntry" => "String_StringMapEntry", + "CriterionUserInterest" => "CriterionUserInterest", + "CriterionUserList" => "CriterionUserList", + "Vertical" => "Vertical", + "WebpageCondition" => "WebpageCondition", + "WebpageParameter" => "WebpageParameter", + "CriterionParameter" => "CriterionParameter", + "CpaBid" => "CpaBid", + "CpcBid" => "CpcBid", + "CpmBid" => "CpmBid", + "DatabaseError" => "DatabaseError", + "ExemptionRequest" => "ExemptionRequest", + "PageOnePromotedBiddingScheme" => "PageOnePromotedBiddingScheme", + "ProductCondition" => "ProductCondition", + "TargetCpaBiddingScheme" => "TargetCpaBiddingScheme", + "TargetSpendBiddingScheme" => "TargetSpendBiddingScheme", + "Webpage" => "Webpage", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Bid" => "Bid", + "BidMultiplier" => "BidMultiplier", + "BudgetOptimizerBiddingScheme" => "BudgetOptimizerBiddingScheme", + "ManualCPCAdGroupCriterionExperimentBidMultiplier" => "ManualCPCAdGroupCriterionExperimentBidMultiplier", + "AdGroupCriterionExperimentBidMultiplier" => "AdGroupCriterionExperimentBidMultiplier", + "Product" => "Product", + "Selector" => "Selector", + "BiddableAdGroupCriterionExperimentData" => "BiddableAdGroupCriterionExperimentData", + "BiddingStrategyConfiguration" => "BiddingStrategyConfiguration", + "BiddableAdGroupCriterion" => "BiddableAdGroupCriterion", + "AdGroupCriterionOperation" => "AdGroupCriterionOperation", + "Operation" => "Operation", + "AdGroupCriterionPage" => "AdGroupCriterionPage", + "Page" => "Page", + "AdGroupCriterionReturnValue" => "AdGroupCriterionReturnValue", + "ListReturnValue" => "ListReturnValue", + "AdGroupCriterionError.Reason" => "AdGroupCriterionErrorReason", + "AdGroupCriterionLimitExceeded.CriteriaLimitType" => "AdGroupCriterionLimitExceededCriteriaLimitType", + "AdxError.Reason" => "AdxErrorReason", + "AgeRange.AgeRangeType" => "AgeRangeAgeRangeType", + "ApprovalStatus" => "ApprovalStatus", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "BidSource" => "BidSource", + "BiddingError.Reason" => "BiddingErrorReason", + "BiddingErrors.Reason" => "BiddingErrorsReason", + "BiddingStrategySource" => "BiddingStrategySource", + "BiddingStrategyType" => "BiddingStrategyType", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "ConversionOptimizerBiddingScheme.BidType" => "ConversionOptimizerBiddingSchemeBidType", + "ConversionOptimizerBiddingScheme.PricingMode" => "ConversionOptimizerBiddingSchemePricingMode", + "Criterion.Type" => "CriterionType", + "CriterionError.Reason" => "CriterionErrorReason", + "CriterionUse" => "CriterionUse", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityAccessDenied.Reason" => "EntityAccessDeniedReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "ExperimentDataStatus" => "ExperimentDataStatus", + "ExperimentDeltaStatus" => "ExperimentDeltaStatus", + "ForwardCompatibilityError.Reason" => "ForwardCompatibilityErrorReason", + "Gender.GenderType" => "GenderGenderType", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "KeywordMatchType" => "KeywordMatchType", + "MultiplierSource" => "MultiplierSource", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "PageOnePromotedBiddingScheme.StrategyGoal" => "PageOnePromotedBiddingSchemeStrategyGoal", + "PagingError.Reason" => "PagingErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QueryError.Reason" => "QueryErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StatsQueryError.Reason" => "StatsQueryErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "SystemServingStatus" => "SystemServingStatus", + "CriterionUserList.MembershipStatus" => "CriterionUserListMembershipStatus", + "UserStatus" => "UserStatus", + "WebpageConditionOperand" => "WebpageConditionOperand", + "query" => "query", + "queryResponse" => "queryResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/AdGroupCriterionService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AdGroupCriterionService::$classmap; + parent::__construct($wsdl, $options, $user, 'AdGroupCriterionService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Gets adgroup criteria. + * + * @param serviceSelector filters the adgroup criteria to be returned. + * @return a page (subset) view of the criteria selected + * @throws ApiException when there is at least one error with the request + */ + public function get($serviceSelector) { + $arg = new AdGroupCriterionServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET, REMOVE. + * + * + * + * Adds, removes or updates adgroup criteria. + * + * @param operations operations to do + * during checks on keywords to be added. + * @return added and updated adgroup criteria (without optional parts) + * @throws ApiException when there is at least one error with the request + */ + public function mutate($operations) { + $arg = new AdGroupCriterionServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of AdGroupCriterion that match the query. + * + * @param query The SQL-like AWQL query string + * @returns A list of AdGroupCriterion + * @throws ApiException when the query is invalid or there are errors processing the request. + */ + public function query($query) { + $arg = new query($query); + $result = $this->__soapCall("query", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/AdGroupFeedService.php b/src/Google/Api/Ads/AdWords/v201309/AdGroupFeedService.php new file mode 100755 index 000000000..b20acbde3 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/AdGroupFeedService.php @@ -0,0 +1,3622 @@ +feedId = $feedId; + $this->adGroupId = $adGroupId; + $this->matchingFunction = $matchingFunction; + $this->placeholderTypes = $placeholderTypes; + $this->status = $status; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CollectionSizeError", FALSE)) { +/** + * Errors associated with the size of the given collection being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CollectionSizeError extends ApiError { + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateRange", FALSE)) { +/** + * Represents a range of dates that has either an upper or a lower bound. + * The format for the date is YYYYMMDD. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("FeedFunction", FALSE)) { +/** + * Represents a function where its operator is applied to its argument operands + * resulting in a return value. It has the form + * (Operand... Operator Operand...). The type of the return value depends on + * the operator being applied and the type of the operands. + * + *

    Operands per function is limited to 20.

    + * + *

    Here is a code example:

    + * + *
    
    + * 
    + * // For example "feed_attribute == 30" can be represented as:
    + * FeedId feedId = (FeedId of Feed associated with feed_attribute)
    + * FeedAttributeId feedAttributeId = (FeedAttributeId of feed_attribute)
    + * Function function = new Function();
    + * function.setLhsOperand(
    + * Arrays.asList((Operand) new FeedAttributeOperand(feedId, feedAttributeId)));
    + * function.setOperator(Operator.IN);
    + * function.setRhsOperand(
    + * Arrays.asList((Operand) new ConstantOperand(30L)));
    + * 
    + * // Another example matching on multiple values:
    + * "feed_item_id IN (10, 20, 30)" can be represented as:
    + * 
    + * Function function = new Function();
    + * function.setLhsOperand(
    + * Arrays.asList((Operand) new RequestContextOperand(ContextType.FEED_ITEM_ID)));
    + * function.setOperator(Operator.IN);
    + * function.setRhsOperand(Arrays.asList(
    + * (Operand) new ConstantOperand(10L), new ConstantOperand(20L), new ConstantOperand(30L)));
    + * 
    + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedFunction { + /** + * @access public + * @var tnsFunctionOperator + */ + public $operator; + + /** + * @access public + * @var FunctionArgumentOperand[] + */ + public $lhsOperand; + + /** + * @access public + * @var FunctionArgumentOperand[] + */ + public $rhsOperand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Function"; + } + + public function __construct($operator = NULL, $lhsOperand = NULL, $rhsOperand = NULL) { + $this->operator = $operator; + $this->lhsOperand = $lhsOperand; + $this->rhsOperand = $rhsOperand; + } +}} + +if (!class_exists("FunctionError", FALSE)) { +/** + * Errors that indicate issues with the function. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FunctionError extends ApiError { + /** + * @access public + * @var tnsFunctionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FunctionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("FunctionArgumentOperand", FALSE)) { +/** + * An operand that can be used in a function expression. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FunctionArgumentOperand { + /** + * @access public + * @var string + */ + public $FunctionArgumentOperandType; + + private $_parameterMap = array ( + "FunctionArgumentOperand.Type" => "FunctionArgumentOperandType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FunctionArgumentOperand"; + } + + public function __construct($FunctionArgumentOperandType = NULL) { + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestContextOperand", FALSE)) { +/** + * An operand in a function referring to a value in the request context. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestContextOperand extends FunctionArgumentOperand { + /** + * @access public + * @var tnsRequestContextOperandContextType + */ + public $contextType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestContextOperand"; + } + + public function __construct($contextType = NULL, $FunctionArgumentOperandType = NULL) { + parent::__construct(); + $this->contextType = $contextType; + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdGroupFeedStatus", FALSE)) { +/** + * Status of the AdGroupFeed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupFeedStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupFeed.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupFeedErrorReason", FALSE)) { +/** + * Error reasons. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupFeedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupFeedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CollectionSizeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CollectionSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConstantOperandConstantType", FALSE)) { +/** + * The types of constant operands. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConstantOperandConstantType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConstantOperand.ConstantType"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FunctionOperator", FALSE)) { +/** + * Operators that can be used in functions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FunctionOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Function.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("FunctionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FunctionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FunctionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestContextOperandContextType", FALSE)) { +/** + * Campaign Id in the request context. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestContextOperandContextType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestContextOperand.ContextType"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupFeedServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of AdGroupFeeds that meet the selector criteria. + * + * @param selector Determines which AdGroupFeeds to return. If empty all + * adgroup feeds are returned. + * @return The list of AdgroupFeeds. + * @throws ApiException Indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupFeedServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("AdGroupFeedServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupFeedServiceGetResponse { + /** + * @access public + * @var AdGroupFeedPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupFeedServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Adds, updates or removes AdGroupFeeds. + * + * @param operations The operations to apply. + * @return The resulting Feeds. + * @throws ApiException Indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupFeedServiceMutate { + /** + * @access public + * @var AdGroupFeedOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("AdGroupFeedServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupFeedServiceMutateResponse { + /** + * @access public + * @var AdGroupFeedReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupFeedError", FALSE)) { +/** + * Represents an error for the AdGroupFeedService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupFeedError extends ApiError { + /** + * @access public + * @var tnsAdGroupFeedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupFeedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdGroupFeedOperation", FALSE)) { +/** + * Operation used to create or mutate an AdGroupFeed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupFeedOperation extends Operation { + /** + * @access public + * @var AdGroupFeed + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupFeedOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupFeedReturnValue", FALSE)) { +/** + * The result of a call to AdGroupFeedService#mutate. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupFeedReturnValue extends ListReturnValue { + /** + * @access public + * @var AdGroupFeed[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupFeedReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ConstantOperand", FALSE)) { +/** + * A constant operand in a matching function. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConstantOperand extends FunctionArgumentOperand { + /** + * @access public + * @var tnsConstantOperandConstantType + */ + public $type; + + /** + * @access public + * @var integer + */ + public $longValue; + + /** + * @access public + * @var boolean + */ + public $booleanValue; + + /** + * @access public + * @var double + */ + public $doubleValue; + + /** + * @access public + * @var string + */ + public $stringValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConstantOperand"; + } + + public function __construct($type = NULL, $longValue = NULL, $booleanValue = NULL, $doubleValue = NULL, $stringValue = NULL, $FunctionArgumentOperandType = NULL) { + parent::__construct(); + $this->type = $type; + $this->longValue = $longValue; + $this->booleanValue = $booleanValue; + $this->doubleValue = $doubleValue; + $this->stringValue = $stringValue; + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("FeedAttributeOperand", FALSE)) { +/** + * Represents a feed attribute reference to use in a function. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedAttributeOperand extends FunctionArgumentOperand { + /** + * @access public + * @var integer + */ + public $feedId; + + /** + * @access public + * @var integer + */ + public $feedAttributeId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedAttributeOperand"; + } + + public function __construct($feedId = NULL, $feedAttributeId = NULL, $FunctionArgumentOperandType = NULL) { + parent::__construct(); + $this->feedId = $feedId; + $this->feedAttributeId = $feedAttributeId; + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("FunctionOperand", FALSE)) { +/** + * A function operand in a matching function. + * Used to represent nested functions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FunctionOperand extends FunctionArgumentOperand { + /** + * @access public + * @var Function + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FunctionOperand"; + } + + public function __construct($value = NULL, $FunctionArgumentOperandType = NULL) { + parent::__construct(); + $this->value = $value; + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("NullStatsPage", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupFeedPage", FALSE)) { +/** + * The result of a call to AdGroupFeedService#get. Contains a list of + * associations between ad groups and feeds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupFeedPage extends NullStatsPage { + /** + * @access public + * @var AdGroupFeed[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupFeedPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupFeedService", FALSE)) { +/** + * AdGroupFeedService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class AdGroupFeedService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "AdGroupFeedServiceGetResponse", + "get" => "AdGroupFeedServiceGet", + "mutate" => "AdGroupFeedServiceMutate", + "mutateResponse" => "AdGroupFeedServiceMutateResponse", + "mutateCallToAction" => "AdGroupFeedServiceMutateCallToAction", + "search" => "AdGroupFeedServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdGroupFeed" => "AdGroupFeed", + "AdGroupFeedError" => "AdGroupFeedError", + "ApiError" => "ApiError", + "AdGroupFeedOperation" => "AdGroupFeedOperation", + "Operation" => "Operation", + "AdGroupFeedPage" => "AdGroupFeedPage", + "NullStatsPage" => "NullStatsPage", + "AdGroupFeedReturnValue" => "AdGroupFeedReturnValue", + "ListReturnValue" => "ListReturnValue", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "ClientTermsError" => "ClientTermsError", + "CollectionSizeError" => "CollectionSizeError", + "ConstantOperand" => "ConstantOperand", + "FunctionArgumentOperand" => "FunctionArgumentOperand", + "DatabaseError" => "DatabaseError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "FeedAttributeOperand" => "FeedAttributeOperand", + "FunctionError" => "FunctionError", + "FunctionOperand" => "FunctionOperand", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "Page" => "Page", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestContextOperand" => "RequestContextOperand", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "Selector" => "Selector", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "AdGroupFeed.Status" => "AdGroupFeedStatus", + "AdGroupFeedError.Reason" => "AdGroupFeedErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "ConstantOperand.ConstantType" => "ConstantOperandConstantType", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "Function.Operator" => "FunctionOperator", + "FunctionError.Reason" => "FunctionErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestContextOperand.ContextType" => "RequestContextOperandContextType", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/AdGroupFeedService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AdGroupFeedService::$classmap; + parent::__construct($wsdl, $options, $user, 'AdGroupFeedService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of AdGroupFeeds that meet the selector criteria. + * + * @param selector Determines which AdGroupFeeds to return. If empty all + * adgroup feeds are returned. + * @return The list of AdgroupFeeds. + * @throws ApiException Indicates a problem with the request. + */ + public function get($selector) { + $arg = new AdGroupFeedServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Adds, updates or removes AdGroupFeeds. + * + * @param operations The operations to apply. + * @return The resulting Feeds. + * @throws ApiException Indicates a problem with the request. + */ + public function mutate($operations) { + $arg = new AdGroupFeedServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/AdGroupService.php b/src/Google/Api/Ads/AdWords/v201309/AdGroupService.php new file mode 100755 index 000000000..03147e98f --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/AdGroupService.php @@ -0,0 +1,5814 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("String_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class String_StringMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TargetingSettingDetail", FALSE)) { +/** + * Specifies if criteria of this type group should be used to restrict + * targeting, or if ads can serve anywhere and criteria are only used in + * determining the bid. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetingSettingDetail { + /** + * @access public + * @var tnsCriterionTypeGroup + */ + public $criterionTypeGroup; + + /** + * @access public + * @var boolean + */ + public $targetAll; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingSettingDetail"; + } + + public function __construct($criterionTypeGroup = NULL, $targetAll = NULL) { + $this->criterionTypeGroup = $criterionTypeGroup; + $this->targetAll = $targetAll; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("Setting", FALSE)) { +/** + * Base type for AdWords campaign settings. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Setting { + /** + * @access public + * @var string + */ + public $SettingType; + + private $_parameterMap = array ( + "Setting.Type" => "SettingType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Setting"; + } + + public function __construct($SettingType = NULL) { + $this->SettingType = $SettingType; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Bid", FALSE)) { +/** + * Represents a bid of a certain amount. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Bid { + /** + * @access public + * @var Money + */ + public $amount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Bid"; + } + + public function __construct($amount = NULL) { + $this->amount = $amount; + } +}} + +if (!class_exists("BidMultiplier", FALSE)) { +/** + * Represents a multiplier to modify a bid. The final value after + * modification is represented by the multiplied bid value. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BidMultiplier { + /** + * @access public + * @var double + */ + public $multiplier; + + /** + * @access public + * @var Bid + */ + public $multipliedBid; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidMultiplier"; + } + + public function __construct($multiplier = NULL, $multipliedBid = NULL) { + $this->multiplier = $multiplier; + $this->multipliedBid = $multipliedBid; + } +}} + +if (!class_exists("Bids", FALSE)) { +/** + * Base class for all bids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Bids { + /** + * @access public + * @var string + */ + public $BidsType; + + private $_parameterMap = array ( + "Bids.Type" => "BidsType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Bids"; + } + + public function __construct($BidsType = NULL) { + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AdGroupExperimentBidMultipliers", FALSE)) { +/** + * Bid multiplier used to modify the bid of an adgroup while running + * an experiment. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupExperimentBidMultipliers { + /** + * @access public + * @var string + */ + public $AdGroupExperimentBidMultipliersType; + + private $_parameterMap = array ( + "AdGroupExperimentBidMultipliers.Type" => "AdGroupExperimentBidMultipliersType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupExperimentBidMultipliers"; + } + + public function __construct($AdGroupExperimentBidMultipliersType = NULL) { + $this->AdGroupExperimentBidMultipliersType = $AdGroupExperimentBidMultipliersType; + } +}} + +if (!class_exists("AdGroupExperimentData", FALSE)) { +/** + * Data associated with an advertiser experiment for this adgroup. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupExperimentData { + /** + * @access public + * @var integer + */ + public $experimentId; + + /** + * @access public + * @var tnsExperimentDeltaStatus + */ + public $experimentDeltaStatus; + + /** + * @access public + * @var tnsExperimentDataStatus + */ + public $experimentDataStatus; + + /** + * @access public + * @var AdGroupExperimentBidMultipliers + */ + public $experimentBidMultipliers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupExperimentData"; + } + + public function __construct($experimentId = NULL, $experimentDeltaStatus = NULL, $experimentDataStatus = NULL, $experimentBidMultipliers = NULL) { + $this->experimentId = $experimentId; + $this->experimentDeltaStatus = $experimentDeltaStatus; + $this->experimentDataStatus = $experimentDataStatus; + $this->experimentBidMultipliers = $experimentBidMultipliers; + } +}} + +if (!class_exists("BiddingScheme", FALSE)) { +/** + * Base class for all bidding schemes. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingScheme { + /** + * @access public + * @var string + */ + public $BiddingSchemeType; + + private $_parameterMap = array ( + "BiddingScheme.Type" => "BiddingSchemeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("BiddingStrategyConfiguration", FALSE)) { +/** + * Encapsulates the information about bids and bidding strategies. + * + * Bidding Strategy can be set on campaigns, ad groups or ad group criteria. + * A bidding strategy can be set using one of the following: + *
      + *
    • {@linkplain BiddingStrategyConfiguration#biddingScheme bidding scheme}
    • + *
    • {@linkplain BiddingStrategyConfiguration#biddingStrategyType bidding strategy type}
    • + *
    • {@linkplain BiddingStrategyConfiguration#biddingStrategyId bidding strategy ID} for + * flexible bid strategies.
    • + *
    + * If the bidding strategy type is used, then schemes are created using default values. + * + * Bids can be set only on ad groups and ad group criteria. They cannot be set on campaigns. + * Multiple bids can be set at the same time. Only the bids that apply to the campaign's + * {@linkplain Campaign#biddingStrategyConfiguration bidding strategy} will be used. + * + * For more information on flexible bidding, visit the + * Help Center. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyConfiguration { + /** + * @access public + * @var integer + */ + public $biddingStrategyId; + + /** + * @access public + * @var string + */ + public $biddingStrategyName; + + /** + * @access public + * @var tnsBiddingStrategyType + */ + public $biddingStrategyType; + + /** + * @access public + * @var tnsBiddingStrategySource + */ + public $biddingStrategySource; + + /** + * @access public + * @var BiddingScheme + */ + public $biddingScheme; + + /** + * @access public + * @var Bids[] + */ + public $bids; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyConfiguration"; + } + + public function __construct($biddingStrategyId = NULL, $biddingStrategyName = NULL, $biddingStrategyType = NULL, $biddingStrategySource = NULL, $biddingScheme = NULL, $bids = NULL) { + $this->biddingStrategyId = $biddingStrategyId; + $this->biddingStrategyName = $biddingStrategyName; + $this->biddingStrategyType = $biddingStrategyType; + $this->biddingStrategySource = $biddingStrategySource; + $this->biddingScheme = $biddingScheme; + $this->bids = $bids; + } +}} + +if (!class_exists("AdGroup", FALSE)) { +/** + * Represents an ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroup { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var string + */ + public $campaignName; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsAdGroupStatus + */ + public $status; + + /** + * @access public + * @var Setting[] + */ + public $settings; + + /** + * @access public + * @var AdGroupExperimentData + */ + public $experimentData; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * @access public + * @var BiddingStrategyConfiguration + */ + public $biddingStrategyConfiguration; + + /** + * @access public + * @var tnsCriterionTypeGroup + */ + public $contentBidCriterionTypeGroup; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroup"; + } + + public function __construct($id = NULL, $campaignId = NULL, $campaignName = NULL, $name = NULL, $status = NULL, $settings = NULL, $experimentData = NULL, $forwardCompatibilityMap = NULL, $biddingStrategyConfiguration = NULL, $contentBidCriterionTypeGroup = NULL) { + $this->id = $id; + $this->campaignId = $campaignId; + $this->campaignName = $campaignName; + $this->name = $name; + $this->status = $status; + $this->settings = $settings; + $this->experimentData = $experimentData; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->biddingStrategyConfiguration = $biddingStrategyConfiguration; + $this->contentBidCriterionTypeGroup = $contentBidCriterionTypeGroup; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupServiceErrorReason", FALSE)) { +/** + * The reasons for the adgroup service error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupServiceErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupServiceError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupStatus", FALSE)) { +/** + * Status of this ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroup.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BidSource", FALSE)) { +/** + * Indicate where a criterion's bid came from: criterion or the adgroup it + * belongs to. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BidSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorReason", FALSE)) { +/** + * Reason for bidding error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorsReason", FALSE)) { +/** + * Bidding strategy cannot override ad group or campaign bidding strategy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingErrorsReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategySource", FALSE)) { +/** + * Indicates where bidding strategy came from: campaign, adgroup or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategySource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategySource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategyType", FALSE)) { +/** + * The bidding strategy type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemeBidType", FALSE)) { +/** + * Average cost-per-acquisition (targetCPA) bid type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerBiddingSchemeBidType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.BidType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemePricingMode", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerBiddingSchemePricingMode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.PricingMode"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionTypeGroup", FALSE)) { +/** + * The list of groupings of criteria types. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionTypeGroup { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionTypeGroup"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentDataStatus", FALSE)) { +/** + * Status of the experimental change associated with an entity. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentDataStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentDataStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentDeltaStatus", FALSE)) { +/** + * Status of an entity denoting its type of experimental change in a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentDeltaStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentDeltaStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForwardCompatibilityErrorReason", FALSE)) { +/** + * The reason for the error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ForwardCompatibilityErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PageOnePromotedBiddingSchemeStrategyGoal", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PageOnePromotedBiddingSchemeStrategyGoal { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme.StrategyGoal"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QueryErrorReason", FALSE)) { +/** + * The reason for the query error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The reasons for the quota error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SettingErrorReason", FALSE)) { +/** + * The reasons for the setting error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SettingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SettingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsQueryErrorReason", FALSE)) { +/** + * The reasons for errors when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StatsQueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of all the ad groups specified by the selector + * from the target customer's account. + * + * @param serviceSelector The selector specifying the {@link AdGroup}s to return. + * @return List of adgroups identified by the selector. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("AdGroupServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupServiceGetResponse { + /** + * @access public + * @var AdGroupPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET. + * + * + * + * Adds, updates, or deletes ad groups. + *

    Note: {@link AdGroupOperation} does not support the + * {@code REMOVE} operator. To delete an ad group, set its + * {@link AdGroup#status status} to {@code DELETED}.

    + * + * @param operations List of unique operations. The same ad group cannot be + * specified in more than one operation. + * @return The updated adgroups. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupServiceMutate { + /** + * @access public + * @var AdGroupOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("AdGroupServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupServiceMutateResponse { + /** + * @access public + * @var AdGroupReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("query", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of ad groups that match the query. + * + * @param query The SQL-like AWQL query string + * @return A list of adgroups + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class query { + /** + * @access public + * @var string + */ + public $query; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($query = NULL) { + $this->query = $query; + } +}} + +if (!class_exists("queryResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class queryResponse { + /** + * @access public + * @var AdGroupPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupServiceError", FALSE)) { +/** + * Represents possible error codes in AdGroupService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupServiceError extends ApiError { + /** + * @access public + * @var tnsAdGroupServiceErrorReason + */ + public $reason; + + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupServiceError"; + } + + public function __construct($reason = NULL, $adGroupId = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->adGroupId = $adGroupId; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BiddingError", FALSE)) { +/** + * Represents bidding errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingError extends ApiError { + /** + * @access public + * @var tnsBiddingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BiddingErrors", FALSE)) { +/** + * Represents error codes for bidding strategy entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingErrors extends ApiError { + /** + * @access public + * @var tnsBiddingErrorsReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ConversionOptimizerBiddingScheme", FALSE)) { +/** + * Conversion optimizer bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + *

    {@code pricingMode} currently defaults to {@code CLICKS} and + * cannot be changed.

    + * + *

    Note that campaigns must meet specific + * eligibility requirements before they can use the ConversionOptimizer + * bidding strategy. + * + * For more information on conversion optimizer, visit the + * Conversion Optimizer site. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemePricingMode + */ + public $pricingMode; + + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemeBidType + */ + public $bidType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme"; + } + + public function __construct($pricingMode = NULL, $bidType = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->pricingMode = $pricingMode; + $this->bidType = $bidType; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EnhancedCpcBiddingScheme", FALSE)) { +/** + * Enhanced CPC is a bidding strategy that raises your bids for clicks that seem more likely to + * lead to a conversion and lowers them for clicks where they seem less likely. + * + * This bidding scheme does not support criteria level bidding strategy overrides. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EnhancedCpcBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnhancedCpcBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ExplorerAutoOptimizerSetting", FALSE)) { +/** + * Settings for Explorer (GDN Auto Optimizer). + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExplorerAutoOptimizerSetting extends Setting { + /** + * @access public + * @var boolean + */ + public $optIn; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExplorerAutoOptimizerSetting"; + } + + public function __construct($optIn = NULL, $SettingType = NULL) { + parent::__construct(); + $this->optIn = $optIn; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("ForwardCompatibilityError", FALSE)) { +/** + * A ForwardComptibilityError represents possible errors when using the forwardCompatibilityMap + * in some of the common services. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ForwardCompatibilityError extends ApiError { + /** + * @access public + * @var tnsForwardCompatibilityErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ManualCpcBiddingScheme", FALSE)) { +/** + * Manual click based bidding where user pays per click. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManualCpcBiddingScheme extends BiddingScheme { + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpcBiddingScheme"; + } + + public function __construct($enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ManualCpmBiddingScheme", FALSE)) { +/** + * Manual impression based bidding where user pays per thousand impressions. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManualCpmBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpmBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PercentCpaBid", FALSE)) { +/** + * Percentage CPA based bidding where user pays a percent of conversions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PercentCpaBid extends Bids { + /** + * @access public + * @var integer + */ + public $bid; + + /** + * @access public + * @var tnsBidSource + */ + public $percentCpaBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBid"; + } + + public function __construct($bid = NULL, $percentCpaBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->percentCpaBidSource = $percentCpaBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("PercentCpaBiddingScheme", FALSE)) { +/** + * Percentage CPA based bidding scheme attributes where user pays a percent of conversions. + * This bidding strategy is available only to some advertisers. + *

    A campaign can only be created with PercentCPA bidding strategy. Existing + * campaigns with a different bidding strategy cannot be transitioned to PercentCPA. + *

    Similarly, once created as a PercentCPA, a campaign cannot be transitioned to + * any other bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PercentCpaBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("QueryError", FALSE)) { +/** + * A QueryError represents possible errors for query parsing and execution. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QueryError extends ApiError { + /** + * @access public + * @var tnsQueryErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError"; + } + + public function __construct($reason = NULL, $message = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->message = $message; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * Errors that are thrown if a quota limit is exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + public function __construct($reason = NULL, $limit = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->limit = $limit; + $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * Indicates that a field was rejected due to compatibility issues. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SettingError", FALSE)) { +/** + * Indicates a problem with campaign settings. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SettingError extends ApiError { + /** + * @access public + * @var tnsSettingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SettingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("StatsQueryError", FALSE)) { +/** + * Represents possible error codes when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StatsQueryError extends ApiError { + /** + * @access public + * @var tnsStatsQueryErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TargetingSetting", FALSE)) { +/** + * Setting for targeting related features. + * This is applicable at Campaign and AdGroup level. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetingSetting extends Setting { + /** + * @access public + * @var TargetingSettingDetail[] + */ + public $details; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingSetting"; + } + + public function __construct($details = NULL, $SettingType = NULL) { + parent::__construct(); + $this->details = $details; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("CpaBid", FALSE)) { +/** + * CPA Bids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CpaBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpaBid"; + } + + public function __construct($bid = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("CpcBid", FALSE)) { +/** + * Manual click based bids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CpcBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var Money + */ + public $contentBid; + + /** + * @access public + * @var tnsBidSource + */ + public $cpcBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpcBid"; + } + + public function __construct($bid = NULL, $contentBid = NULL, $cpcBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->contentBid = $contentBid; + $this->cpcBidSource = $cpcBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("CpmBid", FALSE)) { +/** + * Manual impression based bids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CpmBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var tnsBidSource + */ + public $cpmBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpmBid"; + } + + public function __construct($bid = NULL, $cpmBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->cpmBidSource = $cpmBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PageOnePromotedBiddingScheme", FALSE)) { +/** + * Page-One Promoted bidding scheme, which sets max cpc bids to + * target impressions on page one or page one promoted slots on google.com. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PageOnePromotedBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsPageOnePromotedBiddingSchemeStrategyGoal + */ + public $strategyGoal; + + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var boolean + */ + public $bidChangesForRaisesOnly; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenBudgetConstained; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenLowQualityScore; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme"; + } + + public function __construct($strategyGoal = NULL, $bidCeiling = NULL, $bidModifier = NULL, $bidChangesForRaisesOnly = NULL, $raiseBidWhenBudgetConstained = NULL, $raiseBidWhenLowQualityScore = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->strategyGoal = $strategyGoal; + $this->bidCeiling = $bidCeiling; + $this->bidModifier = $bidModifier; + $this->bidChangesForRaisesOnly = $bidChangesForRaisesOnly; + $this->raiseBidWhenBudgetConstained = $raiseBidWhenBudgetConstained; + $this->raiseBidWhenLowQualityScore = $raiseBidWhenLowQualityScore; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetCpaBiddingScheme", FALSE)) { +/** + * Target Cpa bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + * This is similar to the ConversionOptimizerBiddingScheme but does not + * support user-entered AdGroup-level target CPA bids, but rather a strategy-wide + * average CPA target. + * + *

    Note that campaigns must meet specific + * eligibility requirements before they can use the TargetCpaBiddingScheme + * bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetCpaBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $targetCpa; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetCpaBiddingScheme"; + } + + public function __construct($targetCpa = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->targetCpa = $targetCpa; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetSpendBiddingScheme", FALSE)) { +/** + * Target Spend bidding scheme, in which Google automatically places + * bids for the user based on their daily/monthly budget or optional + * spend target. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetSpendBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var Money + */ + public $spendTarget; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetSpendBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $spendTarget = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->spendTarget = $spendTarget; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BudgetOptimizerBiddingScheme", FALSE)) { +/** + * In budget optimizer, Google automatically places bids for the user based on + * their daily/monthly budget. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOptimizerBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ManualCPCAdGroupExperimentBidMultipliers", FALSE)) { +/** + * Adgroup level bid multipliers used in manual CPC bidding strategies. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManualCPCAdGroupExperimentBidMultipliers extends AdGroupExperimentBidMultipliers { + /** + * @access public + * @var BidMultiplier + */ + public $maxCpcMultiplier; + + /** + * @access public + * @var BidMultiplier + */ + public $maxContentCpcMultiplier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCPCAdGroupExperimentBidMultipliers"; + } + + public function __construct($maxCpcMultiplier = NULL, $maxContentCpcMultiplier = NULL, $AdGroupExperimentBidMultipliersType = NULL) { + parent::__construct(); + $this->maxCpcMultiplier = $maxCpcMultiplier; + $this->maxContentCpcMultiplier = $maxContentCpcMultiplier; + $this->AdGroupExperimentBidMultipliersType = $AdGroupExperimentBidMultipliersType; + } +}} + +if (!class_exists("ManualCPMAdGroupExperimentBidMultipliers", FALSE)) { +/** + * Adgroup level bid multipliers used in manual CPM bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManualCPMAdGroupExperimentBidMultipliers extends AdGroupExperimentBidMultipliers { + /** + * @access public + * @var BidMultiplier + */ + public $maxCpmMultiplier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCPMAdGroupExperimentBidMultipliers"; + } + + public function __construct($maxCpmMultiplier = NULL, $AdGroupExperimentBidMultipliersType = NULL) { + parent::__construct(); + $this->maxCpmMultiplier = $maxCpmMultiplier; + $this->AdGroupExperimentBidMultipliersType = $AdGroupExperimentBidMultipliersType; + } +}} + +if (!class_exists("AdGroupOperation", FALSE)) { +/** + * AdGroup operations for adding/updating/removing adgroups. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupOperation extends Operation { + /** + * @access public + * @var AdGroup + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupPage", FALSE)) { +/** + * Contains a subset of adgroup resulting from the filtering and paging of the + * {@link com.google.ads.api.services.campaignmgmt.adgroup.AdGroupService#get} call + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupPage extends Page { + /** + * @access public + * @var AdGroup[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupReturnValue", FALSE)) { +/** + * A container for return values from the AdGroupService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupReturnValue extends ListReturnValue { + /** + * @access public + * @var AdGroup[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("AdGroupService", FALSE)) { +/** + * AdGroupService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class AdGroupService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "AdGroupServiceGetResponse", + "get" => "AdGroupServiceGet", + "mutate" => "AdGroupServiceMutate", + "mutateResponse" => "AdGroupServiceMutateResponse", + "mutateCallToAction" => "AdGroupServiceMutateCallToAction", + "search" => "AdGroupServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdGroupServiceError" => "AdGroupServiceError", + "ApiError" => "ApiError", + "AdxError" => "AdxError", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "BiddingError" => "BiddingError", + "BiddingErrors" => "BiddingErrors", + "ClientTermsError" => "ClientTermsError", + "ConversionOptimizerBiddingScheme" => "ConversionOptimizerBiddingScheme", + "BiddingScheme" => "BiddingScheme", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EnhancedCpcBiddingScheme" => "EnhancedCpcBiddingScheme", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "ExplorerAutoOptimizerSetting" => "ExplorerAutoOptimizerSetting", + "Setting" => "Setting", + "ForwardCompatibilityError" => "ForwardCompatibilityError", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "LongValue" => "LongValue", + "ManualCpcBiddingScheme" => "ManualCpcBiddingScheme", + "ManualCpmBiddingScheme" => "ManualCpmBiddingScheme", + "Money" => "Money", + "ComparableValue" => "ComparableValue", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PercentCpaBid" => "PercentCpaBid", + "Bids" => "Bids", + "PercentCpaBiddingScheme" => "PercentCpaBiddingScheme", + "Predicate" => "Predicate", + "QueryError" => "QueryError", + "QuotaCheckError" => "QuotaCheckError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SettingError" => "SettingError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StatsQueryError" => "StatsQueryError", + "StringLengthError" => "StringLengthError", + "String_StringMapEntry" => "String_StringMapEntry", + "TargetingSettingDetail" => "TargetingSettingDetail", + "TargetingSetting" => "TargetingSetting", + "CpaBid" => "CpaBid", + "CpcBid" => "CpcBid", + "CpmBid" => "CpmBid", + "DatabaseError" => "DatabaseError", + "PageOnePromotedBiddingScheme" => "PageOnePromotedBiddingScheme", + "TargetCpaBiddingScheme" => "TargetCpaBiddingScheme", + "TargetSpendBiddingScheme" => "TargetSpendBiddingScheme", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Bid" => "Bid", + "BidMultiplier" => "BidMultiplier", + "BudgetOptimizerBiddingScheme" => "BudgetOptimizerBiddingScheme", + "ManualCPCAdGroupExperimentBidMultipliers" => "ManualCPCAdGroupExperimentBidMultipliers", + "AdGroupExperimentBidMultipliers" => "AdGroupExperimentBidMultipliers", + "ManualCPMAdGroupExperimentBidMultipliers" => "ManualCPMAdGroupExperimentBidMultipliers", + "Selector" => "Selector", + "AdGroupExperimentData" => "AdGroupExperimentData", + "BiddingStrategyConfiguration" => "BiddingStrategyConfiguration", + "AdGroup" => "AdGroup", + "AdGroupOperation" => "AdGroupOperation", + "Operation" => "Operation", + "AdGroupPage" => "AdGroupPage", + "Page" => "Page", + "AdGroupReturnValue" => "AdGroupReturnValue", + "ListReturnValue" => "ListReturnValue", + "AdGroupServiceError.Reason" => "AdGroupServiceErrorReason", + "AdGroup.Status" => "AdGroupStatus", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "BidSource" => "BidSource", + "BiddingError.Reason" => "BiddingErrorReason", + "BiddingErrors.Reason" => "BiddingErrorsReason", + "BiddingStrategySource" => "BiddingStrategySource", + "BiddingStrategyType" => "BiddingStrategyType", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "ConversionOptimizerBiddingScheme.BidType" => "ConversionOptimizerBiddingSchemeBidType", + "ConversionOptimizerBiddingScheme.PricingMode" => "ConversionOptimizerBiddingSchemePricingMode", + "CriterionTypeGroup" => "CriterionTypeGroup", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "ExperimentDataStatus" => "ExperimentDataStatus", + "ExperimentDeltaStatus" => "ExperimentDeltaStatus", + "ForwardCompatibilityError.Reason" => "ForwardCompatibilityErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "PageOnePromotedBiddingScheme.StrategyGoal" => "PageOnePromotedBiddingSchemeStrategyGoal", + "Predicate.Operator" => "PredicateOperator", + "QueryError.Reason" => "QueryErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SettingError.Reason" => "SettingErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StatsQueryError.Reason" => "StatsQueryErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "query" => "query", + "queryResponse" => "queryResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/AdGroupService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AdGroupService::$classmap; + parent::__construct($wsdl, $options, $user, 'AdGroupService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of all the ad groups specified by the selector + * from the target customer's account. + * + * @param serviceSelector The selector specifying the {@link AdGroup}s to return. + * @return List of adgroups identified by the selector. + * @throws ApiException when there is at least one error with the request. + */ + public function get($serviceSelector) { + $arg = new AdGroupServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET. + * + * + * + * Adds, updates, or deletes ad groups. + *

    Note: {@link AdGroupOperation} does not support the + * {@code REMOVE} operator. To delete an ad group, set its + * {@link AdGroup#status status} to {@code DELETED}.

    + * + * @param operations List of unique operations. The same ad group cannot be + * specified in more than one operation. + * @return The updated adgroups. + */ + public function mutate($operations) { + $arg = new AdGroupServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of ad groups that match the query. + * + * @param query The SQL-like AWQL query string + * @return A list of adgroups + * @throws ApiException + */ + public function query($query) { + $arg = new query($query); + $result = $this->__soapCall("query", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/AdParamService.php b/src/Google/Api/Ads/AdWords/v201309/AdParamService.php new file mode 100755 index 000000000..97c2ee308 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/AdParamService.php @@ -0,0 +1,2978 @@ +AdParam objects + * (one for each value of {@link #paramIndex}) per ad group + * Keyword + * criterion. + *

    When setting or removing an AdParam, it is uniquely + * identified by the combination of these three fields:

    + *
      + *
    • adGroupId
    • + *
    • criterionId
    • + *
    • paramIndex
    • + *
    + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdParam { + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var integer + */ + public $criterionId; + + /** + * @access public + * @var string + */ + public $insertionText; + + /** + * @access public + * @var integer + */ + public $paramIndex; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdParam"; + } + + public function __construct($adGroupId = NULL, $criterionId = NULL, $insertionText = NULL, $paramIndex = NULL) { + $this->adGroupId = $adGroupId; + $this->criterionId = $criterionId; + $this->insertionText = $insertionText; + $this->paramIndex = $paramIndex; + } +}} + +if (!class_exists("AdParamPage", FALSE)) { +/** + * Represents a page of AdParams returned by the {@link AdParamService}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdParamPage { + /** + * @access public + * @var AdParam[] + */ + public $entries; + + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdParamPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL) { + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + } +}} + +if (!class_exists("DateRange", FALSE)) { +/** + * Represents a range of dates that has either an upper or a lower bound. + * The format for the date is YYYYMMDD. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("PolicyViolationErrorPart", FALSE)) { +/** + * Points to a substring within an ad field or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PolicyViolationErrorPart { + /** + * @access public + * @var integer + */ + public $index; + + /** + * @access public + * @var integer + */ + public $length; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError.Part"; + } + + public function __construct($index = NULL, $length = NULL) { + $this->index = $index; + $this->length = $length; + } +}} + +if (!class_exists("PolicyViolationKey", FALSE)) { +/** + * Key of the violation. The key is used for referring to a violation when + * filing an exemption request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PolicyViolationKey { + /** + * @access public + * @var string + */ + public $policyName; + + /** + * @access public + * @var string + */ + public $violatingText; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationKey"; + } + + public function __construct($policyName = NULL, $violatingText = NULL) { + $this->policyName = $policyName; + $this->violatingText = $violatingText; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AdParamErrorReason", FALSE)) { +/** + * The same ad param cannot be specified in multiple operations + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdParamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdParamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdParamServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the ad parameters that match the criteria specified in the + * selector. + * + * @param serviceSelector Specifies which ad parameters to return. + * @return A list of ad parameters. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdParamServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("AdParamServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdParamServiceGetResponse { + /** + * @access public + * @var AdParamPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdParamServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: SET, REMOVE. + * + * + * + * Sets and removes ad parameters. + *

    Note: {@code ADD} is not supported. Use {@code SET} + * for new ad parameters.

    + * + *
      + *
    • {@code SET}: Creates or updates an ad parameter, setting the new + * parameterized value for the given ad group / keyword pair. + *
    • {@code REMOVE}: Removes an ad parameter. The default-value + * specified in the ad text will be used.
    • + *
    + * + * @param operations The operations to perform. + * @return A list of ad parameters, where each entry in the list is the + * result of applying the operation in the input list with the same index. + * For a {@code SET} operation, the returned ad parameter will contain the + * updated values. For a {@code REMOVE} operation, the returned ad parameter + * will simply be the ad parameter that was removed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdParamServiceMutate { + /** + * @access public + * @var AdParamOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("AdParamServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdParamServiceMutateResponse { + /** + * @access public + * @var AdParam[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdParamError", FALSE)) { +/** + * Errors for AdParamService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdParamError extends ApiError { + /** + * @access public + * @var tnsAdParamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdParamError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdParamOperation", FALSE)) { +/** + * Represents an operation on an {@link AdParam}. The supported operators + * are {@code SET} and {@code REMOVE}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdParamOperation extends Operation { + /** + * @access public + * @var AdParam + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdParamOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PolicyViolationError", FALSE)) { +/** + * Represents violations of a single policy by some text in a field. + * + * Violations of a single policy by the same string in multiple places + * within a field is reported in one instance of this class and only one + * exemption needs to be filed. + * Violations of a single policy by two different strings is reported + * as two separate instances of this class. + * + * e.g. If 'ACME' violates 'capitalization' and occurs twice in a text ad it + * would be represented by one instance. If the ad also contains 'INC' which + * also violates 'capitalization' it would be represented in a separate + * instance. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PolicyViolationError extends ApiError { + /** + * @access public + * @var PolicyViolationKey + */ + public $key; + + /** + * @access public + * @var string + */ + public $externalPolicyName; + + /** + * @access public + * @var string + */ + public $externalPolicyUrl; + + /** + * @access public + * @var string + */ + public $externalPolicyDescription; + + /** + * @access public + * @var boolean + */ + public $isExemptable; + + /** + * @access public + * @var PolicyViolationErrorPart[] + */ + public $violatingParts; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AdParamPolicyError", FALSE)) { +/** + * Policy violation for an AdParam. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdParamPolicyError extends PolicyViolationError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdParamPolicyError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdParamService", FALSE)) { +/** + * AdParamService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class AdParamService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "AdParamServiceGetResponse", + "get" => "AdParamServiceGet", + "mutate" => "AdParamServiceMutate", + "mutateResponse" => "AdParamServiceMutateResponse", + "mutateCallToAction" => "AdParamServiceMutateCallToAction", + "search" => "AdParamServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdParam" => "AdParam", + "AdParamError" => "AdParamError", + "ApiError" => "ApiError", + "AdParamOperation" => "AdParamOperation", + "Operation" => "Operation", + "AdParamPage" => "AdParamPage", + "AdParamPolicyError" => "AdParamPolicyError", + "PolicyViolationError" => "PolicyViolationError", + "AdxError" => "AdxError", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PolicyViolationError.Part" => "PolicyViolationErrorPart", + "PolicyViolationKey" => "PolicyViolationKey", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Selector" => "Selector", + "AdParamError.Reason" => "AdParamErrorReason", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/AdParamService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AdParamService::$classmap; + parent::__construct($wsdl, $options, $user, 'AdParamService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the ad parameters that match the criteria specified in the + * selector. + * + * @param serviceSelector Specifies which ad parameters to return. + * @return A list of ad parameters. + */ + public function get($serviceSelector) { + $arg = new AdParamServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: SET, REMOVE. + * + * + * + * Sets and removes ad parameters. + *

    Note: {@code ADD} is not supported. Use {@code SET} + * for new ad parameters.

    + * + *
      + *
    • {@code SET}: Creates or updates an ad parameter, setting the new + * parameterized value for the given ad group / keyword pair. + *
    • {@code REMOVE}: Removes an ad parameter. The default-value + * specified in the ad text will be used.
    • + *
    + * + * @param operations The operations to perform. + * @return A list of ad parameters, where each entry in the list is the + * result of applying the operation in the input list with the same index. + * For a {@code SET} operation, the returned ad parameter will contain the + * updated values. For a {@code REMOVE} operation, the returned ad parameter + * will simply be the ad parameter that was removed. + */ + public function mutate($operations) { + $arg = new AdParamServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/AdwordsUserListService.php b/src/Google/Api/Ads/AdWords/v201309/AdwordsUserListService.php new file mode 100755 index 000000000..604a8001c --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/AdwordsUserListService.php @@ -0,0 +1,3616 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +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.

    + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CollectionSizeError", FALSE)) { +/** + * Errors associated with the size of the given collection being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CollectionSizeError extends ApiError { + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("UserListConversionType", FALSE)) { +/** + * Represents a conversion type used for building remarketing user lists. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class UserListConversionType { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsUserListConversionTypeCategory + */ + public $category; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListConversionType"; + } + + public function __construct($id = NULL, $name = NULL, $category = NULL) { + $this->id = $id; + $this->name = $name; + $this->category = $category; + } +}} + +if (!class_exists("LogicalUserListOperand", FALSE)) { +/** + * An interface for a logical user list operand. A logical user list is a + * combination of logical rules. Each rule is defined as a logical operator and + * a list of operands. Those operands can be of type UserList or UserInterest. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LogicalUserListOperand { + /** + * @access public + * @var UserList + */ + public $UserList; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LogicalUserListOperand"; + } + + public function __construct($UserList = NULL) { + $this->UserList = $UserList; + } +}} + +if (!class_exists("UserList", FALSE)) { +/** + * Represents a UserList object that is sent over the wire. + * This is a list of users an account may target. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class UserList { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var boolean + */ + public $isReadOnly; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsUserListMembershipStatus + */ + public $status; + + /** + * @access public + * @var string + */ + public $integrationCode; + + /** + * @access public + * @var tnsAccessReason + */ + public $accessReason; + + /** + * @access public + * @var tnsAccountUserListStatus + */ + public $accountUserListStatus; + + /** + * @access public + * @var integer + */ + public $membershipLifeSpan; + + /** + * @access public + * @var integer + */ + public $size; + + /** + * @access public + * @var tnsSizeRange + */ + public $sizeRange; + + /** + * @access public + * @var integer + */ + public $sizeForSearch; + + /** + * @access public + * @var tnsSizeRange + */ + public $sizeRangeForSearch; + + /** + * @access public + * @var string + */ + public $UserListType; + + private $_parameterMap = array ( + "UserList.Type" => "UserListType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserList"; + } + + public function __construct($id = NULL, $isReadOnly = NULL, $name = NULL, $description = NULL, $status = NULL, $integrationCode = NULL, $accessReason = NULL, $accountUserListStatus = NULL, $membershipLifeSpan = NULL, $size = NULL, $sizeRange = NULL, $sizeForSearch = NULL, $sizeRangeForSearch = NULL, $UserListType = NULL) { + $this->id = $id; + $this->isReadOnly = $isReadOnly; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->integrationCode = $integrationCode; + $this->accessReason = $accessReason; + $this->accountUserListStatus = $accountUserListStatus; + $this->membershipLifeSpan = $membershipLifeSpan; + $this->size = $size; + $this->sizeRange = $sizeRange; + $this->sizeForSearch = $sizeForSearch; + $this->sizeRangeForSearch = $sizeRangeForSearch; + $this->UserListType = $UserListType; + } +}} + +if (!class_exists("UserListError", FALSE)) { +/** + * Represents possible error codes in UserListService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class UserListError extends ApiError { + /** + * @access public + * @var tnsUserListErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("UserListLogicalRule", FALSE)) { +/** + * A user list logical rule. A rule has a logical operator (and/or/not) and a + * list of operands that can be user lists or user interests. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class UserListLogicalRule { + /** + * @access public + * @var tnsUserListLogicalRuleOperator + */ + public $operator; + + /** + * @access public + * @var LogicalUserListOperand[] + */ + public $ruleOperands; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListLogicalRule"; + } + + public function __construct($operator = NULL, $ruleOperands = NULL) { + $this->operator = $operator; + $this->ruleOperands = $ruleOperands; + } +}} + +if (!class_exists("UserListOperation", FALSE)) { +/** + * UserList operations for adding/updating UserList entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class UserListOperation extends Operation { + /** + * @access public + * @var UserList + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("UserListPage", FALSE)) { +/** + * Contains a list of user lists resulting from the filtering and paging of the + * {@link UserListService#get} call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class UserListPage extends Page { + /** + * @access public + * @var UserList[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("UserListReturnValue", FALSE)) { +/** + * A container for return values from the UserListService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class UserListReturnValue extends ListReturnValue { + /** + * @access public + * @var UserList[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("AccessReason", FALSE)) { +/** + * AccessReason in the AccountUserListStatus table. This indicates the way the userlist is + * related to a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AccessReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AccessReason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AccountUserListStatus", FALSE)) { +/** + * Status in the AccountUserListStatus table. This indicates if the user list share or + * the licensing of the userlist is still active. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AccountUserListStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AccountUserListStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CollectionSizeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CollectionSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserListConversionTypeCategory", FALSE)) { +/** + * User can create only BOOMERANG_EVENT conversion types. For all other types + * UserListService service will return OTHER. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class UserListConversionTypeCategory { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListConversionType.Category"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeRange", FALSE)) { +/** + * Size range in terms of number of users of a UserList/UserInterest. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeRange { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeRange"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserListErrorReason", FALSE)) { +/** + * Creating and updating external remarketing user lists is not supported. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class UserListErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserListLogicalRuleOperator", FALSE)) { +/** + * And - all of the operands. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class UserListLogicalRuleOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListLogicalRule.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserListMembershipStatus", FALSE)) { +/** + * Membership status of the user list. This status indicates whether a user list + * can accumulate more users and may be targeted to. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class UserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListMembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdwordsUserListServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of user lists that meet the selector criteria. + * + * @param serviceSelector the selector specifying the {@link UserList}s to return. + * @return a list of UserList entities which meet the selector criteria. + * @throws ApiException if problems occurred while fetching UserList information. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdwordsUserListServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("AdwordsUserListServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdwordsUserListServiceGetResponse { + /** + * @access public + * @var UserListPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdwordsUserListServiceMutate", FALSE)) { +/** + * The minimum size of this collection is 1. The maximum size of this collection is 10000. + * This field must not contain {@code null} elements. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET. + * + * + * + * Applies a list of mutate operations (i.e. add, set): + * + * Add - creates a set of user lists + * Set - updates a set of user lists + * + * @param operations the operations to apply + * @return a list of UserList objects + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdwordsUserListServiceMutate { + /** + * @access public + * @var UserListOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("AdwordsUserListServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdwordsUserListServiceMutateResponse { + /** + * @access public + * @var UserListReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ExternalRemarketingUserList", FALSE)) { +/** + * User lists created in the DoubleClick platform that are mapped + * from DoubleClick to AdWords. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExternalRemarketingUserList extends UserList { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExternalRemarketingUserList"; + } + + public function __construct($id = NULL, $isReadOnly = NULL, $name = NULL, $description = NULL, $status = NULL, $integrationCode = NULL, $accessReason = NULL, $accountUserListStatus = NULL, $membershipLifeSpan = NULL, $size = NULL, $sizeRange = NULL, $sizeForSearch = NULL, $sizeRangeForSearch = NULL, $UserListType = NULL) { + parent::__construct(); + $this->id = $id; + $this->isReadOnly = $isReadOnly; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->integrationCode = $integrationCode; + $this->accessReason = $accessReason; + $this->accountUserListStatus = $accountUserListStatus; + $this->membershipLifeSpan = $membershipLifeSpan; + $this->size = $size; + $this->sizeRange = $sizeRange; + $this->sizeForSearch = $sizeForSearch; + $this->sizeRangeForSearch = $sizeRangeForSearch; + $this->UserListType = $UserListType; + } +}} + +if (!class_exists("LogicalUserList", FALSE)) { +/** + * Represents a user list that is a custom combination of user lists and user + * interests. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LogicalUserList extends UserList { + /** + * @access public + * @var UserListLogicalRule[] + */ + public $rules; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LogicalUserList"; + } + + public function __construct($rules = NULL, $id = NULL, $isReadOnly = NULL, $name = NULL, $description = NULL, $status = NULL, $integrationCode = NULL, $accessReason = NULL, $accountUserListStatus = NULL, $membershipLifeSpan = NULL, $size = NULL, $sizeRange = NULL, $sizeForSearch = NULL, $sizeRangeForSearch = NULL, $UserListType = NULL) { + parent::__construct(); + $this->rules = $rules; + $this->id = $id; + $this->isReadOnly = $isReadOnly; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->integrationCode = $integrationCode; + $this->accessReason = $accessReason; + $this->accountUserListStatus = $accountUserListStatus; + $this->membershipLifeSpan = $membershipLifeSpan; + $this->size = $size; + $this->sizeRange = $sizeRange; + $this->sizeForSearch = $sizeForSearch; + $this->sizeRangeForSearch = $sizeRangeForSearch; + $this->UserListType = $UserListType; + } +}} + +if (!class_exists("BasicUserList", FALSE)) { +/** + * User list targeting as a collection of conversion types. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BasicUserList extends UserList { + /** + * @access public + * @var UserListConversionType[] + */ + public $conversionTypes; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BasicUserList"; + } + + public function __construct($conversionTypes = NULL, $id = NULL, $isReadOnly = NULL, $name = NULL, $description = NULL, $status = NULL, $integrationCode = NULL, $accessReason = NULL, $accountUserListStatus = NULL, $membershipLifeSpan = NULL, $size = NULL, $sizeRange = NULL, $sizeForSearch = NULL, $sizeRangeForSearch = NULL, $UserListType = NULL) { + parent::__construct(); + $this->conversionTypes = $conversionTypes; + $this->id = $id; + $this->isReadOnly = $isReadOnly; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->integrationCode = $integrationCode; + $this->accessReason = $accessReason; + $this->accountUserListStatus = $accountUserListStatus; + $this->membershipLifeSpan = $membershipLifeSpan; + $this->size = $size; + $this->sizeRange = $sizeRange; + $this->sizeForSearch = $sizeForSearch; + $this->sizeRangeForSearch = $sizeRangeForSearch; + $this->UserListType = $UserListType; + } +}} + +if (!class_exists("AdwordsUserListService", FALSE)) { +/** + * AdwordsUserListService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class AdwordsUserListService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "AdwordsUserListServiceGetResponse", + "get" => "AdwordsUserListServiceGet", + "mutate" => "AdwordsUserListServiceMutate", + "mutateResponse" => "AdwordsUserListServiceMutateResponse", + "mutateCallToAction" => "AdwordsUserListServiceMutateCallToAction", + "search" => "AdwordsUserListServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityNotFound" => "EntityNotFound", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Selector" => "Selector", + "ListReturnValue" => "ListReturnValue", + "Operation" => "Operation", + "Page" => "Page", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + "ExternalRemarketingUserList" => "ExternalRemarketingUserList", + "UserList" => "UserList", + "CollectionSizeError" => "CollectionSizeError", + "UserListConversionType" => "UserListConversionType", + "LogicalUserList" => "LogicalUserList", + "LogicalUserListOperand" => "LogicalUserListOperand", + "BasicUserList" => "BasicUserList", + "UserListError" => "UserListError", + "UserListLogicalRule" => "UserListLogicalRule", + "UserListOperation" => "UserListOperation", + "UserListPage" => "UserListPage", + "UserListReturnValue" => "UserListReturnValue", + "AccessReason" => "AccessReason", + "AccountUserListStatus" => "AccountUserListStatus", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "UserListConversionType.Category" => "UserListConversionTypeCategory", + "SizeRange" => "SizeRange", + "UserListError.Reason" => "UserListErrorReason", + "UserListLogicalRule.Operator" => "UserListLogicalRuleOperator", + "UserListMembershipStatus" => "UserListMembershipStatus", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/rm/v201309/AdwordsUserListService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AdwordsUserListService::$classmap; + parent::__construct($wsdl, $options, $user, 'AdwordsUserListService', 'https://adwords.google.com/api/adwords/rm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of user lists that meet the selector criteria. + * + * @param serviceSelector the selector specifying the {@link UserList}s to return. + * @return a list of UserList entities which meet the selector criteria. + * @throws ApiException if problems occurred while fetching UserList information. + */ + public function get($serviceSelector) { + $arg = new AdwordsUserListServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * The minimum size of this collection is 1. The maximum size of this collection is 10000. + * This field must not contain {@code null} elements. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET. + * + * + * + * Applies a list of mutate operations (i.e. add, set): + * + * Add - creates a set of user lists + * Set - updates a set of user lists + * + * @param operations the operations to apply + * @return a list of UserList objects + */ + public function mutate($operations) { + $arg = new AdwordsUserListServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/AlertService.php b/src/Google/Api/Ads/AdWords/v201309/AlertService.php new file mode 100755 index 000000000..1395960ec --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/AlertService.php @@ -0,0 +1,2460 @@ +startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +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.

    + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AlertError", FALSE)) { +/** + * Errors that can occur when using {@link AlertService}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AlertError extends ApiError { + /** + * @access public + * @var tnsAlertErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AlertError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AlertQuery", FALSE)) { +/** + * Querying criteria for getting alerts. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AlertQuery { + /** + * @access public + * @var tnsClientSpec + */ + public $clientSpec; + + /** + * @access public + * @var tnsFilterSpec + */ + public $filterSpec; + + /** + * @access public + * @var tnsAlertType[] + */ + public $types; + + /** + * @access public + * @var tnsAlertSeverity[] + */ + public $severities; + + /** + * @access public + * @var tnsTriggerTimeSpec + */ + public $triggerTimeSpec; + + /** + * @access public + * @var string + */ + public $triggerTime; + + /** + * @access public + * @var integer[] + */ + public $clientCustomerIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AlertQuery"; + } + + public function __construct($clientSpec = NULL, $filterSpec = NULL, $types = NULL, $severities = NULL, $triggerTimeSpec = NULL, $triggerTime = NULL, $clientCustomerIds = NULL) { + $this->clientSpec = $clientSpec; + $this->filterSpec = $filterSpec; + $this->types = $types; + $this->severities = $severities; + $this->triggerTimeSpec = $triggerTimeSpec; + $this->triggerTime = $triggerTime; + $this->clientCustomerIds = $clientCustomerIds; + } +}} + +if (!class_exists("Detail", FALSE)) { +/** + * Detail refers to a single event or condition that triggered its owning {@link Alert}. + * Multiple details can cause the same {@code Alert} to occur. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Detail { + /** + * @access public + * @var string + */ + public $triggerTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Detail"; + } + + public function __construct($triggerTime = NULL) { + $this->triggerTime = $triggerTime; + } +}} + +if (!class_exists("Alert", FALSE)) { +/** + * Alert for a single client. Triggering events are grouped by {@link AlertType} into the same alert + * with multiple {@link Details}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Alert { + /** + * @access public + * @var tnsAlertSeverity + */ + public $alertSeverity; + + /** + * @access public + * @var tnsAlertType + */ + public $alertType; + + /** + * @access public + * @var integer + */ + public $clientCustomerId; + + /** + * @access public + * @var Detail[] + */ + public $details; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Alert"; + } + + public function __construct($alertSeverity = NULL, $alertType = NULL, $clientCustomerId = NULL, $details = NULL) { + $this->alertSeverity = $alertSeverity; + $this->alertType = $alertType; + $this->clientCustomerId = $clientCustomerId; + $this->details = $details; + } +}} + +if (!class_exists("AlertSelector", FALSE)) { +/** + * Selector for querying for alerts. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AlertSelector { + /** + * @access public + * @var AlertQuery + */ + public $query; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AlertSelector"; + } + + public function __construct($query = NULL, $paging = NULL) { + $this->query = $query; + $this->paging = $paging; + } +}} + +if (!class_exists("NoStatsPage", FALSE)) { +/** + * Base class for Get results for a page of entities that do not use statistics. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NoStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NoStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AlertErrorReason", FALSE)) { +/** + * The possible reasons for an {@link AlertError} to occur. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AlertErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AlertError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AlertSeverity", FALSE)) { +/** + * Severity of an alert, represented as a "color". + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AlertSeverity { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AlertSeverity"; + } + + public function __construct() { + } +}} + +if (!class_exists("AlertType", FALSE)) { +/** + * Type of an alert. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AlertType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AlertType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientSpec", FALSE)) { +/** + * Specification of which managed accounts a client manager is interested in. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientSpec { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientSpec"; + } + + public function __construct() { + } +}} + +if (!class_exists("FilterSpec", FALSE)) { +/** + * Describes how a result set of alerts should be filtered based on the triggering account's + * ability to manage clients. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FilterSpec { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FilterSpec"; + } + + public function __construct() { + } +}} + +if (!class_exists("TriggerTimeSpec", FALSE)) { +/** + * Specification of what trigger time alerts should match. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TriggerTimeSpec { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TriggerTimeSpec"; + } + + public function __construct() { + } +}} + +if (!class_exists("AlertServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Gets the list of alerts matching the specified clients and time period. + * + * @param selector selects the alerts for which to search. + * @return a page of alerts. + * @throws ApiException if an error occurs + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AlertServiceGet { + /** + * @access public + * @var AlertSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("AlertServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AlertServiceGetResponse { + /** + * @access public + * @var AlertPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AlertPage", FALSE)) { +/** + * Contains a subset of {@link Alert}s resulting from the filtering and paging, + * returned by {@link AlertService#get(AlertSelector)}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AlertPage extends NoStatsPage { + /** + * @access public + * @var Alert[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AlertPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AlertService", FALSE)) { +/** + * AlertService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class AlertService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "AlertServiceGetResponse", + "get" => "AlertServiceGet", + "mutate" => "AlertServiceMutate", + "mutateResponse" => "AlertServiceMutateResponse", + "mutateCallToAction" => "AlertServiceMutateCallToAction", + "search" => "AlertServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DateError" => "DateError", + "DistinctError" => "DistinctError", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotWhitelistedError" => "NotWhitelistedError", + "Paging" => "Paging", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Page" => "Page", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "AlertError" => "AlertError", + "AlertQuery" => "AlertQuery", + "Detail" => "Detail", + "Alert" => "Alert", + "AlertPage" => "AlertPage", + "NoStatsPage" => "NoStatsPage", + "AlertSelector" => "AlertSelector", + "AlertError.Reason" => "AlertErrorReason", + "AlertSeverity" => "AlertSeverity", + "AlertType" => "AlertType", + "ClientSpec" => "ClientSpec", + "FilterSpec" => "FilterSpec", + "TriggerTimeSpec" => "TriggerTimeSpec", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/mcm/v201309/AlertService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AlertService::$classmap; + parent::__construct($wsdl, $options, $user, 'AlertService', 'https://adwords.google.com/api/adwords/mcm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Gets the list of alerts matching the specified clients and time period. + * + * @param selector selects the alerts for which to search. + * @return a page of alerts. + * @throws ApiException if an error occurs + */ + public function get($selector) { + $arg = new AlertServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/BiddingStrategyService.php b/src/Google/Api/Ads/AdWords/v201309/BiddingStrategyService.php new file mode 100755 index 000000000..566acbfe7 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/BiddingStrategyService.php @@ -0,0 +1,4111 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("BiddingScheme", FALSE)) { +/** + * Base class for all bidding schemes. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingScheme { + /** + * @access public + * @var string + */ + public $BiddingSchemeType; + + private $_parameterMap = array ( + "BiddingScheme.Type" => "BiddingSchemeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("SharedBiddingStrategy", FALSE)) { +/** + * Bidding strategies store shared bidding configuration data and are account-level objects. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedBiddingStrategy { + /** + * @access public + * @var BiddingScheme + */ + public $biddingScheme; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsSharedBiddingStrategyBiddingStrategyStatus + */ + public $status; + + /** + * @access public + * @var tnsBiddingStrategyType + */ + public $type; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedBiddingStrategy"; + } + + public function __construct($biddingScheme = NULL, $id = NULL, $name = NULL, $status = NULL, $type = NULL) { + $this->biddingScheme = $biddingScheme; + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->type = $type; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorsReason", FALSE)) { +/** + * Bidding strategy cannot override ad group or campaign bidding strategy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingErrorsReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SharedBiddingStrategyBiddingStrategyStatus", FALSE)) { +/** + * Status of the bidding strategy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedBiddingStrategyBiddingStrategyStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedBiddingStrategy.BiddingStrategyStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategyErrorReason", FALSE)) { +/** + * Each bidding strategy must have a unique name. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategyType", FALSE)) { +/** + * The bidding strategy type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemeBidType", FALSE)) { +/** + * Average cost-per-acquisition (targetCPA) bid type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerBiddingSchemeBidType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.BidType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemePricingMode", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerBiddingSchemePricingMode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.PricingMode"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("PageOnePromotedBiddingSchemeStrategyGoal", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PageOnePromotedBiddingSchemeStrategyGoal { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme.StrategyGoal"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategyServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of bidding strategies that match the selector. + * + * @return list of bidding strategies specified by the selector. + * @throws com.google.ads.api.services.common.error.ApiException if problems + * occurred while retrieving results. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("BiddingStrategyServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyServiceGetResponse { + /** + * @access public + * @var BiddingStrategyPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("BiddingStrategyServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Applies the list of mutate operations. + * + * @param operations the operations to apply + * @return the modified list of BiddingStrategy + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyServiceMutate { + /** + * @access public + * @var BiddingStrategyOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("BiddingStrategyServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyServiceMutateResponse { + /** + * @access public + * @var BiddingStrategyReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BiddingErrors", FALSE)) { +/** + * Represents error codes for bidding strategy entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingErrors extends ApiError { + /** + * @access public + * @var tnsBiddingErrorsReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BiddingStrategyError", FALSE)) { +/** + * Represents error codes for bidding strategy entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyError extends ApiError { + /** + * @access public + * @var tnsBiddingStrategyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ConversionOptimizerBiddingScheme", FALSE)) { +/** + * Conversion optimizer bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + *

    {@code pricingMode} currently defaults to {@code CLICKS} and + * cannot be changed.

    + * + *

    Note that campaigns must meet specific + * eligibility requirements before they can use the ConversionOptimizer + * bidding strategy. + * + * For more information on conversion optimizer, visit the + * Conversion Optimizer site. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemePricingMode + */ + public $pricingMode; + + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemeBidType + */ + public $bidType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme"; + } + + public function __construct($pricingMode = NULL, $bidType = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->pricingMode = $pricingMode; + $this->bidType = $bidType; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EnhancedCpcBiddingScheme", FALSE)) { +/** + * Enhanced CPC is a bidding strategy that raises your bids for clicks that seem more likely to + * lead to a conversion and lowers them for clicks where they seem less likely. + * + * This bidding scheme does not support criteria level bidding strategy overrides. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EnhancedCpcBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnhancedCpcBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ManualCpcBiddingScheme", FALSE)) { +/** + * Manual click based bidding where user pays per click. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManualCpcBiddingScheme extends BiddingScheme { + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpcBiddingScheme"; + } + + public function __construct($enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ManualCpmBiddingScheme", FALSE)) { +/** + * Manual impression based bidding where user pays per thousand impressions. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManualCpmBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpmBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("PercentCpaBiddingScheme", FALSE)) { +/** + * Percentage CPA based bidding scheme attributes where user pays a percent of conversions. + * This bidding strategy is available only to some advertisers. + *

    A campaign can only be created with PercentCPA bidding strategy. Existing + * campaigns with a different bidding strategy cannot be transitioned to PercentCPA. + *

    Similarly, once created as a PercentCPA, a campaign cannot be transitioned to + * any other bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PercentCpaBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * Indicates that a field was rejected due to compatibility issues. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PageOnePromotedBiddingScheme", FALSE)) { +/** + * Page-One Promoted bidding scheme, which sets max cpc bids to + * target impressions on page one or page one promoted slots on google.com. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PageOnePromotedBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsPageOnePromotedBiddingSchemeStrategyGoal + */ + public $strategyGoal; + + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var boolean + */ + public $bidChangesForRaisesOnly; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenBudgetConstained; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenLowQualityScore; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme"; + } + + public function __construct($strategyGoal = NULL, $bidCeiling = NULL, $bidModifier = NULL, $bidChangesForRaisesOnly = NULL, $raiseBidWhenBudgetConstained = NULL, $raiseBidWhenLowQualityScore = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->strategyGoal = $strategyGoal; + $this->bidCeiling = $bidCeiling; + $this->bidModifier = $bidModifier; + $this->bidChangesForRaisesOnly = $bidChangesForRaisesOnly; + $this->raiseBidWhenBudgetConstained = $raiseBidWhenBudgetConstained; + $this->raiseBidWhenLowQualityScore = $raiseBidWhenLowQualityScore; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetCpaBiddingScheme", FALSE)) { +/** + * Target Cpa bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + * This is similar to the ConversionOptimizerBiddingScheme but does not + * support user-entered AdGroup-level target CPA bids, but rather a strategy-wide + * average CPA target. + * + *

    Note that campaigns must meet specific + * eligibility requirements before they can use the TargetCpaBiddingScheme + * bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetCpaBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $targetCpa; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetCpaBiddingScheme"; + } + + public function __construct($targetCpa = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->targetCpa = $targetCpa; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetSpendBiddingScheme", FALSE)) { +/** + * Target Spend bidding scheme, in which Google automatically places + * bids for the user based on their daily/monthly budget or optional + * spend target. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetSpendBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var Money + */ + public $spendTarget; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetSpendBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $spendTarget = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->spendTarget = $spendTarget; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BudgetOptimizerBiddingScheme", FALSE)) { +/** + * In budget optimizer, Google automatically places bids for the user based on + * their daily/monthly budget. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOptimizerBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("BiddingStrategyOperation", FALSE)) { +/** + * Operations for adding/updating bidding strategies. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyOperation extends Operation { + /** + * @access public + * @var SharedBiddingStrategy + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("BiddingStrategyPage", FALSE)) { +/** + * Contains a list of bidding strategies resulting from the filtering and paging + * of {@link BiddingStrategy#get} call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyPage extends Page { + /** + * @access public + * @var SharedBiddingStrategy[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("BiddingStrategyReturnValue", FALSE)) { +/** + * A container for return values from the {@link BiddingStrategyService#mutate} call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyReturnValue extends ListReturnValue { + /** + * @access public + * @var SharedBiddingStrategy[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("BiddingStrategyService", FALSE)) { +/** + * BiddingStrategyService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class BiddingStrategyService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "BiddingStrategyServiceGetResponse", + "get" => "BiddingStrategyServiceGet", + "mutate" => "BiddingStrategyServiceMutate", + "mutateResponse" => "BiddingStrategyServiceMutateResponse", + "mutateCallToAction" => "BiddingStrategyServiceMutateCallToAction", + "search" => "BiddingStrategyServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdxError" => "AdxError", + "ApiError" => "ApiError", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "BiddingErrors" => "BiddingErrors", + "BiddingStrategyError" => "BiddingStrategyError", + "ClientTermsError" => "ClientTermsError", + "ConversionOptimizerBiddingScheme" => "ConversionOptimizerBiddingScheme", + "BiddingScheme" => "BiddingScheme", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EnhancedCpcBiddingScheme" => "EnhancedCpcBiddingScheme", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "LongValue" => "LongValue", + "ManualCpcBiddingScheme" => "ManualCpcBiddingScheme", + "ManualCpmBiddingScheme" => "ManualCpmBiddingScheme", + "Money" => "Money", + "ComparableValue" => "ComparableValue", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PercentCpaBiddingScheme" => "PercentCpaBiddingScheme", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "PageOnePromotedBiddingScheme" => "PageOnePromotedBiddingScheme", + "TargetCpaBiddingScheme" => "TargetCpaBiddingScheme", + "TargetSpendBiddingScheme" => "TargetSpendBiddingScheme", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "BudgetOptimizerBiddingScheme" => "BudgetOptimizerBiddingScheme", + "Selector" => "Selector", + "SharedBiddingStrategy" => "SharedBiddingStrategy", + "BiddingStrategyOperation" => "BiddingStrategyOperation", + "Operation" => "Operation", + "BiddingStrategyPage" => "BiddingStrategyPage", + "Page" => "Page", + "BiddingStrategyReturnValue" => "BiddingStrategyReturnValue", + "ListReturnValue" => "ListReturnValue", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "BiddingErrors.Reason" => "BiddingErrorsReason", + "SharedBiddingStrategy.BiddingStrategyStatus" => "SharedBiddingStrategyBiddingStrategyStatus", + "BiddingStrategyError.Reason" => "BiddingStrategyErrorReason", + "BiddingStrategyType" => "BiddingStrategyType", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "ConversionOptimizerBiddingScheme.BidType" => "ConversionOptimizerBiddingSchemeBidType", + "ConversionOptimizerBiddingScheme.PricingMode" => "ConversionOptimizerBiddingSchemePricingMode", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "Operator" => "Operator", + "PageOnePromotedBiddingScheme.StrategyGoal" => "PageOnePromotedBiddingSchemeStrategyGoal", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/BiddingStrategyService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = BiddingStrategyService::$classmap; + parent::__construct($wsdl, $options, $user, 'BiddingStrategyService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of bidding strategies that match the selector. + * + * @return list of bidding strategies specified by the selector. + * @throws com.google.ads.api.services.common.error.ApiException if problems + * occurred while retrieving results. + */ + public function get($selector) { + $arg = new BiddingStrategyServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Applies the list of mutate operations. + * + * @param operations the operations to apply + * @return the modified list of BiddingStrategy + * @throws ApiException + */ + public function mutate($operations) { + $arg = new BiddingStrategyServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/BudgetOrderService.php b/src/Google/Api/Ads/AdWords/v201309/BudgetOrderService.php new file mode 100755 index 000000000..db83e9e61 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/BudgetOrderService.php @@ -0,0 +1,4365 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateRange", FALSE)) { +/** + * Represents a range of dates that has either an upper or a lower bound. + * The format for the date is YYYYMMDD. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("PagingError", FALSE)) { +/** + * Error codes for pagination. + * See {@link com.google.ads.api.services.common.pagination.Paging}. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingError extends ApiError { + /** + * @access public + * @var tnsPagingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("StatsQueryError", FALSE)) { +/** + * Represents possible error codes when querying for stats. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StatsQueryError extends ApiError { + /** + * @access public + * @var tnsStatsQueryErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PagingErrorReason", FALSE)) { +/** + * The reasons for errors when using pagination. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsQueryErrorReason", FALSE)) { +/** + * The reasons for errors when querying for stats. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StatsQueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BillingAccount", FALSE)) { +/** + * Represents an BillingAccount. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BillingAccount { + /** + * @access public + * @var string + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var string + */ + public $primaryBillingId; + + /** + * @access public + * @var string + */ + public $secondaryBillingId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingAccount"; + } + + public function __construct($id = NULL, $name = NULL, $currencyCode = NULL, $primaryBillingId = NULL, $secondaryBillingId = NULL) { + $this->id = $id; + $this->name = $name; + $this->currencyCode = $currencyCode; + $this->primaryBillingId = $primaryBillingId; + $this->secondaryBillingId = $secondaryBillingId; + } +}} + +if (!class_exists("BudgetOrder", FALSE)) { +/** + * A {@link BudgetOrder} links an account wide budget with a {@link BillingAccount}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOrder { + /** + * @access public + * @var string + */ + public $billingAccountId; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $billingAccountName; + + /** + * @access public + * @var string + */ + public $poNumber; + + /** + * @access public + * @var string + */ + public $budgetOrderName; + + /** + * @access public + * @var string + */ + public $primaryBillingId; + + /** + * @access public + * @var string + */ + public $secondaryBillingId; + + /** + * @access public + * @var Money + */ + public $spendingLimit; + + /** + * @access public + * @var string + */ + public $startDateTime; + + /** + * @access public + * @var string + */ + public $endDateTime; + + /** + * @access public + * @var BudgetOrderRequest + */ + public $lastRequest; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOrder"; + } + + public function __construct($billingAccountId = NULL, $id = NULL, $billingAccountName = NULL, $poNumber = NULL, $budgetOrderName = NULL, $primaryBillingId = NULL, $secondaryBillingId = NULL, $spendingLimit = NULL, $startDateTime = NULL, $endDateTime = NULL, $lastRequest = NULL) { + $this->billingAccountId = $billingAccountId; + $this->id = $id; + $this->billingAccountName = $billingAccountName; + $this->poNumber = $poNumber; + $this->budgetOrderName = $budgetOrderName; + $this->primaryBillingId = $primaryBillingId; + $this->secondaryBillingId = $secondaryBillingId; + $this->spendingLimit = $spendingLimit; + $this->startDateTime = $startDateTime; + $this->endDateTime = $endDateTime; + $this->lastRequest = $lastRequest; + } +}} + +if (!class_exists("BudgetOrderError", FALSE)) { +/** + * Error information for BudgetOrderService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOrderError extends ApiError { + /** + * @access public + * @var tnsBudgetOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOrderError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BudgetOrderOperation", FALSE)) { +/** + * Operation for {@link BudgetOrder}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOrderOperation extends Operation { + /** + * @access public + * @var BudgetOrder + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOrderOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("BudgetOrderPage", FALSE)) { +/** + * A page of {@link BudgetOrder}s from {@link BudgetOrderService#get} + * method. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOrderPage extends Page { + /** + * @access public + * @var BudgetOrder[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOrderPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("BudgetOrderRequest", FALSE)) { +/** + * Holds fields that provide information on the last set of values that were passed in through + * the parent BudgetOrder for mutate.add and mutate.set. + * This element only applies if manager account is whitelisted for new billing backend. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOrderRequest { + /** + * @access public + * @var tnsBudgetOrderRequestStatus + */ + public $status; + + /** + * @access public + * @var string + */ + public $date; + + /** + * @access public + * @var string + */ + public $billingAccountName; + + /** + * @access public + * @var string + */ + public $poNumber; + + /** + * @access public + * @var string + */ + public $budgetOrderName; + + /** + * @access public + * @var Money + */ + public $spendingLimit; + + /** + * @access public + * @var string + */ + public $startDateTime; + + /** + * @access public + * @var string + */ + public $endDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOrderRequest"; + } + + public function __construct($status = NULL, $date = NULL, $billingAccountName = NULL, $poNumber = NULL, $budgetOrderName = NULL, $spendingLimit = NULL, $startDateTime = NULL, $endDateTime = NULL) { + $this->status = $status; + $this->date = $date; + $this->billingAccountName = $billingAccountName; + $this->poNumber = $poNumber; + $this->budgetOrderName = $budgetOrderName; + $this->spendingLimit = $spendingLimit; + $this->startDateTime = $startDateTime; + $this->endDateTime = $endDateTime; + } +}} + +if (!class_exists("BudgetOrderReturnValue", FALSE)) { +/** + * A container for return values from the {@link BudgetOrderService#mutate} + * method. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOrderReturnValue extends ListReturnValue { + /** + * @access public + * @var BudgetOrder[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOrderReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("CustomerOrderLineError", FALSE)) { +/** + * Error information returned for CustomerOrderLineService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CustomerOrderLineError extends ApiError { + /** + * @access public + * @var tnsCustomerOrderLineErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomerOrderLineError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BudgetOrderErrorReason", FALSE)) { +/** + * Customer is not whitelisted for new billing. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOrderErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOrderError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetOrderRequestStatus", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOrderRequestStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOrderRequest.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomerOrderLineErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during a CustomerOrderLine mutate + * operation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CustomerOrderLineErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomerOrderLineError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetOrderServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Gets a list of {@link BudgetOrder}s using the generic selector. + * @param serviceSelector specifies which BudgetOrder to return. + * @return A {@link BudgetOrderPage} of BudgetOrders of the client customer. + * All BudgetOrder fields are returned. Stats are not yet supported. + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOrderServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("BudgetOrderServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOrderServiceGetResponse { + /** + * @access public + * @var BudgetOrderPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getBillingAccounts", FALSE)) { +/** + * Returns all the open/active BillingAccounts associated with the current + * manager. + * @return A list of {@link BillingAccount}s. + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getBillingAccounts { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getBillingAccountsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getBillingAccountsResponse { + /** + * @access public + * @var BillingAccount[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("BudgetOrderServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET, REMOVE. + * + * + * + * Mutates BudgetOrders, supported operations are: + *

    ADD: Adds a {@link BudgetOrder} to the billing account + * specified by the billing account ID.

    + *

    SET: Sets the start/end date and amount of the + * {@link BudgetOrder}.

    + *

    REMOVE: Cancels the {@link BudgetOrder} (status change).

    + *

    Warning: The BudgetOrderService + * is limited to one operation per mutate request. Any attempt to make more + * than one operation will result in an ApiException.

    + * @param operations A list of operations, however currently we only + * support one operation per mutate call. + * @return BudgetOrders affected by the mutate operation. + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOrderServiceMutate { + /** + * @access public + * @var BudgetOrderOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("BudgetOrderServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOrderServiceMutateResponse { + /** + * @access public + * @var BudgetOrderReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("BudgetOrderService", FALSE)) { +/** + * BudgetOrderService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class BudgetOrderService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "BudgetOrderServiceGetResponse", + "get" => "BudgetOrderServiceGet", + "mutate" => "BudgetOrderServiceMutate", + "mutateResponse" => "BudgetOrderServiceMutateResponse", + "mutateCallToAction" => "BudgetOrderServiceMutateCallToAction", + "search" => "BudgetOrderServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "ComparableValue" => "ComparableValue", + "DatabaseError" => "DatabaseError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "ListReturnValue" => "ListReturnValue", + "LongValue" => "LongValue", + "Money" => "Money", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "Operation" => "Operation", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Page" => "Page", + "Paging" => "Paging", + "PagingError" => "PagingError", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "Selector" => "Selector", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StatsQueryError" => "StatsQueryError", + "StringLengthError" => "StringLengthError", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "PagingError.Reason" => "PagingErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StatsQueryError.Reason" => "StatsQueryErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "BillingAccount" => "BillingAccount", + "BudgetOrder" => "BudgetOrder", + "BudgetOrderError" => "BudgetOrderError", + "BudgetOrderOperation" => "BudgetOrderOperation", + "BudgetOrderPage" => "BudgetOrderPage", + "BudgetOrderRequest" => "BudgetOrderRequest", + "BudgetOrderReturnValue" => "BudgetOrderReturnValue", + "CustomerOrderLineError" => "CustomerOrderLineError", + "BudgetOrderError.Reason" => "BudgetOrderErrorReason", + "BudgetOrderRequest.Status" => "BudgetOrderRequestStatus", + "CustomerOrderLineError.Reason" => "CustomerOrderLineErrorReason", + "getBillingAccounts" => "getBillingAccounts", + "getBillingAccountsResponse" => "getBillingAccountsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/billing/v201309/BudgetOrderService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = BudgetOrderService::$classmap; + parent::__construct($wsdl, $options, $user, 'BudgetOrderService', 'https://adwords.google.com/api/adwords/billing/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Gets a list of {@link BudgetOrder}s using the generic selector. + * @param serviceSelector specifies which BudgetOrder to return. + * @return A {@link BudgetOrderPage} of BudgetOrders of the client customer. + * All BudgetOrder fields are returned. Stats are not yet supported. + * @throws ApiException + */ + public function get($serviceSelector) { + $arg = new BudgetOrderServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * Returns all the open/active BillingAccounts associated with the current + * manager. + * @return A list of {@link BillingAccount}s. + * @throws ApiException + */ + public function getBillingAccounts() { + $arg = new getBillingAccounts(); + $result = $this->__soapCall("getBillingAccounts", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET, REMOVE. + * + * + * + * Mutates BudgetOrders, supported operations are: + *

    ADD: Adds a {@link BudgetOrder} to the billing account + * specified by the billing account ID.

    + *

    SET: Sets the start/end date and amount of the + * {@link BudgetOrder}.

    + *

    REMOVE: Cancels the {@link BudgetOrder} (status change).

    + *

    Warning: The BudgetOrderService + * is limited to one operation per mutate request. Any attempt to make more + * than one operation will result in an ApiException.

    + * @param operations A list of operations, however currently we only + * support one operation per mutate call. + * @return BudgetOrders affected by the mutate operation. + * @throws ApiException + */ + public function mutate($operations) { + $arg = new BudgetOrderServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/BudgetService.php b/src/Google/Api/Ads/AdWords/v201309/BudgetService.php new file mode 100755 index 000000000..3a392005f --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/BudgetService.php @@ -0,0 +1,3469 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("Budget", FALSE)) { +/** + * Budgets are used for managing the amount of money spent on AdWords. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Budget { + /** + * @access public + * @var integer + */ + public $budgetId; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsBudgetBudgetPeriod + */ + public $period; + + /** + * @access public + * @var Money + */ + public $amount; + + /** + * @access public + * @var tnsBudgetBudgetDeliveryMethod + */ + public $deliveryMethod; + + /** + * @access public + * @var integer + */ + public $referenceCount; + + /** + * @access public + * @var boolean + */ + public $isExplicitlyShared; + + /** + * @access public + * @var tnsBudgetBudgetStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget"; + } + + public function __construct($budgetId = NULL, $name = NULL, $period = NULL, $amount = NULL, $deliveryMethod = NULL, $referenceCount = NULL, $isExplicitlyShared = NULL, $status = NULL) { + $this->budgetId = $budgetId; + $this->name = $name; + $this->period = $period; + $this->amount = $amount; + $this->deliveryMethod = $deliveryMethod; + $this->referenceCount = $referenceCount; + $this->isExplicitlyShared = $isExplicitlyShared; + $this->status = $status; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetDeliveryMethod", FALSE)) { +/** + * Budget delivery methods. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetBudgetDeliveryMethod { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetDeliveryMethod"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetPeriod", FALSE)) { +/** + * Budget periods. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetBudgetPeriod { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetPeriod"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetStatus", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetBudgetStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetErrorReason", FALSE)) { +/** + * The reasons for the budget error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of budgets that match the selector. + * + * @return List of budgets specified by the selector. + * @throws com.google.ads.api.services.common.error.ApiException if problems + * occurred while retrieving results. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("BudgetServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetServiceGetResponse { + /** + * @access public + * @var BudgetPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("BudgetServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Applies the list of mutate operations. + * + * @param operations The operations to apply. + * @return The modified list of Budgets, returned in the same order as operations. + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetServiceMutate { + /** + * @access public + * @var BudgetOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("BudgetServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetServiceMutateResponse { + /** + * @access public + * @var BudgetReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BudgetError", FALSE)) { +/** + * A list of all the error codes being used by the common budget domain package. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetError extends ApiError { + /** + * @access public + * @var tnsBudgetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * Indicates that a field was rejected due to compatibility issues. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BudgetOperation", FALSE)) { +/** + * Operations for adding/updating Budget entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOperation extends Operation { + /** + * @access public + * @var Budget + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("BudgetPage", FALSE)) { +/** + * Contains a list of budgets resulting from the filtering and paging of + * {@link BudgetService#get} call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetPage extends Page { + /** + * @access public + * @var Budget[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("BudgetReturnValue", FALSE)) { +/** + * A container for return values from the {@link BudgetService#mutate} call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetReturnValue extends ListReturnValue { + /** + * @access public + * @var Budget[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("BudgetService", FALSE)) { +/** + * BudgetService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class BudgetService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "BudgetServiceGetResponse", + "get" => "BudgetServiceGet", + "mutate" => "BudgetServiceMutate", + "mutateResponse" => "BudgetServiceMutateResponse", + "mutateCallToAction" => "BudgetServiceMutateCallToAction", + "search" => "BudgetServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "BudgetError" => "BudgetError", + "ClientTermsError" => "ClientTermsError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "LongValue" => "LongValue", + "Money" => "Money", + "ComparableValue" => "ComparableValue", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Selector" => "Selector", + "Budget" => "Budget", + "BudgetOperation" => "BudgetOperation", + "Operation" => "Operation", + "BudgetPage" => "BudgetPage", + "Page" => "Page", + "BudgetReturnValue" => "BudgetReturnValue", + "ListReturnValue" => "ListReturnValue", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "Budget.BudgetDeliveryMethod" => "BudgetBudgetDeliveryMethod", + "Budget.BudgetPeriod" => "BudgetBudgetPeriod", + "Budget.BudgetStatus" => "BudgetBudgetStatus", + "BudgetError.Reason" => "BudgetErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/BudgetService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = BudgetService::$classmap; + parent::__construct($wsdl, $options, $user, 'BudgetService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of budgets that match the selector. + * + * @return List of budgets specified by the selector. + * @throws com.google.ads.api.services.common.error.ApiException if problems + * occurred while retrieving results. + */ + public function get($selector) { + $arg = new BudgetServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Applies the list of mutate operations. + * + * @param operations The operations to apply. + * @return The modified list of Budgets, returned in the same order as operations. + * @throws ApiException + */ + public function mutate($operations) { + $arg = new BudgetServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/CampaignAdExtensionService.php b/src/Google/Api/Ads/AdWords/v201309/CampaignAdExtensionService.php new file mode 100755 index 000000000..d113703e7 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/CampaignAdExtensionService.php @@ -0,0 +1,4265 @@ +streetAddress = $streetAddress; + $this->streetAddress2 = $streetAddress2; + $this->cityName = $cityName; + $this->provinceCode = $provinceCode; + $this->provinceName = $provinceName; + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + } +}} + +if (!class_exists("DateRange", FALSE)) { +/** + * Represents a range of dates that has either an upper or a lower bound. + * The format for the date is YYYYMMDD. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("GeoPoint", FALSE)) { +/** + * Specifies a geo location with the supplied latitude/longitude. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoPoint { + /** + * @access public + * @var integer + */ + public $latitudeInMicroDegrees; + + /** + * @access public + * @var integer + */ + public $longitudeInMicroDegrees; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoPoint"; + } + + public function __construct($latitudeInMicroDegrees = NULL, $longitudeInMicroDegrees = NULL) { + $this->latitudeInMicroDegrees = $latitudeInMicroDegrees; + $this->longitudeInMicroDegrees = $longitudeInMicroDegrees; + } +}} + +if (!class_exists("OAuthInfo", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OAuthInfo { + /** + * @access public + * @var string + */ + public $httpMethod; + + /** + * @access public + * @var string + */ + public $httpRequestUrl; + + /** + * @access public + * @var string + */ + public $httpAuthorizationHeader; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuthInfo"; + } + + public function __construct($httpMethod = NULL, $httpRequestUrl = NULL, $httpAuthorizationHeader = NULL) { + $this->httpMethod = $httpMethod; + $this->httpRequestUrl = $httpRequestUrl; + $this->httpAuthorizationHeader = $httpAuthorizationHeader; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("Sitelink", FALSE)) { +/** + * Class to represent a single sitelink + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Sitelink { + /** + * @access public + * @var string + */ + public $displayText; + + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Sitelink"; + } + + public function __construct($displayText = NULL, $destinationUrl = NULL) { + $this->displayText = $displayText; + $this->destinationUrl = $destinationUrl; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AdExtension", FALSE)) { +/** + * Base class for AdExtension objects. An AdExtension is an extension to + * an existing ad or metadata that will process into an extension. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdExtension { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $AdExtensionType; + + private $_parameterMap = array ( + "AdExtension.Type" => "AdExtensionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtension"; + } + + public function __construct($id = NULL, $AdExtensionType = NULL) { + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("CampaignAdExtension", FALSE)) { +/** + * Represents a campaign level ad extension. A campaign ad extension specifies + * a campaign and an ad extension which can extend any ad under that campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtension { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var AdExtension + */ + public $adExtension; + + /** + * @access public + * @var tnsCampaignAdExtensionStatus + */ + public $status; + + /** + * @access public + * @var tnsCampaignAdExtensionApprovalStatus + */ + public $approvalStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtension"; + } + + public function __construct($campaignId = NULL, $adExtension = NULL, $status = NULL, $approvalStatus = NULL) { + $this->campaignId = $campaignId; + $this->adExtension = $adExtension; + $this->status = $status; + $this->approvalStatus = $approvalStatus; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdExtensionErrorReason", FALSE)) { +/** + * Account has been deleted + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignAdExtensionApprovalStatus", FALSE)) { +/** + * Approval status of the CampaignAdExtension. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtensionApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtension.ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignAdExtensionStatus", FALSE)) { +/** + * Status of the CampaignAdExtension. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtensionStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtension.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignAdExtensionErrorReason", FALSE)) { +/** + * Cannot operate on an adextensions under the wrong campaign + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InAppLinkExtensionAppStore", FALSE)) { +/** + * The AppStore this extension will render for. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InAppLinkExtensionAppStore { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InAppLinkExtension.AppStore"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationExtensionSource", FALSE)) { +/** + * From manual entry in adwords frontend + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationExtensionSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationExtension.Source"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PagingErrorReason", FALSE)) { +/** + * The reasons for errors when using pagination. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegionCodeErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RegionCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignAdExtensionServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of {@link CampaignAdExtension}s. + * + * @param serviceSelector The selector specifying the {@link CampaignAdExtension}s to return. + * @return The page containing the {@link CampaignAdExtension}s which meet the + * criteria specified by the selector. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtensionServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("CampaignAdExtensionServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtensionServiceGetResponse { + /** + * @access public + * @var CampaignAdExtensionPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("CampaignAdExtensionServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Applies the list of mutate operations. + * @param operations The operations to apply. The same {@link CampaignAdExtension} + * cannot be specified in more than one operation. + * @return The changed {@link CampaignAdExtension}s. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtensionServiceMutate { + /** + * @access public + * @var CampaignAdExtensionOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("CampaignAdExtensionServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtensionServiceMutateResponse { + /** + * @access public + * @var CampaignAdExtensionReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdExtensionError", FALSE)) { +/** + * AdExtension errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdExtensionError extends ApiError { + /** + * @access public + * @var tnsAdExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CampaignAdExtensionError", FALSE)) { +/** + * CampaignAdExtension errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtensionError extends ApiError { + /** + * @access public + * @var tnsCampaignAdExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DomainInfoExtension", FALSE)) { +/** + * Domain extension, which adds domain info to ads. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DomainInfoExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $domainName; + + /** + * @access public + * @var string + */ + public $languageCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DomainInfoExtension"; + } + + public function __construct($domainName = NULL, $languageCode = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->domainName = $domainName; + $this->languageCode = $languageCode; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("InAppLinkExtension", FALSE)) { +/** + *

    This extension is useful for advertisers who wish to provide users with a + * link that points to the advertiser's mobile application in addition to their + * website. + * + *

    It is also known as Mobile App Extension. + * + *

    The API allows one InAppLinkExtension per {@code AppStore} per campaign. + * Only the extension for a given {@code AppStore} will render on the device + * relevant to that {@code AppStore} (e.g. iPhones for {@code AppStore.ITUNES} + * and Android phones for {@code AppStore.GOOGLE_PLAY}). + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InAppLinkExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $inAppLinkText; + + /** + * @access public + * @var string + */ + public $inAppLinkUrl; + + /** + * @access public + * @var tnsInAppLinkExtensionAppStore + */ + public $appStore; + + /** + * @access public + * @var string + */ + public $appId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InAppLinkExtension"; + } + + public function __construct($inAppLinkText = NULL, $inAppLinkUrl = NULL, $appStore = NULL, $appId = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->inAppLinkText = $inAppLinkText; + $this->inAppLinkUrl = $inAppLinkUrl; + $this->appStore = $appStore; + $this->appId = $appId; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("MobileExtension", FALSE)) { +/** + * Represents a phone extension. + * + *

    This type of ad extension attaches a phone number + * to a text ad, which lets customers call the advertiser directly from the ad. + * Phone extensions will appear as clickable phone numbers beneath the main text ad, + * and will be visible to high-end mobile device users who access google.com search, + * Voice search, Google Mobile App, or Google Maps for Mobile from their phone. + *

    + *

    Learn more about + * + * phone extensions. + *

    + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $phoneNumber; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * @access public + * @var boolean + */ + public $isCallTrackingEnabled; + + /** + * @access public + * @var boolean + */ + public $isCallOnly; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileExtension"; + } + + public function __construct($phoneNumber = NULL, $countryCode = NULL, $isCallTrackingEnabled = NULL, $isCallOnly = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->phoneNumber = $phoneNumber; + $this->countryCode = $countryCode; + $this->isCallTrackingEnabled = $isCallTrackingEnabled; + $this->isCallOnly = $isCallOnly; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PagingError", FALSE)) { +/** + * Error codes for pagination. + * See {@link com.google.ads.api.services.common.pagination.Paging}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingError extends ApiError { + /** + * @access public + * @var tnsPagingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RegionCodeError", FALSE)) { +/** + * A list of all errors associated with the @RegionCode constraints. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RegionCodeError extends ApiError { + /** + * @access public + * @var tnsRegionCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * Indicates that a field was rejected due to compatibility issues. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SitelinksExtension", FALSE)) { +/** + * Class to represent a set of sitelinks and their order of preference. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SitelinksExtension extends AdExtension { + /** + * @access public + * @var Sitelink[] + */ + public $sitelinks; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SitelinksExtension"; + } + + public function __construct($sitelinks = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->sitelinks = $sitelinks; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("LocationExtension", FALSE)) { +/** + * Location based ad extension. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationExtension extends AdExtension { + /** + * @access public + * @var Address + */ + public $address; + + /** + * @access public + * @var GeoPoint + */ + public $geoPoint; + + /** + * @access public + * @var base64Binary + */ + public $encodedLocation; + + /** + * @access public + * @var string + */ + public $companyName; + + /** + * @access public + * @var string + */ + public $phoneNumber; + + /** + * @access public + * @var tnsLocationExtensionSource + */ + public $source; + + /** + * @access public + * @var integer + */ + public $iconMediaId; + + /** + * @access public + * @var integer + */ + public $imageMediaId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationExtension"; + } + + public function __construct($address = NULL, $geoPoint = NULL, $encodedLocation = NULL, $companyName = NULL, $phoneNumber = NULL, $source = NULL, $iconMediaId = NULL, $imageMediaId = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->address = $address; + $this->geoPoint = $geoPoint; + $this->encodedLocation = $encodedLocation; + $this->companyName = $companyName; + $this->phoneNumber = $phoneNumber; + $this->source = $source; + $this->iconMediaId = $iconMediaId; + $this->imageMediaId = $imageMediaId; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("LocationSyncExtension", FALSE)) { +/** + * Local business center(LBC) sync extension that ties a LBC account with a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationSyncExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $email; + + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var OAuthInfo + */ + public $oAuthInfo; + + /** + * @access public + * @var integer + */ + public $iconMediaId; + + /** + * @access public + * @var boolean + */ + public $shouldSyncUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationSyncExtension"; + } + + public function __construct($email = NULL, $authToken = NULL, $oAuthInfo = NULL, $iconMediaId = NULL, $shouldSyncUrl = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->email = $email; + $this->authToken = $authToken; + $this->oAuthInfo = $oAuthInfo; + $this->iconMediaId = $iconMediaId; + $this->shouldSyncUrl = $shouldSyncUrl; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("CampaignAdExtensionOperation", FALSE)) { +/** + * CampaignAdExtension service operation. Note: The {@code SET} operator + * is not supported. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtensionOperation extends Operation { + /** + * @access public + * @var CampaignAdExtension + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("CampaignAdExtensionPage", FALSE)) { +/** + * Represents a page of {@link CampaignAdExtension}s resulting from the query + * done by {@link CampaignAdExtensionService}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtensionPage extends Page { + /** + * @access public + * @var CampaignAdExtension[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("CampaignAdExtensionReturnValue", FALSE)) { +/** + * A container for return values from the CampaignAdExtensionService.mutate(). + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtensionReturnValue extends ListReturnValue { + /** + * @access public + * @var CampaignAdExtension[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("CampaignAdExtensionService", FALSE)) { +/** + * CampaignAdExtensionService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class CampaignAdExtensionService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "CampaignAdExtensionServiceGetResponse", + "get" => "CampaignAdExtensionServiceGet", + "mutate" => "CampaignAdExtensionServiceMutate", + "mutateResponse" => "CampaignAdExtensionServiceMutateResponse", + "mutateCallToAction" => "CampaignAdExtensionServiceMutateCallToAction", + "search" => "CampaignAdExtensionServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdExtensionError" => "AdExtensionError", + "ApiError" => "ApiError", + "Address" => "Address", + "AdxError" => "AdxError", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "CampaignAdExtensionError" => "CampaignAdExtensionError", + "ClientTermsError" => "ClientTermsError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DomainInfoExtension" => "DomainInfoExtension", + "AdExtension" => "AdExtension", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "GeoPoint" => "GeoPoint", + "IdError" => "IdError", + "InAppLinkExtension" => "InAppLinkExtension", + "InternalApiError" => "InternalApiError", + "MobileExtension" => "MobileExtension", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OAuthInfo" => "OAuthInfo", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PagingError" => "PagingError", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RegionCodeError" => "RegionCodeError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "Sitelink" => "Sitelink", + "SitelinksExtension" => "SitelinksExtension", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "LocationExtension" => "LocationExtension", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "LocationSyncExtension" => "LocationSyncExtension", + "Selector" => "Selector", + "CampaignAdExtension" => "CampaignAdExtension", + "CampaignAdExtensionOperation" => "CampaignAdExtensionOperation", + "Operation" => "Operation", + "CampaignAdExtensionPage" => "CampaignAdExtensionPage", + "Page" => "Page", + "CampaignAdExtensionReturnValue" => "CampaignAdExtensionReturnValue", + "ListReturnValue" => "ListReturnValue", + "AdExtensionError.Reason" => "AdExtensionErrorReason", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "CampaignAdExtension.ApprovalStatus" => "CampaignAdExtensionApprovalStatus", + "CampaignAdExtension.Status" => "CampaignAdExtensionStatus", + "CampaignAdExtensionError.Reason" => "CampaignAdExtensionErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InAppLinkExtension.AppStore" => "InAppLinkExtensionAppStore", + "InternalApiError.Reason" => "InternalApiErrorReason", + "LocationExtension.Source" => "LocationExtensionSource", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "PagingError.Reason" => "PagingErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RegionCodeError.Reason" => "RegionCodeErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/CampaignAdExtensionService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CampaignAdExtensionService::$classmap; + parent::__construct($wsdl, $options, $user, 'CampaignAdExtensionService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of {@link CampaignAdExtension}s. + * + * @param serviceSelector The selector specifying the {@link CampaignAdExtension}s to return. + * @return The page containing the {@link CampaignAdExtension}s which meet the + * criteria specified by the selector. + * @throws ApiException when there is at least one error with the request. + */ + public function get($serviceSelector) { + $arg = new CampaignAdExtensionServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Applies the list of mutate operations. + * @param operations The operations to apply. The same {@link CampaignAdExtension} + * cannot be specified in more than one operation. + * @return The changed {@link CampaignAdExtension}s. + */ + public function mutate($operations) { + $arg = new CampaignAdExtensionServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/CampaignCriterionService.php b/src/Google/Api/Ads/AdWords/v201309/CampaignCriterionService.php new file mode 100755 index 000000000..7e92277ae --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/CampaignCriterionService.php @@ -0,0 +1,5632 @@ +streetAddress = $streetAddress; + $this->streetAddress2 = $streetAddress2; + $this->cityName = $cityName; + $this->provinceCode = $provinceCode; + $this->provinceName = $provinceName; + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CampaignCriterion", FALSE)) { +/** + * Represents a campaign level criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterion { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var boolean + */ + public $isNegative; + + /** + * @access public + * @var Criterion + */ + public $criterion; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * @access public + * @var string + */ + public $CampaignCriterionType; + + private $_parameterMap = array ( + "CampaignCriterion.Type" => "CampaignCriterionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterion"; + } + + public function __construct($campaignId = NULL, $isNegative = NULL, $criterion = NULL, $bidModifier = NULL, $forwardCompatibilityMap = NULL, $CampaignCriterionType = NULL) { + $this->campaignId = $campaignId; + $this->isNegative = $isNegative; + $this->criterion = $criterion; + $this->bidModifier = $bidModifier; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->CampaignCriterionType = $CampaignCriterionType; + } +}} + +if (!class_exists("CampaignCriterionError", FALSE)) { +/** + * Base error class for Campaign Criterion Service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterionError extends ApiError { + /** + * @access public + * @var tnsCampaignCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Criterion", FALSE)) { +/** + * Represents a criterion (such as a keyword, placement, or vertical). + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Criterion { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsCriterionType + */ + public $type; + + /** + * @access public + * @var string + */ + public $CriterionType; + + private $_parameterMap = array ( + "Criterion.Type" => "CriterionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + public function __construct($id = NULL, $type = NULL, $CriterionType = NULL) { + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionError", FALSE)) { +/** + * Error class used for reporting criteria related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionError extends ApiError { + /** + * @access public + * @var tnsCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CriterionParameter", FALSE)) { +/** + * Base type of criterion parameters. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionParameter { + /** + * @access public + * @var string + */ + public $CriterionParameterType; + + private $_parameterMap = array ( + "CriterionParameter.Type" => "CriterionParameterType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionParameter"; + } + + public function __construct($CriterionParameterType = NULL) { + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateRange", FALSE)) { +/** + * Represents a range of dates that has either an upper or a lower bound. + * The format for the date is YYYYMMDD. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Gender", FALSE)) { +/** + * Represents a Gender criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only excludable. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Gender extends Criterion { + /** + * @access public + * @var tnsGenderGenderType + */ + public $genderType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Gender"; + } + + public function __construct($genderType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->genderType = $genderType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("GeoPoint", FALSE)) { +/** + * Specifies a geo location with the supplied latitude/longitude. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoPoint { + /** + * @access public + * @var integer + */ + public $latitudeInMicroDegrees; + + /** + * @access public + * @var integer + */ + public $longitudeInMicroDegrees; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoPoint"; + } + + public function __construct($latitudeInMicroDegrees = NULL, $longitudeInMicroDegrees = NULL) { + $this->latitudeInMicroDegrees = $latitudeInMicroDegrees; + $this->longitudeInMicroDegrees = $longitudeInMicroDegrees; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Keyword", FALSE)) { +/** + * Represents a keyword. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Keyword extends Criterion { + /** + * @access public + * @var string + */ + public $text; + + /** + * @access public + * @var tnsKeywordMatchType + */ + public $matchType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Keyword"; + } + + public function __construct($text = NULL, $matchType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->text = $text; + $this->matchType = $matchType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Language", FALSE)) { +/** + * Represents a Language criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Language extends Criterion { + /** + * @access public + * @var string + */ + public $code; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Language"; + } + + public function __construct($code = NULL, $name = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->code = $code; + $this->name = $name; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Location", FALSE)) { +/** + * Represents Location criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type can be either targeted or excluded. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Location extends Criterion { + /** + * @access public + * @var string + */ + public $locationName; + + /** + * @access public + * @var string + */ + public $displayType; + + /** + * @access public + * @var tnsLocationTargetingStatus + */ + public $targetingStatus; + + /** + * @access public + * @var Location[] + */ + public $parentLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($locationName = NULL, $displayType = NULL, $targetingStatus = NULL, $parentLocations = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->locationName = $locationName; + $this->displayType = $displayType; + $this->targetingStatus = $targetingStatus; + $this->parentLocations = $parentLocations; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileAppCategory", FALSE)) { +/** + * Represents the mobile app category to be targeted. + * View the complete list of + * available mobile app categories. + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileAppCategory extends Criterion { + /** + * @access public + * @var integer + */ + public $mobileAppCategoryId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAppCategory"; + } + + public function __construct($mobileAppCategoryId = NULL, $displayName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->mobileAppCategoryId = $mobileAppCategoryId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileApplication", FALSE)) { +/** + * Represents the mobile application to be targeted. + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileApplication extends Criterion { + /** + * @access public + * @var string + */ + public $appId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileApplication"; + } + + public function __construct($appId = NULL, $displayName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->appId = $appId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device Criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileDevice extends Criterion { + /** + * @access public + * @var string + */ + public $deviceName; + + /** + * @access public + * @var string + */ + public $manufacturerName; + + /** + * @access public + * @var tnsMobileDeviceDeviceType + */ + public $deviceType; + + /** + * @access public + * @var string + */ + public $operatingSystemName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($deviceName = NULL, $manufacturerName = NULL, $deviceType = NULL, $operatingSystemName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->deviceName = $deviceName; + $this->manufacturerName = $manufacturerName; + $this->deviceType = $deviceType; + $this->operatingSystemName = $operatingSystemName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("NegativeCampaignCriterion", FALSE)) { +/** + * A negative campaign criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NegativeCampaignCriterion extends CampaignCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NegativeCampaignCriterion"; + } + + public function __construct($campaignId = NULL, $isNegative = NULL, $criterion = NULL, $bidModifier = NULL, $forwardCompatibilityMap = NULL, $CampaignCriterionType = NULL) { + parent::__construct(); + $this->campaignId = $campaignId; + $this->isNegative = $isNegative; + $this->criterion = $criterion; + $this->bidModifier = $bidModifier; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->CampaignCriterionType = $CampaignCriterionType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatingSystemVersion", FALSE)) { +/** + * Represents a Operating System Version Criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatingSystemVersion extends Criterion { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $osMajorVersion; + + /** + * @access public + * @var integer + */ + public $osMinorVersion; + + /** + * @access public + * @var tnsOperatingSystemVersionOperatorType + */ + public $operatorType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($name = NULL, $osMajorVersion = NULL, $osMinorVersion = NULL, $operatorType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->name = $name; + $this->osMajorVersion = $osMajorVersion; + $this->osMinorVersion = $osMinorVersion; + $this->operatorType = $operatorType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("PagingError", FALSE)) { +/** + * Error codes for pagination. + * See {@link com.google.ads.api.services.common.pagination.Paging}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingError extends ApiError { + /** + * @access public + * @var tnsPagingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Placement", FALSE)) { +/** + * A placement used for modifying bids for sites when targeting the content + * network. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Placement extends Criterion { + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + public function __construct($url = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->url = $url; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Platform", FALSE)) { +/** + * Represents Platform criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Platform extends Criterion { + /** + * @access public + * @var string + */ + public $platformName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Platform"; + } + + public function __construct($platformName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->platformName = $platformName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("Product", FALSE)) { +/** + * Product targeting criteria, represents a filter for products in the + * product feed that is defined by the advertiser. The criteria is used to + * determine the products in a Merchant Center account to be used with the + * ProductAds in the AdGroup. This criteria is available only to some advertisers. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Product extends Criterion { + /** + * @access public + * @var ProductCondition[] + */ + public $conditions; + + /** + * @access public + * @var string + */ + public $text; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + public function __construct($conditions = NULL, $text = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->conditions = $conditions; + $this->text = $text; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ProductCondition", FALSE)) { +/** + * Conditions to filter the products defined in product feed for targeting. + * The condition is defined as operand=argument. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProductCondition { + /** + * @access public + * @var string + */ + public $argument; + + /** + * @access public + * @var ProductConditionOperand + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductCondition"; + } + + public function __construct($argument = NULL, $operand = NULL) { + $this->argument = $argument; + $this->operand = $operand; + } +}} + +if (!class_exists("ProductConditionOperand", FALSE)) { +/** + * Attribute for the product condition. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProductConditionOperand { + /** + * @access public + * @var string + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductConditionOperand"; + } + + public function __construct($operand = NULL) { + $this->operand = $operand; + } +}} + +if (!class_exists("Proximity", FALSE)) { +/** + * Represents a Proximity Criterion. + * + * A proximity is an area within a certain radius of a point with the center point being described + * by a lat/long pair. The caller may also alternatively provide address fields which will be + * geocoded into a lat/long pair. Note: If a geoPoint value is provided, the address is not + * used for calculating the lat/long to target. + *

    A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Proximity extends Criterion { + /** + * @access public + * @var GeoPoint + */ + public $geoPoint; + + /** + * @access public + * @var tnsProximityDistanceUnits + */ + public $radiusDistanceUnits; + + /** + * @access public + * @var double + */ + public $radiusInUnits; + + /** + * @access public + * @var Address + */ + public $address; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Proximity"; + } + + public function __construct($geoPoint = NULL, $radiusDistanceUnits = NULL, $radiusInUnits = NULL, $address = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->geoPoint = $geoPoint; + $this->radiusDistanceUnits = $radiusDistanceUnits; + $this->radiusInUnits = $radiusInUnits; + $this->address = $address; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("QueryError", FALSE)) { +/** + * A QueryError represents possible errors for query parsing and execution. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QueryError extends ApiError { + /** + * @access public + * @var tnsQueryErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError"; + } + + public function __construct($reason = NULL, $message = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->message = $message; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RegionCodeError", FALSE)) { +/** + * A list of all errors associated with the @RegionCode constraints. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RegionCodeError extends ApiError { + /** + * @access public + * @var tnsRegionCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class String_StringMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("CriterionUserInterest", FALSE)) { +/** + * User Interest - represents a particular interest based vertical to be targeted. + * Targeting UserInterest is currently in a limited beta. If you'd like access + * please speak with your account representative. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserInterest extends Criterion { + /** + * @access public + * @var integer + */ + public $userInterestId; + + /** + * @access public + * @var string + */ + public $userInterestName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserInterest"; + } + + public function __construct($userInterestId = NULL, $userInterestName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->userInterestId = $userInterestId; + $this->userInterestName = $userInterestName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionUserList", FALSE)) { +/** + * UserList - represents a user list that is defined by the advertiser to be targeted. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserList extends Criterion { + /** + * @access public + * @var integer + */ + public $userListId; + + /** + * @access public + * @var string + */ + public $userListName; + + /** + * @access public + * @var tnsCriterionUserListMembershipStatus + */ + public $userListMembershipStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList"; + } + + public function __construct($userListId = NULL, $userListName = NULL, $userListMembershipStatus = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->userListId = $userListId; + $this->userListName = $userListName; + $this->userListMembershipStatus = $userListMembershipStatus; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Vertical", FALSE)) { +/** + * Use verticals to target or exclude placements in the Google Display Network + * based on the category into which the placement falls (for example, "Pets & + * Animals/Pets/Dogs"). + * View the complete list + * of available vertical categories. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Vertical extends Criterion { + /** + * @access public + * @var integer + */ + public $verticalId; + + /** + * @access public + * @var integer + */ + public $verticalParentId; + + /** + * @access public + * @var string[] + */ + public $path; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Vertical"; + } + + public function __construct($verticalId = NULL, $verticalParentId = NULL, $path = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->verticalId = $verticalId; + $this->verticalParentId = $verticalParentId; + $this->path = $path; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Webpage", FALSE)) { +/** + * Criterion for targeting webpages of an advertiser's website. The + * website domain name is specified at the campaign level. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Webpage extends Criterion { + /** + * @access public + * @var WebpageParameter + */ + public $parameter; + + /** + * @access public + * @var double + */ + public $criteriaCoverage; + + /** + * @access public + * @var string[] + */ + public $criteriaSamples; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Webpage"; + } + + public function __construct($parameter = NULL, $criteriaCoverage = NULL, $criteriaSamples = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->parameter = $parameter; + $this->criteriaCoverage = $criteriaCoverage; + $this->criteriaSamples = $criteriaSamples; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("WebpageCondition", FALSE)) { +/** + * Logical expression for targeting webpages of an advertiser's website. + * + *

    A condition is defined as {@code operand OP argument} + * where {@code operand} is one of the values enumerated in + * {@link WebpageConditionOperand}, and, based on this value, + * {@code OP} is either of {@code EQUALS} or {@code CONTAINS}.

    + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageCondition { + /** + * @access public + * @var tnsWebpageConditionOperand + */ + public $operand; + + /** + * @access public + * @var string + */ + public $argument; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageCondition"; + } + + public function __construct($operand = NULL, $argument = NULL) { + $this->operand = $operand; + $this->argument = $argument; + } +}} + +if (!class_exists("WebpageParameter", FALSE)) { +/** + * Parameter of Webpage criterion, expressed as a list of conditions, or + * logical expressions, for targeting webpages of an advertiser's website. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageParameter extends CriterionParameter { + /** + * @access public + * @var string + */ + public $criterionName; + + /** + * @access public + * @var WebpageCondition[] + */ + public $conditions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageParameter"; + } + + public function __construct($criterionName = NULL, $conditions = NULL, $CriterionParameterType = NULL) { + parent::__construct(); + $this->criterionName = $criterionName; + $this->conditions = $conditions; + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AgeRangeAgeRangeType", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AgeRangeAgeRangeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AgeRange.AgeRangeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignCriterionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignCriterionLimitExceededCriteriaLimitType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterionLimitExceededCriteriaLimitType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionLimitExceeded.CriteriaLimitType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContentLabelType", FALSE)) { +/** + * Content label type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ContentLabelType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentLabelType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * The types of criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionErrorReason", FALSE)) { +/** + * Concrete type of criterion is required for ADD and SET operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayOfWeek", FALSE)) { +/** + * Days of the week. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DayOfWeek { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayOfWeek"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenderGenderType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GenderGenderType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Gender.GenderType"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("KeywordMatchType", FALSE)) { +/** + * Match type of a keyword. i.e. the way we match a keyword string with + * search queries. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class KeywordMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationTargetingStatus", FALSE)) { +/** + * Enum that represents the different Targeting Status values for a Location criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationTargetingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationTargetingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("MinuteOfHour", FALSE)) { +/** + * Minutes in an hour. Currently only 0, 15, 30, and 45 are supported + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MinuteOfHour { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MinuteOfHour"; + } + + public function __construct() { + } +}} + +if (!class_exists("MobileDeviceDeviceType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileDeviceDeviceType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice.DeviceType"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatingSystemVersionOperatorType", FALSE)) { +/** + * The operator type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatingSystemVersionOperatorType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion.OperatorType"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PagingErrorReason", FALSE)) { +/** + * The reasons for errors when using pagination. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProximityDistanceUnits", FALSE)) { +/** + * The radius distance is expressed in either kilometers or miles. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProximityDistanceUnits { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Proximity.DistanceUnits"; + } + + public function __construct() { + } +}} + +if (!class_exists("QueryErrorReason", FALSE)) { +/** + * The reason for the query error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegionCodeErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RegionCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUserListMembershipStatus", FALSE)) { +/** + * Membership status of the user list. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList.MembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("WebpageConditionOperand", FALSE)) { +/** + * Operand value of {@link WebpageCondition}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageConditionOperand { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageConditionOperand"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignCriterionServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Gets campaign criteria. + * + * @param serviceSelector The selector specifying the {@link CampaignCriterion}s to return. + * @return A list of campaign criteria. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterionServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("CampaignCriterionServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterionServiceGetResponse { + /** + * @access public + * @var CampaignCriterionPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("CampaignCriterionServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, REMOVE, SET. + * + * + * + * Adds, removes or updates campaign criteria. + * + * @param operations The operations to apply. + * @return The added campaign criteria (without any optional parts). + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterionServiceMutate { + /** + * @access public + * @var CampaignCriterionOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("CampaignCriterionServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterionServiceMutateResponse { + /** + * @access public + * @var CampaignCriterionReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("query", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of campaign criteria that match the query. + * + * @param query The SQL-like AWQL query string. + * @return A list of campaign criteria. + * @throws ApiException if problems occur while parsing the query or fetching campaign criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class query { + /** + * @access public + * @var string + */ + public $query; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($query = NULL) { + $this->query = $query; + } +}} + +if (!class_exists("queryResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class queryResponse { + /** + * @access public + * @var CampaignCriterionPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdSchedule", FALSE)) { +/** + * Represents an AdSchedule Criterion. + * AdSchedule is specified as day and time of the week criteria to target + * the Ads. + *

    Note: An AdSchedule may not have more than six intervals + * in a day.

    + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdSchedule extends Criterion { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var integer + */ + public $startHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $startMinute; + + /** + * @access public + * @var integer + */ + public $endHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $endMinute; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSchedule"; + } + + public function __construct($dayOfWeek = NULL, $startHour = NULL, $startMinute = NULL, $endHour = NULL, $endMinute = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->dayOfWeek = $dayOfWeek; + $this->startHour = $startHour; + $this->startMinute = $startMinute; + $this->endHour = $endHour; + $this->endMinute = $endMinute; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AgeRange", FALSE)) { +/** + * Represents an Age Range criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only excludable. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AgeRange extends Criterion { + /** + * @access public + * @var tnsAgeRangeAgeRangeType + */ + public $ageRangeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AgeRange"; + } + + public function __construct($ageRangeType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->ageRangeType = $ageRangeType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("CampaignCriterionLimitExceeded", FALSE)) { +/** + * Error to indicate that too many negative criteria added to some campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterionLimitExceeded extends EntityCountLimitExceeded { + /** + * @access public + * @var tnsCampaignCriterionLimitExceededCriteriaLimitType + */ + public $limitType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionLimitExceeded"; + } + + public function __construct($limitType = NULL, $reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->limitType = $limitType; + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CampaignCriterionOperation", FALSE)) { +/** + * Generic operation (add, remove and set) for campaign criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterionOperation extends Operation { + /** + * @access public + * @var CampaignCriterion + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("CampaignCriterionPage", FALSE)) { +/** + * Contains a subset of campaign criteria resulting from a call to + * {@link CampaignCriterionService#get}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterionPage extends Page { + /** + * @access public + * @var CampaignCriterion[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("CampaignCriterionReturnValue", FALSE)) { +/** + * A container for return values from the CampaignCriterionService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterionReturnValue extends ListReturnValue { + /** + * @access public + * @var CampaignCriterion[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Carrier", FALSE)) { +/** + * Represents a Carrier Criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Carrier extends Criterion { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Carrier"; + } + + public function __construct($name = NULL, $countryCode = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->name = $name; + $this->countryCode = $countryCode; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ContentLabel", FALSE)) { +/** + * Content Label for category exclusion. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ContentLabel extends Criterion { + /** + * @access public + * @var tnsContentLabelType + */ + public $contentLabelType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentLabel"; + } + + public function __construct($contentLabelType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->contentLabelType = $contentLabelType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CampaignCriterionService", FALSE)) { +/** + * CampaignCriterionService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class CampaignCriterionService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "CampaignCriterionServiceGetResponse", + "get" => "CampaignCriterionServiceGet", + "mutate" => "CampaignCriterionServiceMutate", + "mutateResponse" => "CampaignCriterionServiceMutateResponse", + "mutateCallToAction" => "CampaignCriterionServiceMutateCallToAction", + "search" => "CampaignCriterionServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdSchedule" => "AdSchedule", + "Criterion" => "Criterion", + "Address" => "Address", + "AdxError" => "AdxError", + "ApiError" => "ApiError", + "AgeRange" => "AgeRange", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "CampaignCriterion" => "CampaignCriterion", + "CampaignCriterionError" => "CampaignCriterionError", + "CampaignCriterionLimitExceeded" => "CampaignCriterionLimitExceeded", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "CampaignCriterionOperation" => "CampaignCriterionOperation", + "Operation" => "Operation", + "CampaignCriterionPage" => "CampaignCriterionPage", + "Page" => "Page", + "CampaignCriterionReturnValue" => "CampaignCriterionReturnValue", + "ListReturnValue" => "ListReturnValue", + "Carrier" => "Carrier", + "ClientTermsError" => "ClientTermsError", + "ContentLabel" => "ContentLabel", + "CriterionError" => "CriterionError", + "CriterionParameter" => "CriterionParameter", + "DatabaseError" => "DatabaseError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityNotFound" => "EntityNotFound", + "Gender" => "Gender", + "GeoPoint" => "GeoPoint", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "Keyword" => "Keyword", + "Language" => "Language", + "Location" => "Location", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "MobileDevice" => "MobileDevice", + "NegativeCampaignCriterion" => "NegativeCampaignCriterion", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperatingSystemVersion" => "OperatingSystemVersion", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PagingError" => "PagingError", + "Placement" => "Placement", + "Platform" => "Platform", + "Predicate" => "Predicate", + "Product" => "Product", + "ProductCondition" => "ProductCondition", + "ProductConditionOperand" => "ProductConditionOperand", + "Proximity" => "Proximity", + "QueryError" => "QueryError", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RegionCodeError" => "RegionCodeError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "Selector" => "Selector", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "String_StringMapEntry" => "String_StringMapEntry", + "CriterionUserInterest" => "CriterionUserInterest", + "CriterionUserList" => "CriterionUserList", + "Vertical" => "Vertical", + "Webpage" => "Webpage", + "WebpageCondition" => "WebpageCondition", + "WebpageParameter" => "WebpageParameter", + "AdxError.Reason" => "AdxErrorReason", + "AgeRange.AgeRangeType" => "AgeRangeAgeRangeType", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "CampaignCriterionError.Reason" => "CampaignCriterionErrorReason", + "CampaignCriterionLimitExceeded.CriteriaLimitType" => "CampaignCriterionLimitExceededCriteriaLimitType", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "ContentLabelType" => "ContentLabelType", + "Criterion.Type" => "CriterionType", + "CriterionError.Reason" => "CriterionErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DayOfWeek" => "DayOfWeek", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "Gender.GenderType" => "GenderGenderType", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "KeywordMatchType" => "KeywordMatchType", + "LocationTargetingStatus" => "LocationTargetingStatus", + "MinuteOfHour" => "MinuteOfHour", + "MobileDevice.DeviceType" => "MobileDeviceDeviceType", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperatingSystemVersion.OperatorType" => "OperatingSystemVersionOperatorType", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "PagingError.Reason" => "PagingErrorReason", + "Predicate.Operator" => "PredicateOperator", + "Proximity.DistanceUnits" => "ProximityDistanceUnits", + "QueryError.Reason" => "QueryErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RegionCodeError.Reason" => "RegionCodeErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + "CriterionUserList.MembershipStatus" => "CriterionUserListMembershipStatus", + "WebpageConditionOperand" => "WebpageConditionOperand", + "query" => "query", + "queryResponse" => "queryResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/CampaignCriterionService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CampaignCriterionService::$classmap; + parent::__construct($wsdl, $options, $user, 'CampaignCriterionService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Gets campaign criteria. + * + * @param serviceSelector The selector specifying the {@link CampaignCriterion}s to return. + * @return A list of campaign criteria. + * @throws ApiException when there is at least one error with the request. + */ + public function get($serviceSelector) { + $arg = new CampaignCriterionServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, REMOVE, SET. + * + * + * + * Adds, removes or updates campaign criteria. + * + * @param operations The operations to apply. + * @return The added campaign criteria (without any optional parts). + * @throws ApiException when there is at least one error with the request. + */ + public function mutate($operations) { + $arg = new CampaignCriterionServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of campaign criteria that match the query. + * + * @param query The SQL-like AWQL query string. + * @return A list of campaign criteria. + * @throws ApiException if problems occur while parsing the query or fetching campaign criteria. + */ + public function query($query) { + $arg = new query($query); + $result = $this->__soapCall("query", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/CampaignFeedService.php b/src/Google/Api/Ads/AdWords/v201309/CampaignFeedService.php new file mode 100755 index 000000000..e71750e0c --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/CampaignFeedService.php @@ -0,0 +1,3554 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CampaignFeed", FALSE)) { +/** + * CampaignFeeds are used to link a feed to a campaign using a matching function, + * making the feed's feed items available in the campaign's ads for substitution. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignFeed { + /** + * @access public + * @var integer + */ + public $feedId; + + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var Function + */ + public $matchingFunction; + + /** + * @access public + * @var integer[] + */ + public $placeholderTypes; + + /** + * @access public + * @var tnsCampaignFeedStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignFeed"; + } + + public function __construct($feedId = NULL, $campaignId = NULL, $matchingFunction = NULL, $placeholderTypes = NULL, $status = NULL) { + $this->feedId = $feedId; + $this->campaignId = $campaignId; + $this->matchingFunction = $matchingFunction; + $this->placeholderTypes = $placeholderTypes; + $this->status = $status; + } +}} + +if (!class_exists("CampaignFeedError", FALSE)) { +/** + * Represents an error for the CampaignFeedService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignFeedError extends ApiError { + /** + * @access public + * @var tnsCampaignFeedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignFeedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CollectionSizeError", FALSE)) { +/** + * Errors associated with the size of the given collection being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CollectionSizeError extends ApiError { + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateRange", FALSE)) { +/** + * Represents a range of dates that has either an upper or a lower bound. + * The format for the date is YYYYMMDD. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("FeedFunction", FALSE)) { +/** + * Represents a function where its operator is applied to its argument operands + * resulting in a return value. It has the form + * (Operand... Operator Operand...). The type of the return value depends on + * the operator being applied and the type of the operands. + * + *

    Operands per function is limited to 20.

    + * + *

    Here is a code example:

    + * + *
    
    + * 
    + * // For example "feed_attribute == 30" can be represented as:
    + * FeedId feedId = (FeedId of Feed associated with feed_attribute)
    + * FeedAttributeId feedAttributeId = (FeedAttributeId of feed_attribute)
    + * Function function = new Function();
    + * function.setLhsOperand(
    + * Arrays.asList((Operand) new FeedAttributeOperand(feedId, feedAttributeId)));
    + * function.setOperator(Operator.IN);
    + * function.setRhsOperand(
    + * Arrays.asList((Operand) new ConstantOperand(30L)));
    + * 
    + * // Another example matching on multiple values:
    + * "feed_item_id IN (10, 20, 30)" can be represented as:
    + * 
    + * Function function = new Function();
    + * function.setLhsOperand(
    + * Arrays.asList((Operand) new RequestContextOperand(ContextType.FEED_ITEM_ID)));
    + * function.setOperator(Operator.IN);
    + * function.setRhsOperand(Arrays.asList(
    + * (Operand) new ConstantOperand(10L), new ConstantOperand(20L), new ConstantOperand(30L)));
    + * 
    + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedFunction { + /** + * @access public + * @var tnsFunctionOperator + */ + public $operator; + + /** + * @access public + * @var FunctionArgumentOperand[] + */ + public $lhsOperand; + + /** + * @access public + * @var FunctionArgumentOperand[] + */ + public $rhsOperand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Function"; + } + + public function __construct($operator = NULL, $lhsOperand = NULL, $rhsOperand = NULL) { + $this->operator = $operator; + $this->lhsOperand = $lhsOperand; + $this->rhsOperand = $rhsOperand; + } +}} + +if (!class_exists("FunctionError", FALSE)) { +/** + * Errors that indicate issues with the function. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FunctionError extends ApiError { + /** + * @access public + * @var tnsFunctionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FunctionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("FunctionArgumentOperand", FALSE)) { +/** + * An operand that can be used in a function expression. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FunctionArgumentOperand { + /** + * @access public + * @var string + */ + public $FunctionArgumentOperandType; + + private $_parameterMap = array ( + "FunctionArgumentOperand.Type" => "FunctionArgumentOperandType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FunctionArgumentOperand"; + } + + public function __construct($FunctionArgumentOperandType = NULL) { + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestContextOperand", FALSE)) { +/** + * An operand in a function referring to a value in the request context. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestContextOperand extends FunctionArgumentOperand { + /** + * @access public + * @var tnsRequestContextOperandContextType + */ + public $contextType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestContextOperand"; + } + + public function __construct($contextType = NULL, $FunctionArgumentOperandType = NULL) { + parent::__construct(); + $this->contextType = $contextType; + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignFeedStatus", FALSE)) { +/** + * Status of the CampaignFeed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignFeedStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignFeed.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignFeedErrorReason", FALSE)) { +/** + * Error reasons. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignFeedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignFeedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CollectionSizeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CollectionSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConstantOperandConstantType", FALSE)) { +/** + * The types of constant operands. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConstantOperandConstantType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConstantOperand.ConstantType"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FunctionOperator", FALSE)) { +/** + * Operators that can be used in functions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FunctionOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Function.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("FunctionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FunctionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FunctionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestContextOperandContextType", FALSE)) { +/** + * Campaign Id in the request context. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestContextOperandContextType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestContextOperand.ContextType"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignFeedServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of CampaignFeeds that meet the selector criteria. + * + * @param selector Determines which CampaignFeeds to return. If empty all + * Campaign feeds are returned. + * @return The list of CampaignFeeds. + * @throws ApiException Indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignFeedServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("CampaignFeedServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignFeedServiceGetResponse { + /** + * @access public + * @var CampaignFeedPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("CampaignFeedServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Adds, sets or removes CampaignFeeds. + * + * @param operations The operations to apply. + * @return The resulting Feeds. + * @throws ApiException Indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignFeedServiceMutate { + /** + * @access public + * @var CampaignFeedOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("CampaignFeedServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignFeedServiceMutateResponse { + /** + * @access public + * @var CampaignFeedReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("CampaignFeedOperation", FALSE)) { +/** + * Operation used to create or mutate a CampaignFeed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignFeedOperation extends Operation { + /** + * @access public + * @var CampaignFeed + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignFeedOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("CampaignFeedReturnValue", FALSE)) { +/** + * The result of a call to {@link CampaignFeedService#mutate}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignFeedReturnValue extends ListReturnValue { + /** + * @access public + * @var CampaignFeed[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignFeedReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("ConstantOperand", FALSE)) { +/** + * A constant operand in a matching function. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConstantOperand extends FunctionArgumentOperand { + /** + * @access public + * @var tnsConstantOperandConstantType + */ + public $type; + + /** + * @access public + * @var integer + */ + public $longValue; + + /** + * @access public + * @var boolean + */ + public $booleanValue; + + /** + * @access public + * @var double + */ + public $doubleValue; + + /** + * @access public + * @var string + */ + public $stringValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConstantOperand"; + } + + public function __construct($type = NULL, $longValue = NULL, $booleanValue = NULL, $doubleValue = NULL, $stringValue = NULL, $FunctionArgumentOperandType = NULL) { + parent::__construct(); + $this->type = $type; + $this->longValue = $longValue; + $this->booleanValue = $booleanValue; + $this->doubleValue = $doubleValue; + $this->stringValue = $stringValue; + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("FeedAttributeOperand", FALSE)) { +/** + * Represents a feed attribute reference to use in a function. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedAttributeOperand extends FunctionArgumentOperand { + /** + * @access public + * @var integer + */ + public $feedId; + + /** + * @access public + * @var integer + */ + public $feedAttributeId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedAttributeOperand"; + } + + public function __construct($feedId = NULL, $feedAttributeId = NULL, $FunctionArgumentOperandType = NULL) { + parent::__construct(); + $this->feedId = $feedId; + $this->feedAttributeId = $feedAttributeId; + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("FunctionOperand", FALSE)) { +/** + * A function operand in a matching function. + * Used to represent nested functions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FunctionOperand extends FunctionArgumentOperand { + /** + * @access public + * @var Function + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FunctionOperand"; + } + + public function __construct($value = NULL, $FunctionArgumentOperandType = NULL) { + parent::__construct(); + $this->value = $value; + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("NullStatsPage", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("CampaignFeedPage", FALSE)) { +/** + * The result of a call to {@link CampaignFeedService#get}. Contains a list of + * associations between campaign and feeds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignFeedPage extends NullStatsPage { + /** + * @access public + * @var CampaignFeed[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignFeedPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("CampaignFeedService", FALSE)) { +/** + * CampaignFeedService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class CampaignFeedService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "CampaignFeedServiceGetResponse", + "get" => "CampaignFeedServiceGet", + "mutate" => "CampaignFeedServiceMutate", + "mutateResponse" => "CampaignFeedServiceMutateResponse", + "mutateCallToAction" => "CampaignFeedServiceMutateCallToAction", + "search" => "CampaignFeedServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "CampaignFeed" => "CampaignFeed", + "CampaignFeedError" => "CampaignFeedError", + "CampaignFeedOperation" => "CampaignFeedOperation", + "Operation" => "Operation", + "CampaignFeedPage" => "CampaignFeedPage", + "NullStatsPage" => "NullStatsPage", + "CampaignFeedReturnValue" => "CampaignFeedReturnValue", + "ListReturnValue" => "ListReturnValue", + "ClientTermsError" => "ClientTermsError", + "CollectionSizeError" => "CollectionSizeError", + "ConstantOperand" => "ConstantOperand", + "FunctionArgumentOperand" => "FunctionArgumentOperand", + "DatabaseError" => "DatabaseError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "FeedAttributeOperand" => "FeedAttributeOperand", + "FunctionError" => "FunctionError", + "FunctionOperand" => "FunctionOperand", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "Page" => "Page", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestContextOperand" => "RequestContextOperand", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "Selector" => "Selector", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "CampaignFeed.Status" => "CampaignFeedStatus", + "CampaignFeedError.Reason" => "CampaignFeedErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "ConstantOperand.ConstantType" => "ConstantOperandConstantType", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "Function.Operator" => "FunctionOperator", + "FunctionError.Reason" => "FunctionErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestContextOperand.ContextType" => "RequestContextOperandContextType", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/CampaignFeedService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CampaignFeedService::$classmap; + parent::__construct($wsdl, $options, $user, 'CampaignFeedService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of CampaignFeeds that meet the selector criteria. + * + * @param selector Determines which CampaignFeeds to return. If empty all + * Campaign feeds are returned. + * @return The list of CampaignFeeds. + * @throws ApiException Indicates a problem with the request. + */ + public function get($selector) { + $arg = new CampaignFeedServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Adds, sets or removes CampaignFeeds. + * + * @param operations The operations to apply. + * @return The resulting Feeds. + * @throws ApiException Indicates a problem with the request. + */ + public function mutate($operations) { + $arg = new CampaignFeedServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/CampaignService.php b/src/Google/Api/Ads/AdWords/v201309/CampaignService.php new file mode 100755 index 000000000..9cd82cd7a --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/CampaignService.php @@ -0,0 +1,6258 @@ +eligible = $eligible; + $this->rejectionReasons = $rejectionReasons; + } +}} + +if (!class_exists("DateRange", FALSE)) { +/** + * Represents a range of dates that has either an upper or a lower bound. + * The format for the date is YYYYMMDD. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("FrequencyCap", FALSE)) { +/** + * A frequency cap is the maximum number of times an ad (or some set of ads) can + * be shown to a user over a particular time period. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FrequencyCap { + /** + * @access public + * @var integer + */ + public $impressions; + + /** + * @access public + * @var tnsTimeUnit + */ + public $timeUnit; + + /** + * @access public + * @var tnsLevel + */ + public $level; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCap"; + } + + public function __construct($impressions = NULL, $timeUnit = NULL, $level = NULL) { + $this->impressions = $impressions; + $this->timeUnit = $timeUnit; + $this->level = $level; + } +}} + +if (!class_exists("NetworkSetting", FALSE)) { +/** + * Network settings for a Campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NetworkSetting { + /** + * @access public + * @var boolean + */ + public $targetGoogleSearch; + + /** + * @access public + * @var boolean + */ + public $targetSearchNetwork; + + /** + * @access public + * @var boolean + */ + public $targetContentNetwork; + + /** + * @access public + * @var boolean + */ + public $targetPartnerSearchNetwork; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NetworkSetting"; + } + + public function __construct($targetGoogleSearch = NULL, $targetSearchNetwork = NULL, $targetContentNetwork = NULL, $targetPartnerSearchNetwork = NULL) { + $this->targetGoogleSearch = $targetGoogleSearch; + $this->targetSearchNetwork = $targetSearchNetwork; + $this->targetContentNetwork = $targetContentNetwork; + $this->targetPartnerSearchNetwork = $targetPartnerSearchNetwork; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("String_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class String_StringMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("Setting", FALSE)) { +/** + * Base type for AdWords campaign settings. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Setting { + /** + * @access public + * @var string + */ + public $SettingType; + + private $_parameterMap = array ( + "Setting.Type" => "SettingType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Setting"; + } + + public function __construct($SettingType = NULL) { + $this->SettingType = $SettingType; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Bids", FALSE)) { +/** + * Base class for all bids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Bids { + /** + * @access public + * @var string + */ + public $BidsType; + + private $_parameterMap = array ( + "Bids.Type" => "BidsType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Bids"; + } + + public function __construct($BidsType = NULL) { + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("BiddingScheme", FALSE)) { +/** + * Base class for all bidding schemes. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingScheme { + /** + * @access public + * @var string + */ + public $BiddingSchemeType; + + private $_parameterMap = array ( + "BiddingScheme.Type" => "BiddingSchemeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("BiddingStrategyConfiguration", FALSE)) { +/** + * Encapsulates the information about bids and bidding strategies. + * + * Bidding Strategy can be set on campaigns, ad groups or ad group criteria. + * A bidding strategy can be set using one of the following: + *
      + *
    • {@linkplain BiddingStrategyConfiguration#biddingScheme bidding scheme}
    • + *
    • {@linkplain BiddingStrategyConfiguration#biddingStrategyType bidding strategy type}
    • + *
    • {@linkplain BiddingStrategyConfiguration#biddingStrategyId bidding strategy ID} for + * flexible bid strategies.
    • + *
    + * If the bidding strategy type is used, then schemes are created using default values. + * + * Bids can be set only on ad groups and ad group criteria. They cannot be set on campaigns. + * Multiple bids can be set at the same time. Only the bids that apply to the campaign's + * {@linkplain Campaign#biddingStrategyConfiguration bidding strategy} will be used. + * + * For more information on flexible bidding, visit the + * Help Center. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyConfiguration { + /** + * @access public + * @var integer + */ + public $biddingStrategyId; + + /** + * @access public + * @var string + */ + public $biddingStrategyName; + + /** + * @access public + * @var tnsBiddingStrategyType + */ + public $biddingStrategyType; + + /** + * @access public + * @var tnsBiddingStrategySource + */ + public $biddingStrategySource; + + /** + * @access public + * @var BiddingScheme + */ + public $biddingScheme; + + /** + * @access public + * @var Bids[] + */ + public $bids; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyConfiguration"; + } + + public function __construct($biddingStrategyId = NULL, $biddingStrategyName = NULL, $biddingStrategyType = NULL, $biddingStrategySource = NULL, $biddingScheme = NULL, $bids = NULL) { + $this->biddingStrategyId = $biddingStrategyId; + $this->biddingStrategyName = $biddingStrategyName; + $this->biddingStrategyType = $biddingStrategyType; + $this->biddingStrategySource = $biddingStrategySource; + $this->biddingScheme = $biddingScheme; + $this->bids = $bids; + } +}} + +if (!class_exists("Budget", FALSE)) { +/** + * Budgets are used for managing the amount of money spent on AdWords. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Budget { + /** + * @access public + * @var integer + */ + public $budgetId; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsBudgetBudgetPeriod + */ + public $period; + + /** + * @access public + * @var Money + */ + public $amount; + + /** + * @access public + * @var tnsBudgetBudgetDeliveryMethod + */ + public $deliveryMethod; + + /** + * @access public + * @var integer + */ + public $referenceCount; + + /** + * @access public + * @var boolean + */ + public $isExplicitlyShared; + + /** + * @access public + * @var tnsBudgetBudgetStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget"; + } + + public function __construct($budgetId = NULL, $name = NULL, $period = NULL, $amount = NULL, $deliveryMethod = NULL, $referenceCount = NULL, $isExplicitlyShared = NULL, $status = NULL) { + $this->budgetId = $budgetId; + $this->name = $name; + $this->period = $period; + $this->amount = $amount; + $this->deliveryMethod = $deliveryMethod; + $this->referenceCount = $referenceCount; + $this->isExplicitlyShared = $isExplicitlyShared; + $this->status = $status; + } +}} + +if (!class_exists("Campaign", FALSE)) { +/** + * Data representing an AdWords campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Campaign { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsCampaignStatus + */ + public $status; + + /** + * @access public + * @var tnsServingStatus + */ + public $servingStatus; + + /** + * @access public + * @var string + */ + public $startDate; + + /** + * @access public + * @var string + */ + public $endDate; + + /** + * @access public + * @var Budget + */ + public $budget; + + /** + * @access public + * @var ConversionOptimizerEligibility + */ + public $conversionOptimizerEligibility; + + /** + * @access public + * @var tnsAdServingOptimizationStatus + */ + public $adServingOptimizationStatus; + + /** + * @access public + * @var FrequencyCap + */ + public $frequencyCap; + + /** + * @access public + * @var Setting[] + */ + public $settings; + + /** + * @access public + * @var NetworkSetting + */ + public $networkSetting; + + /** + * @access public + * @var BiddingStrategyConfiguration + */ + public $biddingStrategyConfiguration; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Campaign"; + } + + public function __construct($id = NULL, $name = NULL, $status = NULL, $servingStatus = NULL, $startDate = NULL, $endDate = NULL, $budget = NULL, $conversionOptimizerEligibility = NULL, $adServingOptimizationStatus = NULL, $frequencyCap = NULL, $settings = NULL, $networkSetting = NULL, $biddingStrategyConfiguration = NULL, $forwardCompatibilityMap = NULL) { + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->servingStatus = $servingStatus; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->budget = $budget; + $this->conversionOptimizerEligibility = $conversionOptimizerEligibility; + $this->adServingOptimizationStatus = $adServingOptimizationStatus; + $this->frequencyCap = $frequencyCap; + $this->settings = $settings; + $this->networkSetting = $networkSetting; + $this->biddingStrategyConfiguration = $biddingStrategyConfiguration; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdServingOptimizationStatus", FALSE)) { +/** + * Ad serving status of campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdServingOptimizationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdServingOptimizationStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BidSource", FALSE)) { +/** + * Indicate where a criterion's bid came from: criterion or the adgroup it + * belongs to. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BidSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorReason", FALSE)) { +/** + * Reason for bidding error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorsReason", FALSE)) { +/** + * Bidding strategy cannot override ad group or campaign bidding strategy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingErrorsReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategySource", FALSE)) { +/** + * Indicates where bidding strategy came from: campaign, adgroup or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategySource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategySource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategyType", FALSE)) { +/** + * The bidding strategy type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyType"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingTransitionErrorReason", FALSE)) { +/** + * Reason for bidding transition error. + * It is used by capability service as denial reasons, for bidding transition + * capability. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingTransitionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingTransitionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetDeliveryMethod", FALSE)) { +/** + * Budget delivery methods. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetBudgetDeliveryMethod { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetDeliveryMethod"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetPeriod", FALSE)) { +/** + * Budget periods. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetBudgetPeriod { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetPeriod"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetStatus", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetBudgetStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetErrorReason", FALSE)) { +/** + * The reasons for the budget error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignStatus", FALSE)) { +/** + * Campaign status. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemeBidType", FALSE)) { +/** + * Average cost-per-acquisition (targetCPA) bid type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerBiddingSchemeBidType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.BidType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemePricingMode", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerBiddingSchemePricingMode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.PricingMode"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerEligibilityRejectionReason", FALSE)) { +/** + * Campaign is not active + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerEligibilityRejectionReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerEligibility.RejectionReason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForwardCompatibilityErrorReason", FALSE)) { +/** + * The reason for the error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ForwardCompatibilityErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetTypeSettingNegativeGeoTargetType", FALSE)) { +/** + * The various signals a negative location target may use. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoTargetTypeSettingNegativeGeoTargetType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetTypeSetting.NegativeGeoTargetType"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetTypeSettingPositiveGeoTargetType", FALSE)) { +/** + * The various signals a positive location target may use. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoTargetTypeSettingPositiveGeoTargetType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetTypeSetting.PositiveGeoTargetType"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Level", FALSE)) { +/** + * The level on which the cap is to be applied. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Level { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Level"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PageOnePromotedBiddingSchemeStrategyGoal", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PageOnePromotedBiddingSchemeStrategyGoal { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme.StrategyGoal"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QueryErrorReason", FALSE)) { +/** + * The reason for the query error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The reasons for the quota error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServingStatus", FALSE)) { +/** + * Campaign serving status. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ServingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("SettingErrorReason", FALSE)) { +/** + * The reasons for the setting error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SettingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SettingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsQueryErrorReason", FALSE)) { +/** + * The reasons for errors when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StatsQueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TimeUnit", FALSE)) { +/** + * Unit of time the cap is defined at. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TimeUnit { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeUnit"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of campaigns that meet the selector criteria. + * + * @param serviceSelector the selector specifying the {@link Campaign}s to return. + * @return A list of campaigns. + * @throws ApiException if problems occurred while fetching campaign information. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("CampaignServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignServiceGetResponse { + /** + * @access public + * @var CampaignPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("CampaignServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET. + * + * + * + * Adds, updates, or deletes campaigns. + *

    Note: {@link CampaignOperation} does not support the + * REMOVE operator. To delete a campaign, set its + * {@link Campaign#status status} to DELETED.

    + * @param operations A list of unique operations. + * The same campaign cannot be specified in more than one operation. + * @return The list of updated campaigns, returned in the same order as the + * operations array. + * @throws ApiException if problems occurred while updating campaign information. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignServiceMutate { + /** + * @access public + * @var CampaignOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("CampaignServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignServiceMutateResponse { + /** + * @access public + * @var CampaignReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("query", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of campaigns that match the query. + * + * @param query The SQL-like AWQL query string. + * @return A list of campaigns. + * @throws ApiException if problems occur while parsing the query or fetching campaign + * information. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class query { + /** + * @access public + * @var string + */ + public $query; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($query = NULL) { + $this->query = $query; + } +}} + +if (!class_exists("queryResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class queryResponse { + /** + * @access public + * @var CampaignPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BiddingError", FALSE)) { +/** + * Represents bidding errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingError extends ApiError { + /** + * @access public + * @var tnsBiddingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BiddingErrors", FALSE)) { +/** + * Represents error codes for bidding strategy entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingErrors extends ApiError { + /** + * @access public + * @var tnsBiddingErrorsReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BiddingTransitionError", FALSE)) { +/** + * Bidding transition errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingTransitionError extends ApiError { + /** + * @access public + * @var tnsBiddingTransitionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingTransitionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BudgetError", FALSE)) { +/** + * A list of all the error codes being used by the common budget domain package. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetError extends ApiError { + /** + * @access public + * @var tnsBudgetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CampaignError", FALSE)) { +/** + * Base error class for Campaign Service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignError extends ApiError { + /** + * @access public + * @var tnsCampaignErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ConversionOptimizerBiddingScheme", FALSE)) { +/** + * Conversion optimizer bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + *

    {@code pricingMode} currently defaults to {@code CLICKS} and + * cannot be changed.

    + * + *

    Note that campaigns must meet specific + * eligibility requirements before they can use the ConversionOptimizer + * bidding strategy. + * + * For more information on conversion optimizer, visit the + * Conversion Optimizer site. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemePricingMode + */ + public $pricingMode; + + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemeBidType + */ + public $bidType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme"; + } + + public function __construct($pricingMode = NULL, $bidType = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->pricingMode = $pricingMode; + $this->bidType = $bidType; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EnhancedCpcBiddingScheme", FALSE)) { +/** + * Enhanced CPC is a bidding strategy that raises your bids for clicks that seem more likely to + * lead to a conversion and lowers them for clicks where they seem less likely. + * + * This bidding scheme does not support criteria level bidding strategy overrides. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EnhancedCpcBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnhancedCpcBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ForwardCompatibilityError", FALSE)) { +/** + * A ForwardComptibilityError represents possible errors when using the forwardCompatibilityMap + * in some of the common services. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ForwardCompatibilityError extends ApiError { + /** + * @access public + * @var tnsForwardCompatibilityErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("GeoTargetTypeSetting", FALSE)) { +/** + * Represents a collection of settings related to ads geotargeting. + * + *

    AdWords ads can be geotargeted using Location of Presence (LOP), + * Area of Interest (AOI), or both. LOP is the physical location + * of the user performing the search; AOI is the geographical region + * in which the searcher is interested. For example, if a user in + * New York City performs a search "hotels california", their LOP + * is New York City and their AOI is California. + * + *

    Additionally, ads can be positively or negatively geotargeted. + * An ad that is positively geotargeted to New York City only appears + * to users whose location is related (via AOI or LOP) to New York City. An ad + * that is negatively geotargeted to New York City appears for all + * users except those whose location is related to New York City. Ads can + * only be negatively geotargeted if a positive geotargeting is also supplied, and + * the negatively geotargeted region must be contained within the positive + * region. + * + *

    Geotargeting settings allow ads to be targeted in the following way: + *

      + *
    • Positively geotargeted using solely AOI, solely LOP, or either. + *
    • Negatively geotargeted using solely LOP, or both. + *
    + * + *

    This setting applies only to ads shown on the search network, and does + * not affect ads shown on the Google Display Network. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoTargetTypeSetting extends Setting { + /** + * @access public + * @var tnsGeoTargetTypeSettingPositiveGeoTargetType + */ + public $positiveGeoTargetType; + + /** + * @access public + * @var tnsGeoTargetTypeSettingNegativeGeoTargetType + */ + public $negativeGeoTargetType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetTypeSetting"; + } + + public function __construct($positiveGeoTargetType = NULL, $negativeGeoTargetType = NULL, $SettingType = NULL) { + parent::__construct(); + $this->positiveGeoTargetType = $positiveGeoTargetType; + $this->negativeGeoTargetType = $negativeGeoTargetType; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("KeywordMatchSetting", FALSE)) { +/** + * Improved exact and phrase match option includes misspellings, plurals, + * and other close variants of your keywords. + * + * Default value set to {@code true} to include close variants. For more + * information, see the article + * + * What are keyword matching options?. + * + * This setting is required when creating new campaigns. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class KeywordMatchSetting extends Setting { + /** + * @access public + * @var boolean + */ + public $optIn; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchSetting"; + } + + public function __construct($optIn = NULL, $SettingType = NULL) { + parent::__construct(); + $this->optIn = $optIn; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("ManualCpcBiddingScheme", FALSE)) { +/** + * Manual click based bidding where user pays per click. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManualCpcBiddingScheme extends BiddingScheme { + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpcBiddingScheme"; + } + + public function __construct($enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ManualCpmBiddingScheme", FALSE)) { +/** + * Manual impression based bidding where user pays per thousand impressions. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManualCpmBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpmBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PercentCpaBid", FALSE)) { +/** + * Percentage CPA based bidding where user pays a percent of conversions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PercentCpaBid extends Bids { + /** + * @access public + * @var integer + */ + public $bid; + + /** + * @access public + * @var tnsBidSource + */ + public $percentCpaBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBid"; + } + + public function __construct($bid = NULL, $percentCpaBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->percentCpaBidSource = $percentCpaBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("PercentCpaBiddingScheme", FALSE)) { +/** + * Percentage CPA based bidding scheme attributes where user pays a percent of conversions. + * This bidding strategy is available only to some advertisers. + *

    A campaign can only be created with PercentCPA bidding strategy. Existing + * campaigns with a different bidding strategy cannot be transitioned to PercentCPA. + *

    Similarly, once created as a PercentCPA, a campaign cannot be transitioned to + * any other bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PercentCpaBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("QueryError", FALSE)) { +/** + * A QueryError represents possible errors for query parsing and execution. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QueryError extends ApiError { + /** + * @access public + * @var tnsQueryErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError"; + } + + public function __construct($reason = NULL, $message = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->message = $message; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * Errors that are thrown if a quota limit is exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + public function __construct($reason = NULL, $limit = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->limit = $limit; + $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RealTimeBiddingSetting", FALSE)) { +/** + * Settings for Real-Time Bidding, a feature only available for campaigns + * targeting the Ad Exchange network. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RealTimeBiddingSetting extends Setting { + /** + * @access public + * @var boolean + */ + public $optIn; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RealTimeBiddingSetting"; + } + + public function __construct($optIn = NULL, $SettingType = NULL) { + parent::__construct(); + $this->optIn = $optIn; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * Indicates that a field was rejected due to compatibility issues. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SettingError", FALSE)) { +/** + * Indicates a problem with campaign settings. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SettingError extends ApiError { + /** + * @access public + * @var tnsSettingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SettingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("StatsQueryError", FALSE)) { +/** + * Represents possible error codes when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StatsQueryError extends ApiError { + /** + * @access public + * @var tnsStatsQueryErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TargetError", FALSE)) { +/** + * A list of all the error codes being used by the common targeting package. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetError extends ApiError { + /** + * @access public + * @var tnsTargetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TrackingSetting", FALSE)) { +/** + * Campaign level settings for tracking information. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TrackingSetting extends Setting { + /** + * @access public + * @var string + */ + public $trackingUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrackingSetting"; + } + + public function __construct($trackingUrl = NULL, $SettingType = NULL) { + parent::__construct(); + $this->trackingUrl = $trackingUrl; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("CpaBid", FALSE)) { +/** + * CPA Bids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CpaBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpaBid"; + } + + public function __construct($bid = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("CpcBid", FALSE)) { +/** + * Manual click based bids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CpcBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var Money + */ + public $contentBid; + + /** + * @access public + * @var tnsBidSource + */ + public $cpcBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpcBid"; + } + + public function __construct($bid = NULL, $contentBid = NULL, $cpcBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->contentBid = $contentBid; + $this->cpcBidSource = $cpcBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("CpmBid", FALSE)) { +/** + * Manual impression based bids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CpmBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var tnsBidSource + */ + public $cpmBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpmBid"; + } + + public function __construct($bid = NULL, $cpmBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->cpmBidSource = $cpmBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PageOnePromotedBiddingScheme", FALSE)) { +/** + * Page-One Promoted bidding scheme, which sets max cpc bids to + * target impressions on page one or page one promoted slots on google.com. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PageOnePromotedBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsPageOnePromotedBiddingSchemeStrategyGoal + */ + public $strategyGoal; + + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var boolean + */ + public $bidChangesForRaisesOnly; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenBudgetConstained; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenLowQualityScore; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme"; + } + + public function __construct($strategyGoal = NULL, $bidCeiling = NULL, $bidModifier = NULL, $bidChangesForRaisesOnly = NULL, $raiseBidWhenBudgetConstained = NULL, $raiseBidWhenLowQualityScore = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->strategyGoal = $strategyGoal; + $this->bidCeiling = $bidCeiling; + $this->bidModifier = $bidModifier; + $this->bidChangesForRaisesOnly = $bidChangesForRaisesOnly; + $this->raiseBidWhenBudgetConstained = $raiseBidWhenBudgetConstained; + $this->raiseBidWhenLowQualityScore = $raiseBidWhenLowQualityScore; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetCpaBiddingScheme", FALSE)) { +/** + * Target Cpa bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + * This is similar to the ConversionOptimizerBiddingScheme but does not + * support user-entered AdGroup-level target CPA bids, but rather a strategy-wide + * average CPA target. + * + *

    Note that campaigns must meet specific + * eligibility requirements before they can use the TargetCpaBiddingScheme + * bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetCpaBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $targetCpa; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetCpaBiddingScheme"; + } + + public function __construct($targetCpa = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->targetCpa = $targetCpa; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetSpendBiddingScheme", FALSE)) { +/** + * Target Spend bidding scheme, in which Google automatically places + * bids for the user based on their daily/monthly budget or optional + * spend target. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetSpendBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var Money + */ + public $spendTarget; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetSpendBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $spendTarget = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->spendTarget = $spendTarget; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BudgetOptimizerBiddingScheme", FALSE)) { +/** + * In budget optimizer, Google automatically places bids for the user based on + * their daily/monthly budget. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOptimizerBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("CampaignOperation", FALSE)) { +/** + * An operation on an AdWords campaign. + *

    Note: The REMOVE operator is not + * supported. To remove a campaign, set its {@link Campaign#status status} + * to DELETED.

    + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignOperation extends Operation { + /** + * @access public + * @var Campaign + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("CampaignPage", FALSE)) { +/** + * Contains a subset of campaign resulting from the filtering and paging of the + * {@link com.google.ads.api.services.campaignmgmt.campaign.CampaignService#get} call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignPage extends Page { + /** + * @access public + * @var Campaign[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("CampaignReturnValue", FALSE)) { +/** + * A container for return values from the CampaignService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignReturnValue extends ListReturnValue { + /** + * @access public + * @var Campaign[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("CampaignService", FALSE)) { +/** + * CampaignService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class CampaignService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "CampaignServiceGetResponse", + "get" => "CampaignServiceGet", + "mutate" => "CampaignServiceMutate", + "mutateResponse" => "CampaignServiceMutateResponse", + "mutateCallToAction" => "CampaignServiceMutateCallToAction", + "search" => "CampaignServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdxError" => "AdxError", + "ApiError" => "ApiError", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "BiddingError" => "BiddingError", + "BiddingErrors" => "BiddingErrors", + "BiddingTransitionError" => "BiddingTransitionError", + "BudgetError" => "BudgetError", + "CampaignError" => "CampaignError", + "ClientTermsError" => "ClientTermsError", + "ConversionOptimizerBiddingScheme" => "ConversionOptimizerBiddingScheme", + "BiddingScheme" => "BiddingScheme", + "ConversionOptimizerEligibility" => "ConversionOptimizerEligibility", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EnhancedCpcBiddingScheme" => "EnhancedCpcBiddingScheme", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "ForwardCompatibilityError" => "ForwardCompatibilityError", + "FrequencyCap" => "FrequencyCap", + "GeoTargetTypeSetting" => "GeoTargetTypeSetting", + "Setting" => "Setting", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "KeywordMatchSetting" => "KeywordMatchSetting", + "LongValue" => "LongValue", + "ManualCpcBiddingScheme" => "ManualCpcBiddingScheme", + "ManualCpmBiddingScheme" => "ManualCpmBiddingScheme", + "Money" => "Money", + "ComparableValue" => "ComparableValue", + "NetworkSetting" => "NetworkSetting", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PercentCpaBid" => "PercentCpaBid", + "Bids" => "Bids", + "PercentCpaBiddingScheme" => "PercentCpaBiddingScheme", + "Predicate" => "Predicate", + "QueryError" => "QueryError", + "QuotaCheckError" => "QuotaCheckError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RealTimeBiddingSetting" => "RealTimeBiddingSetting", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SettingError" => "SettingError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StatsQueryError" => "StatsQueryError", + "StringLengthError" => "StringLengthError", + "String_StringMapEntry" => "String_StringMapEntry", + "TargetError" => "TargetError", + "TrackingSetting" => "TrackingSetting", + "CpaBid" => "CpaBid", + "CpcBid" => "CpcBid", + "CpmBid" => "CpmBid", + "DatabaseError" => "DatabaseError", + "PageOnePromotedBiddingScheme" => "PageOnePromotedBiddingScheme", + "TargetCpaBiddingScheme" => "TargetCpaBiddingScheme", + "TargetSpendBiddingScheme" => "TargetSpendBiddingScheme", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "BudgetOptimizerBiddingScheme" => "BudgetOptimizerBiddingScheme", + "Selector" => "Selector", + "BiddingStrategyConfiguration" => "BiddingStrategyConfiguration", + "Budget" => "Budget", + "Campaign" => "Campaign", + "CampaignOperation" => "CampaignOperation", + "Operation" => "Operation", + "CampaignPage" => "CampaignPage", + "Page" => "Page", + "CampaignReturnValue" => "CampaignReturnValue", + "ListReturnValue" => "ListReturnValue", + "AdServingOptimizationStatus" => "AdServingOptimizationStatus", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "BidSource" => "BidSource", + "BiddingError.Reason" => "BiddingErrorReason", + "BiddingErrors.Reason" => "BiddingErrorsReason", + "BiddingStrategySource" => "BiddingStrategySource", + "BiddingStrategyType" => "BiddingStrategyType", + "BiddingTransitionError.Reason" => "BiddingTransitionErrorReason", + "Budget.BudgetDeliveryMethod" => "BudgetBudgetDeliveryMethod", + "Budget.BudgetPeriod" => "BudgetBudgetPeriod", + "Budget.BudgetStatus" => "BudgetBudgetStatus", + "BudgetError.Reason" => "BudgetErrorReason", + "CampaignError.Reason" => "CampaignErrorReason", + "CampaignStatus" => "CampaignStatus", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "ConversionOptimizerBiddingScheme.BidType" => "ConversionOptimizerBiddingSchemeBidType", + "ConversionOptimizerBiddingScheme.PricingMode" => "ConversionOptimizerBiddingSchemePricingMode", + "ConversionOptimizerEligibility.RejectionReason" => "ConversionOptimizerEligibilityRejectionReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "ForwardCompatibilityError.Reason" => "ForwardCompatibilityErrorReason", + "GeoTargetTypeSetting.NegativeGeoTargetType" => "GeoTargetTypeSettingNegativeGeoTargetType", + "GeoTargetTypeSetting.PositiveGeoTargetType" => "GeoTargetTypeSettingPositiveGeoTargetType", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "Level" => "Level", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "PageOnePromotedBiddingScheme.StrategyGoal" => "PageOnePromotedBiddingSchemeStrategyGoal", + "Predicate.Operator" => "PredicateOperator", + "QueryError.Reason" => "QueryErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "ServingStatus" => "ServingStatus", + "SettingError.Reason" => "SettingErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StatsQueryError.Reason" => "StatsQueryErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetError.Reason" => "TargetErrorReason", + "TimeUnit" => "TimeUnit", + "query" => "query", + "queryResponse" => "queryResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/CampaignService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CampaignService::$classmap; + parent::__construct($wsdl, $options, $user, 'CampaignService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of campaigns that meet the selector criteria. + * + * @param serviceSelector the selector specifying the {@link Campaign}s to return. + * @return A list of campaigns. + * @throws ApiException if problems occurred while fetching campaign information. + */ + public function get($serviceSelector) { + $arg = new CampaignServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET. + * + * + * + * Adds, updates, or deletes campaigns. + *

    Note: {@link CampaignOperation} does not support the + * REMOVE operator. To delete a campaign, set its + * {@link Campaign#status status} to DELETED.

    + * @param operations A list of unique operations. + * The same campaign cannot be specified in more than one operation. + * @return The list of updated campaigns, returned in the same order as the + * operations array. + * @throws ApiException if problems occurred while updating campaign information. + */ + public function mutate($operations) { + $arg = new CampaignServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of campaigns that match the query. + * + * @param query The SQL-like AWQL query string. + * @return A list of campaigns. + * @throws ApiException if problems occur while parsing the query or fetching campaign + * information. + */ + public function query($query) { + $arg = new query($query); + $result = $this->__soapCall("query", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/CampaignSharedSetService.php b/src/Google/Api/Ads/AdWords/v201309/CampaignSharedSetService.php new file mode 100755 index 000000000..adfc97cd4 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/CampaignSharedSetService.php @@ -0,0 +1,3437 @@ +This field can be selected using the value "SharedSetId".This field can be filtered on. + * This field is required and should not be {@code null} when it is contained within {@link Operator}s : ADD, REMOVE. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignSharedSet { + /** + * @access public + * @var integer + */ + public $sharedSetId; + + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var string + */ + public $sharedSetName; + + /** + * @access public + * @var tnsSharedSetType + */ + public $sharedSetType; + + /** + * @access public + * @var string + */ + public $campaignName; + + /** + * @access public + * @var tnsCampaignSharedSetStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignSharedSet"; + } + + public function __construct($sharedSetId = NULL, $campaignId = NULL, $sharedSetName = NULL, $sharedSetType = NULL, $campaignName = NULL, $status = NULL) { + $this->sharedSetId = $sharedSetId; + $this->campaignId = $campaignId; + $this->sharedSetName = $sharedSetName; + $this->sharedSetType = $sharedSetType; + $this->campaignName = $campaignName; + $this->status = $status; + } +}} + +if (!class_exists("DateRange", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Indicates that this instance is a subtype of ListReturnValue. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Indicates that this instance is a subtype of Page. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * This field must be greater than or equal to 0. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Indicates that this instance is a subtype of ApplicationException. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * This field must contain distinct elements. + * This field must not contain {@code null} elements. + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignSharedSetStatus", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignSharedSetStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignSharedSet.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignSharedSetErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignSharedSetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignSharedSetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PagingErrorReason", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SharedSetType", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedSetType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSetType"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignSharedSetServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of CampaignSharedSets based on the given selector. + * @param selector the selector specifying the query + * @return a list of CampaignSharedSet entities that meet the criterion specified + * by the selector + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignSharedSetServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("CampaignSharedSetServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignSharedSetServiceGetResponse { + /** + * @access public + * @var CampaignSharedSetPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("CampaignSharedSetServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, REMOVE. + * + * + * + * Applies the list of mutate operations. + * @param operations the operations to apply + * @return the modified list of CampaignSharedSet associations + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignSharedSetServiceMutate { + /** + * @access public + * @var CampaignSharedSetOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("CampaignSharedSetServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignSharedSetServiceMutateResponse { + /** + * @access public + * @var CampaignSharedSetReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CampaignSharedSetError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignSharedSetError extends ApiError { + /** + * @access public + * @var tnsCampaignSharedSetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignSharedSetError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CampaignSharedSetOperation", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignSharedSetOperation extends Operation { + /** + * @access public + * @var CampaignSharedSet + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignSharedSetOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("CampaignSharedSetReturnValue", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignSharedSetReturnValue extends ListReturnValue { + /** + * @access public + * @var CampaignSharedSet[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignSharedSetReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NullStatsPage", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PagingError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingError extends ApiError { + /** + * @access public + * @var tnsPagingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("CampaignSharedSetPage", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignSharedSetPage extends NullStatsPage { + /** + * @access public + * @var CampaignSharedSet[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignSharedSetPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("CampaignSharedSetService", FALSE)) { +/** + * CampaignSharedSetService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class CampaignSharedSetService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "CampaignSharedSetServiceGetResponse", + "get" => "CampaignSharedSetServiceGet", + "mutate" => "CampaignSharedSetServiceMutate", + "mutateResponse" => "CampaignSharedSetServiceMutateResponse", + "mutateCallToAction" => "CampaignSharedSetServiceMutateCallToAction", + "search" => "CampaignSharedSetServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "CampaignSharedSet" => "CampaignSharedSet", + "CampaignSharedSetError" => "CampaignSharedSetError", + "CampaignSharedSetOperation" => "CampaignSharedSetOperation", + "Operation" => "Operation", + "CampaignSharedSetPage" => "CampaignSharedSetPage", + "NullStatsPage" => "NullStatsPage", + "CampaignSharedSetReturnValue" => "CampaignSharedSetReturnValue", + "ListReturnValue" => "ListReturnValue", + "ClientTermsError" => "ClientTermsError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "Page" => "Page", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PagingError" => "PagingError", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Selector" => "Selector", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "CampaignSharedSet.Status" => "CampaignSharedSetStatus", + "CampaignSharedSetError.Reason" => "CampaignSharedSetErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "PagingError.Reason" => "PagingErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SharedSetType" => "SharedSetType", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/CampaignSharedSetService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CampaignSharedSetService::$classmap; + parent::__construct($wsdl, $options, $user, 'CampaignSharedSetService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of CampaignSharedSets based on the given selector. + * @param selector the selector specifying the query + * @return a list of CampaignSharedSet entities that meet the criterion specified + * by the selector + * @throws ApiException + */ + public function get($selector) { + $arg = new CampaignSharedSetServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, REMOVE. + * + * + * + * Applies the list of mutate operations. + * @param operations the operations to apply + * @return the modified list of CampaignSharedSet associations + * @throws ApiException + */ + public function mutate($operations) { + $arg = new CampaignSharedSetServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/ConstantDataService.php b/src/Google/Api/Ads/AdWords/v201309/ConstantDataService.php new file mode 100755 index 000000000..058fcd280 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/ConstantDataService.php @@ -0,0 +1,3936 @@ +operand = $operand; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("WebpageCondition", FALSE)) { +/** + * Logical expression for targeting webpages of an advertiser's website. + * + *

    A condition is defined as {@code operand OP argument} + * where {@code operand} is one of the values enumerated in + * {@link WebpageConditionOperand}, and, based on this value, + * {@code OP} is either of {@code EQUALS} or {@code CONTAINS}.

    + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageCondition { + /** + * @access public + * @var tnsWebpageConditionOperand + */ + public $operand; + + /** + * @access public + * @var string + */ + public $argument; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageCondition"; + } + + public function __construct($operand = NULL, $argument = NULL) { + $this->operand = $operand; + $this->argument = $argument; + } +}} + +if (!class_exists("CriterionParameter", FALSE)) { +/** + * Base type of criterion parameters. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionParameter { + /** + * @access public + * @var string + */ + public $CriterionParameterType; + + private $_parameterMap = array ( + "CriterionParameter.Type" => "CriterionParameterType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionParameter"; + } + + public function __construct($CriterionParameterType = NULL) { + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("ProductCondition", FALSE)) { +/** + * Conditions to filter the products defined in product feed for targeting. + * The condition is defined as operand=argument. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProductCondition { + /** + * @access public + * @var string + */ + public $argument; + + /** + * @access public + * @var ProductConditionOperand + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductCondition"; + } + + public function __construct($argument = NULL, $operand = NULL) { + $this->argument = $argument; + $this->operand = $operand; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Criterion", FALSE)) { +/** + * Represents a criterion (such as a keyword, placement, or vertical). + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Criterion { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsCriterionType + */ + public $type; + + /** + * @access public + * @var string + */ + public $CriterionType; + + private $_parameterMap = array ( + "Criterion.Type" => "CriterionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + public function __construct($id = NULL, $type = NULL, $CriterionType = NULL) { + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AgeRangeAgeRangeType", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AgeRangeAgeRangeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AgeRange.AgeRangeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * The types of criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenderGenderType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GenderGenderType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Gender.GenderType"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("KeywordMatchType", FALSE)) { +/** + * Match type of a keyword. i.e. the way we match a keyword string with + * search queries. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class KeywordMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MobileDeviceDeviceType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileDeviceDeviceType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice.DeviceType"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatingSystemVersionOperatorType", FALSE)) { +/** + * The operator type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatingSystemVersionOperatorType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion.OperatorType"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUserListMembershipStatus", FALSE)) { +/** + * Membership status of the user list. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList.MembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("WebpageConditionOperand", FALSE)) { +/** + * Operand value of {@link WebpageCondition}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageConditionOperand { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageConditionOperand"; + } + + public function __construct() { + } +}} + +if (!class_exists("getAgeRangeCriterion", FALSE)) { +/** + * Returns a list of all age range criteria. + * + * @return A list of age ranges. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getAgeRangeCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getAgeRangeCriterionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getAgeRangeCriterionResponse { + /** + * @access public + * @var AgeRange[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCarrierCriterion", FALSE)) { +/** + * Returns a list of all carrier criteria. + * + * @return A list of carriers. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getCarrierCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getCarrierCriterionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getCarrierCriterionResponse { + /** + * @access public + * @var Carrier[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getGenderCriterion", FALSE)) { +/** + * Returns a list of all gender criteria. + * + * @return A list of genders. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getGenderCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getGenderCriterionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getGenderCriterionResponse { + /** + * @access public + * @var Gender[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLanguageCriterion", FALSE)) { +/** + * Returns a list of all language criteria. + * + * @return A list of languages. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getLanguageCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getLanguageCriterionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getLanguageCriterionResponse { + /** + * @access public + * @var Language[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getMobileDeviceCriterion", FALSE)) { +/** + * Returns a list of all mobile devices. + * + * @return A list of mobile devices. + * @throws ApiException when there is at least one error with the request. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getMobileDeviceCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getMobileDeviceCriterionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getMobileDeviceCriterionResponse { + /** + * @access public + * @var MobileDevice[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getOperatingSystemVersionCriterion", FALSE)) { +/** + * Returns a list of all operating system version criteria. + * + * @return A list of operating system versions. + * @throws ApiException when there is at least one error with the request. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getOperatingSystemVersionCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getOperatingSystemVersionCriterionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getOperatingSystemVersionCriterionResponse { + /** + * @access public + * @var OperatingSystemVersion[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getUserInterestCriterion", FALSE)) { +/** + * Returns a list of user interests. + * + * @return A list of user interests. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getUserInterestCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getUserInterestCriterionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getUserInterestCriterionResponse { + /** + * @access public + * @var CriterionUserInterest[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getVerticalCriterion", FALSE)) { +/** + * Returns a list of content verticals. + * + * @return A list of verticals. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getVerticalCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getVerticalCriterionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getVerticalCriterionResponse { + /** + * @access public + * @var Vertical[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AgeRange", FALSE)) { +/** + * Represents an Age Range criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only excludable. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AgeRange extends Criterion { + /** + * @access public + * @var tnsAgeRangeAgeRangeType + */ + public $ageRangeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AgeRange"; + } + + public function __construct($ageRangeType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->ageRangeType = $ageRangeType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Carrier", FALSE)) { +/** + * Represents a Carrier Criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Carrier extends Criterion { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Carrier"; + } + + public function __construct($name = NULL, $countryCode = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->name = $name; + $this->countryCode = $countryCode; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Gender", FALSE)) { +/** + * Represents a Gender criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only excludable. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Gender extends Criterion { + /** + * @access public + * @var tnsGenderGenderType + */ + public $genderType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Gender"; + } + + public function __construct($genderType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->genderType = $genderType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Keyword", FALSE)) { +/** + * Represents a keyword. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Keyword extends Criterion { + /** + * @access public + * @var string + */ + public $text; + + /** + * @access public + * @var tnsKeywordMatchType + */ + public $matchType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Keyword"; + } + + public function __construct($text = NULL, $matchType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->text = $text; + $this->matchType = $matchType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Language", FALSE)) { +/** + * Represents a Language criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Language extends Criterion { + /** + * @access public + * @var string + */ + public $code; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Language"; + } + + public function __construct($code = NULL, $name = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->code = $code; + $this->name = $name; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileAppCategory", FALSE)) { +/** + * Represents the mobile app category to be targeted. + * View the complete list of + * available mobile app categories. + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileAppCategory extends Criterion { + /** + * @access public + * @var integer + */ + public $mobileAppCategoryId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAppCategory"; + } + + public function __construct($mobileAppCategoryId = NULL, $displayName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->mobileAppCategoryId = $mobileAppCategoryId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileApplication", FALSE)) { +/** + * Represents the mobile application to be targeted. + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileApplication extends Criterion { + /** + * @access public + * @var string + */ + public $appId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileApplication"; + } + + public function __construct($appId = NULL, $displayName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->appId = $appId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device Criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileDevice extends Criterion { + /** + * @access public + * @var string + */ + public $deviceName; + + /** + * @access public + * @var string + */ + public $manufacturerName; + + /** + * @access public + * @var tnsMobileDeviceDeviceType + */ + public $deviceType; + + /** + * @access public + * @var string + */ + public $operatingSystemName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($deviceName = NULL, $manufacturerName = NULL, $deviceType = NULL, $operatingSystemName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->deviceName = $deviceName; + $this->manufacturerName = $manufacturerName; + $this->deviceType = $deviceType; + $this->operatingSystemName = $operatingSystemName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatingSystemVersion", FALSE)) { +/** + * Represents a Operating System Version Criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatingSystemVersion extends Criterion { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $osMajorVersion; + + /** + * @access public + * @var integer + */ + public $osMinorVersion; + + /** + * @access public + * @var tnsOperatingSystemVersionOperatorType + */ + public $operatorType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($name = NULL, $osMajorVersion = NULL, $osMinorVersion = NULL, $operatorType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->name = $name; + $this->osMajorVersion = $osMajorVersion; + $this->osMinorVersion = $osMinorVersion; + $this->operatorType = $operatorType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Placement", FALSE)) { +/** + * A placement used for modifying bids for sites when targeting the content + * network. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Placement extends Criterion { + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + public function __construct($url = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->url = $url; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * Indicates that a field was rejected due to compatibility issues. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CriterionUserInterest", FALSE)) { +/** + * User Interest - represents a particular interest based vertical to be targeted. + * Targeting UserInterest is currently in a limited beta. If you'd like access + * please speak with your account representative. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserInterest extends Criterion { + /** + * @access public + * @var integer + */ + public $userInterestId; + + /** + * @access public + * @var string + */ + public $userInterestName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserInterest"; + } + + public function __construct($userInterestId = NULL, $userInterestName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->userInterestId = $userInterestId; + $this->userInterestName = $userInterestName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionUserList", FALSE)) { +/** + * UserList - represents a user list that is defined by the advertiser to be targeted. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserList extends Criterion { + /** + * @access public + * @var integer + */ + public $userListId; + + /** + * @access public + * @var string + */ + public $userListName; + + /** + * @access public + * @var tnsCriterionUserListMembershipStatus + */ + public $userListMembershipStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList"; + } + + public function __construct($userListId = NULL, $userListName = NULL, $userListMembershipStatus = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->userListId = $userListId; + $this->userListName = $userListName; + $this->userListMembershipStatus = $userListMembershipStatus; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Vertical", FALSE)) { +/** + * Use verticals to target or exclude placements in the Google Display Network + * based on the category into which the placement falls (for example, "Pets & + * Animals/Pets/Dogs"). + * View the complete list + * of available vertical categories. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Vertical extends Criterion { + /** + * @access public + * @var integer + */ + public $verticalId; + + /** + * @access public + * @var integer + */ + public $verticalParentId; + + /** + * @access public + * @var string[] + */ + public $path; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Vertical"; + } + + public function __construct($verticalId = NULL, $verticalParentId = NULL, $path = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->verticalId = $verticalId; + $this->verticalParentId = $verticalParentId; + $this->path = $path; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("WebpageParameter", FALSE)) { +/** + * Parameter of Webpage criterion, expressed as a list of conditions, or + * logical expressions, for targeting webpages of an advertiser's website. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageParameter extends CriterionParameter { + /** + * @access public + * @var string + */ + public $criterionName; + + /** + * @access public + * @var WebpageCondition[] + */ + public $conditions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageParameter"; + } + + public function __construct($criterionName = NULL, $conditions = NULL, $CriterionParameterType = NULL) { + parent::__construct(); + $this->criterionName = $criterionName; + $this->conditions = $conditions; + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Webpage", FALSE)) { +/** + * Criterion for targeting webpages of an advertiser's website. The + * website domain name is specified at the campaign level. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Webpage extends Criterion { + /** + * @access public + * @var WebpageParameter + */ + public $parameter; + + /** + * @access public + * @var double + */ + public $criteriaCoverage; + + /** + * @access public + * @var string[] + */ + public $criteriaSamples; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Webpage"; + } + + public function __construct($parameter = NULL, $criteriaCoverage = NULL, $criteriaSamples = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->parameter = $parameter; + $this->criteriaCoverage = $criteriaCoverage; + $this->criteriaSamples = $criteriaSamples; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Product", FALSE)) { +/** + * Product targeting criteria, represents a filter for products in the + * product feed that is defined by the advertiser. The criteria is used to + * determine the products in a Merchant Center account to be used with the + * ProductAds in the AdGroup. This criteria is available only to some advertisers. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Product extends Criterion { + /** + * @access public + * @var ProductCondition[] + */ + public $conditions; + + /** + * @access public + * @var string + */ + public $text; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + public function __construct($conditions = NULL, $text = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->conditions = $conditions; + $this->text = $text; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ConstantDataService", FALSE)) { +/** + * ConstantDataService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class ConstantDataService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "ConstantDataServiceGetResponse", + "get" => "ConstantDataServiceGet", + "mutate" => "ConstantDataServiceMutate", + "mutateResponse" => "ConstantDataServiceMutateResponse", + "mutateCallToAction" => "ConstantDataServiceMutateCallToAction", + "search" => "ConstantDataServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdxError" => "AdxError", + "ApiError" => "ApiError", + "AgeRange" => "AgeRange", + "Criterion" => "Criterion", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "Carrier" => "Carrier", + "ClientTermsError" => "ClientTermsError", + "DateError" => "DateError", + "DistinctError" => "DistinctError", + "Gender" => "Gender", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "Keyword" => "Keyword", + "Language" => "Language", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "MobileDevice" => "MobileDevice", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperatingSystemVersion" => "OperatingSystemVersion", + "Placement" => "Placement", + "ProductConditionOperand" => "ProductConditionOperand", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "CriterionUserInterest" => "CriterionUserInterest", + "CriterionUserList" => "CriterionUserList", + "Vertical" => "Vertical", + "WebpageCondition" => "WebpageCondition", + "WebpageParameter" => "WebpageParameter", + "CriterionParameter" => "CriterionParameter", + "DatabaseError" => "DatabaseError", + "ProductCondition" => "ProductCondition", + "Webpage" => "Webpage", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Product" => "Product", + "AdxError.Reason" => "AdxErrorReason", + "AgeRange.AgeRangeType" => "AgeRangeAgeRangeType", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "Criterion.Type" => "CriterionType", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "Gender.GenderType" => "GenderGenderType", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "KeywordMatchType" => "KeywordMatchType", + "MobileDevice.DeviceType" => "MobileDeviceDeviceType", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperatingSystemVersion.OperatorType" => "OperatingSystemVersionOperatorType", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "CriterionUserList.MembershipStatus" => "CriterionUserListMembershipStatus", + "WebpageConditionOperand" => "WebpageConditionOperand", + "getAgeRangeCriterion" => "getAgeRangeCriterion", + "getAgeRangeCriterionResponse" => "getAgeRangeCriterionResponse", + "getCarrierCriterion" => "getCarrierCriterion", + "getCarrierCriterionResponse" => "getCarrierCriterionResponse", + "getGenderCriterion" => "getGenderCriterion", + "getGenderCriterionResponse" => "getGenderCriterionResponse", + "getLanguageCriterion" => "getLanguageCriterion", + "getLanguageCriterionResponse" => "getLanguageCriterionResponse", + "getMobileDeviceCriterion" => "getMobileDeviceCriterion", + "getMobileDeviceCriterionResponse" => "getMobileDeviceCriterionResponse", + "getOperatingSystemVersionCriterion" => "getOperatingSystemVersionCriterion", + "getOperatingSystemVersionCriterionResponse" => "getOperatingSystemVersionCriterionResponse", + "getUserInterestCriterion" => "getUserInterestCriterion", + "getUserInterestCriterionResponse" => "getUserInterestCriterionResponse", + "getVerticalCriterion" => "getVerticalCriterion", + "getVerticalCriterionResponse" => "getVerticalCriterionResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/ConstantDataService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ConstantDataService::$classmap; + parent::__construct($wsdl, $options, $user, 'ConstantDataService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * Returns a list of all age range criteria. + * + * @return A list of age ranges. + * @throws ApiException when there is at least one error with the request. + */ + public function getAgeRangeCriterion() { + $arg = new getAgeRangeCriterion(); + $result = $this->__soapCall("getAgeRangeCriterion", array($arg)); + return $result->rval; + } + + + /** + * Returns a list of all carrier criteria. + * + * @return A list of carriers. + * @throws ApiException when there is at least one error with the request. + */ + public function getCarrierCriterion() { + $arg = new getCarrierCriterion(); + $result = $this->__soapCall("getCarrierCriterion", array($arg)); + return $result->rval; + } + + + /** + * Returns a list of all gender criteria. + * + * @return A list of genders. + * @throws ApiException when there is at least one error with the request. + */ + public function getGenderCriterion() { + $arg = new getGenderCriterion(); + $result = $this->__soapCall("getGenderCriterion", array($arg)); + return $result->rval; + } + + + /** + * Returns a list of all language criteria. + * + * @return A list of languages. + * @throws ApiException when there is at least one error with the request. + */ + public function getLanguageCriterion() { + $arg = new getLanguageCriterion(); + $result = $this->__soapCall("getLanguageCriterion", array($arg)); + return $result->rval; + } + + + /** + * Returns a list of all mobile devices. + * + * @return A list of mobile devices. + * @throws ApiException when there is at least one error with the request. + * This is a beta feature. + */ + public function getMobileDeviceCriterion() { + $arg = new getMobileDeviceCriterion(); + $result = $this->__soapCall("getMobileDeviceCriterion", array($arg)); + return $result->rval; + } + + + /** + * Returns a list of all operating system version criteria. + * + * @return A list of operating system versions. + * @throws ApiException when there is at least one error with the request. + * This is a beta feature. + */ + public function getOperatingSystemVersionCriterion() { + $arg = new getOperatingSystemVersionCriterion(); + $result = $this->__soapCall("getOperatingSystemVersionCriterion", array($arg)); + return $result->rval; + } + + + /** + * Returns a list of user interests. + * + * @return A list of user interests. + * @throws ApiException when there is at least one error with the request. + */ + public function getUserInterestCriterion() { + $arg = new getUserInterestCriterion(); + $result = $this->__soapCall("getUserInterestCriterion", array($arg)); + return $result->rval; + } + + + /** + * Returns a list of content verticals. + * + * @return A list of verticals. + * @throws ApiException when there is at least one error with the request. + */ + public function getVerticalCriterion() { + $arg = new getVerticalCriterion(); + $result = $this->__soapCall("getVerticalCriterion", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/ConversionTrackerService.php b/src/Google/Api/Ads/AdWords/v201309/ConversionTrackerService.php new file mode 100755 index 000000000..7aa66ec80 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/ConversionTrackerService.php @@ -0,0 +1,3639 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("ConversionTrackerStats", FALSE)) { +/** + * Usage stats about a single {@link ConversionTracker}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionTrackerStats { + /** + * @access public + * @var integer + */ + public $numConversionEvents; + + /** + * @access public + * @var Money + */ + public $conversionValue; + + /** + * @access public + * @var string + */ + public $mostRecentConversionDate; + + /** + * @access public + * @var integer + */ + public $numConvertedClicks; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTrackerStats"; + } + + public function __construct($numConversionEvents = NULL, $conversionValue = NULL, $mostRecentConversionDate = NULL, $numConvertedClicks = NULL) { + $this->numConversionEvents = $numConversionEvents; + $this->conversionValue = $conversionValue; + $this->mostRecentConversionDate = $mostRecentConversionDate; + $this->numConvertedClicks = $numConvertedClicks; + } +}} + +if (!class_exists("ConversionTracker", FALSE)) { +/** + * An abstract Conversion base class. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionTracker { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsConversionTrackerStatus + */ + public $status; + + /** + * @access public + * @var tnsConversionTrackerCategory + */ + public $category; + + /** + * @access public + * @var ConversionTrackerStats + */ + public $stats; + + /** + * @access public + * @var integer + */ + public $viewthroughLookbackWindow; + + /** + * @access public + * @var boolean + */ + public $isProductAdsChargeable; + + /** + * @access public + * @var integer + */ + public $productAdsChargeableConversionWindow; + + /** + * @access public + * @var integer + */ + public $ctcLookbackWindow; + + /** + * @access public + * @var string + */ + public $ConversionTrackerType; + + private $_parameterMap = array ( + "ConversionTracker.Type" => "ConversionTrackerType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTracker"; + } + + public function __construct($id = NULL, $name = NULL, $status = NULL, $category = NULL, $stats = NULL, $viewthroughLookbackWindow = NULL, $isProductAdsChargeable = NULL, $productAdsChargeableConversionWindow = NULL, $ctcLookbackWindow = NULL, $ConversionTrackerType = NULL) { + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->category = $category; + $this->stats = $stats; + $this->viewthroughLookbackWindow = $viewthroughLookbackWindow; + $this->isProductAdsChargeable = $isProductAdsChargeable; + $this->productAdsChargeableConversionWindow = $productAdsChargeableConversionWindow; + $this->ctcLookbackWindow = $ctcLookbackWindow; + $this->ConversionTrackerType = $ConversionTrackerType; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AdWordsConversionTrackerMarkupLanguage", FALSE)) { +/** + * Controls the markup language in which the snippet will be written. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdWordsConversionTrackerMarkupLanguage { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdWordsConversionTracker.MarkupLanguage"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdWordsConversionTrackerTextFormat", FALSE)) { +/** + * Text format to display on the conversion page. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdWordsConversionTrackerTextFormat { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdWordsConversionTracker.TextFormat"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdWordsConversionTrackerTrackingCodeType", FALSE)) { +/** + * Type of snippet code to generate. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdWordsConversionTrackerTrackingCodeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdWordsConversionTracker.TrackingCodeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AppConversionAppConversionType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AppConversionAppConversionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppConversion.AppConversionType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AppConversionAppPlatform", FALSE)) { +/** + * App platform for the AppConversionTracker. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AppConversionAppPlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppConversion.AppPlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionTrackerCategory", FALSE)) { +/** + * The category of conversion tracker that is being tracked. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionTrackerCategory { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTracker.Category"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionTrackerStatus", FALSE)) { +/** + * Status of the conversion tracker. The user cannot ADD or SET the + * status to {@code HIDDEN}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionTrackerStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTracker.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionTrackingErrorReason", FALSE)) { +/** + * Enumerates all the possible reasons for a ConversionTypeError. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionTrackingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTrackingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionTrackerServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of the conversion trackers that match the selector. The + * actual objects contained in the page's list of entries will be specific + * subclasses of the abstract {@link ConversionTracker} class. + * + * @param serviceSelector The selector specifying the + * {@link ConversionTracker}s to return. + * @return List of conversion trackers specified by the selector. + * @throws com.google.ads.api.services.common.error.ApiException if problems + * occurred while retrieving results. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionTrackerServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("ConversionTrackerServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionTrackerServiceGetResponse { + /** + * @access public + * @var ConversionTrackerPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ConversionTrackerServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET. + * + * + * + * Applies the list of mutate operations such as adding or updating conversion trackers. + *

    Note: {@link ConversionTrackerOperation} does not support the + * REMOVE operator. In order to 'disable' a conversion type, send a + * SET operation for the conversion tracker with the status + * property set to DISABLED

    + * + * @param operations A list of mutate operations to perform. + * @return The list of the conversion trackers as they appear after mutation, + * in the same order as they appeared in the list of operations. + * @throws com.google.ads.api.services.common.error.ApiException if problems + * occurred while updating the data. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionTrackerServiceMutate { + /** + * @access public + * @var ConversionTrackerOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("ConversionTrackerServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionTrackerServiceMutateResponse { + /** + * @access public + * @var ConversionTrackerReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdWordsConversionTracker", FALSE)) { +/** + * A conversion tracker created through AdWords Conversion Tracking. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdWordsConversionTracker extends ConversionTracker { + /** + * @access public + * @var string + */ + public $snippet; + + /** + * @access public + * @var tnsAdWordsConversionTrackerMarkupLanguage + */ + public $markupLanguage; + + /** + * @access public + * @var tnsAdWordsConversionTrackerTextFormat + */ + public $textFormat; + + /** + * @access public + * @var string + */ + public $conversionPageLanguage; + + /** + * @access public + * @var string + */ + public $backgroundColor; + + /** + * @access public + * @var string + */ + public $userRevenueValue; + + /** + * @access public + * @var tnsAdWordsConversionTrackerTrackingCodeType + */ + public $trackingCodeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdWordsConversionTracker"; + } + + public function __construct($snippet = NULL, $markupLanguage = NULL, $textFormat = NULL, $conversionPageLanguage = NULL, $backgroundColor = NULL, $userRevenueValue = NULL, $trackingCodeType = NULL, $id = NULL, $name = NULL, $status = NULL, $category = NULL, $stats = NULL, $viewthroughLookbackWindow = NULL, $isProductAdsChargeable = NULL, $productAdsChargeableConversionWindow = NULL, $ctcLookbackWindow = NULL, $ConversionTrackerType = NULL) { + parent::__construct(); + $this->snippet = $snippet; + $this->markupLanguage = $markupLanguage; + $this->textFormat = $textFormat; + $this->conversionPageLanguage = $conversionPageLanguage; + $this->backgroundColor = $backgroundColor; + $this->userRevenueValue = $userRevenueValue; + $this->trackingCodeType = $trackingCodeType; + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->category = $category; + $this->stats = $stats; + $this->viewthroughLookbackWindow = $viewthroughLookbackWindow; + $this->isProductAdsChargeable = $isProductAdsChargeable; + $this->productAdsChargeableConversionWindow = $productAdsChargeableConversionWindow; + $this->ctcLookbackWindow = $ctcLookbackWindow; + $this->ConversionTrackerType = $ConversionTrackerType; + } +}} + +if (!class_exists("AppConversion", FALSE)) { +/** + * A ConversionTracker for mobile apps. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AppConversion extends ConversionTracker { + /** + * @access public + * @var string + */ + public $appId; + + /** + * @access public + * @var tnsAppConversionAppPlatform + */ + public $appPlatform; + + /** + * @access public + * @var string + */ + public $userRevenueValue; + + /** + * @access public + * @var string + */ + public $snippet; + + /** + * @access public + * @var tnsAppConversionAppConversionType + */ + public $appConversionType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppConversion"; + } + + public function __construct($appId = NULL, $appPlatform = NULL, $userRevenueValue = NULL, $snippet = NULL, $appConversionType = NULL, $id = NULL, $name = NULL, $status = NULL, $category = NULL, $stats = NULL, $viewthroughLookbackWindow = NULL, $isProductAdsChargeable = NULL, $productAdsChargeableConversionWindow = NULL, $ctcLookbackWindow = NULL, $ConversionTrackerType = NULL) { + parent::__construct(); + $this->appId = $appId; + $this->appPlatform = $appPlatform; + $this->userRevenueValue = $userRevenueValue; + $this->snippet = $snippet; + $this->appConversionType = $appConversionType; + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->category = $category; + $this->stats = $stats; + $this->viewthroughLookbackWindow = $viewthroughLookbackWindow; + $this->isProductAdsChargeable = $isProductAdsChargeable; + $this->productAdsChargeableConversionWindow = $productAdsChargeableConversionWindow; + $this->ctcLookbackWindow = $ctcLookbackWindow; + $this->ConversionTrackerType = $ConversionTrackerType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ConversionTrackingError", FALSE)) { +/** + * An error that can occur during calls to the ConversionTypeService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionTrackingError extends ApiError { + /** + * @access public + * @var tnsConversionTrackingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTrackingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("UploadConversion", FALSE)) { +/** + * A conversion type that receives conversions by having them uploaded + * through the OfflineConversionFeedService. + * + * After successfully creating a new UploadConversion, send the name of this conversion type + * along with your conversion details to the OfflineConversionFeedService + * to attribute those conversions to this conversion type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class UploadConversion extends ConversionTracker { + /** + * @access public + * @var string + */ + public $userRevenueValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UploadConversion"; + } + + public function __construct($userRevenueValue = NULL, $id = NULL, $name = NULL, $status = NULL, $category = NULL, $stats = NULL, $viewthroughLookbackWindow = NULL, $isProductAdsChargeable = NULL, $productAdsChargeableConversionWindow = NULL, $ctcLookbackWindow = NULL, $ConversionTrackerType = NULL) { + parent::__construct(); + $this->userRevenueValue = $userRevenueValue; + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->category = $category; + $this->stats = $stats; + $this->viewthroughLookbackWindow = $viewthroughLookbackWindow; + $this->isProductAdsChargeable = $isProductAdsChargeable; + $this->productAdsChargeableConversionWindow = $productAdsChargeableConversionWindow; + $this->ctcLookbackWindow = $ctcLookbackWindow; + $this->ConversionTrackerType = $ConversionTrackerType; + } +}} + +if (!class_exists("ConversionTrackerOperation", FALSE)) { +/** + * Operations for conversion tracker. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionTrackerOperation extends Operation { + /** + * @access public + * @var ConversionTracker + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTrackerOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("ConversionTrackerReturnValue", FALSE)) { +/** + * A container for return values from the ConversionTrackerService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionTrackerReturnValue extends ListReturnValue { + /** + * @access public + * @var ConversionTracker[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTrackerReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("NoStatsPage", FALSE)) { +/** + * Base class for Get results for a page of entities that do not use statistics. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NoStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NoStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("ConversionTrackerPage", FALSE)) { +/** + * Contains a subset of {@link ConversionTracker}s resulting from the filtering + * and paging of the {@link ConversionTrackerService#get} call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionTrackerPage extends NoStatsPage { + /** + * @access public + * @var ConversionTracker[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTrackerPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("ConversionTrackerService", FALSE)) { +/** + * ConversionTrackerService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class ConversionTrackerService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "ConversionTrackerServiceGetResponse", + "get" => "ConversionTrackerServiceGet", + "mutate" => "ConversionTrackerServiceMutate", + "mutateResponse" => "ConversionTrackerServiceMutateResponse", + "mutateCallToAction" => "ConversionTrackerServiceMutateCallToAction", + "search" => "ConversionTrackerServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdWordsConversionTracker" => "AdWordsConversionTracker", + "ConversionTracker" => "ConversionTracker", + "AppConversion" => "AppConversion", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "ConversionTrackingError" => "ConversionTrackingError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "LongValue" => "LongValue", + "Money" => "Money", + "ComparableValue" => "ComparableValue", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "UploadConversion" => "UploadConversion", + "ConversionTrackerStats" => "ConversionTrackerStats", + "ConversionTrackerOperation" => "ConversionTrackerOperation", + "Operation" => "Operation", + "ConversionTrackerReturnValue" => "ConversionTrackerReturnValue", + "ListReturnValue" => "ListReturnValue", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ConversionTrackerPage" => "ConversionTrackerPage", + "NoStatsPage" => "NoStatsPage", + "Page" => "Page", + "Selector" => "Selector", + "AdWordsConversionTracker.MarkupLanguage" => "AdWordsConversionTrackerMarkupLanguage", + "AdWordsConversionTracker.TextFormat" => "AdWordsConversionTrackerTextFormat", + "AdWordsConversionTracker.TrackingCodeType" => "AdWordsConversionTrackerTrackingCodeType", + "AppConversion.AppConversionType" => "AppConversionAppConversionType", + "AppConversion.AppPlatform" => "AppConversionAppPlatform", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "ConversionTracker.Category" => "ConversionTrackerCategory", + "ConversionTracker.Status" => "ConversionTrackerStatus", + "ConversionTrackingError.Reason" => "ConversionTrackingErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/ConversionTrackerService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ConversionTrackerService::$classmap; + parent::__construct($wsdl, $options, $user, 'ConversionTrackerService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of the conversion trackers that match the selector. The + * actual objects contained in the page's list of entries will be specific + * subclasses of the abstract {@link ConversionTracker} class. + * + * @param serviceSelector The selector specifying the + * {@link ConversionTracker}s to return. + * @return List of conversion trackers specified by the selector. + * @throws com.google.ads.api.services.common.error.ApiException if problems + * occurred while retrieving results. + */ + public function get($serviceSelector) { + $arg = new ConversionTrackerServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET. + * + * + * + * Applies the list of mutate operations such as adding or updating conversion trackers. + *

    Note: {@link ConversionTrackerOperation} does not support the + * REMOVE operator. In order to 'disable' a conversion type, send a + * SET operation for the conversion tracker with the status + * property set to DISABLED

    + * + * @param operations A list of mutate operations to perform. + * @return The list of the conversion trackers as they appear after mutation, + * in the same order as they appeared in the list of operations. + * @throws com.google.ads.api.services.common.error.ApiException if problems + * occurred while updating the data. + */ + public function mutate($operations) { + $arg = new ConversionTrackerServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/CustomerService.php b/src/Google/Api/Ads/AdWords/v201309/CustomerService.php new file mode 100755 index 000000000..6af1980d4 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/CustomerService.php @@ -0,0 +1,2122 @@ +authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +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.

    + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Customer", FALSE)) { +/** + * Represents a customer for the CustomerService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Customer { + /** + * @access public + * @var integer + */ + public $customerId; + + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var string + */ + public $dateTimeZone; + + /** + * @access public + * @var string + */ + public $descriptiveName; + + /** + * @access public + * @var boolean + */ + public $canManageClients; + + /** + * @access public + * @var boolean + */ + public $testAccount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Customer"; + } + + public function __construct($customerId = NULL, $currencyCode = NULL, $dateTimeZone = NULL, $descriptiveName = NULL, $canManageClients = NULL, $testAccount = NULL) { + $this->customerId = $customerId; + $this->currencyCode = $currencyCode; + $this->dateTimeZone = $dateTimeZone; + $this->descriptiveName = $descriptiveName; + $this->canManageClients = $canManageClients; + $this->testAccount = $testAccount; + } +}} + +if (!class_exists("CustomerServiceGet", FALSE)) { +/** + * Returns details of the authorized customer. + * + * @return customer associated with the caller + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CustomerServiceGet { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomerServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CustomerServiceGetResponse { + /** + * @access public + * @var Customer + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("CustomerService", FALSE)) { +/** + * CustomerService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class CustomerService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "CustomerServiceGetResponse", + "get" => "CustomerServiceGet", + "mutate" => "CustomerServiceMutate", + "mutateResponse" => "CustomerServiceMutateResponse", + "mutateCallToAction" => "CustomerServiceMutateCallToAction", + "search" => "CustomerServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DistinctError" => "DistinctError", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "OperatorError.Reason" => "OperatorErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "Customer" => "Customer", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/mcm/v201309/CustomerService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CustomerService::$classmap; + parent::__construct($wsdl, $options, $user, 'CustomerService', 'https://adwords.google.com/api/adwords/mcm/v201309'); + } + + /** + * Returns details of the authorized customer. + * + * @return customer associated with the caller + */ + public function get() { + $arg = new CustomerServiceGet(); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/CustomerSyncService.php b/src/Google/Api/Ads/AdWords/v201309/CustomerSyncService.php new file mode 100755 index 000000000..e448eb063 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/CustomerSyncService.php @@ -0,0 +1,2343 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * + * + * + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Indicates that this instance is a subtype of ApplicationException. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * + * + * + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * + * + * + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupChangeData", FALSE)) { +/** + * Holds information about a changed adgroup + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupChangeData { + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var tnsChangeStatus + */ + public $adGroupChangeStatus; + + /** + * @access public + * @var integer[] + */ + public $changedAds; + + /** + * @access public + * @var integer[] + */ + public $changedCriteria; + + /** + * @access public + * @var integer[] + */ + public $deletedCriteria; + + /** + * @access public + * @var integer[] + */ + public $changedFeeds; + + /** + * @access public + * @var integer[] + */ + public $deletedFeeds; + + /** + * @access public + * @var integer[] + */ + public $changedAdGroupBidModifierCriteria; + + /** + * @access public + * @var integer[] + */ + public $deletedAdGroupBidModifierCriteria; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupChangeData"; + } + + public function __construct($adGroupId = NULL, $adGroupChangeStatus = NULL, $changedAds = NULL, $changedCriteria = NULL, $deletedCriteria = NULL, $changedFeeds = NULL, $deletedFeeds = NULL, $changedAdGroupBidModifierCriteria = NULL, $deletedAdGroupBidModifierCriteria = NULL) { + $this->adGroupId = $adGroupId; + $this->adGroupChangeStatus = $adGroupChangeStatus; + $this->changedAds = $changedAds; + $this->changedCriteria = $changedCriteria; + $this->deletedCriteria = $deletedCriteria; + $this->changedFeeds = $changedFeeds; + $this->deletedFeeds = $deletedFeeds; + $this->changedAdGroupBidModifierCriteria = $changedAdGroupBidModifierCriteria; + $this->deletedAdGroupBidModifierCriteria = $deletedAdGroupBidModifierCriteria; + } +}} + +if (!class_exists("CampaignChangeData", FALSE)) { +/** + * Holds information about a changed campaign and any ad groups under + * that have changed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignChangeData { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var tnsChangeStatus + */ + public $campaignChangeStatus; + + /** + * @access public + * @var AdGroupChangeData[] + */ + public $changedAdGroups; + + /** + * @access public + * @var integer[] + */ + public $addedCampaignCriteria; + + /** + * @access public + * @var integer[] + */ + public $deletedCampaignCriteria; + + /** + * @access public + * @var integer[] + */ + public $addedAdExtensions; + + /** + * @access public + * @var integer[] + */ + public $deletedAdExtensions; + + /** + * @access public + * @var integer[] + */ + public $changedFeeds; + + /** + * @access public + * @var integer[] + */ + public $deletedFeeds; + + /** + * @access public + * @var boolean + */ + public $campaignTargetingChanged; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignChangeData"; + } + + public function __construct($campaignId = NULL, $campaignChangeStatus = NULL, $changedAdGroups = NULL, $addedCampaignCriteria = NULL, $deletedCampaignCriteria = NULL, $addedAdExtensions = NULL, $deletedAdExtensions = NULL, $changedFeeds = NULL, $deletedFeeds = NULL, $campaignTargetingChanged = NULL) { + $this->campaignId = $campaignId; + $this->campaignChangeStatus = $campaignChangeStatus; + $this->changedAdGroups = $changedAdGroups; + $this->addedCampaignCriteria = $addedCampaignCriteria; + $this->deletedCampaignCriteria = $deletedCampaignCriteria; + $this->addedAdExtensions = $addedAdExtensions; + $this->deletedAdExtensions = $deletedAdExtensions; + $this->changedFeeds = $changedFeeds; + $this->deletedFeeds = $deletedFeeds; + $this->campaignTargetingChanged = $campaignTargetingChanged; + } +}} + +if (!class_exists("CustomerSyncError", FALSE)) { +/** + * Represents CustomerSyncService specific errors + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CustomerSyncError extends ApiError { + /** + * @access public + * @var tnsCustomerSyncErrorReason + */ + public $reason; + + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomerSyncError"; + } + + public function __construct($reason = NULL, $campaignId = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->campaignId = $campaignId; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("FeedChangeData", FALSE)) { +/** + * Holds information about a changed feed and any feeds items within the feed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedChangeData { + /** + * @access public + * @var integer + */ + public $feedId; + + /** + * @access public + * @var tnsChangeStatus + */ + public $feedChangeStatus; + + /** + * @access public + * @var integer[] + */ + public $changedFeedItems; + + /** + * @access public + * @var integer[] + */ + public $deletedFeedItems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedChangeData"; + } + + public function __construct($feedId = NULL, $feedChangeStatus = NULL, $changedFeedItems = NULL, $deletedFeedItems = NULL) { + $this->feedId = $feedId; + $this->feedChangeStatus = $feedChangeStatus; + $this->changedFeedItems = $changedFeedItems; + $this->deletedFeedItems = $deletedFeedItems; + } +}} + +if (!class_exists("CustomerChangeData", FALSE)) { +/** + * Holds information about changes to a customer + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CustomerChangeData { + /** + * @access public + * @var CampaignChangeData[] + */ + public $changedCampaigns; + + /** + * @access public + * @var FeedChangeData[] + */ + public $changedFeeds; + + /** + * @access public + * @var string + */ + public $lastChangeTimestamp; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomerChangeData"; + } + + public function __construct($changedCampaigns = NULL, $changedFeeds = NULL, $lastChangeTimestamp = NULL) { + $this->changedCampaigns = $changedCampaigns; + $this->changedFeeds = $changedFeeds; + $this->lastChangeTimestamp = $lastChangeTimestamp; + } +}} + +if (!class_exists("CustomerSyncSelector", FALSE)) { +/** + * A filter for selecting change history data for a customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CustomerSyncSelector { + /** + * @access public + * @var DateTimeRange + */ + public $dateTimeRange; + + /** + * @access public + * @var integer[] + */ + public $campaignIds; + + /** + * @access public + * @var integer[] + */ + public $feedIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomerSyncSelector"; + } + + public function __construct($dateTimeRange = NULL, $campaignIds = NULL, $feedIds = NULL) { + $this->dateTimeRange = $dateTimeRange; + $this->campaignIds = $campaignIds; + $this->feedIds = $feedIds; + } +}} + +if (!class_exists("ChangeStatus", FALSE)) { +/** + * An enum used to classify the types of changes that have been made to + * an adgroup/campaign during a specified date range. This only refers + * to the field of the entity itself, and not its children. + * + * For example, if an AdGroup name changed, this status would be FIELDS_CHANGED, + * but if only bids on keywords belonging an AdGroup were changed this + * status would be FIELDS_UNCHANGED. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ChangeStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ChangeStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomerSyncErrorReason", FALSE)) { +/** + * The request attempted to access a campaign that either does not + * exist or belongs to a different account. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CustomerSyncErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomerSyncError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomerSyncServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns information about changed entities inside a customer's account. + * + * @param selector Specifies the filter for selecting changehistory events for a customer. + * @return A Customer->Campaign->AdGroup hierarchy containing information about the objects + * changed at each level. All Campaigns that are requested in the selector will be returned, + * regardless of whether or not they have changed, but unchanged AdGroups will be ignored. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CustomerSyncServiceGet { + /** + * @access public + * @var CustomerSyncSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("CustomerSyncServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CustomerSyncServiceGetResponse { + /** + * @access public + * @var CustomerChangeData + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("CustomerSyncService", FALSE)) { +/** + * CustomerSyncService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class CustomerSyncService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "CustomerSyncServiceGetResponse", + "get" => "CustomerSyncServiceGet", + "mutate" => "CustomerSyncServiceMutate", + "mutateResponse" => "CustomerSyncServiceMutateResponse", + "mutateCallToAction" => "CustomerSyncServiceMutateCallToAction", + "search" => "CustomerSyncServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DateError" => "DateError", + "DateTimeRange" => "DateTimeRange", + "DistinctError" => "DistinctError", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "AdGroupChangeData" => "AdGroupChangeData", + "CampaignChangeData" => "CampaignChangeData", + "CustomerSyncError" => "CustomerSyncError", + "FeedChangeData" => "FeedChangeData", + "CustomerChangeData" => "CustomerChangeData", + "CustomerSyncSelector" => "CustomerSyncSelector", + "ChangeStatus" => "ChangeStatus", + "CustomerSyncError.Reason" => "CustomerSyncErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/ch/v201309/CustomerSyncService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CustomerSyncService::$classmap; + parent::__construct($wsdl, $options, $user, 'CustomerSyncService', 'https://adwords.google.com/api/adwords/ch/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns information about changed entities inside a customer's account. + * + * @param selector Specifies the filter for selecting changehistory events for a customer. + * @return A Customer->Campaign->AdGroup hierarchy containing information about the objects + * changed at each level. All Campaigns that are requested in the selector will be returned, + * regardless of whether or not they have changed, but unchanged AdGroups will be ignored. + */ + public function get($selector) { + $arg = new CustomerSyncServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/DataService.php b/src/Google/Api/Ads/AdWords/v201309/DataService.php new file mode 100755 index 000000000..e020a928a --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/DataService.php @@ -0,0 +1,3276 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BidLandscapeLandscapePoint", FALSE)) { +/** + * A set of estimates for a criterion's performance for a specific bid + * amount. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BidLandscapeLandscapePoint { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var integer + */ + public $clicks; + + /** + * @access public + * @var Money + */ + public $cost; + + /** + * @access public + * @var Money + */ + public $marginalCpc; + + /** + * @access public + * @var integer + */ + public $impressions; + + /** + * @access public + * @var integer + */ + public $promotedImpressions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidLandscape.LandscapePoint"; + } + + public function __construct($bid = NULL, $clicks = NULL, $cost = NULL, $marginalCpc = NULL, $impressions = NULL, $promotedImpressions = NULL) { + $this->bid = $bid; + $this->clicks = $clicks; + $this->cost = $cost; + $this->marginalCpc = $marginalCpc; + $this->impressions = $impressions; + $this->promotedImpressions = $promotedImpressions; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("DataEntry", FALSE)) { +/** + * The base class of all return types of the table service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DataEntry { + /** + * @access public + * @var string + */ + public $DataEntryType; + + private $_parameterMap = array ( + "DataEntry.Type" => "DataEntryType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DataEntry"; + } + + public function __construct($DataEntryType = NULL) { + $this->DataEntryType = $DataEntryType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupBidLandscapeType", FALSE)) { +/** + * Used to specify the type of {@code AdGroupLandscape} + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupBidLandscapeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidLandscape.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DataErrorReason", FALSE)) { +/** + * Reasons for error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DataErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DataError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getAdGroupBidLandscape", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of bid landscapes for the ad groups specified in the selector. + * + * @param serviceSelector Selects the entities to return bid landscapes for. + * @return A list of bid landscapes. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getAdGroupBidLandscape { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("getAdGroupBidLandscapeResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getAdGroupBidLandscapeResponse { + /** + * @access public + * @var AdGroupBidLandscapePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCriterionBidLandscape", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of bid landscapes for the criteria specified in the selector. + * + * @param serviceSelector Selects the entities to return bid landscapes for. + * @return A list of bid landscapes. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getCriterionBidLandscape { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("getCriterionBidLandscapeResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getCriterionBidLandscapeResponse { + /** + * @access public + * @var CriterionBidLandscapePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * Indicates that a field was rejected due to compatibility issues. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DataError", FALSE)) { +/** + * Represents errors thrown by the get operation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DataError extends ApiError { + /** + * @access public + * @var tnsDataErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DataError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BidLandscape", FALSE)) { +/** + * Represents data about a bid landscape for an ad group or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BidLandscape extends DataEntry { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var string + */ + public $startDate; + + /** + * @access public + * @var string + */ + public $endDate; + + /** + * @access public + * @var BidLandscapeLandscapePoint[] + */ + public $landscapePoints; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidLandscape"; + } + + public function __construct($campaignId = NULL, $adGroupId = NULL, $startDate = NULL, $endDate = NULL, $landscapePoints = NULL, $DataEntryType = NULL) { + parent::__construct(); + $this->campaignId = $campaignId; + $this->adGroupId = $adGroupId; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->landscapePoints = $landscapePoints; + $this->DataEntryType = $DataEntryType; + } +}} + +if (!class_exists("NoStatsPage", FALSE)) { +/** + * Base class for Get results for a page of entities that do not use statistics. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NoStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NoStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupBidLandscape", FALSE)) { +/** + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupBidLandscape extends BidLandscape { + /** + * @access public + * @var tnsAdGroupBidLandscapeType + */ + public $type; + + /** + * @access public + * @var boolean + */ + public $landscapeCurrent; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidLandscape"; + } + + public function __construct($type = NULL, $landscapeCurrent = NULL, $campaignId = NULL, $adGroupId = NULL, $startDate = NULL, $endDate = NULL, $landscapePoints = NULL, $DataEntryType = NULL) { + parent::__construct(); + $this->type = $type; + $this->landscapeCurrent = $landscapeCurrent; + $this->campaignId = $campaignId; + $this->adGroupId = $adGroupId; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->landscapePoints = $landscapePoints; + $this->DataEntryType = $DataEntryType; + } +}} + +if (!class_exists("CriterionBidLandscape", FALSE)) { +/** + * The bid landscape for a criterion. A bid landscape estimates how a + * a criterion will perform based on different bid amounts. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionBidLandscape extends BidLandscape { + /** + * @access public + * @var integer + */ + public $criterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionBidLandscape"; + } + + public function __construct($criterionId = NULL, $campaignId = NULL, $adGroupId = NULL, $startDate = NULL, $endDate = NULL, $landscapePoints = NULL, $DataEntryType = NULL) { + parent::__construct(); + $this->criterionId = $criterionId; + $this->campaignId = $campaignId; + $this->adGroupId = $adGroupId; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->landscapePoints = $landscapePoints; + $this->DataEntryType = $DataEntryType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("AdGroupBidLandscapePage", FALSE)) { +/** + * Contains a subset of {@link AdGroupBidLandscape} objects resulting from the + * filtering and paging of + * {@link com.google.ads.api.services.campaignmgmt.data.DataService#getAdGroupBidLandscape} + * call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupBidLandscapePage extends NoStatsPage { + /** + * @access public + * @var AdGroupBidLandscape[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidLandscapePage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("CriterionBidLandscapePage", FALSE)) { +/** + * Contains a subset of {@link CriterionBidLandscapePage} objects resulting from the + * filtering and paging of + * {@link com.google.ads.api.services.campaignmgmt.data.DataService#getCriterionBidLandscape} + * call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionBidLandscapePage extends NoStatsPage { + /** + * @access public + * @var CriterionBidLandscape[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionBidLandscapePage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("DataService", FALSE)) { +/** + * DataService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class DataService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "DataServiceGetResponse", + "get" => "DataServiceGet", + "mutate" => "DataServiceMutate", + "mutateResponse" => "DataServiceMutateResponse", + "mutateCallToAction" => "DataServiceMutateCallToAction", + "search" => "DataServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdGroupBidLandscape" => "AdGroupBidLandscape", + "BidLandscape" => "BidLandscape", + "AdxError" => "AdxError", + "ApiError" => "ApiError", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "ClientTermsError" => "ClientTermsError", + "CriterionBidLandscape" => "CriterionBidLandscape", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "LongValue" => "LongValue", + "Money" => "Money", + "ComparableValue" => "ComparableValue", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DataError" => "DataError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "BidLandscape.LandscapePoint" => "BidLandscapeLandscapePoint", + "Selector" => "Selector", + "DataEntry" => "DataEntry", + "AdGroupBidLandscapePage" => "AdGroupBidLandscapePage", + "NoStatsPage" => "NoStatsPage", + "CriterionBidLandscapePage" => "CriterionBidLandscapePage", + "Page" => "Page", + "AdGroupBidLandscape.Type" => "AdGroupBidLandscapeType", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + "DataError.Reason" => "DataErrorReason", + "getAdGroupBidLandscape" => "getAdGroupBidLandscape", + "getAdGroupBidLandscapeResponse" => "getAdGroupBidLandscapeResponse", + "getCriterionBidLandscape" => "getCriterionBidLandscape", + "getCriterionBidLandscapeResponse" => "getCriterionBidLandscapeResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/DataService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = DataService::$classmap; + parent::__construct($wsdl, $options, $user, 'DataService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of bid landscapes for the ad groups specified in the selector. + * + * @param serviceSelector Selects the entities to return bid landscapes for. + * @return A list of bid landscapes. + * @throws ApiException when there is at least one error with the request. + */ + public function getAdGroupBidLandscape($serviceSelector) { + $arg = new getAdGroupBidLandscape($serviceSelector); + $result = $this->__soapCall("getAdGroupBidLandscape", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of bid landscapes for the criteria specified in the selector. + * + * @param serviceSelector Selects the entities to return bid landscapes for. + * @return A list of bid landscapes. + * @throws ApiException when there is at least one error with the request. + */ + public function getCriterionBidLandscape($serviceSelector) { + $arg = new getCriterionBidLandscape($serviceSelector); + $result = $this->__soapCall("getCriterionBidLandscape", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/ExperimentService.php b/src/Google/Api/Ads/AdWords/v201309/ExperimentService.php new file mode 100755 index 000000000..76753c87c --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/ExperimentService.php @@ -0,0 +1,3488 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("ExperimentSummaryStats", FALSE)) { +/** + * Contains how many changes were made associated with an experiment at + * the adgroup, critieria and creative levels + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentSummaryStats { + /** + * @access public + * @var integer + */ + public $adGroupsCount; + + /** + * @access public + * @var integer + */ + public $adGroupCriteriaCount; + + /** + * @access public + * @var integer + */ + public $adGroupAdsCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentSummaryStats"; + } + + public function __construct($adGroupsCount = NULL, $adGroupCriteriaCount = NULL, $adGroupAdsCount = NULL) { + $this->adGroupsCount = $adGroupsCount; + $this->adGroupCriteriaCount = $adGroupCriteriaCount; + $this->adGroupAdsCount = $adGroupAdsCount; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Experiment", FALSE)) { +/** + * Class representing a experiment for the ExperimentService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Experiment { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $controlId; + + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsExperimentStatus + */ + public $status; + + /** + * @access public + * @var tnsExperimentServingStatus + */ + public $servingStatus; + + /** + * @access public + * @var integer + */ + public $queryPercentage; + + /** + * @access public + * @var string + */ + public $startDateTime; + + /** + * @access public + * @var string + */ + public $endDateTime; + + /** + * @access public + * @var string + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var ExperimentSummaryStats + */ + public $experimentSummaryStats; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Experiment"; + } + + public function __construct($id = NULL, $controlId = NULL, $campaignId = NULL, $name = NULL, $status = NULL, $servingStatus = NULL, $queryPercentage = NULL, $startDateTime = NULL, $endDateTime = NULL, $lastModifiedDateTime = NULL, $experimentSummaryStats = NULL) { + $this->id = $id; + $this->controlId = $controlId; + $this->campaignId = $campaignId; + $this->name = $name; + $this->status = $status; + $this->servingStatus = $servingStatus; + $this->queryPercentage = $queryPercentage; + $this->startDateTime = $startDateTime; + $this->endDateTime = $endDateTime; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->experimentSummaryStats = $experimentSummaryStats; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetErrorReason", FALSE)) { +/** + * The reasons for the budget error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentServiceErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentServiceErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentServiceError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentServingStatus", FALSE)) { +/** + * Experiment is currently active and receiving traffic + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentServingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentServingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentStatus", FALSE)) { +/** + * Experiment status. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The reasons for the quota error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of experiments specified by the experiment selector from + * the customer's account. + * @param serviceSelector The selector specifying the {@link Experiment}s to return. + * If selector is empty, all experiments are returned. + * @return List of experiments meeting all the criteria of each selector. + * @throws ApiException if problems occurred while fetching experiment information. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("ExperimentServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentServiceGetResponse { + /** + * @access public + * @var ExperimentPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ExperimentServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET. + * + * + * + * Mutates (add, update or remove) experiments. + * Note: To REMOVE use SET and mark status to DELETED. + * @param operations A list of unique operations. + * The same experiment cannot be specified in more than one operation. + * @return The updated experiments. The list of experiments is returned in + * the same order in which it came in as input. + * @throws ApiException if problems occurred while updating experiment information. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentServiceMutate { + /** + * @access public + * @var ExperimentOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("ExperimentServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentServiceMutateResponse { + /** + * @access public + * @var ExperimentReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BudgetError", FALSE)) { +/** + * A list of all the error codes being used by the common budget domain package. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetError extends ApiError { + /** + * @access public + * @var tnsBudgetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ExperimentServiceError", FALSE)) { +/** + * Base error class for Experiment Service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentServiceError extends ApiError { + /** + * @access public + * @var tnsExperimentServiceErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentServiceError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * Errors that are thrown if a quota limit is exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + public function __construct($reason = NULL, $limit = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->limit = $limit; + $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * Indicates that a field was rejected due to compatibility issues. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ExperimentOperation", FALSE)) { +/** + * Operation for adding, updating or removing operations. For removing, + * use SET and mark status as DELETED. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentOperation extends Operation { + /** + * @access public + * @var Experiment + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("ExperimentReturnValue", FALSE)) { +/** + * A container for return values from the ExperimentService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentReturnValue extends ListReturnValue { + /** + * @access public + * @var Experiment[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ExperimentPage", FALSE)) { +/** + * Contains a subset of experiment resulting from the filtering and paging of the + * {@link com.google.ads.api.services.campaignmgmt.campaign.ExperimentService#get} call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentPage extends Page { + /** + * @access public + * @var Experiment[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("ExperimentService", FALSE)) { +/** + * ExperimentService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class ExperimentService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "ExperimentServiceGetResponse", + "get" => "ExperimentServiceGet", + "mutate" => "ExperimentServiceMutate", + "mutateResponse" => "ExperimentServiceMutateResponse", + "mutateCallToAction" => "ExperimentServiceMutateCallToAction", + "search" => "ExperimentServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdxError" => "AdxError", + "ApiError" => "ApiError", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BudgetError" => "BudgetError", + "ClientTermsError" => "ClientTermsError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityNotFound" => "EntityNotFound", + "ExperimentServiceError" => "ExperimentServiceError", + "ExperimentSummaryStats" => "ExperimentSummaryStats", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "Experiment" => "Experiment", + "ExperimentOperation" => "ExperimentOperation", + "Operation" => "Operation", + "ExperimentReturnValue" => "ExperimentReturnValue", + "ListReturnValue" => "ListReturnValue", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ExperimentPage" => "ExperimentPage", + "Page" => "Page", + "Selector" => "Selector", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BudgetError.Reason" => "BudgetErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "ExperimentServiceError.Reason" => "ExperimentServiceErrorReason", + "ExperimentServingStatus" => "ExperimentServingStatus", + "ExperimentStatus" => "ExperimentStatus", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/ExperimentService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ExperimentService::$classmap; + parent::__construct($wsdl, $options, $user, 'ExperimentService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of experiments specified by the experiment selector from + * the customer's account. + * @param serviceSelector The selector specifying the {@link Experiment}s to return. + * If selector is empty, all experiments are returned. + * @return List of experiments meeting all the criteria of each selector. + * @throws ApiException if problems occurred while fetching experiment information. + */ + public function get($serviceSelector) { + $arg = new ExperimentServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET. + * + * + * + * Mutates (add, update or remove) experiments. + * Note: To REMOVE use SET and mark status to DELETED. + * @param operations A list of unique operations. + * The same experiment cannot be specified in more than one operation. + * @return The updated experiments. The list of experiments is returned in + * the same order in which it came in as input. + * @throws ApiException if problems occurred while updating experiment information. + */ + public function mutate($operations) { + $arg = new ExperimentServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/ExpressBusinessService.php b/src/Google/Api/Ads/AdWords/v201309/ExpressBusinessService.php new file mode 100755 index 000000000..2c5b62291 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/ExpressBusinessService.php @@ -0,0 +1,3432 @@ +streetAddress = $streetAddress; + $this->streetAddress2 = $streetAddress2; + $this->cityName = $cityName; + $this->provinceCode = $provinceCode; + $this->provinceName = $provinceName; + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DateRange", FALSE)) { +/** + * Represents a range of dates that has either an upper or a lower bound. + * The format for the date is YYYYMMDD. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateRange { + /** + * @access public + * @var Date + */ + public $min; + + /** + * @access public + * @var Date + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("GeoPoint", FALSE)) { +/** + * Specifies a geo location with the supplied latitude/longitude. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoPoint { + /** + * @access public + * @var integer + */ + public $latitudeInMicroDegrees; + + /** + * @access public + * @var integer + */ + public $longitudeInMicroDegrees; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoPoint"; + } + + public function __construct($latitudeInMicroDegrees = NULL, $longitudeInMicroDegrees = NULL) { + $this->latitudeInMicroDegrees = $latitudeInMicroDegrees; + $this->longitudeInMicroDegrees = $longitudeInMicroDegrees; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +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.

    + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExpressBusinessError", FALSE)) { +/** + * Express business related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExpressBusinessError extends ApiError { + /** + * @access public + * @var tnsExpressBusinessErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExpressBusinessError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PhoneNumber", FALSE)) { +/** + * Phone number which contains the phone number string plus the region that the number is to be + * from. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PhoneNumber { + /** + * @access public + * @var tnsRegionCode + */ + public $regionCode; + + /** + * @access public + * @var string + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PhoneNumber"; + } + + public function __construct($regionCode = NULL, $number = NULL) { + $this->regionCode = $regionCode; + $this->number = $number; + } +}} + +if (!class_exists("ExpressBusiness", FALSE)) { +/** + * Information about an AdWords Express business. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExpressBusiness { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsExpressBusinessStatus + */ + public $status; + + /** + * @access public + * @var Address + */ + public $address; + + /** + * @access public + * @var GeoPoint + */ + public $geoPoint; + + /** + * @access public + * @var PhoneNumber + */ + public $phoneNumber; + + /** + * @access public + * @var string + */ + public $website; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExpressBusiness"; + } + + public function __construct($id = NULL, $name = NULL, $status = NULL, $address = NULL, $geoPoint = NULL, $phoneNumber = NULL, $website = NULL) { + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->address = $address; + $this->geoPoint = $geoPoint; + $this->phoneNumber = $phoneNumber; + $this->website = $website; + } +}} + +if (!class_exists("ExpressBusinessOperation", FALSE)) { +/** + * A typed {@link Operation} class that uses an instance of {@link ExpressBusiness} as its operand. + * + *

    Note: The REMOVE operator is not + * supported. To remove an {@link ExpressBusiness}, set its {@link ExpressBusiness#status status} + * to DELETED.

    + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExpressBusinessOperation extends Operation { + /** + * @access public + * @var ExpressBusiness + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExpressBusinessOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("NoStatsPage", FALSE)) { +/** + * Base class for Get results for a page of entities that do not use statistics. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NoStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NoStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("ExpressBusinessStatus", FALSE)) { +/** + * Possible statusus of this business. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExpressBusinessStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExpressBusiness.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExpressBusinessErrorReason", FALSE)) { +/** + * Reason behind the {@code BusinessError}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExpressBusinessErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExpressBusinessError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegionCode", FALSE)) { +/** + * A region (country, territory, continent, etc), as defined by Unicode's + * "CLDR", itself based on ISO 3166 (UN country codes). + * + *

    See: + * + * http://unicode.org/cldr/charts/supplemental/territory_containment_un_m_49.html + * + *

    It contains no behavior, but is the authoritative definition of Region + * identity in java Google code. + * + *

    Do: + *

      + *
    • use it everywhere you need to compare regions
    • + *
    • use it in all APIs that take/return a region (such as a country), + * particularly all public APIs
    • + *
    • get the instance corresponding to an CLDR code using {@link #forString} + *
    • + *
    • get the String CLDR code with {@link #toString}
    • + *
    • use the String CLDR code in your DB as a key to currencies
    • + *
    • if your API supports only a subset of these codes, make sure to + * validate (e.g. by creating an EnumSet and using Precondition) + *
    • put your project-specific region-related information in a class under + * your project root, using an EnumMap or BiMap to map these Regions to your + * objects. + *
    • + *
    + * + * Do not: + *
      + *
    • depend on the ordinal of a region, for example using {@link #ordinal()} + * or depending on the index of a particular region in the {@link #values} + * array. + *
    • depend on the comparison order of regions, via + * {@link Enum#compareTo(Enum)}), or via the iteration order of an + * EnumSet, etc. + *
    • use {@link #valueOf} or {@link #name()}. The CLDR numeric codes aren't + * valid for java, so they were prepended by "UN" (as in "UN001" for the + * CLDR code "001"). + *
    • assume that these are the same as the two-letter ISO codes. Oftentimes + * they will be, but CLDR guarantees stability, so ISO codes that change + * will be different from the entries in this enum. + *
    + * + * This enum does not: + *
      + *
    • have i18n features
    • + *
    • have application-specific data
    • + *
    + * + * These concerns will be addressed by other classes, some in + * application-specific packages, others in common.base.i18n. The latter ones + * will be listed with "see" tags in this class. + * This class does not supply methods for getting information about regions. + * For those methods, see {@link RegionInfo}. + * + *

    Note that not all regions have a "two-letter" country code. Instead, some + * have a three digit number -- the UN M.49 (United Nations) area code. + * These are the enum items prepended with "UN". See: + * + *

      + *
    • http://unstats.un.org/unsd/methods/m49/m49alpha.htm + *
    • http://unstats.un.org/unsd/methods/m49/m49.htm + *
    + * + *

    Also note that CLDR -- contrary to ISO -- guarantees non-reuse of + * country codes. Thus, though most times CLDR codes are the same as the ISO + * codes, sometimes they are not. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RegionCode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCode"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExpressBusinessServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Retrieves the Express businesses that meet the criteria set in the given selector. + * + * @param selector the selector specifying the AdWords Express businesses to return + * @return list of AdWords Express businesses identified by the selector + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExpressBusinessServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("ExpressBusinessServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExpressBusinessServiceGetResponse { + /** + * @access public + * @var ExpressBusinessPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ExpressBusinessServiceMutate", FALSE)) { +/** + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET. + * + * + * + * Performs the given {@link ExpressBusinessOperation}. + * + * @param operations list of unique operations; the same AdWords Express business cannot be + * specified in more than one operation + * @return the updated AdWords Express businesses + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExpressBusinessServiceMutate { + /** + * @access public + * @var ExpressBusinessOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("ExpressBusinessServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExpressBusinessServiceMutateResponse { + /** + * @access public + * @var ExpressBusiness[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * Indicates that a field was rejected due to compatibility issues. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ExpressBusinessPage", FALSE)) { +/** + * Contains a page of {@link ExpressBusiness}es with no stats. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExpressBusinessPage extends NoStatsPage { + /** + * @access public + * @var ExpressBusiness[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExpressBusinessPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("ExpressBusinessService", FALSE)) { +/** + * ExpressBusinessService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class ExpressBusinessService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "ExpressBusinessServiceGetResponse", + "get" => "ExpressBusinessServiceGet", + "mutate" => "ExpressBusinessServiceMutate", + "mutateResponse" => "ExpressBusinessServiceMutateResponse", + "mutateCallToAction" => "ExpressBusinessServiceMutateCallToAction", + "search" => "ExpressBusinessServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "Address" => "Address", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "Date" => "Date", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "GeoPoint" => "GeoPoint", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Selector" => "Selector", + "Operation" => "Operation", + "Page" => "Page", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + "ExpressBusinessError" => "ExpressBusinessError", + "PhoneNumber" => "PhoneNumber", + "ExpressBusiness" => "ExpressBusiness", + "ExpressBusinessOperation" => "ExpressBusinessOperation", + "ExpressBusinessPage" => "ExpressBusinessPage", + "NoStatsPage" => "NoStatsPage", + "ExpressBusiness.Status" => "ExpressBusinessStatus", + "ExpressBusinessError.Reason" => "ExpressBusinessErrorReason", + "RegionCode" => "RegionCode", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/express/v201309/ExpressBusinessService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ExpressBusinessService::$classmap; + parent::__construct($wsdl, $options, $user, 'ExpressBusinessService', 'https://adwords.google.com/api/adwords/express/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Retrieves the Express businesses that meet the criteria set in the given selector. + * + * @param selector the selector specifying the AdWords Express businesses to return + * @return list of AdWords Express businesses identified by the selector + */ + public function get($selector) { + $arg = new ExpressBusinessServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET. + * + * + * + * Performs the given {@link ExpressBusinessOperation}. + * + * @param operations list of unique operations; the same AdWords Express business cannot be + * specified in more than one operation + * @return the updated AdWords Express businesses + */ + public function mutate($operations) { + $arg = new ExpressBusinessServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/FeedItemService.php b/src/Google/Api/Ads/AdWords/v201309/FeedItemService.php new file mode 100755 index 000000000..94160d1ab --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/FeedItemService.php @@ -0,0 +1,3587 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("FeedItemAttributeError", FALSE)) { +/** + * Contains validation error details for a set of feed attributes. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemAttributeError { + /** + * @access public + * @var integer[] + */ + public $feedAttributeIds; + + /** + * @access public + * @var integer + */ + public $validationErrorCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemAttributeError"; + } + + public function __construct($feedAttributeIds = NULL, $validationErrorCode = NULL) { + $this->feedAttributeIds = $feedAttributeIds; + $this->validationErrorCode = $validationErrorCode; + } +}} + +if (!class_exists("FeedItemAttributeValue", FALSE)) { +/** + * Represents a feed item's value for a particular feed attribute. A feed item's value is + * composed of a collection of these attribute values. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemAttributeValue { + /** + * @access public + * @var integer + */ + public $feedAttributeId; + + /** + * @access public + * @var integer + */ + public $integerValue; + + /** + * @access public + * @var double + */ + public $doubleValue; + + /** + * @access public + * @var boolean + */ + public $booleanValue; + + /** + * @access public + * @var string + */ + public $stringValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemAttributeValue"; + } + + public function __construct($feedAttributeId = NULL, $integerValue = NULL, $doubleValue = NULL, $booleanValue = NULL, $stringValue = NULL) { + $this->feedAttributeId = $feedAttributeId; + $this->integerValue = $integerValue; + $this->doubleValue = $doubleValue; + $this->booleanValue = $booleanValue; + $this->stringValue = $stringValue; + } +}} + +if (!class_exists("FeedItemDevicePreference", FALSE)) { +/** + * Represents a FeedItem device preference. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemDevicePreference { + /** + * @access public + * @var integer + */ + public $devicePreference; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemDevicePreference"; + } + + public function __construct($devicePreference = NULL) { + $this->devicePreference = $devicePreference; + } +}} + +if (!class_exists("FeedItemSchedule", FALSE)) { +/** + * Represents a FeedItem schedule, which specifies a time interval on a given day + * when the feed item may serve. The FeedItemSchedule times are in the account's time zone. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemSchedule { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var integer + */ + public $startHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $startMinute; + + /** + * @access public + * @var integer + */ + public $endHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $endMinute; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemSchedule"; + } + + public function __construct($dayOfWeek = NULL, $startHour = NULL, $startMinute = NULL, $endHour = NULL, $endMinute = NULL) { + $this->dayOfWeek = $dayOfWeek; + $this->startHour = $startHour; + $this->startMinute = $startMinute; + $this->endHour = $endHour; + $this->endMinute = $endMinute; + } +}} + +if (!class_exists("FeedItemScheduling", FALSE)) { +/** + * Represents a collection of FeedItem schedules specifying all time intervals for which + * the feed item may serve. Any time range not covered by the specified FeedItemSchedules will + * prevent the feed item from serving during those times. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemScheduling { + /** + * @access public + * @var FeedItemSchedule[] + */ + public $feedItemSchedules; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemScheduling"; + } + + public function __construct($feedItemSchedules = NULL) { + $this->feedItemSchedules = $feedItemSchedules; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("FeedItemValidationDetail", FALSE)) { +/** + * Contains offline-validation and approval results for a given FeedItem and FeedMapping. Each + * validation detail indicates any issues found on the feed item when used in the context + * of the feed mapping. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemValidationDetail { + /** + * @access public + * @var integer + */ + public $feedMappingId; + + /** + * @access public + * @var tnsFeedItemValidationDetailValidationStatus + */ + public $validationStatus; + + /** + * @access public + * @var FeedItemAttributeError[] + */ + public $validationErrors; + + /** + * @access public + * @var tnsFeedItemValidationDetailApprovalStatus + */ + public $approvalStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemValidationDetail"; + } + + public function __construct($feedMappingId = NULL, $validationStatus = NULL, $validationErrors = NULL, $approvalStatus = NULL) { + $this->feedMappingId = $feedMappingId; + $this->validationStatus = $validationStatus; + $this->validationErrors = $validationErrors; + $this->approvalStatus = $approvalStatus; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("FeedItem", FALSE)) { +/** + * Represents an item in a feed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItem { + /** + * @access public + * @var integer + */ + public $feedId; + + /** + * @access public + * @var integer + */ + public $feedItemId; + + /** + * @access public + * @var tnsFeedItemStatus + */ + public $status; + + /** + * @access public + * @var string + */ + public $startTime; + + /** + * @access public + * @var string + */ + public $endTime; + + /** + * @access public + * @var FeedItemAttributeValue[] + */ + public $attributeValues; + + /** + * @access public + * @var FeedItemValidationDetail[] + */ + public $validationDetails; + + /** + * @access public + * @var FeedItemDevicePreference + */ + public $devicePreference; + + /** + * @access public + * @var FeedItemScheduling + */ + public $scheduling; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItem"; + } + + public function __construct($feedId = NULL, $feedItemId = NULL, $status = NULL, $startTime = NULL, $endTime = NULL, $attributeValues = NULL, $validationDetails = NULL, $devicePreference = NULL, $scheduling = NULL) { + $this->feedId = $feedId; + $this->feedItemId = $feedItemId; + $this->status = $status; + $this->startTime = $startTime; + $this->endTime = $endTime; + $this->attributeValues = $attributeValues; + $this->validationDetails = $validationDetails; + $this->devicePreference = $devicePreference; + $this->scheduling = $scheduling; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayOfWeek", FALSE)) { +/** + * Days of the week. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DayOfWeek { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayOfWeek"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemStatus", FALSE)) { +/** + * Feed item is active + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItem.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemErrorReason", FALSE)) { +/** + * The reasons for the error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemValidationDetailApprovalStatus", FALSE)) { +/** + * Feed item approval status. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemValidationDetailApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemValidationDetail.ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemValidationDetailValidationStatus", FALSE)) { +/** + * Feed item validation status. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemValidationDetailValidationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemValidationDetail.ValidationStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MinuteOfHour", FALSE)) { +/** + * Minutes in an hour. Currently only 0, 15, 30, and 45 are supported + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MinuteOfHour { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MinuteOfHour"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of FeedItems that meet the selector criteria. + * + * @param selector Determines which FeedItems to return. If empty all + * FeedItems are returned. + * @return The list of FeedItems. + * @throws ApiException Indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("FeedItemServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemServiceGetResponse { + /** + * @access public + * @var FeedItemPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("FeedItemServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Add, remove, and set FeedItems. + * + * @param operations The operations to apply. + * @return The resulting FeedItems. + * @throws ApiException Indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemServiceMutate { + /** + * @access public + * @var FeedItemOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("FeedItemServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemServiceMutateResponse { + /** + * @access public + * @var FeedItemReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("FeedItemError", FALSE)) { +/** + * FeedItemService related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemError extends ApiError { + /** + * @access public + * @var tnsFeedItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("FeedItemOperation", FALSE)) { +/** + * FeedItem service mutate operation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemOperation extends Operation { + /** + * @access public + * @var FeedItem + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("FeedItemReturnValue", FALSE)) { +/** + * A container for return values from FeedItemService.mutate(). + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemReturnValue extends ListReturnValue { + /** + * @access public + * @var FeedItem[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("NullStatsPage", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("FeedItemPage", FALSE)) { +/** + * Contains a subset of feed items resulting from a {@link FeedItemService#get} call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemPage extends NullStatsPage { + /** + * @access public + * @var FeedItem[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("FeedItemService", FALSE)) { +/** + * FeedItemService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class FeedItemService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "FeedItemServiceGetResponse", + "get" => "FeedItemServiceGet", + "mutate" => "FeedItemServiceMutate", + "mutateResponse" => "FeedItemServiceMutateResponse", + "mutateCallToAction" => "FeedItemServiceMutateCallToAction", + "search" => "FeedItemServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "ClientTermsError" => "ClientTermsError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "FeedItemAttributeError" => "FeedItemAttributeError", + "FeedItemAttributeValue" => "FeedItemAttributeValue", + "FeedItemDevicePreference" => "FeedItemDevicePreference", + "FeedItemError" => "FeedItemError", + "FeedItemSchedule" => "FeedItemSchedule", + "FeedItemScheduling" => "FeedItemScheduling", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "FeedItemValidationDetail" => "FeedItemValidationDetail", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "FeedItem" => "FeedItem", + "FeedItemOperation" => "FeedItemOperation", + "Operation" => "Operation", + "FeedItemPage" => "FeedItemPage", + "NullStatsPage" => "NullStatsPage", + "FeedItemReturnValue" => "FeedItemReturnValue", + "ListReturnValue" => "ListReturnValue", + "Page" => "Page", + "Selector" => "Selector", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DayOfWeek" => "DayOfWeek", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "FeedItem.Status" => "FeedItemStatus", + "FeedItemError.Reason" => "FeedItemErrorReason", + "FeedItemValidationDetail.ApprovalStatus" => "FeedItemValidationDetailApprovalStatus", + "FeedItemValidationDetail.ValidationStatus" => "FeedItemValidationDetailValidationStatus", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "MinuteOfHour" => "MinuteOfHour", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/FeedItemService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = FeedItemService::$classmap; + parent::__construct($wsdl, $options, $user, 'FeedItemService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of FeedItems that meet the selector criteria. + * + * @param selector Determines which FeedItems to return. If empty all + * FeedItems are returned. + * @return The list of FeedItems. + * @throws ApiException Indicates a problem with the request. + */ + public function get($selector) { + $arg = new FeedItemServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Add, remove, and set FeedItems. + * + * @param operations The operations to apply. + * @return The resulting FeedItems. + * @throws ApiException Indicates a problem with the request. + */ + public function mutate($operations) { + $arg = new FeedItemServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/FeedMappingService.php b/src/Google/Api/Ads/AdWords/v201309/FeedMappingService.php new file mode 100755 index 000000000..4d9cd7592 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/FeedMappingService.php @@ -0,0 +1,2963 @@ +For a list of feed placeholders, see + * + * https://developers.google.com/adwords/api/docs/appendix/placeholders + *

    + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AttributeFieldMapping { + /** + * @access public + * @var integer + */ + public $feedAttributeId; + + /** + * @access public + * @var integer + */ + public $fieldId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AttributeFieldMapping"; + } + + public function __construct($feedAttributeId = NULL, $fieldId = NULL) { + $this->feedAttributeId = $feedAttributeId; + $this->fieldId = $fieldId; + } +}} + +if (!class_exists("DateRange", FALSE)) { +/** + * Represents a range of dates that has either an upper or a lower bound. + * The format for the date is YYYYMMDD. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("FeedMapping", FALSE)) { +/** + * A FeedMapping represents a mapping between feed attributes in a specific feed + * and placeholder fields for a specific placeholder type. This will tell the + * ads serving system which parts of the feed item should be used when + * populating a placeholder. Without this mapping the placeholder cannot be + * populated and the extension can not be displayed. + * + *

    For a list of feed placeholders, see + * + * https://developers.google.com/adwords/api/docs/appendix/placeholders + *

    + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedMapping { + /** + * @access public + * @var integer + */ + public $feedMappingId; + + /** + * @access public + * @var integer + */ + public $feedId; + + /** + * @access public + * @var integer + */ + public $placeholderType; + + /** + * @access public + * @var tnsFeedMappingStatus + */ + public $status; + + /** + * @access public + * @var AttributeFieldMapping[] + */ + public $attributeFieldMappings; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedMapping"; + } + + public function __construct($feedMappingId = NULL, $feedId = NULL, $placeholderType = NULL, $status = NULL, $attributeFieldMappings = NULL) { + $this->feedMappingId = $feedMappingId; + $this->feedId = $feedId; + $this->placeholderType = $placeholderType; + $this->status = $status; + $this->attributeFieldMappings = $attributeFieldMappings; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedMappingStatus", FALSE)) { +/** + * This mapping is used in feeds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedMappingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedMapping.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedMappingErrorReason", FALSE)) { +/** + * The given placeholder field does not exist. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedMappingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedMappingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedMappingServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of FeedMappings that meet the selector criteria. + * + * @param selector Determines which FeedMappings to return. If empty all + * FeedMappings are returned. + * @return The list of FeedMappings. + * @throws ApiException indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedMappingServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("FeedMappingServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedMappingServiceGetResponse { + /** + * @access public + * @var FeedMappingPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("FeedMappingServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, REMOVE. + * + * + * + * Add and remove FeedMappings. + * + * @param operations The operations to apply. + * @return The resulting FeedMappings. + * @throws ApiException indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedMappingServiceMutate { + /** + * @access public + * @var FeedMappingOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("FeedMappingServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedMappingServiceMutateResponse { + /** + * @access public + * @var FeedMappingReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("FeedMappingError", FALSE)) { +/** + * Errors caused by invalid usage of FeedMappingService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedMappingError extends ApiError { + /** + * @access public + * @var tnsFeedMappingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedMappingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("FeedMappingOperation", FALSE)) { +/** + * Operation used to create a FeedMapping. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedMappingOperation extends Operation { + /** + * @access public + * @var FeedMapping + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedMappingOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("FeedMappingReturnValue", FALSE)) { +/** + * The result of a call to {@link FeedMappingService#mutate}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedMappingReturnValue extends ListReturnValue { + /** + * @access public + * @var FeedMapping[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedMappingReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NullStatsPage", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("FeedMappingPage", FALSE)) { +/** + * The result of a call to {@link FeedMappingService#get}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedMappingPage extends NullStatsPage { + /** + * @access public + * @var FeedMapping[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedMappingPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("FeedMappingService", FALSE)) { +/** + * FeedMappingService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class FeedMappingService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "FeedMappingServiceGetResponse", + "get" => "FeedMappingServiceGet", + "mutate" => "FeedMappingServiceMutate", + "mutateResponse" => "FeedMappingServiceMutateResponse", + "mutateCallToAction" => "FeedMappingServiceMutateCallToAction", + "search" => "FeedMappingServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AttributeFieldMapping" => "AttributeFieldMapping", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityNotFound" => "EntityNotFound", + "FeedMapping" => "FeedMapping", + "FeedMappingError" => "FeedMappingError", + "FeedMappingOperation" => "FeedMappingOperation", + "Operation" => "Operation", + "FeedMappingPage" => "FeedMappingPage", + "NullStatsPage" => "NullStatsPage", + "FeedMappingReturnValue" => "FeedMappingReturnValue", + "ListReturnValue" => "ListReturnValue", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "Page" => "Page", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Selector" => "Selector", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "FeedMapping.Status" => "FeedMappingStatus", + "FeedMappingError.Reason" => "FeedMappingErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/FeedMappingService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = FeedMappingService::$classmap; + parent::__construct($wsdl, $options, $user, 'FeedMappingService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of FeedMappings that meet the selector criteria. + * + * @param selector Determines which FeedMappings to return. If empty all + * FeedMappings are returned. + * @return The list of FeedMappings. + * @throws ApiException indicates a problem with the request. + */ + public function get($selector) { + $arg = new FeedMappingServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, REMOVE. + * + * + * + * Add and remove FeedMappings. + * + * @param operations The operations to apply. + * @return The resulting FeedMappings. + * @throws ApiException indicates a problem with the request. + */ + public function mutate($operations) { + $arg = new FeedMappingServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/FeedService.php b/src/Google/Api/Ads/AdWords/v201309/FeedService.php new file mode 100755 index 000000000..17684aa2d --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/FeedService.php @@ -0,0 +1,3189 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("FeedAttribute", FALSE)) { +/** + * FeedAttributes define the types of data expected to be present in a Feed. A single FeedAttribute + * specifies the expected type of the FeedItemAttributes with the same FeedAttributeId. Optionally, + * a FeedAttribute can be marked as being part of a FeedItem's unique key. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedAttribute { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsFeedAttributeType + */ + public $type; + + /** + * @access public + * @var boolean + */ + public $isPartOfKey; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedAttribute"; + } + + public function __construct($id = NULL, $name = NULL, $type = NULL, $isPartOfKey = NULL) { + $this->id = $id; + $this->name = $name; + $this->type = $type; + $this->isPartOfKey = $isPartOfKey; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Feed", FALSE)) { +/** + * A Feed identifies a source of data and its schema. The data for the Feed can either be + * user-entered via the FeedItemService or system-generated, in which case the data is provided + * automatically. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Feed { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var FeedAttribute[] + */ + public $attributes; + + /** + * @access public + * @var tnsFeedStatus + */ + public $status; + + /** + * @access public + * @var tnsFeedOrigin + */ + public $origin; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Feed"; + } + + public function __construct($id = NULL, $name = NULL, $attributes = NULL, $status = NULL, $origin = NULL) { + $this->id = $id; + $this->name = $name; + $this->attributes = $attributes; + $this->status = $status; + $this->origin = $origin; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedOrigin", FALSE)) { +/** + * The creator of the {@link Feed}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedOrigin { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Feed.Origin"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedStatus", FALSE)) { +/** + * Status of the Feed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Feed.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedAttributeType", FALSE)) { +/** + * Possible data types. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedAttributeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedAttribute.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedErrorReason", FALSE)) { +/** + * Error reasons. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of Feeds that meet the selector criteria. + * + * @param selector Determines which Feeds to return. If empty all + * Feeds are returned. + * @return The list of Feeds. + * @throws ApiException Indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("FeedServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedServiceGetResponse { + /** + * @access public + * @var FeedPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("FeedServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Add, remove, and set Feeds. + * + * @param operations The operations to apply. + * @return The resulting Feeds. + * @throws ApiException Indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedServiceMutate { + /** + * @access public + * @var FeedOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("FeedServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedServiceMutateResponse { + /** + * @access public + * @var FeedReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("FeedError", FALSE)) { +/** + * An error caused by an invalid Feed in a FeedService request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedError extends ApiError { + /** + * @access public + * @var tnsFeedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("FeedOperation", FALSE)) { +/** + * Operation used to create or mutate a Feed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedOperation extends Operation { + /** + * @access public + * @var Feed + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("FeedReturnValue", FALSE)) { +/** + * The result of a call to FeedService#mutate. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedReturnValue extends ListReturnValue { + /** + * @access public + * @var Feed[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("NullStatsPage", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("FeedPage", FALSE)) { +/** + * The result of a call to FeedService#get. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedPage extends NullStatsPage { + /** + * @access public + * @var Feed[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("FeedService", FALSE)) { +/** + * FeedService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class FeedService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "FeedServiceGetResponse", + "get" => "FeedServiceGet", + "mutate" => "FeedServiceMutate", + "mutateResponse" => "FeedServiceMutateResponse", + "mutateCallToAction" => "FeedServiceMutateCallToAction", + "search" => "FeedServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "FeedAttribute" => "FeedAttribute", + "FeedError" => "FeedError", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Feed" => "Feed", + "FeedOperation" => "FeedOperation", + "Operation" => "Operation", + "FeedPage" => "FeedPage", + "NullStatsPage" => "NullStatsPage", + "FeedReturnValue" => "FeedReturnValue", + "ListReturnValue" => "ListReturnValue", + "Page" => "Page", + "Selector" => "Selector", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "Feed.Origin" => "FeedOrigin", + "Feed.Status" => "FeedStatus", + "FeedAttribute.Type" => "FeedAttributeType", + "FeedError.Reason" => "FeedErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/FeedService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = FeedService::$classmap; + parent::__construct($wsdl, $options, $user, 'FeedService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of Feeds that meet the selector criteria. + * + * @param selector Determines which Feeds to return. If empty all + * Feeds are returned. + * @return The list of Feeds. + * @throws ApiException Indicates a problem with the request. + */ + public function get($selector) { + $arg = new FeedServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Add, remove, and set Feeds. + * + * @param operations The operations to apply. + * @return The resulting Feeds. + * @throws ApiException Indicates a problem with the request. + */ + public function mutate($operations) { + $arg = new FeedServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/GeoLocationService.php b/src/Google/Api/Ads/AdWords/v201309/GeoLocationService.php new file mode 100755 index 000000000..a041f74c2 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/GeoLocationService.php @@ -0,0 +1,2168 @@ +streetAddress = $streetAddress; + $this->streetAddress2 = $streetAddress2; + $this->cityName = $cityName; + $this->provinceCode = $provinceCode; + $this->provinceName = $provinceName; + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + } +}} + +if (!class_exists("GeoLocationSelector", FALSE)) { +/** + * A selector used to fetch geographic coordinates for given addresses. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoLocationSelector { + /** + * @access public + * @var Address[] + */ + public $addresses; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoLocationSelector"; + } + + public function __construct($addresses = NULL) { + $this->addresses = $addresses; + } +}} + +if (!class_exists("GeoPoint", FALSE)) { +/** + * Specifies a geo location with the supplied latitude/longitude. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoPoint { + /** + * @access public + * @var integer + */ + public $latitudeInMicroDegrees; + + /** + * @access public + * @var integer + */ + public $longitudeInMicroDegrees; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoPoint"; + } + + public function __construct($latitudeInMicroDegrees = NULL, $longitudeInMicroDegrees = NULL) { + $this->latitudeInMicroDegrees = $latitudeInMicroDegrees; + $this->longitudeInMicroDegrees = $longitudeInMicroDegrees; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("GeoLocation", FALSE)) { +/** + * Class representing a location with its geographic coordinates. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoLocation { + /** + * @access public + * @var GeoPoint + */ + public $geoPoint; + + /** + * @access public + * @var Address + */ + public $address; + + /** + * @access public + * @var base64Binary + */ + public $encodedLocation; + + /** + * @access public + * @var string + */ + public $GeoLocationType; + + private $_parameterMap = array ( + "GeoLocation.Type" => "GeoLocationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoLocation"; + } + + public function __construct($geoPoint = NULL, $address = NULL, $encodedLocation = NULL, $GeoLocationType = NULL) { + $this->geoPoint = $geoPoint; + $this->address = $address; + $this->encodedLocation = $encodedLocation; + $this->GeoLocationType = $GeoLocationType; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoLocationErrorReason", FALSE)) { +/** + * The reasons for the geolocation errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoLocationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoLocationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegionCodeErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RegionCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoLocationServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Retrieves the geographic location information for the address specified. + * + * @param selector specifies the addresses. + * @return list of {@link GeoLocation} objects. Returns {@link InvalidGeoLocation} object if + * the address cannot be geocoded. + * @throws ApiException if problems occurred while retrieving the location information + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoLocationServiceGet { + /** + * @access public + * @var GeoLocationSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("GeoLocationServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoLocationServiceGetResponse { + /** + * @access public + * @var GeoLocation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("GeoLocationError", FALSE)) { +/** + * Errors for {@link GeoLocationService}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoLocationError extends ApiError { + /** + * @access public + * @var tnsGeoLocationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoLocationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("InvalidGeoLocation", FALSE)) { +/** + * Invalid GeoLocation object. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InvalidGeoLocation extends GeoLocation { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidGeoLocation"; + } + + public function __construct($geoPoint = NULL, $address = NULL, $encodedLocation = NULL, $GeoLocationType = NULL) { + parent::__construct(); + $this->geoPoint = $geoPoint; + $this->address = $address; + $this->encodedLocation = $encodedLocation; + $this->GeoLocationType = $GeoLocationType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RegionCodeError", FALSE)) { +/** + * A list of all errors associated with the @RegionCode constraints. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RegionCodeError extends ApiError { + /** + * @access public + * @var tnsRegionCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("GeoLocationService", FALSE)) { +/** + * GeoLocationService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class GeoLocationService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "GeoLocationServiceGetResponse", + "get" => "GeoLocationServiceGet", + "mutate" => "GeoLocationServiceMutate", + "mutateResponse" => "GeoLocationServiceMutateResponse", + "mutateCallToAction" => "GeoLocationServiceMutateCallToAction", + "search" => "GeoLocationServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "Address" => "Address", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DistinctError" => "DistinctError", + "GeoLocationError" => "GeoLocationError", + "GeoLocationSelector" => "GeoLocationSelector", + "GeoPoint" => "GeoPoint", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "InvalidGeoLocation" => "InvalidGeoLocation", + "GeoLocation" => "GeoLocation", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RegionCodeError" => "RegionCodeError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "GeoLocationError.Reason" => "GeoLocationErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RegionCodeError.Reason" => "RegionCodeErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/GeoLocationService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = GeoLocationService::$classmap; + parent::__construct($wsdl, $options, $user, 'GeoLocationService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Retrieves the geographic location information for the address specified. + * + * @param selector specifies the addresses. + * @return list of {@link GeoLocation} objects. Returns {@link InvalidGeoLocation} object if + * the address cannot be geocoded. + * @throws ApiException if problems occurred while retrieving the location information + */ + public function get($selector) { + $arg = new GeoLocationServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/LocationCriterionService.php b/src/Google/Api/Ads/AdWords/v201309/LocationCriterionService.php new file mode 100755 index 000000000..dbf5b6950 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/LocationCriterionService.php @@ -0,0 +1,3553 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Criterion", FALSE)) { +/** + * Represents a criterion (such as a keyword, placement, or vertical). + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Criterion { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsCriterionType + */ + public $type; + + /** + * @access public + * @var string + */ + public $CriterionType; + + private $_parameterMap = array ( + "Criterion.Type" => "CriterionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + public function __construct($id = NULL, $type = NULL, $CriterionType = NULL) { + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionParameter", FALSE)) { +/** + * Base type of criterion parameters. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionParameter { + /** + * @access public + * @var string + */ + public $CriterionParameterType; + + private $_parameterMap = array ( + "CriterionParameter.Type" => "CriterionParameterType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionParameter"; + } + + public function __construct($CriterionParameterType = NULL) { + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateRange", FALSE)) { +/** + * Represents a range of dates that has either an upper or a lower bound. + * The format for the date is YYYYMMDD. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateRange { + /** + * @access public + * @var Date + */ + public $min; + + /** + * @access public + * @var Date + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Keyword", FALSE)) { +/** + * Represents a keyword. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Keyword extends Criterion { + /** + * @access public + * @var string + */ + public $text; + + /** + * @access public + * @var tnsKeywordMatchType + */ + public $matchType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Keyword"; + } + + public function __construct($text = NULL, $matchType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->text = $text; + $this->matchType = $matchType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Location", FALSE)) { +/** + * Represents Location criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type can be either targeted or excluded. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Location extends Criterion { + /** + * @access public + * @var string + */ + public $locationName; + + /** + * @access public + * @var string + */ + public $displayType; + + /** + * @access public + * @var tnsLocationTargetingStatus + */ + public $targetingStatus; + + /** + * @access public + * @var Location[] + */ + public $parentLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($locationName = NULL, $displayType = NULL, $targetingStatus = NULL, $parentLocations = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->locationName = $locationName; + $this->displayType = $displayType; + $this->targetingStatus = $targetingStatus; + $this->parentLocations = $parentLocations; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("LocationCriterion", FALSE)) { +/** + * Represents data that encapsulates a location criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationCriterion { + /** + * @access public + * @var Location + */ + public $location; + + /** + * @access public + * @var string + */ + public $canonicalName; + + /** + * @access public + * @var integer + */ + public $reach; + + /** + * @access public + * @var string + */ + public $locale; + + /** + * @access public + * @var string + */ + public $searchTerm; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationCriterion"; + } + + public function __construct($location = NULL, $canonicalName = NULL, $reach = NULL, $locale = NULL, $searchTerm = NULL, $countryCode = NULL) { + $this->location = $location; + $this->canonicalName = $canonicalName; + $this->reach = $reach; + $this->locale = $locale; + $this->searchTerm = $searchTerm; + $this->countryCode = $countryCode; + } +}} + +if (!class_exists("LocationCriterionServiceError", FALSE)) { +/** + * Represents errors thrown by the {@link LocationCriterionService#get} operation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationCriterionServiceError extends ApiError { + /** + * @access public + * @var tnsLocationCriterionServiceErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationCriterionServiceError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("MobileAppCategory", FALSE)) { +/** + * Represents the mobile app category to be targeted. + * View the complete list of + * available mobile app categories. + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileAppCategory extends Criterion { + /** + * @access public + * @var integer + */ + public $mobileAppCategoryId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAppCategory"; + } + + public function __construct($mobileAppCategoryId = NULL, $displayName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->mobileAppCategoryId = $mobileAppCategoryId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileApplication", FALSE)) { +/** + * Represents the mobile application to be targeted. + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileApplication extends Criterion { + /** + * @access public + * @var string + */ + public $appId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileApplication"; + } + + public function __construct($appId = NULL, $displayName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->appId = $appId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Placement", FALSE)) { +/** + * A placement used for modifying bids for sites when targeting the content + * network. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Placement extends Criterion { + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + public function __construct($url = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->url = $url; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("Product", FALSE)) { +/** + * Product targeting criteria, represents a filter for products in the + * product feed that is defined by the advertiser. The criteria is used to + * determine the products in a Merchant Center account to be used with the + * ProductAds in the AdGroup. This criteria is available only to some advertisers. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Product extends Criterion { + /** + * @access public + * @var ProductCondition[] + */ + public $conditions; + + /** + * @access public + * @var string + */ + public $text; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + public function __construct($conditions = NULL, $text = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->conditions = $conditions; + $this->text = $text; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ProductCondition", FALSE)) { +/** + * Conditions to filter the products defined in product feed for targeting. + * The condition is defined as operand=argument. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProductCondition { + /** + * @access public + * @var string + */ + public $argument; + + /** + * @access public + * @var ProductConditionOperand + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductCondition"; + } + + public function __construct($argument = NULL, $operand = NULL) { + $this->argument = $argument; + $this->operand = $operand; + } +}} + +if (!class_exists("ProductConditionOperand", FALSE)) { +/** + * Attribute for the product condition. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProductConditionOperand { + /** + * @access public + * @var string + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductConditionOperand"; + } + + public function __construct($operand = NULL) { + $this->operand = $operand; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * Indicates that a field was rejected due to compatibility issues. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CriterionUserInterest", FALSE)) { +/** + * User Interest - represents a particular interest based vertical to be targeted. + * Targeting UserInterest is currently in a limited beta. If you'd like access + * please speak with your account representative. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserInterest extends Criterion { + /** + * @access public + * @var integer + */ + public $userInterestId; + + /** + * @access public + * @var string + */ + public $userInterestName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserInterest"; + } + + public function __construct($userInterestId = NULL, $userInterestName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->userInterestId = $userInterestId; + $this->userInterestName = $userInterestName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionUserList", FALSE)) { +/** + * UserList - represents a user list that is defined by the advertiser to be targeted. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserList extends Criterion { + /** + * @access public + * @var integer + */ + public $userListId; + + /** + * @access public + * @var string + */ + public $userListName; + + /** + * @access public + * @var tnsCriterionUserListMembershipStatus + */ + public $userListMembershipStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList"; + } + + public function __construct($userListId = NULL, $userListName = NULL, $userListMembershipStatus = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->userListId = $userListId; + $this->userListName = $userListName; + $this->userListMembershipStatus = $userListMembershipStatus; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Vertical", FALSE)) { +/** + * Use verticals to target or exclude placements in the Google Display Network + * based on the category into which the placement falls (for example, "Pets & + * Animals/Pets/Dogs"). + * View the complete list + * of available vertical categories. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Vertical extends Criterion { + /** + * @access public + * @var integer + */ + public $verticalId; + + /** + * @access public + * @var integer + */ + public $verticalParentId; + + /** + * @access public + * @var string[] + */ + public $path; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Vertical"; + } + + public function __construct($verticalId = NULL, $verticalParentId = NULL, $path = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->verticalId = $verticalId; + $this->verticalParentId = $verticalParentId; + $this->path = $path; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Webpage", FALSE)) { +/** + * Criterion for targeting webpages of an advertiser's website. The + * website domain name is specified at the campaign level. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Webpage extends Criterion { + /** + * @access public + * @var WebpageParameter + */ + public $parameter; + + /** + * @access public + * @var double + */ + public $criteriaCoverage; + + /** + * @access public + * @var string[] + */ + public $criteriaSamples; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Webpage"; + } + + public function __construct($parameter = NULL, $criteriaCoverage = NULL, $criteriaSamples = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->parameter = $parameter; + $this->criteriaCoverage = $criteriaCoverage; + $this->criteriaSamples = $criteriaSamples; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("WebpageCondition", FALSE)) { +/** + * Logical expression for targeting webpages of an advertiser's website. + * + *

    A condition is defined as {@code operand OP argument} + * where {@code operand} is one of the values enumerated in + * {@link WebpageConditionOperand}, and, based on this value, + * {@code OP} is either of {@code EQUALS} or {@code CONTAINS}.

    + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageCondition { + /** + * @access public + * @var tnsWebpageConditionOperand + */ + public $operand; + + /** + * @access public + * @var string + */ + public $argument; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageCondition"; + } + + public function __construct($operand = NULL, $argument = NULL) { + $this->operand = $operand; + $this->argument = $argument; + } +}} + +if (!class_exists("WebpageParameter", FALSE)) { +/** + * Parameter of Webpage criterion, expressed as a list of conditions, or + * logical expressions, for targeting webpages of an advertiser's website. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageParameter extends CriterionParameter { + /** + * @access public + * @var string + */ + public $criterionName; + + /** + * @access public + * @var WebpageCondition[] + */ + public $conditions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageParameter"; + } + + public function __construct($criterionName = NULL, $conditions = NULL, $CriterionParameterType = NULL) { + parent::__construct(); + $this->criterionName = $criterionName; + $this->conditions = $conditions; + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * The types of criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("KeywordMatchType", FALSE)) { +/** + * Match type of a keyword. i.e. the way we match a keyword string with + * search queries. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class KeywordMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationCriterionServiceErrorReason", FALSE)) { +/** + * Reasons for error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationCriterionServiceErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationCriterionServiceError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationTargetingStatus", FALSE)) { +/** + * Enum that represents the different Targeting Status values for a Location criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationTargetingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationTargetingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUserListMembershipStatus", FALSE)) { +/** + * Membership status of the user list. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList.MembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("WebpageConditionOperand", FALSE)) { +/** + * Operand value of {@link WebpageCondition}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageConditionOperand { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageConditionOperand"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationCriterionServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of {@link LocationCriterion}'s that match the specified selector. + * + * @param selector filters the LocationCriterion to be returned. + * @return A list of location criterion. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationCriterionServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("LocationCriterionServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationCriterionServiceGetResponse { + /** + * @access public + * @var LocationCriterion[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("LocationCriterionService", FALSE)) { +/** + * LocationCriterionService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class LocationCriterionService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "LocationCriterionServiceGetResponse", + "get" => "LocationCriterionServiceGet", + "mutate" => "LocationCriterionServiceMutate", + "mutateResponse" => "LocationCriterionServiceMutateResponse", + "mutateCallToAction" => "LocationCriterionServiceMutateCallToAction", + "search" => "LocationCriterionServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdxError" => "AdxError", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "Criterion" => "Criterion", + "CriterionParameter" => "CriterionParameter", + "DatabaseError" => "DatabaseError", + "Date" => "Date", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "Keyword" => "Keyword", + "Location" => "Location", + "LocationCriterion" => "LocationCriterion", + "LocationCriterionServiceError" => "LocationCriterionServiceError", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Placement" => "Placement", + "Predicate" => "Predicate", + "Product" => "Product", + "ProductCondition" => "ProductCondition", + "ProductConditionOperand" => "ProductConditionOperand", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "Selector" => "Selector", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "CriterionUserInterest" => "CriterionUserInterest", + "CriterionUserList" => "CriterionUserList", + "Vertical" => "Vertical", + "Webpage" => "Webpage", + "WebpageCondition" => "WebpageCondition", + "WebpageParameter" => "WebpageParameter", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "Criterion.Type" => "CriterionType", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "KeywordMatchType" => "KeywordMatchType", + "LocationCriterionServiceError.Reason" => "LocationCriterionServiceErrorReason", + "LocationTargetingStatus" => "LocationTargetingStatus", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + "CriterionUserList.MembershipStatus" => "CriterionUserListMembershipStatus", + "WebpageConditionOperand" => "WebpageConditionOperand", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/LocationCriterionService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = LocationCriterionService::$classmap; + parent::__construct($wsdl, $options, $user, 'LocationCriterionService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of {@link LocationCriterion}'s that match the specified selector. + * + * @param selector filters the LocationCriterion to be returned. + * @return A list of location criterion. + * @throws ApiException when there is at least one error with the request. + */ + public function get($selector) { + $arg = new LocationCriterionServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/ManagedCustomerService.php b/src/Google/Api/Ads/AdWords/v201309/ManagedCustomerService.php new file mode 100755 index 000000000..43d00ea0b --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/ManagedCustomerService.php @@ -0,0 +1,3778 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +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.

    + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ManagedCustomerServiceError", FALSE)) { +/** + * Error for {@link ManagedCustomerService} + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManagedCustomerServiceError extends ApiError { + /** + * @access public + * @var tnsManagedCustomerServiceErrorReason + */ + public $reason; + + /** + * @access public + * @var integer[] + */ + public $customerIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManagedCustomerServiceError"; + } + + public function __construct($reason = NULL, $customerIds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->customerIds = $customerIds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PendingInvitationSelector", FALSE)) { +/** + * Selector for getPendingInvitations method. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PendingInvitationSelector { + /** + * @access public + * @var integer[] + */ + public $managerCustomerIds; + + /** + * @access public + * @var integer[] + */ + public $clientCustomerIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PendingInvitationSelector"; + } + + public function __construct($managerCustomerIds = NULL, $clientCustomerIds = NULL) { + $this->managerCustomerIds = $managerCustomerIds; + $this->clientCustomerIds = $clientCustomerIds; + } +}} + +if (!class_exists("ManagedCustomerLink", FALSE)) { +/** + * Represents an AdWords manager-client link. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManagedCustomerLink { + /** + * @access public + * @var integer + */ + public $managerCustomerId; + + /** + * @access public + * @var integer + */ + public $clientCustomerId; + + /** + * @access public + * @var tnsLinkStatus + */ + public $linkStatus; + + /** + * @access public + * @var string + */ + public $pendingDescriptiveName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManagedCustomerLink"; + } + + public function __construct($managerCustomerId = NULL, $clientCustomerId = NULL, $linkStatus = NULL, $pendingDescriptiveName = NULL) { + $this->managerCustomerId = $managerCustomerId; + $this->clientCustomerId = $clientCustomerId; + $this->linkStatus = $linkStatus; + $this->pendingDescriptiveName = $pendingDescriptiveName; + } +}} + +if (!class_exists("LinkOperation", FALSE)) { +/** + * Operation for modifying ManagedCustomer links. See {@link ManagedCustomerService#mutateLink}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LinkOperation extends Operation { + /** + * @access public + * @var ManagedCustomerLink + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LinkOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("MoveOperation", FALSE)) { +/** + * Operation for moving ManagedCustomer links. See {@link ManagedCustomerService#mutateManager}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MoveOperation extends Operation { + /** + * @access public + * @var ManagedCustomerLink + */ + public $operand; + + /** + * @access public + * @var integer + */ + public $oldManagerCustomerId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MoveOperation"; + } + + public function __construct($operand = NULL, $oldManagerCustomerId = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->oldManagerCustomerId = $oldManagerCustomerId; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("MutateLinkResults", FALSE)) { +/** + * Results of a {@link ManagedCustomerService#mutateLink} call which changes + * manager/client links. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MutateLinkResults { + /** + * @access public + * @var ManagedCustomerLink[] + */ + public $links; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MutateLinkResults"; + } + + public function __construct($links = NULL) { + $this->links = $links; + } +}} + +if (!class_exists("MutateManagerResults", FALSE)) { +/** + * Results of a {@link ManagedCustomerService#mutateManager} call, which moves client customers to + * new managers. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MutateManagerResults { + /** + * @access public + * @var ManagedCustomerLink[] + */ + public $links; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MutateManagerResults"; + } + + public function __construct($links = NULL) { + $this->links = $links; + } +}} + +if (!class_exists("ManagedCustomer", FALSE)) { +/** + * Data object that represents a managed customer. Member of {@link ManagedCustomerPage}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManagedCustomer { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $login; + + /** + * @access public + * @var string + */ + public $companyName; + + /** + * @access public + * @var integer + */ + public $customerId; + + /** + * @access public + * @var boolean + */ + public $canManageClients; + + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var string + */ + public $dateTimeZone; + + /** + * @access public + * @var boolean + */ + public $testAccount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManagedCustomer"; + } + + public function __construct($name = NULL, $login = NULL, $companyName = NULL, $customerId = NULL, $canManageClients = NULL, $currencyCode = NULL, $dateTimeZone = NULL, $testAccount = NULL) { + $this->name = $name; + $this->login = $login; + $this->companyName = $companyName; + $this->customerId = $customerId; + $this->canManageClients = $canManageClients; + $this->currencyCode = $currencyCode; + $this->dateTimeZone = $dateTimeZone; + $this->testAccount = $testAccount; + } +}} + +if (!class_exists("ManagedCustomerOperation", FALSE)) { +/** + * An operation on a managed customer. + *

    Note: only ADD operator is supported.

    + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManagedCustomerOperation extends Operation { + /** + * @access public + * @var ManagedCustomer + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManagedCustomerOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("ManagedCustomerPage", FALSE)) { +/** + * Return result of {@link ManagedCustomerService} + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManagedCustomerPage extends Page { + /** + * @access public + * @var ManagedCustomer[] + */ + public $entries; + + /** + * @access public + * @var ManagedCustomerLink[] + */ + public $links; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManagedCustomerPage"; + } + + public function __construct($entries = NULL, $links = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->links = $links; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("ManagedCustomerReturnValue", FALSE)) { +/** + * A container for return values from the ManagedCustomerService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManagedCustomerReturnValue { + /** + * @access public + * @var ManagedCustomer[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManagedCustomerReturnValue"; + } + + public function __construct($value = NULL) { + $this->value = $value; + } +}} + +if (!class_exists("PendingInvitation", FALSE)) { +/** + * Pending invitation result for the getPendingInvitations method. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PendingInvitation { + /** + * @access public + * @var ManagedCustomer + */ + public $manager; + + /** + * @access public + * @var ManagedCustomer + */ + public $client; + + /** + * @access public + * @var string + */ + public $creationDate; + + /** + * @access public + * @var string + */ + public $expirationDate; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PendingInvitation"; + } + + public function __construct($manager = NULL, $client = NULL, $creationDate = NULL, $expirationDate = NULL) { + $this->manager = $manager; + $this->client = $client; + $this->creationDate = $creationDate; + $this->expirationDate = $expirationDate; + } +}} + +if (!class_exists("LinkStatus", FALSE)) { +/** + * These status values match the values in the ServicedAccounts.Status column. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LinkStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LinkStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ManagedCustomerServiceErrorReason", FALSE)) { +/** + * Unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManagedCustomerServiceErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManagedCustomerServiceError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ManagedCustomerServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of customers that meet the selector criteria. + * + * @param selector The selector specifying the {@link ManagedCustomer}s to return. + * @return List of customers identified by the selector. + * @throws ApiException When there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManagedCustomerServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("ManagedCustomerServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManagedCustomerServiceGetResponse { + /** + * @access public + * @var ManagedCustomerPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getPendingInvitations", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the pending invitations for the customer IDs in the selector. + * @param selector the manager customer ids (inviters) or the client customer ids (invitees) + * @throws ApiException when there is at least one error with the request + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getPendingInvitations { + /** + * @access public + * @var PendingInvitationSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("getPendingInvitationsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getPendingInvitationsResponse { + /** + * @access public + * @var PendingInvitation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ManagedCustomerServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: SET, ADD. + * + * + * + * Adds managed customers. + * + *

    Note: {@link ManagedCustomerOperation} only supports + * {@code ADD} operator.

    + * + * @param operations List of unique operations. + * @return The list of updated managed customers, returned in the same order as the + * operations array. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManagedCustomerServiceMutate { + /** + * @access public + * @var ManagedCustomerOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("ManagedCustomerServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManagedCustomerServiceMutateResponse { + /** + * @access public + * @var ManagedCustomerReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("mutateLink", FALSE)) { +/** + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: SET, ADD. + * + * + * + * Modifies the ManagedCustomer forest. These actions are possible (categorized by + * Operator + Link Status): + * + *
      + *
    • ADD + PENDING: manager extends invitations + *
    • SET + CANCELLED: manager rescinds invitations + *
    • SET + INACTIVE: manager/client terminates links + *
    • SET + ACTIVE: client accepts invitations + *
    • SET + REFUSED: client declines invitations + *
    + * + * @param operations the list of operations + * @return results for the given operations + * @throws ApiException with a {@link ManagedCustomerServiceError} + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class mutateLink { + /** + * @access public + * @var LinkOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("mutateLinkResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class mutateLinkResponse { + /** + * @access public + * @var MutateLinkResults + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("mutateManager", FALSE)) { +/** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: SET. + * + * + * + * Moves client customers to new managers (moving links). Only the following action is possible: + * + *
      + *
    • SET + ACTIVE: manager moves client customers to new managers within the same MCC + * hierarchy + *
    + * + * @param operations List of unique operations. + * @return results for the given operations + * @throws ApiException with a {@link ManagedCustomerServiceError} + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class mutateManager { + /** + * @access public + * @var MoveOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("mutateManagerResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class mutateManagerResponse { + /** + * @access public + * @var MutateManagerResults + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * Indicates that a field was rejected due to compatibility issues. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ManagedCustomerService", FALSE)) { +/** + * ManagedCustomerService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class ManagedCustomerService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "ManagedCustomerServiceGetResponse", + "get" => "ManagedCustomerServiceGet", + "mutate" => "ManagedCustomerServiceMutate", + "mutateResponse" => "ManagedCustomerServiceMutateResponse", + "mutateCallToAction" => "ManagedCustomerServiceMutateCallToAction", + "search" => "ManagedCustomerServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Selector" => "Selector", + "Operation" => "Operation", + "Page" => "Page", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + "ManagedCustomerServiceError" => "ManagedCustomerServiceError", + "PendingInvitationSelector" => "PendingInvitationSelector", + "ManagedCustomerLink" => "ManagedCustomerLink", + "LinkOperation" => "LinkOperation", + "MoveOperation" => "MoveOperation", + "MutateLinkResults" => "MutateLinkResults", + "MutateManagerResults" => "MutateManagerResults", + "ManagedCustomer" => "ManagedCustomer", + "ManagedCustomerOperation" => "ManagedCustomerOperation", + "ManagedCustomerPage" => "ManagedCustomerPage", + "ManagedCustomerReturnValue" => "ManagedCustomerReturnValue", + "PendingInvitation" => "PendingInvitation", + "LinkStatus" => "LinkStatus", + "ManagedCustomerServiceError.Reason" => "ManagedCustomerServiceErrorReason", + "getPendingInvitations" => "getPendingInvitations", + "getPendingInvitationsResponse" => "getPendingInvitationsResponse", + "mutateLink" => "mutateLink", + "mutateLinkResponse" => "mutateLinkResponse", + "mutateManager" => "mutateManager", + "mutateManagerResponse" => "mutateManagerResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/mcm/v201309/ManagedCustomerService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ManagedCustomerService::$classmap; + parent::__construct($wsdl, $options, $user, 'ManagedCustomerService', 'https://adwords.google.com/api/adwords/mcm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of customers that meet the selector criteria. + * + * @param selector The selector specifying the {@link ManagedCustomer}s to return. + * @return List of customers identified by the selector. + * @throws ApiException When there is at least one error with the request. + */ + public function get($serviceSelector) { + $arg = new ManagedCustomerServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the pending invitations for the customer IDs in the selector. + * @param selector the manager customer ids (inviters) or the client customer ids (invitees) + * @throws ApiException when there is at least one error with the request + */ + public function getPendingInvitations($selector) { + $arg = new getPendingInvitations($selector); + $result = $this->__soapCall("getPendingInvitations", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: SET, ADD. + * + * + * + * Adds managed customers. + * + *

    Note: {@link ManagedCustomerOperation} only supports + * {@code ADD} operator.

    + * + * @param operations List of unique operations. + * @return The list of updated managed customers, returned in the same order as the + * operations array. + */ + public function mutate($operations) { + $arg = new ManagedCustomerServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: SET, ADD. + * + * + * + * Modifies the ManagedCustomer forest. These actions are possible (categorized by + * Operator + Link Status): + * + *
      + *
    • ADD + PENDING: manager extends invitations + *
    • SET + CANCELLED: manager rescinds invitations + *
    • SET + INACTIVE: manager/client terminates links + *
    • SET + ACTIVE: client accepts invitations + *
    • SET + REFUSED: client declines invitations + *
    + * + * @param operations the list of operations + * @return results for the given operations + * @throws ApiException with a {@link ManagedCustomerServiceError} + */ + public function mutateLink($operations) { + $arg = new mutateLink($operations); + $result = $this->__soapCall("mutateLink", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: SET. + * + * + * + * Moves client customers to new managers (moving links). Only the following action is possible: + * + *
      + *
    • SET + ACTIVE: manager moves client customers to new managers within the same MCC + * hierarchy + *
    + * + * @param operations List of unique operations. + * @return results for the given operations + * @throws ApiException with a {@link ManagedCustomerServiceError} + */ + public function mutateManager($operations) { + $arg = new mutateManager($operations); + $result = $this->__soapCall("mutateManager", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/MediaService.php b/src/Google/Api/Ads/AdWords/v201309/MediaService.php new file mode 100755 index 000000000..80be89397 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/MediaService.php @@ -0,0 +1,3204 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("Dimensions", FALSE)) { +/** + * Represents a simple height-width dimension. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Dimensions { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Dimensions"; + } + + public function __construct($width = NULL, $height = NULL) { + $this->width = $width; + $this->height = $height; + } +}} + +if (!class_exists("Media_Size_DimensionsMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Size + * and value of type Dimensions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Media_Size_DimensionsMapEntry { + /** + * @access public + * @var tnsMediaSize + */ + public $key; + + /** + * @access public + * @var Dimensions + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media_Size_DimensionsMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Media_Size_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Size + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Media_Size_StringMapEntry { + /** + * @access public + * @var tnsMediaSize + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media_Size_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Media", FALSE)) { +/** + * Represents some kind of media. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Media { + /** + * @access public + * @var integer + */ + public $mediaId; + + /** + * @access public + * @var tnsMediaMediaType + */ + public $type; + + /** + * @access public + * @var integer + */ + public $referenceId; + + /** + * @access public + * @var Media_Size_DimensionsMapEntry[] + */ + public $dimensions; + + /** + * @access public + * @var Media_Size_StringMapEntry[] + */ + public $urls; + + /** + * @access public + * @var tnsMediaMimeType + */ + public $mimeType; + + /** + * @access public + * @var string + */ + public $sourceUrl; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $fileSize; + + /** + * @access public + * @var string + */ + public $creationTime; + + /** + * @access public + * @var string + */ + public $MediaType; + + private $_parameterMap = array ( + "Media.Type" => "MediaType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media"; + } + + public function __construct($mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("MediaPage", FALSE)) { +/** + * Page of media returned by the {@link MediaService} which includes + * the media. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaPage { + /** + * @access public + * @var Media[] + */ + public $entries; + + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MediaPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL) { + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AudioErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AudioErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudioError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ImageErrorReason", FALSE)) { +/** + * The image is not valid. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ImageErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaMediaType", FALSE)) { +/** + * Media types + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaMediaType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.MediaType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaMimeType", FALSE)) { +/** + * Mime types + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaMimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.MimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaSize", FALSE)) { +/** + * Sizes for retrieving the original media + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaSize { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.Size"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MediaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoErrorReason", FALSE)) { +/** + * Invalid video. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class VideoErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of media that meet the criteria specified by the selector. + *

    Note: {@code MediaService} will not return any + * {@link ImageAd} image files.

    + * + * @param serviceSelector Selects which media objects to return. + * @return A list of {@code Media} objects. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("MediaServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaServiceGetResponse { + /** + * @access public + * @var MediaPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("upload", FALSE)) { +/** + * Uploads new media. Currently, you can only upload {@link Image} files. + * + * @param media A list of {@code Media} objects, each containing the data to + * be uploaded. + * @return A list of uploaded media in the same order as the argument list. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class upload { + /** + * @access public + * @var Media[] + */ + public $media; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($media = NULL) { + $this->media = $media; + } +}} + +if (!class_exists("uploadResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class uploadResponse { + /** + * @access public + * @var Media[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("Audio", FALSE)) { +/** + * Encapsulates an Audio media identified by a MediaId. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Audio extends Media { + /** + * @access public + * @var integer + */ + public $durationMillis; + + /** + * @access public + * @var string + */ + public $streamingUrl; + + /** + * @access public + * @var boolean + */ + public $readyToPlayOnTheWeb; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Audio"; + } + + public function __construct($durationMillis = NULL, $streamingUrl = NULL, $readyToPlayOnTheWeb = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->durationMillis = $durationMillis; + $this->streamingUrl = $streamingUrl; + $this->readyToPlayOnTheWeb = $readyToPlayOnTheWeb; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("AudioError", FALSE)) { +/** + * Error class for errors associated with parsing audio data. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AudioError extends ApiError { + /** + * @access public + * @var tnsAudioErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudioError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Image", FALSE)) { +/** + * Encapsulates an Image media. For {@code SET},{@code REMOVE} operations in + * MediaService, use {@code mediaId}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Image extends Media { + /** + * @access public + * @var base64Binary + */ + public $data; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Image"; + } + + public function __construct($data = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->data = $data; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("ImageError", FALSE)) { +/** + * Error class for errors associated with parsing image data. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ImageError extends ApiError { + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("MediaError", FALSE)) { +/** + * Error class for media related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaError extends ApiError { + /** + * @access public + * @var tnsMediaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MediaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Video", FALSE)) { +/** + * Encapsulates a Video media identified by a MediaId. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Video extends Media { + /** + * @access public + * @var integer + */ + public $durationMillis; + + /** + * @access public + * @var string + */ + public $streamingUrl; + + /** + * @access public + * @var boolean + */ + public $readyToPlayOnTheWeb; + + /** + * @access public + * @var string + */ + public $industryStandardCommercialIdentifier; + + /** + * @access public + * @var string + */ + public $advertisingId; + + /** + * @access public + * @var string + */ + public $youTubeVideoIdString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Video"; + } + + public function __construct($durationMillis = NULL, $streamingUrl = NULL, $readyToPlayOnTheWeb = NULL, $industryStandardCommercialIdentifier = NULL, $advertisingId = NULL, $youTubeVideoIdString = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->durationMillis = $durationMillis; + $this->streamingUrl = $streamingUrl; + $this->readyToPlayOnTheWeb = $readyToPlayOnTheWeb; + $this->industryStandardCommercialIdentifier = $industryStandardCommercialIdentifier; + $this->advertisingId = $advertisingId; + $this->youTubeVideoIdString = $youTubeVideoIdString; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("VideoError", FALSE)) { +/** + * Error class for errors associated with parsing video data. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class VideoError extends ApiError { + /** + * @access public + * @var tnsVideoErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("MediaService", FALSE)) { +/** + * MediaService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class MediaService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "MediaServiceGetResponse", + "get" => "MediaServiceGet", + "mutate" => "MediaServiceMutate", + "mutateResponse" => "MediaServiceMutateResponse", + "mutateCallToAction" => "MediaServiceMutateCallToAction", + "search" => "MediaServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "Audio" => "Audio", + "Media" => "Media", + "AudioError" => "AudioError", + "ApiError" => "ApiError", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DateRange" => "DateRange", + "Dimensions" => "Dimensions", + "DistinctError" => "DistinctError", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "Image" => "Image", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "MediaError" => "MediaError", + "Media_Size_DimensionsMapEntry" => "Media_Size_DimensionsMapEntry", + "Media_Size_StringMapEntry" => "Media_Size_StringMapEntry", + "NewEntityCreationError" => "NewEntityCreationError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "Video" => "Video", + "VideoError" => "VideoError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "MediaPage" => "MediaPage", + "Selector" => "Selector", + "AudioError.Reason" => "AudioErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "Media.MediaType" => "MediaMediaType", + "Media.MimeType" => "MediaMimeType", + "Media.Size" => "MediaSize", + "MediaError.Reason" => "MediaErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + "VideoError.Reason" => "VideoErrorReason", + "upload" => "upload", + "uploadResponse" => "uploadResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/MediaService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = MediaService::$classmap; + parent::__construct($wsdl, $options, $user, 'MediaService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of media that meet the criteria specified by the selector. + *

    Note: {@code MediaService} will not return any + * {@link ImageAd} image files.

    + * + * @param serviceSelector Selects which media objects to return. + * @return A list of {@code Media} objects. + */ + public function get($serviceSelector) { + $arg = new MediaServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * Uploads new media. Currently, you can only upload {@link Image} files. + * + * @param media A list of {@code Media} objects, each containing the data to + * be uploaded. + * @return A list of uploaded media in the same order as the argument list. + */ + public function upload($media) { + $arg = new upload($media); + $result = $this->__soapCall("upload", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/MutateJobService.php b/src/Google/Api/Ads/AdWords/v201309/MutateJobService.php new file mode 100755 index 000000000..67cf33256 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/MutateJobService.php @@ -0,0 +1,16670 @@ +This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Ad { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $url; + + /** + * @access public + * @var string + */ + public $displayUrl; + + /** + * @access public + * @var integer + */ + public $devicePreference; + + /** + * @access public + * @var string + */ + public $AdType; + + private $_parameterMap = array ( + "Ad.Type" => "AdType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Ad"; + } + + public function __construct($id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("AdExtension", FALSE)) { +/** + * Base class for AdExtension objects. An AdExtension is an extension to + * an existing ad or metadata that will process into an extension. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdExtension { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $AdExtensionType; + + private $_parameterMap = array ( + "AdExtension.Type" => "AdExtensionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtension"; + } + + public function __construct($id = NULL, $AdExtensionType = NULL) { + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("AdExtensionOverride", FALSE)) { +/** + * Represents an ad level ad extension override. An ad extension override + * specifies the ad extension that must be used if the ad is served with + * any ad extension data. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdExtensionOverride { + /** + * @access public + * @var integer + */ + public $adId; + + /** + * @access public + * @var AdExtension + */ + public $adExtension; + + /** + * @access public + * @var OverrideInfo + */ + public $overrideInfo; + + /** + * @access public + * @var tnsAdExtensionOverrideStatus + */ + public $status; + + /** + * @access public + * @var tnsAdExtensionOverrideApprovalStatus + */ + public $approvalStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverride"; + } + + public function __construct($adId = NULL, $adExtension = NULL, $overrideInfo = NULL, $status = NULL, $approvalStatus = NULL) { + $this->adId = $adId; + $this->adExtension = $adExtension; + $this->overrideInfo = $overrideInfo; + $this->status = $status; + $this->approvalStatus = $approvalStatus; + } +}} + +if (!class_exists("AdGroup", FALSE)) { +/** + * Represents an ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroup { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var string + */ + public $campaignName; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsAdGroupStatus + */ + public $status; + + /** + * @access public + * @var Setting[] + */ + public $settings; + + /** + * @access public + * @var AdGroupExperimentData + */ + public $experimentData; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * @access public + * @var BiddingStrategyConfiguration + */ + public $biddingStrategyConfiguration; + + /** + * @access public + * @var tnsCriterionTypeGroup + */ + public $contentBidCriterionTypeGroup; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroup"; + } + + public function __construct($id = NULL, $campaignId = NULL, $campaignName = NULL, $name = NULL, $status = NULL, $settings = NULL, $experimentData = NULL, $forwardCompatibilityMap = NULL, $biddingStrategyConfiguration = NULL, $contentBidCriterionTypeGroup = NULL) { + $this->id = $id; + $this->campaignId = $campaignId; + $this->campaignName = $campaignName; + $this->name = $name; + $this->status = $status; + $this->settings = $settings; + $this->experimentData = $experimentData; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->biddingStrategyConfiguration = $biddingStrategyConfiguration; + $this->contentBidCriterionTypeGroup = $contentBidCriterionTypeGroup; + } +}} + +if (!class_exists("AdGroupAd", FALSE)) { +/** + * Represents an ad in an ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAd { + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var Ad + */ + public $ad; + + /** + * @access public + * @var AdGroupAdExperimentData + */ + public $experimentData; + + /** + * @access public + * @var tnsAdGroupAdStatus + */ + public $status; + + /** + * @access public + * @var tnsAdGroupAdApprovalStatus + */ + public $approvalStatus; + + /** + * @access public + * @var string[] + */ + public $disapprovalReasons; + + /** + * @access public + * @var boolean + */ + public $trademarkDisapproved; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAd"; + } + + public function __construct($adGroupId = NULL, $ad = NULL, $experimentData = NULL, $status = NULL, $approvalStatus = NULL, $disapprovalReasons = NULL, $trademarkDisapproved = NULL, $forwardCompatibilityMap = NULL) { + $this->adGroupId = $adGroupId; + $this->ad = $ad; + $this->experimentData = $experimentData; + $this->status = $status; + $this->approvalStatus = $approvalStatus; + $this->disapprovalReasons = $disapprovalReasons; + $this->trademarkDisapproved = $trademarkDisapproved; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + } +}} + +if (!class_exists("AdGroupAdExperimentData", FALSE)) { +/** + * Data associated with an advertiser experiment for an AdGroupAd + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdExperimentData { + /** + * @access public + * @var integer + */ + public $experimentId; + + /** + * @access public + * @var tnsExperimentDeltaStatus + */ + public $experimentDeltaStatus; + + /** + * @access public + * @var tnsExperimentDataStatus + */ + public $experimentDataStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdExperimentData"; + } + + public function __construct($experimentId = NULL, $experimentDeltaStatus = NULL, $experimentDataStatus = NULL) { + $this->experimentId = $experimentId; + $this->experimentDeltaStatus = $experimentDeltaStatus; + $this->experimentDataStatus = $experimentDataStatus; + } +}} + +if (!class_exists("AdGroupBidModifier", FALSE)) { +/** + * Represents an adgroup level bid modifier override for campaign level criterion + * bid modifier values. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupBidModifier { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var Criterion + */ + public $criterion; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var tnsBidModifierSource + */ + public $bidModifierSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidModifier"; + } + + public function __construct($campaignId = NULL, $adGroupId = NULL, $criterion = NULL, $bidModifier = NULL, $bidModifierSource = NULL) { + $this->campaignId = $campaignId; + $this->adGroupId = $adGroupId; + $this->criterion = $criterion; + $this->bidModifier = $bidModifier; + $this->bidModifierSource = $bidModifierSource; + } +}} + +if (!class_exists("AdGroupCriterion", FALSE)) { +/** + * Represents a criterion in an ad group, used with AdGroupCriterionService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterion { + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var tnsCriterionUse + */ + public $criterionUse; + + /** + * @access public + * @var Criterion + */ + public $criterion; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * @access public + * @var string + */ + public $AdGroupCriterionType; + + private $_parameterMap = array ( + "AdGroupCriterion.Type" => "AdGroupCriterionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterion"; + } + + public function __construct($adGroupId = NULL, $criterionUse = NULL, $criterion = NULL, $forwardCompatibilityMap = NULL, $AdGroupCriterionType = NULL) { + $this->adGroupId = $adGroupId; + $this->criterionUse = $criterionUse; + $this->criterion = $criterion; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->AdGroupCriterionType = $AdGroupCriterionType; + } +}} + +if (!class_exists("AdGroupCriterionExperimentBidMultiplier", FALSE)) { +/** + * Bid multiplier used to modify the bid of a criterion while running + * an experiment. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionExperimentBidMultiplier { + /** + * @access public + * @var string + */ + public $AdGroupCriterionExperimentBidMultiplierType; + + private $_parameterMap = array ( + "AdGroupCriterionExperimentBidMultiplier.Type" => "AdGroupCriterionExperimentBidMultiplierType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionExperimentBidMultiplier"; + } + + public function __construct($AdGroupCriterionExperimentBidMultiplierType = NULL) { + $this->AdGroupCriterionExperimentBidMultiplierType = $AdGroupCriterionExperimentBidMultiplierType; + } +}} + +if (!class_exists("AdGroupExperimentBidMultipliers", FALSE)) { +/** + * Bid multiplier used to modify the bid of an adgroup while running + * an experiment. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupExperimentBidMultipliers { + /** + * @access public + * @var string + */ + public $AdGroupExperimentBidMultipliersType; + + private $_parameterMap = array ( + "AdGroupExperimentBidMultipliers.Type" => "AdGroupExperimentBidMultipliersType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupExperimentBidMultipliers"; + } + + public function __construct($AdGroupExperimentBidMultipliersType = NULL) { + $this->AdGroupExperimentBidMultipliersType = $AdGroupExperimentBidMultipliersType; + } +}} + +if (!class_exists("AdGroupExperimentData", FALSE)) { +/** + * Data associated with an advertiser experiment for this adgroup. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupExperimentData { + /** + * @access public + * @var integer + */ + public $experimentId; + + /** + * @access public + * @var tnsExperimentDeltaStatus + */ + public $experimentDeltaStatus; + + /** + * @access public + * @var tnsExperimentDataStatus + */ + public $experimentDataStatus; + + /** + * @access public + * @var AdGroupExperimentBidMultipliers + */ + public $experimentBidMultipliers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupExperimentData"; + } + + public function __construct($experimentId = NULL, $experimentDeltaStatus = NULL, $experimentDataStatus = NULL, $experimentBidMultipliers = NULL) { + $this->experimentId = $experimentId; + $this->experimentDeltaStatus = $experimentDeltaStatus; + $this->experimentDataStatus = $experimentDataStatus; + $this->experimentBidMultipliers = $experimentBidMultipliers; + } +}} + +if (!class_exists("AdUnionId", FALSE)) { +/** + * Represents an id indicating a grouping of Ads under some heuristic. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdUnionId { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $AdUnionIdType; + + private $_parameterMap = array ( + "AdUnionId.Type" => "AdUnionIdType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnionId"; + } + + public function __construct($id = NULL, $AdUnionIdType = NULL) { + $this->id = $id; + $this->AdUnionIdType = $AdUnionIdType; + } +}} + +if (!class_exists("Address", FALSE)) { +/** + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Address { + /** + * @access public + * @var string + */ + public $streetAddress; + + /** + * @access public + * @var string + */ + public $streetAddress2; + + /** + * @access public + * @var string + */ + public $cityName; + + /** + * @access public + * @var string + */ + public $provinceCode; + + /** + * @access public + * @var string + */ + public $provinceName; + + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Address"; + } + + public function __construct($streetAddress = NULL, $streetAddress2 = NULL, $cityName = NULL, $provinceCode = NULL, $provinceName = NULL, $postalCode = NULL, $countryCode = NULL) { + $this->streetAddress = $streetAddress; + $this->streetAddress2 = $streetAddress2; + $this->cityName = $cityName; + $this->provinceCode = $provinceCode; + $this->provinceName = $provinceName; + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApiErrorReason", FALSE)) { +/** + * Interface that has a reason return an associated service error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiErrorReason { + /** + * @access public + * @var tnsAdErrorReason + */ + public $AdErrorReason; + + /** + * @access public + * @var tnsAdExtensionErrorReason + */ + public $AdExtensionErrorReason; + + /** + * @access public + * @var tnsAdExtensionOverrideErrorReason + */ + public $AdExtensionOverrideErrorReason; + + /** + * @access public + * @var tnsAdGroupAdErrorReason + */ + public $AdGroupAdErrorReason; + + /** + * @access public + * @var tnsAdGroupCriterionErrorReason + */ + public $AdGroupCriterionErrorReason; + + /** + * @access public + * @var tnsAdGroupServiceErrorReason + */ + public $AdGroupServiceErrorReason; + + /** + * @access public + * @var tnsAdxErrorReason + */ + public $AdxErrorReason; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $AuthenticationErrorReason; + + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $AuthorizationErrorReason; + + /** + * @access public + * @var tnsBetaErrorReason + */ + public $BetaErrorReason; + + /** + * @access public + * @var tnsBiddingErrorReason + */ + public $BiddingErrorReason; + + /** + * @access public + * @var tnsBiddingErrorsReason + */ + public $BiddingErrorsReason; + + /** + * @access public + * @var tnsBiddingTransitionErrorReason + */ + public $BiddingTransitionErrorReason; + + /** + * @access public + * @var tnsBudgetErrorReason + */ + public $BudgetErrorReason; + + /** + * @access public + * @var tnsBulkMutateJobErrorReason + */ + public $BulkMutateJobErrorReason; + + /** + * @access public + * @var tnsCampaignAdExtensionErrorReason + */ + public $CampaignAdExtensionErrorReason; + + /** + * @access public + * @var tnsCampaignCriterionErrorReason + */ + public $CampaignCriterionErrorReason; + + /** + * @access public + * @var tnsCampaignErrorReason + */ + public $CampaignErrorReason; + + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $ClientTermsErrorReason; + + /** + * @access public + * @var tnsCriterionErrorReason + */ + public $CriterionErrorReason; + + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $DatabaseErrorReason; + + /** + * @access public + * @var tnsDateErrorReason + */ + public $DateErrorReason; + + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $DistinctErrorReason; + + /** + * @access public + * @var tnsEntityAccessDeniedReason + */ + public $EntityAccessDeniedReason; + + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $EntityCountLimitExceededReason; + + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $EntityNotFoundReason; + + /** + * @access public + * @var tnsFeedItemErrorReason + */ + public $FeedItemErrorReason; + + /** + * @access public + * @var tnsForwardCompatibilityErrorReason + */ + public $ForwardCompatibilityErrorReason; + + /** + * @access public + * @var tnsIdErrorReason + */ + public $IdErrorReason; + + /** + * @access public + * @var tnsImageErrorReason + */ + public $ImageErrorReason; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $InternalApiErrorReason; + + /** + * @access public + * @var tnsJobErrorReason + */ + public $JobErrorReason; + + /** + * @access public + * @var tnsMediaErrorReason + */ + public $MediaErrorReason; + + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $NewEntityCreationErrorReason; + + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $NotEmptyErrorReason; + + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $NotWhitelistedErrorReason; + + /** + * @access public + * @var tnsNullErrorReason + */ + public $NullErrorReason; + + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $OperationAccessDeniedReason; + + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $OperatorErrorReason; + + /** + * @access public + * @var tnsPagingErrorReason + */ + public $PagingErrorReason; + + /** + * @access public + * @var tnsPolicyViolationErrorReason + */ + public $PolicyViolationErrorReason; + + /** + * @access public + * @var tnsQueryErrorReason + */ + public $QueryErrorReason; + + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $QuotaCheckErrorReason; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $QuotaErrorReason; + + /** + * @access public + * @var tnsRangeErrorReason + */ + public $RangeErrorReason; + + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $RateExceededErrorReason; + + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $ReadOnlyErrorReason; + + /** + * @access public + * @var tnsRegionCodeErrorReason + */ + public $RegionCodeErrorReason; + + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $RejectedErrorReason; + + /** + * @access public + * @var tnsRequestErrorReason + */ + public $RequestErrorReason; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $RequiredErrorReason; + + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $SelectorErrorReason; + + /** + * @access public + * @var tnsSettingErrorReason + */ + public $SettingErrorReason; + + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $SizeLimitErrorReason; + + /** + * @access public + * @var tnsStatsQueryErrorReason + */ + public $StatsQueryErrorReason; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $StringLengthErrorReason; + + /** + * @access public + * @var tnsTargetErrorReason + */ + public $TargetErrorReason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiErrorReason"; + } + + public function __construct($AdErrorReason = NULL, $AdExtensionErrorReason = NULL, $AdExtensionOverrideErrorReason = NULL, $AdGroupAdErrorReason = NULL, $AdGroupCriterionErrorReason = NULL, $AdGroupServiceErrorReason = NULL, $AdxErrorReason = NULL, $AuthenticationErrorReason = NULL, $AuthorizationErrorReason = NULL, $BetaErrorReason = NULL, $BiddingErrorReason = NULL, $BiddingErrorsReason = NULL, $BiddingTransitionErrorReason = NULL, $BudgetErrorReason = NULL, $BulkMutateJobErrorReason = NULL, $CampaignAdExtensionErrorReason = NULL, $CampaignCriterionErrorReason = NULL, $CampaignErrorReason = NULL, $ClientTermsErrorReason = NULL, $CriterionErrorReason = NULL, $DatabaseErrorReason = NULL, $DateErrorReason = NULL, $DistinctErrorReason = NULL, $EntityAccessDeniedReason = NULL, $EntityCountLimitExceededReason = NULL, $EntityNotFoundReason = NULL, $FeedItemErrorReason = NULL, $ForwardCompatibilityErrorReason = NULL, $IdErrorReason = NULL, $ImageErrorReason = NULL, $InternalApiErrorReason = NULL, $JobErrorReason = NULL, $MediaErrorReason = NULL, $NewEntityCreationErrorReason = NULL, $NotEmptyErrorReason = NULL, $NotWhitelistedErrorReason = NULL, $NullErrorReason = NULL, $OperationAccessDeniedReason = NULL, $OperatorErrorReason = NULL, $PagingErrorReason = NULL, $PolicyViolationErrorReason = NULL, $QueryErrorReason = NULL, $QuotaCheckErrorReason = NULL, $QuotaErrorReason = NULL, $RangeErrorReason = NULL, $RateExceededErrorReason = NULL, $ReadOnlyErrorReason = NULL, $RegionCodeErrorReason = NULL, $RejectedErrorReason = NULL, $RequestErrorReason = NULL, $RequiredErrorReason = NULL, $SelectorErrorReason = NULL, $SettingErrorReason = NULL, $SizeLimitErrorReason = NULL, $StatsQueryErrorReason = NULL, $StringLengthErrorReason = NULL, $TargetErrorReason = NULL) { + $this->AdErrorReason = $AdErrorReason; + $this->AdExtensionErrorReason = $AdExtensionErrorReason; + $this->AdExtensionOverrideErrorReason = $AdExtensionOverrideErrorReason; + $this->AdGroupAdErrorReason = $AdGroupAdErrorReason; + $this->AdGroupCriterionErrorReason = $AdGroupCriterionErrorReason; + $this->AdGroupServiceErrorReason = $AdGroupServiceErrorReason; + $this->AdxErrorReason = $AdxErrorReason; + $this->AuthenticationErrorReason = $AuthenticationErrorReason; + $this->AuthorizationErrorReason = $AuthorizationErrorReason; + $this->BetaErrorReason = $BetaErrorReason; + $this->BiddingErrorReason = $BiddingErrorReason; + $this->BiddingErrorsReason = $BiddingErrorsReason; + $this->BiddingTransitionErrorReason = $BiddingTransitionErrorReason; + $this->BudgetErrorReason = $BudgetErrorReason; + $this->BulkMutateJobErrorReason = $BulkMutateJobErrorReason; + $this->CampaignAdExtensionErrorReason = $CampaignAdExtensionErrorReason; + $this->CampaignCriterionErrorReason = $CampaignCriterionErrorReason; + $this->CampaignErrorReason = $CampaignErrorReason; + $this->ClientTermsErrorReason = $ClientTermsErrorReason; + $this->CriterionErrorReason = $CriterionErrorReason; + $this->DatabaseErrorReason = $DatabaseErrorReason; + $this->DateErrorReason = $DateErrorReason; + $this->DistinctErrorReason = $DistinctErrorReason; + $this->EntityAccessDeniedReason = $EntityAccessDeniedReason; + $this->EntityCountLimitExceededReason = $EntityCountLimitExceededReason; + $this->EntityNotFoundReason = $EntityNotFoundReason; + $this->FeedItemErrorReason = $FeedItemErrorReason; + $this->ForwardCompatibilityErrorReason = $ForwardCompatibilityErrorReason; + $this->IdErrorReason = $IdErrorReason; + $this->ImageErrorReason = $ImageErrorReason; + $this->InternalApiErrorReason = $InternalApiErrorReason; + $this->JobErrorReason = $JobErrorReason; + $this->MediaErrorReason = $MediaErrorReason; + $this->NewEntityCreationErrorReason = $NewEntityCreationErrorReason; + $this->NotEmptyErrorReason = $NotEmptyErrorReason; + $this->NotWhitelistedErrorReason = $NotWhitelistedErrorReason; + $this->NullErrorReason = $NullErrorReason; + $this->OperationAccessDeniedReason = $OperationAccessDeniedReason; + $this->OperatorErrorReason = $OperatorErrorReason; + $this->PagingErrorReason = $PagingErrorReason; + $this->PolicyViolationErrorReason = $PolicyViolationErrorReason; + $this->QueryErrorReason = $QueryErrorReason; + $this->QuotaCheckErrorReason = $QuotaCheckErrorReason; + $this->QuotaErrorReason = $QuotaErrorReason; + $this->RangeErrorReason = $RangeErrorReason; + $this->RateExceededErrorReason = $RateExceededErrorReason; + $this->ReadOnlyErrorReason = $ReadOnlyErrorReason; + $this->RegionCodeErrorReason = $RegionCodeErrorReason; + $this->RejectedErrorReason = $RejectedErrorReason; + $this->RequestErrorReason = $RequestErrorReason; + $this->RequiredErrorReason = $RequiredErrorReason; + $this->SelectorErrorReason = $SelectorErrorReason; + $this->SettingErrorReason = $SettingErrorReason; + $this->SizeLimitErrorReason = $SizeLimitErrorReason; + $this->StatsQueryErrorReason = $StatsQueryErrorReason; + $this->StringLengthErrorReason = $StringLengthErrorReason; + $this->TargetErrorReason = $TargetErrorReason; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Bid", FALSE)) { +/** + * Represents a bid of a certain amount. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Bid { + /** + * @access public + * @var Money + */ + public $amount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Bid"; + } + + public function __construct($amount = NULL) { + $this->amount = $amount; + } +}} + +if (!class_exists("BidMultiplier", FALSE)) { +/** + * Represents a multiplier to modify a bid. The final value after + * modification is represented by the multiplied bid value. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BidMultiplier { + /** + * @access public + * @var double + */ + public $multiplier; + + /** + * @access public + * @var Bid + */ + public $multipliedBid; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidMultiplier"; + } + + public function __construct($multiplier = NULL, $multipliedBid = NULL) { + $this->multiplier = $multiplier; + $this->multipliedBid = $multipliedBid; + } +}} + +if (!class_exists("BiddableAdGroupCriterion", FALSE)) { +/** + * A biddable (positive) criterion in an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddableAdGroupCriterion extends AdGroupCriterion { + /** + * @access public + * @var tnsUserStatus + */ + public $userStatus; + + /** + * @access public + * @var tnsSystemServingStatus + */ + public $systemServingStatus; + + /** + * @access public + * @var tnsApprovalStatus + */ + public $approvalStatus; + + /** + * @access public + * @var string[] + */ + public $disapprovalReasons; + + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * @access public + * @var BiddableAdGroupCriterionExperimentData + */ + public $experimentData; + + /** + * @access public + * @var Bid + */ + public $firstPageCpc; + + /** + * @access public + * @var Bid + */ + public $topOfPageCpc; + + /** + * @access public + * @var QualityInfo + */ + public $qualityInfo; + + /** + * @access public + * @var BiddingStrategyConfiguration + */ + public $biddingStrategyConfiguration; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddableAdGroupCriterion"; + } + + public function __construct($userStatus = NULL, $systemServingStatus = NULL, $approvalStatus = NULL, $disapprovalReasons = NULL, $destinationUrl = NULL, $experimentData = NULL, $firstPageCpc = NULL, $topOfPageCpc = NULL, $qualityInfo = NULL, $biddingStrategyConfiguration = NULL, $bidModifier = NULL, $adGroupId = NULL, $criterionUse = NULL, $criterion = NULL, $forwardCompatibilityMap = NULL, $AdGroupCriterionType = NULL) { + parent::__construct(); + $this->userStatus = $userStatus; + $this->systemServingStatus = $systemServingStatus; + $this->approvalStatus = $approvalStatus; + $this->disapprovalReasons = $disapprovalReasons; + $this->destinationUrl = $destinationUrl; + $this->experimentData = $experimentData; + $this->firstPageCpc = $firstPageCpc; + $this->topOfPageCpc = $topOfPageCpc; + $this->qualityInfo = $qualityInfo; + $this->biddingStrategyConfiguration = $biddingStrategyConfiguration; + $this->bidModifier = $bidModifier; + $this->adGroupId = $adGroupId; + $this->criterionUse = $criterionUse; + $this->criterion = $criterion; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->AdGroupCriterionType = $AdGroupCriterionType; + } +}} + +if (!class_exists("BiddableAdGroupCriterionExperimentData", FALSE)) { +/** + * Data associated with an advertiser experiment for this {@link BiddableAdGroupCriterion}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddableAdGroupCriterionExperimentData { + /** + * @access public + * @var integer + */ + public $experimentId; + + /** + * @access public + * @var tnsExperimentDeltaStatus + */ + public $experimentDeltaStatus; + + /** + * @access public + * @var tnsExperimentDataStatus + */ + public $experimentDataStatus; + + /** + * @access public + * @var AdGroupCriterionExperimentBidMultiplier + */ + public $experimentBidMultiplier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddableAdGroupCriterionExperimentData"; + } + + public function __construct($experimentId = NULL, $experimentDeltaStatus = NULL, $experimentDataStatus = NULL, $experimentBidMultiplier = NULL) { + $this->experimentId = $experimentId; + $this->experimentDeltaStatus = $experimentDeltaStatus; + $this->experimentDataStatus = $experimentDataStatus; + $this->experimentBidMultiplier = $experimentBidMultiplier; + } +}} + +if (!class_exists("BiddingError", FALSE)) { +/** + * Represents bidding errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingError extends ApiError { + /** + * @access public + * @var tnsBiddingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BiddingErrors", FALSE)) { +/** + * Represents error codes for bidding strategy entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingErrors extends ApiError { + /** + * @access public + * @var tnsBiddingErrorsReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BiddingScheme", FALSE)) { +/** + * Base class for all bidding schemes. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingScheme { + /** + * @access public + * @var string + */ + public $BiddingSchemeType; + + private $_parameterMap = array ( + "BiddingScheme.Type" => "BiddingSchemeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("BiddingStrategyConfiguration", FALSE)) { +/** + * Encapsulates the information about bids and bidding strategies. + * + * Bidding Strategy can be set on campaigns, ad groups or ad group criteria. + * A bidding strategy can be set using one of the following: + *
      + *
    • {@linkplain BiddingStrategyConfiguration#biddingScheme bidding scheme}
    • + *
    • {@linkplain BiddingStrategyConfiguration#biddingStrategyType bidding strategy type}
    • + *
    • {@linkplain BiddingStrategyConfiguration#biddingStrategyId bidding strategy ID} for + * flexible bid strategies.
    • + *
    + * If the bidding strategy type is used, then schemes are created using default values. + * + * Bids can be set only on ad groups and ad group criteria. They cannot be set on campaigns. + * Multiple bids can be set at the same time. Only the bids that apply to the campaign's + * {@linkplain Campaign#biddingStrategyConfiguration bidding strategy} will be used. + * + * For more information on flexible bidding, visit the + * Help Center. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyConfiguration { + /** + * @access public + * @var integer + */ + public $biddingStrategyId; + + /** + * @access public + * @var string + */ + public $biddingStrategyName; + + /** + * @access public + * @var tnsBiddingStrategyType + */ + public $biddingStrategyType; + + /** + * @access public + * @var tnsBiddingStrategySource + */ + public $biddingStrategySource; + + /** + * @access public + * @var BiddingScheme + */ + public $biddingScheme; + + /** + * @access public + * @var Bids[] + */ + public $bids; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyConfiguration"; + } + + public function __construct($biddingStrategyId = NULL, $biddingStrategyName = NULL, $biddingStrategyType = NULL, $biddingStrategySource = NULL, $biddingScheme = NULL, $bids = NULL) { + $this->biddingStrategyId = $biddingStrategyId; + $this->biddingStrategyName = $biddingStrategyName; + $this->biddingStrategyType = $biddingStrategyType; + $this->biddingStrategySource = $biddingStrategySource; + $this->biddingScheme = $biddingScheme; + $this->bids = $bids; + } +}} + +if (!class_exists("BiddingTransitionError", FALSE)) { +/** + * Bidding transition errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingTransitionError extends ApiError { + /** + * @access public + * @var tnsBiddingTransitionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingTransitionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Bids", FALSE)) { +/** + * Base class for all bids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Bids { + /** + * @access public + * @var string + */ + public $BidsType; + + private $_parameterMap = array ( + "Bids.Type" => "BidsType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Bids"; + } + + public function __construct($BidsType = NULL) { + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("BillingSummary", FALSE)) { +/** + * Represents the billing summary of the job that provides the overall cost of + * the job's operations, i.e., for the work done by the job. This + * therefore excludes the cost of operating on the job itself - setting up the + * job, polling for its status, retrieving the result, etc. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BillingSummary { + /** + * @access public + * @var integer + */ + public $numOperations; + + /** + * @access public + * @var integer + */ + public $numUnits; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingSummary"; + } + + public function __construct($numOperations = NULL, $numUnits = NULL) { + $this->numOperations = $numOperations; + $this->numUnits = $numUnits; + } +}} + +if (!class_exists("Budget", FALSE)) { +/** + * Budgets are used for managing the amount of money spent on AdWords. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Budget { + /** + * @access public + * @var integer + */ + public $budgetId; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsBudgetBudgetPeriod + */ + public $period; + + /** + * @access public + * @var Money + */ + public $amount; + + /** + * @access public + * @var tnsBudgetBudgetDeliveryMethod + */ + public $deliveryMethod; + + /** + * @access public + * @var integer + */ + public $referenceCount; + + /** + * @access public + * @var boolean + */ + public $isExplicitlyShared; + + /** + * @access public + * @var tnsBudgetBudgetStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget"; + } + + public function __construct($budgetId = NULL, $name = NULL, $period = NULL, $amount = NULL, $deliveryMethod = NULL, $referenceCount = NULL, $isExplicitlyShared = NULL, $status = NULL) { + $this->budgetId = $budgetId; + $this->name = $name; + $this->period = $period; + $this->amount = $amount; + $this->deliveryMethod = $deliveryMethod; + $this->referenceCount = $referenceCount; + $this->isExplicitlyShared = $isExplicitlyShared; + $this->status = $status; + } +}} + +if (!class_exists("BudgetError", FALSE)) { +/** + * A list of all the error codes being used by the common budget domain package. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetError extends ApiError { + /** + * @access public + * @var tnsBudgetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BudgetOptimizerBiddingScheme", FALSE)) { +/** + * In budget optimizer, Google automatically places bids for the user based on + * their daily/monthly budget. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOptimizerBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("BulkMutateJobError", FALSE)) { +/** + * Bulk mutate job handling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BulkMutateJobError extends ApiError { + /** + * @access public + * @var tnsBulkMutateJobErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateJobError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BulkMutateJobPolicy", FALSE)) { +/** + * A basic job policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BulkMutateJobPolicy { + /** + * @access public + * @var integer[] + */ + public $prerequisiteJobIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateJobPolicy"; + } + + public function __construct($prerequisiteJobIds = NULL) { + $this->prerequisiteJobIds = $prerequisiteJobIds; + } +}} + +if (!class_exists("BulkMutateRequest", FALSE)) { +/** + * A request part of a {@link BulkMutateJob}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BulkMutateRequest { + /** + * @access public + * @var integer + */ + public $partIndex; + + /** + * @access public + * @var OperationStream[] + */ + public $operationStreams; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateRequest"; + } + + public function __construct($partIndex = NULL, $operationStreams = NULL) { + $this->partIndex = $partIndex; + $this->operationStreams = $operationStreams; + } +}} + +if (!class_exists("BulkMutateResult", FALSE)) { +/** + * Represents a result part of a {@link BulkMutateJob}. + * + *

    Once one or more mutate operations have been processed, the bulk mutate + * job will eventually be completed. This means that the job will have a result + * corresponding to each operation. The types of results for an operation are: + *

      + *
    • {@link ReturnValueResult}: the corresponding operation was successfully + * processed and this result contains the return value of that operation; + *
    • + *
    • {@link FailureResult} or {@link BatchFailureResult}: the corresponding + * operation was in a batch that failed with errors. Please inspect these + * errors to determine if the operation itself was faulty and if so what + * errors need to be fixed before you submit this operation as part of a + * future job.
    • + *
    • {@link LostResult}: the corresponding operation was processed - it was + * either successful and had a return value, or it was a part of a failed + * batch. Unfortunately, despite our best efforts, we were unable to + * durably save the result. You may have to retrieve the related state of + * your account to determine if this operation actually succeeded.
    • + *
    • {@link UnprocessedResult}: the corresponding operation was not processed + * because the job was aborted Note: The job's status will be + * {@code COMPLETED}, signifying that although it may have some operations + * that were processed, it cannot be resumed.
    • + * + *

      The results of a job are structured so that the each operation can be + * easily matched to its corresponding result. So for every + * {@link BulkMutateRequest} in a job, there is a corresponding + * {@code BulkMutateResult}; For every {@link OperationStream} in a request + * part, there is a corresponding {@link OperationStreamResult}; And, for + * every {@link Operation} in an operation stream, there is an + * {@link OperationResult}.

      + * + *

      Within an operation stream, the operations are processed in atomic + * batches. So even one faulty operation may cause its neighboring non-faulty + * operations to fail just because they happened to be processed in the same + * batch. It is important to keep this batch failure reporting scheme in mind + * when handling operation failures.

      + * + *

      There will be a single {@link ApiException} returned for each failing + * batch of operations, and it will have a similar structure and + * interpretation to the exceptions returned by the synchronous AdWords API + * services. This exception is returned in a {@link FailureResult} that + * corresponds to the first operation of the failing batch.

      + * + *

      The exception may contain multiple errors, and each error may have + * {@code OGNL path}s that identify the faulty operation(s) by index (or + * position within the batch). The first operation in the batch has an + * implicit index of 0. The subsequent operations in the batch have a + * corresponding {@link BatchFailureResult} which explicitly specifies the + * index of the operation within the batch.

      + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BulkMutateResult { + /** + * @access public + * @var integer + */ + public $partIndex; + + /** + * @access public + * @var OperationStreamResult[] + */ + public $operationStreamResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateResult"; + } + + public function __construct($partIndex = NULL, $operationStreamResults = NULL) { + $this->partIndex = $partIndex; + $this->operationStreamResults = $operationStreamResults; + } +}} + +if (!class_exists("Campaign", FALSE)) { +/** + * Data representing an AdWords campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Campaign { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsCampaignStatus + */ + public $status; + + /** + * @access public + * @var tnsServingStatus + */ + public $servingStatus; + + /** + * @access public + * @var string + */ + public $startDate; + + /** + * @access public + * @var string + */ + public $endDate; + + /** + * @access public + * @var Budget + */ + public $budget; + + /** + * @access public + * @var ConversionOptimizerEligibility + */ + public $conversionOptimizerEligibility; + + /** + * @access public + * @var tnsAdServingOptimizationStatus + */ + public $adServingOptimizationStatus; + + /** + * @access public + * @var FrequencyCap + */ + public $frequencyCap; + + /** + * @access public + * @var Setting[] + */ + public $settings; + + /** + * @access public + * @var NetworkSetting + */ + public $networkSetting; + + /** + * @access public + * @var BiddingStrategyConfiguration + */ + public $biddingStrategyConfiguration; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Campaign"; + } + + public function __construct($id = NULL, $name = NULL, $status = NULL, $servingStatus = NULL, $startDate = NULL, $endDate = NULL, $budget = NULL, $conversionOptimizerEligibility = NULL, $adServingOptimizationStatus = NULL, $frequencyCap = NULL, $settings = NULL, $networkSetting = NULL, $biddingStrategyConfiguration = NULL, $forwardCompatibilityMap = NULL) { + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->servingStatus = $servingStatus; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->budget = $budget; + $this->conversionOptimizerEligibility = $conversionOptimizerEligibility; + $this->adServingOptimizationStatus = $adServingOptimizationStatus; + $this->frequencyCap = $frequencyCap; + $this->settings = $settings; + $this->networkSetting = $networkSetting; + $this->biddingStrategyConfiguration = $biddingStrategyConfiguration; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + } +}} + +if (!class_exists("CampaignAdExtension", FALSE)) { +/** + * Represents a campaign level ad extension. A campaign ad extension specifies + * a campaign and an ad extension which can extend any ad under that campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtension { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var AdExtension + */ + public $adExtension; + + /** + * @access public + * @var tnsCampaignAdExtensionStatus + */ + public $status; + + /** + * @access public + * @var tnsCampaignAdExtensionApprovalStatus + */ + public $approvalStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtension"; + } + + public function __construct($campaignId = NULL, $adExtension = NULL, $status = NULL, $approvalStatus = NULL) { + $this->campaignId = $campaignId; + $this->adExtension = $adExtension; + $this->status = $status; + $this->approvalStatus = $approvalStatus; + } +}} + +if (!class_exists("CampaignAdExtensionError", FALSE)) { +/** + * CampaignAdExtension errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtensionError extends ApiError { + /** + * @access public + * @var tnsCampaignAdExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CampaignCriterion", FALSE)) { +/** + * Represents a campaign level criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterion { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var boolean + */ + public $isNegative; + + /** + * @access public + * @var Criterion + */ + public $criterion; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * @access public + * @var string + */ + public $CampaignCriterionType; + + private $_parameterMap = array ( + "CampaignCriterion.Type" => "CampaignCriterionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterion"; + } + + public function __construct($campaignId = NULL, $isNegative = NULL, $criterion = NULL, $bidModifier = NULL, $forwardCompatibilityMap = NULL, $CampaignCriterionType = NULL) { + $this->campaignId = $campaignId; + $this->isNegative = $isNegative; + $this->criterion = $criterion; + $this->bidModifier = $bidModifier; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->CampaignCriterionType = $CampaignCriterionType; + } +}} + +if (!class_exists("CampaignCriterionError", FALSE)) { +/** + * Base error class for Campaign Criterion Service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterionError extends ApiError { + /** + * @access public + * @var tnsCampaignCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CampaignError", FALSE)) { +/** + * Base error class for Campaign Service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignError extends ApiError { + /** + * @access public + * @var tnsCampaignErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("ConversionOptimizerBiddingScheme", FALSE)) { +/** + * Conversion optimizer bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + *

      {@code pricingMode} currently defaults to {@code CLICKS} and + * cannot be changed.

      + * + *

      Note that campaigns must meet specific + * eligibility requirements before they can use the ConversionOptimizer + * bidding strategy. + * + * For more information on conversion optimizer, visit the + * Conversion Optimizer site. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemePricingMode + */ + public $pricingMode; + + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemeBidType + */ + public $bidType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme"; + } + + public function __construct($pricingMode = NULL, $bidType = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->pricingMode = $pricingMode; + $this->bidType = $bidType; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ConversionOptimizerEligibility", FALSE)) { +/** + * Eligibility data for Campaign to transition to Conversion Optimizer + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerEligibility { + /** + * @access public + * @var boolean + */ + public $eligible; + + /** + * @access public + * @var tnsConversionOptimizerEligibilityRejectionReason[] + */ + public $rejectionReasons; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerEligibility"; + } + + public function __construct($eligible = NULL, $rejectionReasons = NULL) { + $this->eligible = $eligible; + $this->rejectionReasons = $rejectionReasons; + } +}} + +if (!class_exists("CpaBid", FALSE)) { +/** + * CPA Bids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CpaBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpaBid"; + } + + public function __construct($bid = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("CpcBid", FALSE)) { +/** + * Manual click based bids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CpcBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var Money + */ + public $contentBid; + + /** + * @access public + * @var tnsBidSource + */ + public $cpcBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpcBid"; + } + + public function __construct($bid = NULL, $contentBid = NULL, $cpcBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->contentBid = $contentBid; + $this->cpcBidSource = $cpcBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("CpmBid", FALSE)) { +/** + * Manual impression based bids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CpmBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var tnsBidSource + */ + public $cpmBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpmBid"; + } + + public function __construct($bid = NULL, $cpmBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->cpmBidSource = $cpmBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("Criterion", FALSE)) { +/** + * Represents a criterion (such as a keyword, placement, or vertical). + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Criterion { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsCriterionType + */ + public $type; + + /** + * @access public + * @var string + */ + public $CriterionType; + + private $_parameterMap = array ( + "Criterion.Type" => "CriterionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + public function __construct($id = NULL, $type = NULL, $CriterionType = NULL) { + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionError", FALSE)) { +/** + * Error class used for reporting criteria related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionError extends ApiError { + /** + * @access public + * @var tnsCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CriterionParameter", FALSE)) { +/** + * Base type of criterion parameters. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionParameter { + /** + * @access public + * @var string + */ + public $CriterionParameterType; + + private $_parameterMap = array ( + "CriterionParameter.Type" => "CriterionParameterType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionParameter"; + } + + public function __construct($CriterionParameterType = NULL) { + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DeprecatedAd", FALSE)) { +/** + * Represents a deprecated ad. + * + * Deprecated ads can be deleted, but cannot be created. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DeprecatedAd extends Ad { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsDeprecatedAdType + */ + public $type; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeprecatedAd"; + } + + public function __construct($name = NULL, $type = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->name = $name; + $this->type = $type; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("Dimensions", FALSE)) { +/** + * Represents a simple height-width dimension. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Dimensions { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Dimensions"; + } + + public function __construct($width = NULL, $height = NULL) { + $this->width = $width; + $this->height = $height; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DomainInfoExtension", FALSE)) { +/** + * Domain extension, which adds domain info to ads. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DomainInfoExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $domainName; + + /** + * @access public + * @var string + */ + public $languageCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DomainInfoExtension"; + } + + public function __construct($domainName = NULL, $languageCode = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->domainName = $domainName; + $this->languageCode = $languageCode; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("EnhancedCpcBiddingScheme", FALSE)) { +/** + * Enhanced CPC is a bidding strategy that raises your bids for clicks that seem more likely to + * lead to a conversion and lowers them for clicks where they seem less likely. + * + * This bidding scheme does not support criteria level bidding strategy overrides. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EnhancedCpcBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnhancedCpcBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("EntityAccessDenied", FALSE)) { +/** + * Reports permission problems trying to access an entity. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityAccessDenied extends ApiError { + /** + * @access public + * @var tnsEntityAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityId", FALSE)) { +/** + * A qualified long-valued identity that can identify different types of + * AdWords entities such as campaigns and ad-groups. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityId { + /** + * @access public + * @var tnsEntityIdType + */ + public $type; + + /** + * @access public + * @var integer + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityId"; + } + + public function __construct($type = NULL, $value = NULL) { + $this->type = $type; + $this->value = $value; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ExemptionRequest", FALSE)) { +/** + * A request to be exempted from a {@link PolicyViolationError}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExemptionRequest { + /** + * @access public + * @var PolicyViolationKey + */ + public $key; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExemptionRequest"; + } + + public function __construct($key = NULL) { + $this->key = $key; + } +}} + +if (!class_exists("FeedItem", FALSE)) { +/** + * Represents an item in a feed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItem { + /** + * @access public + * @var integer + */ + public $feedId; + + /** + * @access public + * @var integer + */ + public $feedItemId; + + /** + * @access public + * @var tnsFeedItemStatus + */ + public $status; + + /** + * @access public + * @var string + */ + public $startTime; + + /** + * @access public + * @var string + */ + public $endTime; + + /** + * @access public + * @var FeedItemAttributeValue[] + */ + public $attributeValues; + + /** + * @access public + * @var FeedItemValidationDetail[] + */ + public $validationDetails; + + /** + * @access public + * @var FeedItemDevicePreference + */ + public $devicePreference; + + /** + * @access public + * @var FeedItemScheduling + */ + public $scheduling; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItem"; + } + + public function __construct($feedId = NULL, $feedItemId = NULL, $status = NULL, $startTime = NULL, $endTime = NULL, $attributeValues = NULL, $validationDetails = NULL, $devicePreference = NULL, $scheduling = NULL) { + $this->feedId = $feedId; + $this->feedItemId = $feedItemId; + $this->status = $status; + $this->startTime = $startTime; + $this->endTime = $endTime; + $this->attributeValues = $attributeValues; + $this->validationDetails = $validationDetails; + $this->devicePreference = $devicePreference; + $this->scheduling = $scheduling; + } +}} + +if (!class_exists("FeedItemAttributeError", FALSE)) { +/** + * Contains validation error details for a set of feed attributes. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemAttributeError { + /** + * @access public + * @var integer[] + */ + public $feedAttributeIds; + + /** + * @access public + * @var integer + */ + public $validationErrorCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemAttributeError"; + } + + public function __construct($feedAttributeIds = NULL, $validationErrorCode = NULL) { + $this->feedAttributeIds = $feedAttributeIds; + $this->validationErrorCode = $validationErrorCode; + } +}} + +if (!class_exists("FeedItemAttributeValue", FALSE)) { +/** + * Represents a feed item's value for a particular feed attribute. A feed item's value is + * composed of a collection of these attribute values. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemAttributeValue { + /** + * @access public + * @var integer + */ + public $feedAttributeId; + + /** + * @access public + * @var integer + */ + public $integerValue; + + /** + * @access public + * @var double + */ + public $doubleValue; + + /** + * @access public + * @var boolean + */ + public $booleanValue; + + /** + * @access public + * @var string + */ + public $stringValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemAttributeValue"; + } + + public function __construct($feedAttributeId = NULL, $integerValue = NULL, $doubleValue = NULL, $booleanValue = NULL, $stringValue = NULL) { + $this->feedAttributeId = $feedAttributeId; + $this->integerValue = $integerValue; + $this->doubleValue = $doubleValue; + $this->booleanValue = $booleanValue; + $this->stringValue = $stringValue; + } +}} + +if (!class_exists("FeedItemDevicePreference", FALSE)) { +/** + * Represents a FeedItem device preference. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemDevicePreference { + /** + * @access public + * @var integer + */ + public $devicePreference; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemDevicePreference"; + } + + public function __construct($devicePreference = NULL) { + $this->devicePreference = $devicePreference; + } +}} + +if (!class_exists("FeedItemError", FALSE)) { +/** + * FeedItemService related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemError extends ApiError { + /** + * @access public + * @var tnsFeedItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("FeedItemSchedule", FALSE)) { +/** + * Represents a FeedItem schedule, which specifies a time interval on a given day + * when the feed item may serve. The FeedItemSchedule times are in the account's time zone. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemSchedule { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var integer + */ + public $startHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $startMinute; + + /** + * @access public + * @var integer + */ + public $endHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $endMinute; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemSchedule"; + } + + public function __construct($dayOfWeek = NULL, $startHour = NULL, $startMinute = NULL, $endHour = NULL, $endMinute = NULL) { + $this->dayOfWeek = $dayOfWeek; + $this->startHour = $startHour; + $this->startMinute = $startMinute; + $this->endHour = $endHour; + $this->endMinute = $endMinute; + } +}} + +if (!class_exists("FeedItemScheduling", FALSE)) { +/** + * Represents a collection of FeedItem schedules specifying all time intervals for which + * the feed item may serve. Any time range not covered by the specified FeedItemSchedules will + * prevent the feed item from serving during those times. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemScheduling { + /** + * @access public + * @var FeedItemSchedule[] + */ + public $feedItemSchedules; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemScheduling"; + } + + public function __construct($feedItemSchedules = NULL) { + $this->feedItemSchedules = $feedItemSchedules; + } +}} + +if (!class_exists("FeedItemValidationDetail", FALSE)) { +/** + * Contains offline-validation and approval results for a given FeedItem and FeedMapping. Each + * validation detail indicates any issues found on the feed item when used in the context + * of the feed mapping. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemValidationDetail { + /** + * @access public + * @var integer + */ + public $feedMappingId; + + /** + * @access public + * @var tnsFeedItemValidationDetailValidationStatus + */ + public $validationStatus; + + /** + * @access public + * @var FeedItemAttributeError[] + */ + public $validationErrors; + + /** + * @access public + * @var tnsFeedItemValidationDetailApprovalStatus + */ + public $approvalStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemValidationDetail"; + } + + public function __construct($feedMappingId = NULL, $validationStatus = NULL, $validationErrors = NULL, $approvalStatus = NULL) { + $this->feedMappingId = $feedMappingId; + $this->validationStatus = $validationStatus; + $this->validationErrors = $validationErrors; + $this->approvalStatus = $approvalStatus; + } +}} + +if (!class_exists("ForwardCompatibilityError", FALSE)) { +/** + * A ForwardComptibilityError represents possible errors when using the forwardCompatibilityMap + * in some of the common services. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ForwardCompatibilityError extends ApiError { + /** + * @access public + * @var tnsForwardCompatibilityErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * A frequency cap is the maximum number of times an ad (or some set of ads) can + * be shown to a user over a particular time period. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FrequencyCap { + /** + * @access public + * @var integer + */ + public $impressions; + + /** + * @access public + * @var tnsTimeUnit + */ + public $timeUnit; + + /** + * @access public + * @var tnsLevel + */ + public $level; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCap"; + } + + public function __construct($impressions = NULL, $timeUnit = NULL, $level = NULL) { + $this->impressions = $impressions; + $this->timeUnit = $timeUnit; + $this->level = $level; + } +}} + +if (!class_exists("Gender", FALSE)) { +/** + * Represents a Gender criterion. + *

      A criterion of this type can only be created using an ID. A criterion of this type is only excludable. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Gender extends Criterion { + /** + * @access public + * @var tnsGenderGenderType + */ + public $genderType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Gender"; + } + + public function __construct($genderType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->genderType = $genderType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("GeoPoint", FALSE)) { +/** + * Specifies a geo location with the supplied latitude/longitude. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoPoint { + /** + * @access public + * @var integer + */ + public $latitudeInMicroDegrees; + + /** + * @access public + * @var integer + */ + public $longitudeInMicroDegrees; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoPoint"; + } + + public function __construct($latitudeInMicroDegrees = NULL, $longitudeInMicroDegrees = NULL) { + $this->latitudeInMicroDegrees = $latitudeInMicroDegrees; + $this->longitudeInMicroDegrees = $longitudeInMicroDegrees; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ImageAd", FALSE)) { +/** + * Represents an ImageAd. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ImageAd extends Ad { + /** + * @access public + * @var Image + */ + public $image; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $adToCopyImageFrom; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageAd"; + } + + public function __construct($image = NULL, $name = NULL, $adToCopyImageFrom = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->image = $image; + $this->name = $name; + $this->adToCopyImageFrom = $adToCopyImageFrom; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("ImageError", FALSE)) { +/** + * Error class for errors associated with parsing image data. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ImageError extends ApiError { + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("InAppLinkExtension", FALSE)) { +/** + *

      This extension is useful for advertisers who wish to provide users with a + * link that points to the advertiser's mobile application in addition to their + * website. + * + *

      It is also known as Mobile App Extension. + * + *

      The API allows one InAppLinkExtension per {@code AppStore} per campaign. + * Only the extension for a given {@code AppStore} will render on the device + * relevant to that {@code AppStore} (e.g. iPhones for {@code AppStore.ITUNES} + * and Android phones for {@code AppStore.GOOGLE_PLAY}). + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InAppLinkExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $inAppLinkText; + + /** + * @access public + * @var string + */ + public $inAppLinkUrl; + + /** + * @access public + * @var tnsInAppLinkExtensionAppStore + */ + public $appStore; + + /** + * @access public + * @var string + */ + public $appId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InAppLinkExtension"; + } + + public function __construct($inAppLinkText = NULL, $inAppLinkUrl = NULL, $appStore = NULL, $appId = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->inAppLinkText = $inAppLinkText; + $this->inAppLinkUrl = $inAppLinkUrl; + $this->appStore = $appStore; + $this->appId = $appId; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Job", FALSE)) { +/** + * Represents an asynchronous macro unit of work. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Job { + /** + * @access public + * @var ApiErrorReason + */ + public $failureReason; + + /** + * @access public + * @var JobStats + */ + public $stats; + + /** + * @access public + * @var BillingSummary + */ + public $billingSummary; + + /** + * @access public + * @var string + */ + public $JobType; + + private $_parameterMap = array ( + "Job.Type" => "JobType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Job"; + } + + public function __construct($failureReason = NULL, $stats = NULL, $billingSummary = NULL, $JobType = NULL) { + $this->failureReason = $failureReason; + $this->stats = $stats; + $this->billingSummary = $billingSummary; + $this->JobType = $JobType; + } +}} + +if (!class_exists("JobError", FALSE)) { +/** + * Job handling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class JobError extends ApiError { + /** + * @access public + * @var tnsJobErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "JobError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("JobEvent", FALSE)) { +/** + * An event defined by a status change of a job. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class JobEvent { + /** + * @access public + * @var string + */ + public $dateTime; + + /** + * @access public + * @var string + */ + public $JobEventType; + + private $_parameterMap = array ( + "JobEvent.Type" => "JobEventType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "JobEvent"; + } + + public function __construct($dateTime = NULL, $JobEventType = NULL) { + $this->dateTime = $dateTime; + $this->JobEventType = $JobEventType; + } +}} + +if (!class_exists("JobResult", FALSE)) { +/** + * Represents the result data of a job. This contains both the results of + * successfully processed operations as well as errors returned by failed + * operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class JobResult { + /** + * @access public + * @var BulkMutateResult + */ + public $BulkMutateResult; + + /** + * @access public + * @var SimpleMutateResult + */ + public $SimpleMutateResult; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "JobResult"; + } + + public function __construct($BulkMutateResult = NULL, $SimpleMutateResult = NULL) { + $this->BulkMutateResult = $BulkMutateResult; + $this->SimpleMutateResult = $SimpleMutateResult; + } +}} + +if (!class_exists("JobSelector", FALSE)) { +/** + * For selecting jobs whose information will be returned from a get method call + * of a job service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class JobSelector { + /** + * @access public + * @var boolean + */ + public $includeHistory; + + /** + * @access public + * @var boolean + */ + public $includeStats; + + /** + * @access public + * @var string + */ + public $JobSelectorType; + + private $_parameterMap = array ( + "JobSelector.Type" => "JobSelectorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "JobSelector"; + } + + public function __construct($includeHistory = NULL, $includeStats = NULL, $JobSelectorType = NULL) { + $this->includeHistory = $includeHistory; + $this->includeStats = $includeStats; + $this->JobSelectorType = $JobSelectorType; + } +}} + +if (!class_exists("JobStats", FALSE)) { +/** + * Job-handling statistics. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class JobStats { + /** + * @access public + * @var integer + */ + public $progressPercent; + + /** + * @access public + * @var integer + */ + public $pendingTimeMillis; + + /** + * @access public + * @var integer + */ + public $processingTimeMillis; + + /** + * @access public + * @var string + */ + public $JobStatsType; + + private $_parameterMap = array ( + "JobStats.Type" => "JobStatsType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "JobStats"; + } + + public function __construct($progressPercent = NULL, $pendingTimeMillis = NULL, $processingTimeMillis = NULL, $JobStatsType = NULL) { + $this->progressPercent = $progressPercent; + $this->pendingTimeMillis = $pendingTimeMillis; + $this->processingTimeMillis = $processingTimeMillis; + $this->JobStatsType = $JobStatsType; + } +}} + +if (!class_exists("Keyword", FALSE)) { +/** + * Represents a keyword. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Keyword extends Criterion { + /** + * @access public + * @var string + */ + public $text; + + /** + * @access public + * @var tnsKeywordMatchType + */ + public $matchType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Keyword"; + } + + public function __construct($text = NULL, $matchType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->text = $text; + $this->matchType = $matchType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Language", FALSE)) { +/** + * Represents a Language criterion. + *

      A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Language extends Criterion { + /** + * @access public + * @var string + */ + public $code; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Language"; + } + + public function __construct($code = NULL, $name = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->code = $code; + $this->name = $name; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Location", FALSE)) { +/** + * Represents Location criterion. + *

      A criterion of this type can only be created using an ID. A criterion of this type can be either targeted or excluded. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Location extends Criterion { + /** + * @access public + * @var string + */ + public $locationName; + + /** + * @access public + * @var string + */ + public $displayType; + + /** + * @access public + * @var tnsLocationTargetingStatus + */ + public $targetingStatus; + + /** + * @access public + * @var Location[] + */ + public $parentLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($locationName = NULL, $displayType = NULL, $targetingStatus = NULL, $parentLocations = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->locationName = $locationName; + $this->displayType = $displayType; + $this->targetingStatus = $targetingStatus; + $this->parentLocations = $parentLocations; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("LocationExtension", FALSE)) { +/** + * Location based ad extension. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationExtension extends AdExtension { + /** + * @access public + * @var Address + */ + public $address; + + /** + * @access public + * @var GeoPoint + */ + public $geoPoint; + + /** + * @access public + * @var base64Binary + */ + public $encodedLocation; + + /** + * @access public + * @var string + */ + public $companyName; + + /** + * @access public + * @var string + */ + public $phoneNumber; + + /** + * @access public + * @var tnsLocationExtensionSource + */ + public $source; + + /** + * @access public + * @var integer + */ + public $iconMediaId; + + /** + * @access public + * @var integer + */ + public $imageMediaId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationExtension"; + } + + public function __construct($address = NULL, $geoPoint = NULL, $encodedLocation = NULL, $companyName = NULL, $phoneNumber = NULL, $source = NULL, $iconMediaId = NULL, $imageMediaId = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->address = $address; + $this->geoPoint = $geoPoint; + $this->encodedLocation = $encodedLocation; + $this->companyName = $companyName; + $this->phoneNumber = $phoneNumber; + $this->source = $source; + $this->iconMediaId = $iconMediaId; + $this->imageMediaId = $imageMediaId; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("LocationOverrideInfo", FALSE)) { +/** + * Represents override info for ad level LocationExtension overrides. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationOverrideInfo { + /** + * @access public + * @var integer + */ + public $radius; + + /** + * @access public + * @var tnsLocationOverrideInfoRadiusUnits + */ + public $radiusUnits; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationOverrideInfo"; + } + + public function __construct($radius = NULL, $radiusUnits = NULL) { + $this->radius = $radius; + $this->radiusUnits = $radiusUnits; + } +}} + +if (!class_exists("LocationSyncExtension", FALSE)) { +/** + * Local business center(LBC) sync extension that ties a LBC account with a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationSyncExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $email; + + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var OAuthInfo + */ + public $oAuthInfo; + + /** + * @access public + * @var integer + */ + public $iconMediaId; + + /** + * @access public + * @var boolean + */ + public $shouldSyncUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationSyncExtension"; + } + + public function __construct($email = NULL, $authToken = NULL, $oAuthInfo = NULL, $iconMediaId = NULL, $shouldSyncUrl = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->email = $email; + $this->authToken = $authToken; + $this->oAuthInfo = $oAuthInfo; + $this->iconMediaId = $iconMediaId; + $this->shouldSyncUrl = $shouldSyncUrl; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("ManualCPCAdGroupCriterionExperimentBidMultiplier", FALSE)) { +/** + * AdGroupCriterion level bid multiplier used in manual CPC bidding strategies. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManualCPCAdGroupCriterionExperimentBidMultiplier extends AdGroupCriterionExperimentBidMultiplier { + /** + * @access public + * @var BidMultiplier + */ + public $maxCpcMultiplier; + + /** + * @access public + * @var tnsMultiplierSource + */ + public $multiplierSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCPCAdGroupCriterionExperimentBidMultiplier"; + } + + public function __construct($maxCpcMultiplier = NULL, $multiplierSource = NULL, $AdGroupCriterionExperimentBidMultiplierType = NULL) { + parent::__construct(); + $this->maxCpcMultiplier = $maxCpcMultiplier; + $this->multiplierSource = $multiplierSource; + $this->AdGroupCriterionExperimentBidMultiplierType = $AdGroupCriterionExperimentBidMultiplierType; + } +}} + +if (!class_exists("ManualCPCAdGroupExperimentBidMultipliers", FALSE)) { +/** + * Adgroup level bid multipliers used in manual CPC bidding strategies. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManualCPCAdGroupExperimentBidMultipliers extends AdGroupExperimentBidMultipliers { + /** + * @access public + * @var BidMultiplier + */ + public $maxCpcMultiplier; + + /** + * @access public + * @var BidMultiplier + */ + public $maxContentCpcMultiplier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCPCAdGroupExperimentBidMultipliers"; + } + + public function __construct($maxCpcMultiplier = NULL, $maxContentCpcMultiplier = NULL, $AdGroupExperimentBidMultipliersType = NULL) { + parent::__construct(); + $this->maxCpcMultiplier = $maxCpcMultiplier; + $this->maxContentCpcMultiplier = $maxContentCpcMultiplier; + $this->AdGroupExperimentBidMultipliersType = $AdGroupExperimentBidMultipliersType; + } +}} + +if (!class_exists("ManualCPMAdGroupExperimentBidMultipliers", FALSE)) { +/** + * Adgroup level bid multipliers used in manual CPM bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManualCPMAdGroupExperimentBidMultipliers extends AdGroupExperimentBidMultipliers { + /** + * @access public + * @var BidMultiplier + */ + public $maxCpmMultiplier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCPMAdGroupExperimentBidMultipliers"; + } + + public function __construct($maxCpmMultiplier = NULL, $AdGroupExperimentBidMultipliersType = NULL) { + parent::__construct(); + $this->maxCpmMultiplier = $maxCpmMultiplier; + $this->AdGroupExperimentBidMultipliersType = $AdGroupExperimentBidMultipliersType; + } +}} + +if (!class_exists("ManualCpcBiddingScheme", FALSE)) { +/** + * Manual click based bidding where user pays per click. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManualCpcBiddingScheme extends BiddingScheme { + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpcBiddingScheme"; + } + + public function __construct($enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ManualCpmBiddingScheme", FALSE)) { +/** + * Manual impression based bidding where user pays per thousand impressions. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManualCpmBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpmBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("Media", FALSE)) { +/** + * Represents some kind of media. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Media { + /** + * @access public + * @var integer + */ + public $mediaId; + + /** + * @access public + * @var tnsMediaMediaType + */ + public $type; + + /** + * @access public + * @var integer + */ + public $referenceId; + + /** + * @access public + * @var Media_Size_DimensionsMapEntry[] + */ + public $dimensions; + + /** + * @access public + * @var Media_Size_StringMapEntry[] + */ + public $urls; + + /** + * @access public + * @var tnsMediaMimeType + */ + public $mimeType; + + /** + * @access public + * @var string + */ + public $sourceUrl; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $fileSize; + + /** + * @access public + * @var string + */ + public $creationTime; + + /** + * @access public + * @var string + */ + public $MediaType; + + private $_parameterMap = array ( + "Media.Type" => "MediaType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media"; + } + + public function __construct($mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("MediaError", FALSE)) { +/** + * Error class for media related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaError extends ApiError { + /** + * @access public + * @var tnsMediaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MediaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Media_Size_DimensionsMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Size + * and value of type Dimensions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Media_Size_DimensionsMapEntry { + /** + * @access public + * @var tnsMediaSize + */ + public $key; + + /** + * @access public + * @var Dimensions + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media_Size_DimensionsMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Media_Size_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Size + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Media_Size_StringMapEntry { + /** + * @access public + * @var tnsMediaSize + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media_Size_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("MobileAd", FALSE)) { +/** + * Represents a mobile ad. + * + *

      + * A mobile ad can contain a click-to-call phone number, a link to a website, + * or both. You specify which features you want by setting certain fields, as + * shown in the following table. For example, to create a click-to-call mobile + * ad, set the fields in the Click-to-call column. A hyphen indicates + * that you should not set the corresponding field. + *

      + *

      + * For more information, see + * + * Create a mobile ad. + *

      + * + * + * + * + * + * + * + * + *
      Click-to-call Website Both
      headline
      + * description
      + * mobileCarriers
      + * phoneNumber
      + * countryCode
      + * businessName
      + * -
      + * -
      + * -
      + *
      headline
      + * description
      + * mobileCarriers
      + * -
      + * -
      + * -
      + * displayUrl
      + * destinationUrl
      + * markupLanguages
      + *
      headline
      + * description
      + * mobileCarriers
      + * phoneNumber
      + * countryCode
      + * businessName
      + * displayUrl
      + * destinationUrl
      + * markupLanguages
      + *
      + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileAd extends Ad { + /** + * @access public + * @var string + */ + public $headline; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsMarkupLanguageType[] + */ + public $markupLanguages; + + /** + * @access public + * @var string[] + */ + public $mobileCarriers; + + /** + * @access public + * @var string + */ + public $businessName; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * @access public + * @var string + */ + public $phoneNumber; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAd"; + } + + public function __construct($headline = NULL, $description = NULL, $markupLanguages = NULL, $mobileCarriers = NULL, $businessName = NULL, $countryCode = NULL, $phoneNumber = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->headline = $headline; + $this->description = $description; + $this->markupLanguages = $markupLanguages; + $this->mobileCarriers = $mobileCarriers; + $this->businessName = $businessName; + $this->countryCode = $countryCode; + $this->phoneNumber = $phoneNumber; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("MobileAppCategory", FALSE)) { +/** + * Represents the mobile app category to be targeted. + * View the complete list of + * available mobile app categories. + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileAppCategory extends Criterion { + /** + * @access public + * @var integer + */ + public $mobileAppCategoryId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAppCategory"; + } + + public function __construct($mobileAppCategoryId = NULL, $displayName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->mobileAppCategoryId = $mobileAppCategoryId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileApplication", FALSE)) { +/** + * Represents the mobile application to be targeted. + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileApplication extends Criterion { + /** + * @access public + * @var string + */ + public $appId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileApplication"; + } + + public function __construct($appId = NULL, $displayName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->appId = $appId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device Criterion. + *

      A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileDevice extends Criterion { + /** + * @access public + * @var string + */ + public $deviceName; + + /** + * @access public + * @var string + */ + public $manufacturerName; + + /** + * @access public + * @var tnsMobileDeviceDeviceType + */ + public $deviceType; + + /** + * @access public + * @var string + */ + public $operatingSystemName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($deviceName = NULL, $manufacturerName = NULL, $deviceType = NULL, $operatingSystemName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->deviceName = $deviceName; + $this->manufacturerName = $manufacturerName; + $this->deviceType = $deviceType; + $this->operatingSystemName = $operatingSystemName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileExtension", FALSE)) { +/** + * Represents a phone extension. + * + *

      This type of ad extension attaches a phone number + * to a text ad, which lets customers call the advertiser directly from the ad. + * Phone extensions will appear as clickable phone numbers beneath the main text ad, + * and will be visible to high-end mobile device users who access google.com search, + * Voice search, Google Mobile App, or Google Maps for Mobile from their phone. + *

      + *

      Learn more about + * + * phone extensions. + *

      + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $phoneNumber; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * @access public + * @var boolean + */ + public $isCallTrackingEnabled; + + /** + * @access public + * @var boolean + */ + public $isCallOnly; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileExtension"; + } + + public function __construct($phoneNumber = NULL, $countryCode = NULL, $isCallTrackingEnabled = NULL, $isCallOnly = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->phoneNumber = $phoneNumber; + $this->countryCode = $countryCode; + $this->isCallTrackingEnabled = $isCallTrackingEnabled; + $this->isCallOnly = $isCallOnly; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("MobileImageAd", FALSE)) { +/** + * Represents a mobile image ad. + * + *

      For more information, see + * + * Create a mobile ad.

      + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileImageAd extends Ad { + /** + * @access public + * @var tnsMarkupLanguageType[] + */ + public $markupLanguages; + + /** + * @access public + * @var string[] + */ + public $mobileCarriers; + + /** + * @access public + * @var Image + */ + public $image; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileImageAd"; + } + + public function __construct($markupLanguages = NULL, $mobileCarriers = NULL, $image = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->markupLanguages = $markupLanguages; + $this->mobileCarriers = $mobileCarriers; + $this->image = $image; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NegativeAdGroupCriterion", FALSE)) { +/** + * A negative criterion in an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NegativeAdGroupCriterion extends AdGroupCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NegativeAdGroupCriterion"; + } + + public function __construct($adGroupId = NULL, $criterionUse = NULL, $criterion = NULL, $forwardCompatibilityMap = NULL, $AdGroupCriterionType = NULL) { + parent::__construct(); + $this->adGroupId = $adGroupId; + $this->criterionUse = $criterionUse; + $this->criterion = $criterion; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->AdGroupCriterionType = $AdGroupCriterionType; + } +}} + +if (!class_exists("NegativeCampaignCriterion", FALSE)) { +/** + * A negative campaign criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NegativeCampaignCriterion extends CampaignCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NegativeCampaignCriterion"; + } + + public function __construct($campaignId = NULL, $isNegative = NULL, $criterion = NULL, $bidModifier = NULL, $forwardCompatibilityMap = NULL, $CampaignCriterionType = NULL) { + parent::__construct(); + $this->campaignId = $campaignId; + $this->isNegative = $isNegative; + $this->criterion = $criterion; + $this->bidModifier = $bidModifier; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->CampaignCriterionType = $CampaignCriterionType; + } +}} + +if (!class_exists("NetworkSetting", FALSE)) { +/** + * Network settings for a Campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NetworkSetting { + /** + * @access public + * @var boolean + */ + public $targetGoogleSearch; + + /** + * @access public + * @var boolean + */ + public $targetSearchNetwork; + + /** + * @access public + * @var boolean + */ + public $targetContentNetwork; + + /** + * @access public + * @var boolean + */ + public $targetPartnerSearchNetwork; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NetworkSetting"; + } + + public function __construct($targetGoogleSearch = NULL, $targetSearchNetwork = NULL, $targetContentNetwork = NULL, $targetPartnerSearchNetwork = NULL) { + $this->targetGoogleSearch = $targetGoogleSearch; + $this->targetSearchNetwork = $targetSearchNetwork; + $this->targetContentNetwork = $targetContentNetwork; + $this->targetPartnerSearchNetwork = $targetPartnerSearchNetwork; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OAuthInfo", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OAuthInfo { + /** + * @access public + * @var string + */ + public $httpMethod; + + /** + * @access public + * @var string + */ + public $httpRequestUrl; + + /** + * @access public + * @var string + */ + public $httpAuthorizationHeader; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuthInfo"; + } + + public function __construct($httpMethod = NULL, $httpRequestUrl = NULL, $httpAuthorizationHeader = NULL) { + $this->httpMethod = $httpMethod; + $this->httpRequestUrl = $httpRequestUrl; + $this->httpAuthorizationHeader = $httpAuthorizationHeader; + } +}} + +if (!class_exists("Operand", FALSE)) { +/** + * A marker interface for entities that can be operated upon in mutate + * operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operand { + /** + * @access public + * @var AdExtensionOverride + */ + public $AdExtensionOverride; + + /** + * @access public + * @var AdGroupAd + */ + public $AdGroupAd; + + /** + * @access public + * @var AdGroupBidModifier + */ + public $AdGroupBidModifier; + + /** + * @access public + * @var AdGroupCriterion + */ + public $AdGroupCriterion; + + /** + * @access public + * @var AdGroup + */ + public $AdGroup; + + /** + * @access public + * @var Ad + */ + public $Ad; + + /** + * @access public + * @var Budget + */ + public $Budget; + + /** + * @access public + * @var CampaignAdExtension + */ + public $CampaignAdExtension; + + /** + * @access public + * @var CampaignCriterion + */ + public $CampaignCriterion; + + /** + * @access public + * @var Campaign + */ + public $Campaign; + + /** + * @access public + * @var FeedItem + */ + public $FeedItem; + + /** + * @access public + * @var Job + */ + public $Job; + + /** + * @access public + * @var Media + */ + public $Media; + + /** + * @access public + * @var PlaceHolder + */ + public $PlaceHolder; + + /** + * @access public + * @var TargetList + */ + public $TargetList; + + /** + * @access public + * @var Target + */ + public $Target; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operand"; + } + + public function __construct($AdExtensionOverride = NULL, $AdGroupAd = NULL, $AdGroupBidModifier = NULL, $AdGroupCriterion = NULL, $AdGroup = NULL, $Ad = NULL, $Budget = NULL, $CampaignAdExtension = NULL, $CampaignCriterion = NULL, $Campaign = NULL, $FeedItem = NULL, $Job = NULL, $Media = NULL, $PlaceHolder = NULL, $TargetList = NULL, $Target = NULL) { + $this->AdExtensionOverride = $AdExtensionOverride; + $this->AdGroupAd = $AdGroupAd; + $this->AdGroupBidModifier = $AdGroupBidModifier; + $this->AdGroupCriterion = $AdGroupCriterion; + $this->AdGroup = $AdGroup; + $this->Ad = $Ad; + $this->Budget = $Budget; + $this->CampaignAdExtension = $CampaignAdExtension; + $this->CampaignCriterion = $CampaignCriterion; + $this->Campaign = $Campaign; + $this->FeedItem = $FeedItem; + $this->Job = $Job; + $this->Media = $Media; + $this->PlaceHolder = $PlaceHolder; + $this->TargetList = $TargetList; + $this->Target = $Target; + } +}} + +if (!class_exists("OperatingSystemVersion", FALSE)) { +/** + * Represents a Operating System Version Criterion. + *

      A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatingSystemVersion extends Criterion { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $osMajorVersion; + + /** + * @access public + * @var integer + */ + public $osMinorVersion; + + /** + * @access public + * @var tnsOperatingSystemVersionOperatorType + */ + public $operatorType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($name = NULL, $osMajorVersion = NULL, $osMinorVersion = NULL, $operatorType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->name = $name; + $this->osMajorVersion = $osMajorVersion; + $this->osMinorVersion = $osMinorVersion; + $this->operatorType = $operatorType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperationResult", FALSE)) { +/** + * Represents the result of an individual mutate operation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationResult { + /** + * @access public + * @var string + */ + public $OperationResultType; + + private $_parameterMap = array ( + "OperationResult.Type" => "OperationResultType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationResult"; + } + + public function __construct($OperationResultType = NULL) { + $this->OperationResultType = $OperationResultType; + } +}} + +if (!class_exists("OperationStream", FALSE)) { +/** + * A stream of AdWords API mutate operations that must be performed serially. + * Further, this operation stream must be processed serially with all other + * operation streams in a bulk mutate job that specify the same scoping + * entity. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationStream { + /** + * @access public + * @var EntityId + */ + public $scopingEntityId; + + /** + * @access public + * @var Operation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationStream"; + } + + public function __construct($scopingEntityId = NULL, $operations = NULL) { + $this->scopingEntityId = $scopingEntityId; + $this->operations = $operations; + } +}} + +if (!class_exists("OperationStreamResult", FALSE)) { +/** + * The result of processing an {@link OperationStream}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationStreamResult { + /** + * @access public + * @var OperationResult[] + */ + public $operationResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationStreamResult"; + } + + public function __construct($operationResults = NULL) { + $this->operationResults = $operationResults; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OverrideInfo", FALSE)) { +/** + * Represents additional override info with which to augment the override + * extension. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OverrideInfo { + /** + * @access public + * @var LocationOverrideInfo + */ + public $LocationOverrideInfo; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OverrideInfo"; + } + + public function __construct($LocationOverrideInfo = NULL) { + $this->LocationOverrideInfo = $LocationOverrideInfo; + } +}} + +if (!class_exists("PageOnePromotedBiddingScheme", FALSE)) { +/** + * Page-One Promoted bidding scheme, which sets max cpc bids to + * target impressions on page one or page one promoted slots on google.com. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PageOnePromotedBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsPageOnePromotedBiddingSchemeStrategyGoal + */ + public $strategyGoal; + + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var boolean + */ + public $bidChangesForRaisesOnly; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenBudgetConstained; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenLowQualityScore; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme"; + } + + public function __construct($strategyGoal = NULL, $bidCeiling = NULL, $bidModifier = NULL, $bidChangesForRaisesOnly = NULL, $raiseBidWhenBudgetConstained = NULL, $raiseBidWhenLowQualityScore = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->strategyGoal = $strategyGoal; + $this->bidCeiling = $bidCeiling; + $this->bidModifier = $bidModifier; + $this->bidChangesForRaisesOnly = $bidChangesForRaisesOnly; + $this->raiseBidWhenBudgetConstained = $raiseBidWhenBudgetConstained; + $this->raiseBidWhenLowQualityScore = $raiseBidWhenLowQualityScore; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("PagingError", FALSE)) { +/** + * Error codes for pagination. + * See {@link com.google.ads.api.services.common.pagination.Paging}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingError extends ApiError { + /** + * @access public + * @var tnsPagingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PercentCpaBid", FALSE)) { +/** + * Percentage CPA based bidding where user pays a percent of conversions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PercentCpaBid extends Bids { + /** + * @access public + * @var integer + */ + public $bid; + + /** + * @access public + * @var tnsBidSource + */ + public $percentCpaBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBid"; + } + + public function __construct($bid = NULL, $percentCpaBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->percentCpaBidSource = $percentCpaBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("PercentCpaBiddingScheme", FALSE)) { +/** + * Percentage CPA based bidding scheme attributes where user pays a percent of conversions. + * This bidding strategy is available only to some advertisers. + *

      A campaign can only be created with PercentCPA bidding strategy. Existing + * campaigns with a different bidding strategy cannot be transitioned to PercentCPA. + *

      Similarly, once created as a PercentCPA, a campaign cannot be transitioned to + * any other bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PercentCpaBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("PlaceHolder", FALSE)) { +/** + * A place holder for a result which is not available. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PlaceHolder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlaceHolder"; + } + + public function __construct() { + } +}} + +if (!class_exists("Placement", FALSE)) { +/** + * A placement used for modifying bids for sites when targeting the content + * network. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Placement extends Criterion { + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + public function __construct($url = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->url = $url; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Platform", FALSE)) { +/** + * Represents Platform criterion. + *

      A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Platform extends Criterion { + /** + * @access public + * @var string + */ + public $platformName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Platform"; + } + + public function __construct($platformName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->platformName = $platformName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("PolicyViolationError", FALSE)) { +/** + * Represents violations of a single policy by some text in a field. + * + * Violations of a single policy by the same string in multiple places + * within a field is reported in one instance of this class and only one + * exemption needs to be filed. + * Violations of a single policy by two different strings is reported + * as two separate instances of this class. + * + * e.g. If 'ACME' violates 'capitalization' and occurs twice in a text ad it + * would be represented by one instance. If the ad also contains 'INC' which + * also violates 'capitalization' it would be represented in a separate + * instance. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PolicyViolationError extends ApiError { + /** + * @access public + * @var PolicyViolationKey + */ + public $key; + + /** + * @access public + * @var string + */ + public $externalPolicyName; + + /** + * @access public + * @var string + */ + public $externalPolicyUrl; + + /** + * @access public + * @var string + */ + public $externalPolicyDescription; + + /** + * @access public + * @var boolean + */ + public $isExemptable; + + /** + * @access public + * @var PolicyViolationErrorPart[] + */ + public $violatingParts; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PolicyViolationErrorPart", FALSE)) { +/** + * Points to a substring within an ad field or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PolicyViolationErrorPart { + /** + * @access public + * @var integer + */ + public $index; + + /** + * @access public + * @var integer + */ + public $length; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError.Part"; + } + + public function __construct($index = NULL, $length = NULL) { + $this->index = $index; + $this->length = $length; + } +}} + +if (!class_exists("PolicyViolationKey", FALSE)) { +/** + * Key of the violation. The key is used for referring to a violation when + * filing an exemption request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PolicyViolationKey { + /** + * @access public + * @var string + */ + public $policyName; + + /** + * @access public + * @var string + */ + public $violatingText; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationKey"; + } + + public function __construct($policyName = NULL, $violatingText = NULL) { + $this->policyName = $policyName; + $this->violatingText = $violatingText; + } +}} + +if (!class_exists("Product", FALSE)) { +/** + * Product targeting criteria, represents a filter for products in the + * product feed that is defined by the advertiser. The criteria is used to + * determine the products in a Merchant Center account to be used with the + * ProductAds in the AdGroup. This criteria is available only to some advertisers. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Product extends Criterion { + /** + * @access public + * @var ProductCondition[] + */ + public $conditions; + + /** + * @access public + * @var string + */ + public $text; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + public function __construct($conditions = NULL, $text = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->conditions = $conditions; + $this->text = $text; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ProductAd", FALSE)) { +/** + * Represents a product ad (known as a product + * listing ad in the AdWords user interface). A product ad displays + * product data (managed using the Google Merchant Center) that is + * pulled from the Google base product feed specified in the parent campaign's + * {@linkplain ProductExtension product extension}. + * + *

      Product ads are only available to a limited set of advertisers. If you + * are not eligible to use product ads, they will not serve.

      + * + *

      Caution: Product ads do not use {@link #url url} or + * {@link #displayUrl displayUrl}; setting these fields on a product ad will + * cause an error.

      + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProductAd extends Ad { + /** + * @access public + * @var string + */ + public $promotionLine; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductAd"; + } + + public function __construct($promotionLine = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->promotionLine = $promotionLine; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("ProductCondition", FALSE)) { +/** + * Conditions to filter the products defined in product feed for targeting. + * The condition is defined as operand=argument. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProductCondition { + /** + * @access public + * @var string + */ + public $argument; + + /** + * @access public + * @var ProductConditionOperand + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductCondition"; + } + + public function __construct($argument = NULL, $operand = NULL) { + $this->argument = $argument; + $this->operand = $operand; + } +}} + +if (!class_exists("ProductConditionOperand", FALSE)) { +/** + * Attribute for the product condition. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProductConditionOperand { + /** + * @access public + * @var string + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductConditionOperand"; + } + + public function __construct($operand = NULL) { + $this->operand = $operand; + } +}} + +if (!class_exists("Proximity", FALSE)) { +/** + * Represents a Proximity Criterion. + * + * A proximity is an area within a certain radius of a point with the center point being described + * by a lat/long pair. The caller may also alternatively provide address fields which will be + * geocoded into a lat/long pair. Note: If a geoPoint value is provided, the address is not + * used for calculating the lat/long to target. + *

      A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Proximity extends Criterion { + /** + * @access public + * @var GeoPoint + */ + public $geoPoint; + + /** + * @access public + * @var tnsProximityDistanceUnits + */ + public $radiusDistanceUnits; + + /** + * @access public + * @var double + */ + public $radiusInUnits; + + /** + * @access public + * @var Address + */ + public $address; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Proximity"; + } + + public function __construct($geoPoint = NULL, $radiusDistanceUnits = NULL, $radiusInUnits = NULL, $address = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->geoPoint = $geoPoint; + $this->radiusDistanceUnits = $radiusDistanceUnits; + $this->radiusInUnits = $radiusInUnits; + $this->address = $address; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("QualityInfo", FALSE)) { +/** + * Container for criterion quality information. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QualityInfo { + /** + * @access public + * @var boolean + */ + public $isKeywordAdRelevanceAcceptable; + + /** + * @access public + * @var boolean + */ + public $isLandingPageQualityAcceptable; + + /** + * @access public + * @var boolean + */ + public $isLandingPageLatencyAcceptable; + + /** + * @access public + * @var integer + */ + public $qualityScore; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QualityInfo"; + } + + public function __construct($isKeywordAdRelevanceAcceptable = NULL, $isLandingPageQualityAcceptable = NULL, $isLandingPageLatencyAcceptable = NULL, $qualityScore = NULL) { + $this->isKeywordAdRelevanceAcceptable = $isKeywordAdRelevanceAcceptable; + $this->isLandingPageQualityAcceptable = $isLandingPageQualityAcceptable; + $this->isLandingPageLatencyAcceptable = $isLandingPageLatencyAcceptable; + $this->qualityScore = $qualityScore; + } +}} + +if (!class_exists("QueryError", FALSE)) { +/** + * A QueryError represents possible errors for query parsing and execution. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QueryError extends ApiError { + /** + * @access public + * @var tnsQueryErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError"; + } + + public function __construct($reason = NULL, $message = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->message = $message; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * Errors that are thrown if a quota limit is exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + public function __construct($reason = NULL, $limit = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->limit = $limit; + $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RegionCodeError", FALSE)) { +/** + * A list of all errors associated with the @RegionCode constraints. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RegionCodeError extends ApiError { + /** + * @access public + * @var tnsRegionCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * Indicates that a field was rejected due to compatibility issues. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReturnValueResult", FALSE)) { +/** + * Represents a success result of processing a mutate operation that returned + * a value. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReturnValueResult extends OperationResult { + /** + * @access public + * @var Operand + */ + public $returnValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReturnValueResult"; + } + + public function __construct($returnValue = NULL, $OperationResultType = NULL) { + parent::__construct(); + $this->returnValue = $returnValue; + $this->OperationResultType = $OperationResultType; + } +}} + +if (!class_exists("RichMediaAd", FALSE)) { +/** + * Data associated with a rich media ad. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RichMediaAd extends Ad { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var Dimensions + */ + public $dimensions; + + /** + * @access public + * @var string + */ + public $snippet; + + /** + * @access public + * @var string + */ + public $impressionBeaconUrl; + + /** + * @access public + * @var integer + */ + public $adDuration; + + /** + * @access public + * @var integer + */ + public $certifiedVendorFormatId; + + /** + * @access public + * @var string + */ + public $sourceUrl; + + /** + * @access public + * @var tnsRichMediaAdRichMediaAdType + */ + public $richMediaAdType; + + /** + * @access public + * @var tnsRichMediaAdAdAttribute[] + */ + public $adAttributes; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaAd"; + } + + public function __construct($name = NULL, $dimensions = NULL, $snippet = NULL, $impressionBeaconUrl = NULL, $adDuration = NULL, $certifiedVendorFormatId = NULL, $sourceUrl = NULL, $richMediaAdType = NULL, $adAttributes = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->name = $name; + $this->dimensions = $dimensions; + $this->snippet = $snippet; + $this->impressionBeaconUrl = $impressionBeaconUrl; + $this->adDuration = $adDuration; + $this->certifiedVendorFormatId = $certifiedVendorFormatId; + $this->sourceUrl = $sourceUrl; + $this->richMediaAdType = $richMediaAdType; + $this->adAttributes = $adAttributes; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Setting", FALSE)) { +/** + * Base type for AdWords campaign settings. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Setting { + /** + * @access public + * @var string + */ + public $SettingType; + + private $_parameterMap = array ( + "Setting.Type" => "SettingType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Setting"; + } + + public function __construct($SettingType = NULL) { + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("SettingError", FALSE)) { +/** + * Indicates a problem with campaign settings. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SettingError extends ApiError { + /** + * @access public + * @var tnsSettingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SettingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SimpleMutateJob", FALSE)) { +/** + * A mutation job, which was submitted using + * {@link MutateJobService#mutate}, and will execute asynchronously + * sometime after submission. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SimpleMutateJob extends Job { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsBasicJobStatus + */ + public $status; + + /** + * @access public + * @var JobEvent[] + */ + public $history; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SimpleMutateJob"; + } + + public function __construct($id = NULL, $status = NULL, $history = NULL, $failureReason = NULL, $stats = NULL, $billingSummary = NULL, $JobType = NULL) { + parent::__construct(); + $this->id = $id; + $this->status = $status; + $this->history = $history; + $this->failureReason = $failureReason; + $this->stats = $stats; + $this->billingSummary = $billingSummary; + $this->JobType = $JobType; + } +}} + +if (!class_exists("SimpleMutateResult", FALSE)) { +/** + * The results of a simple mutation job. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SimpleMutateResult { + /** + * @access public + * @var Operand[] + */ + public $results; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SimpleMutateResult"; + } + + public function __construct($results = NULL, $errors = NULL) { + $this->results = $results; + $this->errors = $errors; + } +}} + +if (!class_exists("Sitelink", FALSE)) { +/** + * Class to represent a single sitelink + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Sitelink { + /** + * @access public + * @var string + */ + public $displayText; + + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Sitelink"; + } + + public function __construct($displayText = NULL, $destinationUrl = NULL) { + $this->displayText = $displayText; + $this->destinationUrl = $destinationUrl; + } +}} + +if (!class_exists("SitelinksExtension", FALSE)) { +/** + * Class to represent a set of sitelinks and their order of preference. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SitelinksExtension extends AdExtension { + /** + * @access public + * @var Sitelink[] + */ + public $sitelinks; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SitelinksExtension"; + } + + public function __construct($sitelinks = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->sitelinks = $sitelinks; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("StatsQueryError", FALSE)) { +/** + * Represents possible error codes when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StatsQueryError extends ApiError { + /** + * @access public + * @var tnsStatsQueryErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class String_StringMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Target", FALSE)) { +/** + * Target abstract class. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Target { + /** + * @access public + * @var string + */ + public $TargetType; + + private $_parameterMap = array ( + "Target.Type" => "TargetType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Target"; + } + + public function __construct($TargetType = NULL) { + $this->TargetType = $TargetType; + } +}} + +if (!class_exists("TargetCpaBiddingScheme", FALSE)) { +/** + * Target Cpa bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + * This is similar to the ConversionOptimizerBiddingScheme but does not + * support user-entered AdGroup-level target CPA bids, but rather a strategy-wide + * average CPA target. + * + *

      Note that campaigns must meet specific + * eligibility requirements before they can use the TargetCpaBiddingScheme + * bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetCpaBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $targetCpa; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetCpaBiddingScheme"; + } + + public function __construct($targetCpa = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->targetCpa = $targetCpa; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetError", FALSE)) { +/** + * A list of all the error codes being used by the common targeting package. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetError extends ApiError { + /** + * @access public + * @var tnsTargetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TargetList", FALSE)) { +/** + * Targets list abstract class (a list of a given type of targets along with their campaign ID). + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetList { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var string + */ + public $TargetListType; + + private $_parameterMap = array ( + "TargetList.Type" => "TargetListType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetList"; + } + + public function __construct($campaignId = NULL, $TargetListType = NULL) { + $this->campaignId = $campaignId; + $this->TargetListType = $TargetListType; + } +}} + +if (!class_exists("TargetingSettingDetail", FALSE)) { +/** + * Specifies if criteria of this type group should be used to restrict + * targeting, or if ads can serve anywhere and criteria are only used in + * determining the bid. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetingSettingDetail { + /** + * @access public + * @var tnsCriterionTypeGroup + */ + public $criterionTypeGroup; + + /** + * @access public + * @var boolean + */ + public $targetAll; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingSettingDetail"; + } + + public function __construct($criterionTypeGroup = NULL, $targetAll = NULL) { + $this->criterionTypeGroup = $criterionTypeGroup; + $this->targetAll = $targetAll; + } +}} + +if (!class_exists("TargetSpendBiddingScheme", FALSE)) { +/** + * Target Spend bidding scheme, in which Google automatically places + * bids for the user based on their daily/monthly budget or optional + * spend target. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetSpendBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var Money + */ + public $spendTarget; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetSpendBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $spendTarget = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->spendTarget = $spendTarget; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetingSetting", FALSE)) { +/** + * Setting for targeting related features. + * This is applicable at Campaign and AdGroup level. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetingSetting extends Setting { + /** + * @access public + * @var TargetingSettingDetail[] + */ + public $details; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingSetting"; + } + + public function __construct($details = NULL, $SettingType = NULL) { + parent::__construct(); + $this->details = $details; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("TempAdUnionId", FALSE)) { +/** + * Represents the temporary id for an ad union id, which the user can specify. + * The temporary id can be used to group ads together during ad creation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TempAdUnionId extends AdUnionId { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TempAdUnionId"; + } + + public function __construct($id = NULL, $AdUnionIdType = NULL) { + parent::__construct(); + $this->id = $id; + $this->AdUnionIdType = $AdUnionIdType; + } +}} + +if (!class_exists("TemplateAd", FALSE)) { +/** + * Represents a Display Ad Builder template ad. A template ad is + * composed of a template (specified by its ID) and the data that populates + * the template's fields. For a list of available templates and their required + * fields, see Template Ads. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TemplateAd extends Ad { + /** + * @access public + * @var integer + */ + public $templateId; + + /** + * @access public + * @var AdUnionId + */ + public $adUnionId; + + /** + * @access public + * @var TemplateElement[] + */ + public $templateElements; + + /** + * @access public + * @var Dimensions + */ + public $dimensions; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var integer + */ + public $originAdId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateAd"; + } + + public function __construct($templateId = NULL, $adUnionId = NULL, $templateElements = NULL, $dimensions = NULL, $name = NULL, $duration = NULL, $originAdId = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->templateId = $templateId; + $this->adUnionId = $adUnionId; + $this->templateElements = $templateElements; + $this->dimensions = $dimensions; + $this->name = $name; + $this->duration = $duration; + $this->originAdId = $originAdId; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("TemplateElement", FALSE)) { +/** + * Represents an element in a template. Each template element is composed + * of a list of fields (actual value data). + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TemplateElement { + /** + * @access public + * @var string + */ + public $uniqueName; + + /** + * @access public + * @var TemplateElementField[] + */ + public $fields; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateElement"; + } + + public function __construct($uniqueName = NULL, $fields = NULL) { + $this->uniqueName = $uniqueName; + $this->fields = $fields; + } +}} + +if (!class_exists("TemplateElementField", FALSE)) { +/** + * Represents a field in a template element. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TemplateElementField { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsTemplateElementFieldType + */ + public $type; + + /** + * @access public + * @var string + */ + public $fieldText; + + /** + * @access public + * @var Media + */ + public $fieldMedia; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateElementField"; + } + + public function __construct($name = NULL, $type = NULL, $fieldText = NULL, $fieldMedia = NULL) { + $this->name = $name; + $this->type = $type; + $this->fieldText = $fieldText; + $this->fieldMedia = $fieldMedia; + } +}} + +if (!class_exists("TextAd", FALSE)) { +/** + * Represents a TextAd. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TextAd extends Ad { + /** + * @access public + * @var string + */ + public $headline; + + /** + * @access public + * @var string + */ + public $description1; + + /** + * @access public + * @var string + */ + public $description2; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextAd"; + } + + public function __construct($headline = NULL, $description1 = NULL, $description2 = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->headline = $headline; + $this->description1 = $description1; + $this->description2 = $description2; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("ThirdPartyRedirectAd", FALSE)) { +/** + * Data associated with rich media extension attributes. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ThirdPartyRedirectAd extends RichMediaAd { + /** + * @access public + * @var boolean + */ + public $isCookieTargeted; + + /** + * @access public + * @var boolean + */ + public $isUserInterestTargeted; + + /** + * @access public + * @var boolean + */ + public $isTagged; + + /** + * @access public + * @var tnsVideoType[] + */ + public $videoTypes; + + /** + * @access public + * @var tnsThirdPartyRedirectAdExpandingDirection[] + */ + public $expandingDirections; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartyRedirectAd"; + } + + public function __construct($isCookieTargeted = NULL, $isUserInterestTargeted = NULL, $isTagged = NULL, $videoTypes = NULL, $expandingDirections = NULL, $name = NULL, $dimensions = NULL, $snippet = NULL, $impressionBeaconUrl = NULL, $adDuration = NULL, $certifiedVendorFormatId = NULL, $sourceUrl = NULL, $richMediaAdType = NULL, $adAttributes = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->isCookieTargeted = $isCookieTargeted; + $this->isUserInterestTargeted = $isUserInterestTargeted; + $this->isTagged = $isTagged; + $this->videoTypes = $videoTypes; + $this->expandingDirections = $expandingDirections; + $this->name = $name; + $this->dimensions = $dimensions; + $this->snippet = $snippet; + $this->impressionBeaconUrl = $impressionBeaconUrl; + $this->adDuration = $adDuration; + $this->certifiedVendorFormatId = $certifiedVendorFormatId; + $this->sourceUrl = $sourceUrl; + $this->richMediaAdType = $richMediaAdType; + $this->adAttributes = $adAttributes; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("TrackingSetting", FALSE)) { +/** + * Campaign level settings for tracking information. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TrackingSetting extends Setting { + /** + * @access public + * @var string + */ + public $trackingUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrackingSetting"; + } + + public function __construct($trackingUrl = NULL, $SettingType = NULL) { + parent::__construct(); + $this->trackingUrl = $trackingUrl; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("UnprocessedResult", FALSE)) { +/** + * Indicates that the mutate operation was not processed. This could result + * if the job was aborted by the back-end workflow because the developer's API + * quota was exceeded or if the job encountered some severe workflow system + * failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class UnprocessedResult extends OperationResult { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnprocessedResult"; + } + + public function __construct($OperationResultType = NULL) { + parent::__construct(); + $this->OperationResultType = $OperationResultType; + } +}} + +if (!class_exists("CriterionUserInterest", FALSE)) { +/** + * User Interest - represents a particular interest based vertical to be targeted. + * Targeting UserInterest is currently in a limited beta. If you'd like access + * please speak with your account representative. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserInterest extends Criterion { + /** + * @access public + * @var integer + */ + public $userInterestId; + + /** + * @access public + * @var string + */ + public $userInterestName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserInterest"; + } + + public function __construct($userInterestId = NULL, $userInterestName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->userInterestId = $userInterestId; + $this->userInterestName = $userInterestName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionUserList", FALSE)) { +/** + * UserList - represents a user list that is defined by the advertiser to be targeted. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserList extends Criterion { + /** + * @access public + * @var integer + */ + public $userListId; + + /** + * @access public + * @var string + */ + public $userListName; + + /** + * @access public + * @var tnsCriterionUserListMembershipStatus + */ + public $userListMembershipStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList"; + } + + public function __construct($userListId = NULL, $userListName = NULL, $userListMembershipStatus = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->userListId = $userListId; + $this->userListName = $userListName; + $this->userListMembershipStatus = $userListMembershipStatus; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Vertical", FALSE)) { +/** + * Use verticals to target or exclude placements in the Google Display Network + * based on the category into which the placement falls (for example, "Pets & + * Animals/Pets/Dogs"). + * View the complete list + * of available vertical categories. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Vertical extends Criterion { + /** + * @access public + * @var integer + */ + public $verticalId; + + /** + * @access public + * @var integer + */ + public $verticalParentId; + + /** + * @access public + * @var string[] + */ + public $path; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Vertical"; + } + + public function __construct($verticalId = NULL, $verticalParentId = NULL, $path = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->verticalId = $verticalId; + $this->verticalParentId = $verticalParentId; + $this->path = $path; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Video", FALSE)) { +/** + * Encapsulates a Video media identified by a MediaId. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Video extends Media { + /** + * @access public + * @var integer + */ + public $durationMillis; + + /** + * @access public + * @var string + */ + public $streamingUrl; + + /** + * @access public + * @var boolean + */ + public $readyToPlayOnTheWeb; + + /** + * @access public + * @var string + */ + public $industryStandardCommercialIdentifier; + + /** + * @access public + * @var string + */ + public $advertisingId; + + /** + * @access public + * @var string + */ + public $youTubeVideoIdString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Video"; + } + + public function __construct($durationMillis = NULL, $streamingUrl = NULL, $readyToPlayOnTheWeb = NULL, $industryStandardCommercialIdentifier = NULL, $advertisingId = NULL, $youTubeVideoIdString = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->durationMillis = $durationMillis; + $this->streamingUrl = $streamingUrl; + $this->readyToPlayOnTheWeb = $readyToPlayOnTheWeb; + $this->industryStandardCommercialIdentifier = $industryStandardCommercialIdentifier; + $this->advertisingId = $advertisingId; + $this->youTubeVideoIdString = $youTubeVideoIdString; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("Webpage", FALSE)) { +/** + * Criterion for targeting webpages of an advertiser's website. The + * website domain name is specified at the campaign level. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Webpage extends Criterion { + /** + * @access public + * @var WebpageParameter + */ + public $parameter; + + /** + * @access public + * @var double + */ + public $criteriaCoverage; + + /** + * @access public + * @var string[] + */ + public $criteriaSamples; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Webpage"; + } + + public function __construct($parameter = NULL, $criteriaCoverage = NULL, $criteriaSamples = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->parameter = $parameter; + $this->criteriaCoverage = $criteriaCoverage; + $this->criteriaSamples = $criteriaSamples; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("WebpageCondition", FALSE)) { +/** + * Logical expression for targeting webpages of an advertiser's website. + * + *

      A condition is defined as {@code operand OP argument} + * where {@code operand} is one of the values enumerated in + * {@link WebpageConditionOperand}, and, based on this value, + * {@code OP} is either of {@code EQUALS} or {@code CONTAINS}.

      + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageCondition { + /** + * @access public + * @var tnsWebpageConditionOperand + */ + public $operand; + + /** + * @access public + * @var string + */ + public $argument; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageCondition"; + } + + public function __construct($operand = NULL, $argument = NULL) { + $this->operand = $operand; + $this->argument = $argument; + } +}} + +if (!class_exists("WebpageParameter", FALSE)) { +/** + * Parameter of Webpage criterion, expressed as a list of conditions, or + * logical expressions, for targeting webpages of an advertiser's website. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageParameter extends CriterionParameter { + /** + * @access public + * @var string + */ + public $criterionName; + + /** + * @access public + * @var WebpageCondition[] + */ + public $conditions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageParameter"; + } + + public function __construct($criterionName = NULL, $conditions = NULL, $CriterionParameterType = NULL) { + parent::__construct(); + $this->criterionName = $criterionName; + $this->conditions = $conditions; + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("DynamicSearchAd", FALSE)) { +/** + * Represents a dynamic search ad. This ad will have its headline and + * destination URL auto-generated at serving time according to domain name + * specific information provided by {@link DomainInfoExtension} linked at the + * campaign level. + * + *

      Auto-generated fields: headline and destination URL (may contain an optional + * tracking URL)

      + * + *

      Required fields: description1, description2, displayUrl

      + * + *

      The URL field must contain at least one of the following placeholder tags + * (URL parameters): {unescapedlpurl}, {escapedlpurl}, {lpurlpath}. If no URL is + * specified, {unescapedlpurl} will be used as default.

      + * + *

      {unescapedlpurl} can only be used at the beginning of the URL field. It + * will be replaced with the full landing page URL of the displayed ad. Extra query + * parameters can be added to the end, e.g. "{unescapedlpurl}?lang=en".

      + * + *

      {escapedlpurl} will be replaced with the URL-encoded version of the full + * landing page URL. This makes it suitable for use as a query parameter + * value (e.g. "http://www.3rdpartytracker.com/?lp={escapedlpurl}") but + * not at the beginning of the url field.

      + * + *

      {lpurlpath} will be replaced with the path and query part of the landing + * page URL and can be added to a different URL, e.g. + * "http://www.mygoodbusiness.com/tracking/{lpurlpath}".

      + * + *

      There are also special rules that come into play depending on whether the + * destination URL uses local click tracking or third-party click tracking.

      + * + *

      For more information, see the article Using dynamic tracking URLs. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DynamicSearchAd extends Ad { + /** + * @access public + * @var string + */ + public $description1; + + /** + * @access public + * @var string + */ + public $description2; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DynamicSearchAd"; + } + + public function __construct($description1 = NULL, $description2 = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->description1 = $description1; + $this->description2 = $description2; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("AdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdExtensionErrorReason", FALSE)) { +/** + * Account has been deleted + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdExtensionOverrideApprovalStatus", FALSE)) { +/** + * Approval status for the AdExtensionOverride + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdExtensionOverrideApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverride.ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdExtensionOverrideStatus", FALSE)) { +/** + * Status of the AdExtensionOverride + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdExtensionOverrideStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverride.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdExtensionOverrideErrorReason", FALSE)) { +/** + * Cannot override an ad that is already overriden with an adextension + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdExtensionOverrideErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverrideError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupAdApprovalStatus", FALSE)) { +/** + * Represents the possible approval statuses. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAd.ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupAdStatus", FALSE)) { +/** + * The current status of an Ad. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAd.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupAdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupCriterionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupCriterionLimitExceededCriteriaLimitType", FALSE)) { +/** + * The entity type that exceeded the limit. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionLimitExceededCriteriaLimitType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionLimitExceeded.CriteriaLimitType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupServiceErrorReason", FALSE)) { +/** + * The reasons for the adgroup service error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupServiceErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupServiceError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupStatus", FALSE)) { +/** + * Status of this ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroup.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdServingOptimizationStatus", FALSE)) { +/** + * Ad serving status of campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdServingOptimizationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdServingOptimizationStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AgeRangeAgeRangeType", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AgeRangeAgeRangeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AgeRange.AgeRangeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApprovalStatus", FALSE)) { +/** + * Approval status for the criterion. + * Note: there are more states involved but we only expose two to users. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BasicJobStatus", FALSE)) { +/** + * A basic set of job statuses. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BasicJobStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BasicJobStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BidModifierSource", FALSE)) { +/** + * Enumerates possible sources for bid modifier. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BidModifierSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidModifierSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BidSource", FALSE)) { +/** + * Indicate where a criterion's bid came from: criterion or the adgroup it + * belongs to. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BidSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorReason", FALSE)) { +/** + * Reason for bidding error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorsReason", FALSE)) { +/** + * Bidding strategy cannot override ad group or campaign bidding strategy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingErrorsReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategySource", FALSE)) { +/** + * Indicates where bidding strategy came from: campaign, adgroup or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategySource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategySource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategyType", FALSE)) { +/** + * The bidding strategy type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyType"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingTransitionErrorReason", FALSE)) { +/** + * Reason for bidding transition error. + * It is used by capability service as denial reasons, for bidding transition + * capability. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingTransitionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingTransitionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetDeliveryMethod", FALSE)) { +/** + * Budget delivery methods. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetBudgetDeliveryMethod { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetDeliveryMethod"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetPeriod", FALSE)) { +/** + * Budget periods. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetBudgetPeriod { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetPeriod"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetStatus", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetBudgetStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetErrorReason", FALSE)) { +/** + * The reasons for the budget error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BulkMutateJobErrorReason", FALSE)) { +/** + * The reasons for the bulk mutate job handling error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BulkMutateJobErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateJobError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignAdExtensionApprovalStatus", FALSE)) { +/** + * Approval status of the CampaignAdExtension. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtensionApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtension.ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignAdExtensionStatus", FALSE)) { +/** + * Status of the CampaignAdExtension. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtensionStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtension.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignAdExtensionErrorReason", FALSE)) { +/** + * Cannot operate on an adextensions under the wrong campaign + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignCriterionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignCriterionLimitExceededCriteriaLimitType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterionLimitExceededCriteriaLimitType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionLimitExceeded.CriteriaLimitType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignStatus", FALSE)) { +/** + * Campaign status. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContentLabelType", FALSE)) { +/** + * Content label type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ContentLabelType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentLabelType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemeBidType", FALSE)) { +/** + * Average cost-per-acquisition (targetCPA) bid type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerBiddingSchemeBidType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.BidType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemePricingMode", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerBiddingSchemePricingMode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.PricingMode"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerEligibilityRejectionReason", FALSE)) { +/** + * Campaign is not active + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerEligibilityRejectionReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerEligibility.RejectionReason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * The types of criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionErrorReason", FALSE)) { +/** + * Concrete type of criterion is required for ADD and SET operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionTypeGroup", FALSE)) { +/** + * The list of groupings of criteria types. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionTypeGroup { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionTypeGroup"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUse", FALSE)) { +/** + * The way a criterion is used - biddable or negative. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUse { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUse"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayOfWeek", FALSE)) { +/** + * Days of the week. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DayOfWeek { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayOfWeek"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeprecatedAdType", FALSE)) { +/** + * Video ad. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DeprecatedAdType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeprecatedAd.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityAccessDeniedReason", FALSE)) { +/** + * User did not have read access. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityIdType", FALSE)) { +/** + * Type of entity identity. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityIdType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityId.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentDataStatus", FALSE)) { +/** + * Status of the experimental change associated with an entity. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentDataStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentDataStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentDeltaStatus", FALSE)) { +/** + * Status of an entity denoting its type of experimental change in a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentDeltaStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentDeltaStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemStatus", FALSE)) { +/** + * Feed item is active + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItem.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemErrorReason", FALSE)) { +/** + * The reasons for the error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemValidationDetailApprovalStatus", FALSE)) { +/** + * Feed item approval status. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemValidationDetailApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemValidationDetail.ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemValidationDetailValidationStatus", FALSE)) { +/** + * Feed item validation status. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemValidationDetailValidationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemValidationDetail.ValidationStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForwardCompatibilityErrorReason", FALSE)) { +/** + * The reason for the error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ForwardCompatibilityErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenderGenderType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GenderGenderType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Gender.GenderType"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetTypeSettingNegativeGeoTargetType", FALSE)) { +/** + * The various signals a negative location target may use. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoTargetTypeSettingNegativeGeoTargetType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetTypeSetting.NegativeGeoTargetType"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetTypeSettingPositiveGeoTargetType", FALSE)) { +/** + * The various signals a positive location target may use. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoTargetTypeSettingPositiveGeoTargetType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetTypeSetting.PositiveGeoTargetType"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ImageErrorReason", FALSE)) { +/** + * The image is not valid. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ImageErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InAppLinkExtensionAppStore", FALSE)) { +/** + * The AppStore this extension will render for. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InAppLinkExtensionAppStore { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InAppLinkExtension.AppStore"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("JobErrorReason", FALSE)) { +/** + * The reasons for the job handling error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class JobErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "JobError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("KeywordMatchType", FALSE)) { +/** + * Match type of a keyword. i.e. the way we match a keyword string with + * search queries. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class KeywordMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("Level", FALSE)) { +/** + * The level on which the cap is to be applied. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Level { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Level"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationExtensionSource", FALSE)) { +/** + * From manual entry in adwords frontend + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationExtensionSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationExtension.Source"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationOverrideInfoRadiusUnits", FALSE)) { +/** + * Radius units + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationOverrideInfoRadiusUnits { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationOverrideInfo.RadiusUnits"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationTargetingStatus", FALSE)) { +/** + * Enum that represents the different Targeting Status values for a Location criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationTargetingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationTargetingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("MarkupLanguageType", FALSE)) { +/** + * Markup languages to use for mobile ads. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MarkupLanguageType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MarkupLanguageType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaMediaType", FALSE)) { +/** + * Media types + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaMediaType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.MediaType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaMimeType", FALSE)) { +/** + * Mime types + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaMimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.MimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaSize", FALSE)) { +/** + * Sizes for retrieving the original media + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaSize { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.Size"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MediaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MinuteOfHour", FALSE)) { +/** + * Minutes in an hour. Currently only 0, 15, 30, and 45 are supported + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MinuteOfHour { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MinuteOfHour"; + } + + public function __construct() { + } +}} + +if (!class_exists("MobileDeviceDeviceType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileDeviceDeviceType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice.DeviceType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MultiplierSource", FALSE)) { +/** + * Denotes whether the bid multiplier is derived from the adgroup + * or the criterion + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MultiplierSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MultiplierSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatingSystemVersionOperatorType", FALSE)) { +/** + * The operator type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatingSystemVersionOperatorType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion.OperatorType"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PageOnePromotedBiddingSchemeStrategyGoal", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PageOnePromotedBiddingSchemeStrategyGoal { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme.StrategyGoal"; + } + + public function __construct() { + } +}} + +if (!class_exists("PagingErrorReason", FALSE)) { +/** + * The reasons for errors when using pagination. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PolicyViolationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PolicyViolationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProximityDistanceUnits", FALSE)) { +/** + * The radius distance is expressed in either kilometers or miles. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProximityDistanceUnits { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Proximity.DistanceUnits"; + } + + public function __construct() { + } +}} + +if (!class_exists("QueryErrorReason", FALSE)) { +/** + * The reason for the query error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The reasons for the quota error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegionCodeErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RegionCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaAdAdAttribute", FALSE)) { +/** + * A set of attributes that describe the rich media ad capabilities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RichMediaAdAdAttribute { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaAd.AdAttribute"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaAdRichMediaAdType", FALSE)) { +/** + * Different types of rich media ad that are available to customers. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RichMediaAdRichMediaAdType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaAd.RichMediaAdType"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServingStatus", FALSE)) { +/** + * Campaign serving status. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ServingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("SettingErrorReason", FALSE)) { +/** + * The reasons for the setting error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SettingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SettingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsQueryErrorReason", FALSE)) { +/** + * The reasons for errors when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StatsQueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SystemServingStatus", FALSE)) { +/** + * Reported by system to reflect the criterion's serving status. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SystemServingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SystemServingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TemplateElementFieldType", FALSE)) { +/** + * Possible field types of template element fields. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TemplateElementFieldType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateElementField.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("ThirdPartyRedirectAdExpandingDirection", FALSE)) { +/** + * Allowed expanding directions for ads that are expandable. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ThirdPartyRedirectAdExpandingDirection { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartyRedirectAd.ExpandingDirection"; + } + + public function __construct() { + } +}} + +if (!class_exists("TimeUnit", FALSE)) { +/** + * Unit of time the cap is defined at. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TimeUnit { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeUnit"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUserListMembershipStatus", FALSE)) { +/** + * Membership status of the user list. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList.MembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserStatus", FALSE)) { +/** + * Specified by user to pause or unpause a criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class UserStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoType", FALSE)) { +/** + * VideoType enum values that are permitted for video filterable + * creative attribute IDs. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class VideoType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoType"; + } + + public function __construct() { + } +}} + +if (!class_exists("WebpageConditionOperand", FALSE)) { +/** + * Operand value of {@link WebpageCondition}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageConditionOperand { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageConditionOperand"; + } + + public function __construct() { + } +}} + +if (!class_exists("MutateJobServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Query the status of existing jobs, both simple and bulk API. + *

      Use a {@link JobSelector} to query and return a list which may + * contain both {@link BulkMutateJob} and/or {@link SimpleMutateJob}.

      + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MutateJobServiceGet { + /** + * @access public + * @var JobSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("MutateJobServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MutateJobServiceGetResponse { + /** + * @access public + * @var Job[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getResult", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Query mutation results, of a {@code COMPLETED} job. + *

      Use a {@link JobSelector} to query and return either a + * {@link BulkMutateResult} or a {@link SimpleMutateResult}. Submit only one job ID + * at a time.

      + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getResult { + /** + * @access public + * @var JobSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("getResultResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getResultResponse { + /** + * @access public + * @var JobResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("MutateJobServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Simplified way of submitting a mutation job. The provided list of + * operations, if valid, will create a new job with a unique id, which will + * be returned. This id can later be used in invocations of + * {@link #get} and {@link #getResult}. Policy can optionally be specified. + * + *

      When this method returns with success, the job will be in + * {@code PROCESSING} or {@code PENDING} state and no further action is + * needed for the job to get executed.

      + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MutateJobServiceMutate { + /** + * @access public + * @var Operation[] + */ + public $operations; + + /** + * @access public + * @var BulkMutateJobPolicy + */ + public $policy; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL, $policy = NULL) { + $this->operations = $operations; + $this->policy = $policy; + } +}} + +if (!class_exists("MutateJobServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MutateJobServiceMutateResponse { + /** + * @access public + * @var SimpleMutateJob + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdError", FALSE)) { +/** + * Base error class for Ad Service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdError extends ApiError { + /** + * @access public + * @var tnsAdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdExtensionError", FALSE)) { +/** + * AdExtension errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdExtensionError extends ApiError { + /** + * @access public + * @var tnsAdExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdExtensionOverrideError", FALSE)) { +/** + * AdExtensionOverride errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdExtensionOverrideError extends ApiError { + /** + * @access public + * @var tnsAdExtensionOverrideErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverrideError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdExtensionOverrideOperation", FALSE)) { +/** + * AdExtensionOverride service operation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdExtensionOverrideOperation extends Operation { + /** + * @access public + * @var AdExtensionOverride + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverrideOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupAdCountLimitExceeded", FALSE)) { +/** + * Indicates too many ads were added/enabled under the specified adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdCountLimitExceeded extends EntityCountLimitExceeded { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdGroupAdError", FALSE)) { +/** + * Error information for AdGroupAdService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdError extends ApiError { + /** + * @access public + * @var tnsAdGroupAdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdGroupAdOperation", FALSE)) { +/** + * AdGroupAd service operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdOperation extends Operation { + /** + * @access public + * @var AdGroupAd + */ + public $operand; + + /** + * @access public + * @var ExemptionRequest[] + */ + public $exemptionRequests; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdOperation"; + } + + public function __construct($operand = NULL, $exemptionRequests = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->exemptionRequests = $exemptionRequests; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupBidModifierOperation", FALSE)) { +/** + * Operation used to create or mutate a AdGroupBidModifier. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupBidModifierOperation extends Operation { + /** + * @access public + * @var AdGroupBidModifier + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidModifierOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupCriterionError", FALSE)) { +/** + * Base error class for Ad Group Criterion Service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionError extends ApiError { + /** + * @access public + * @var tnsAdGroupCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdGroupCriterionLimitExceeded", FALSE)) { +/** + * Signals that too many criteria were added to some ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionLimitExceeded extends EntityCountLimitExceeded { + /** + * @access public + * @var tnsAdGroupCriterionLimitExceededCriteriaLimitType + */ + public $limitType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionLimitExceeded"; + } + + public function __construct($limitType = NULL, $reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->limitType = $limitType; + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdGroupCriterionOperation", FALSE)) { +/** + * Operation (add, remove and set) on adgroup criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionOperation extends Operation { + /** + * @access public + * @var AdGroupCriterion + */ + public $operand; + + /** + * @access public + * @var ExemptionRequest[] + */ + public $exemptionRequests; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionOperation"; + } + + public function __construct($operand = NULL, $exemptionRequests = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->exemptionRequests = $exemptionRequests; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupOperation", FALSE)) { +/** + * AdGroup operations for adding/updating/removing adgroups. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupOperation extends Operation { + /** + * @access public + * @var AdGroup + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupServiceError", FALSE)) { +/** + * Represents possible error codes in AdGroupService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupServiceError extends ApiError { + /** + * @access public + * @var tnsAdGroupServiceErrorReason + */ + public $reason; + + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupServiceError"; + } + + public function __construct($reason = NULL, $adGroupId = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->adGroupId = $adGroupId; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdSchedule", FALSE)) { +/** + * Represents an AdSchedule Criterion. + * AdSchedule is specified as day and time of the week criteria to target + * the Ads. + *

      Note: An AdSchedule may not have more than six intervals + * in a day.

      + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdSchedule extends Criterion { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var integer + */ + public $startHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $startMinute; + + /** + * @access public + * @var integer + */ + public $endHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $endMinute; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSchedule"; + } + + public function __construct($dayOfWeek = NULL, $startHour = NULL, $startMinute = NULL, $endHour = NULL, $endMinute = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->dayOfWeek = $dayOfWeek; + $this->startHour = $startHour; + $this->startMinute = $startMinute; + $this->endHour = $endHour; + $this->endMinute = $endMinute; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("AdScheduleTarget", FALSE)) { +/** + * Immutable structure to hold an ad schedule target. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdScheduleTarget extends Target { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var integer + */ + public $startHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $startMinute; + + /** + * @access public + * @var integer + */ + public $endHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $endMinute; + + /** + * @access public + * @var double + */ + public $bidMultiplier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdScheduleTarget"; + } + + public function __construct($dayOfWeek = NULL, $startHour = NULL, $startMinute = NULL, $endHour = NULL, $endMinute = NULL, $bidMultiplier = NULL, $TargetType = NULL) { + parent::__construct(); + $this->dayOfWeek = $dayOfWeek; + $this->startHour = $startHour; + $this->startMinute = $startMinute; + $this->endHour = $endHour; + $this->endMinute = $endMinute; + $this->bidMultiplier = $bidMultiplier; + $this->TargetType = $TargetType; + } +}} + +if (!class_exists("AdScheduleTargetList", FALSE)) { +/** + * List of ad schedule targets. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdScheduleTargetList extends TargetList { + /** + * @access public + * @var AdScheduleTarget[] + */ + public $targets; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdScheduleTargetList"; + } + + public function __construct($targets = NULL, $campaignId = NULL, $TargetListType = NULL) { + parent::__construct(); + $this->targets = $targets; + $this->campaignId = $campaignId; + $this->TargetListType = $TargetListType; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AgeRange", FALSE)) { +/** + * Represents an Age Range criterion. + *

      A criterion of this type can only be created using an ID. A criterion of this type is only excludable. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AgeRange extends Criterion { + /** + * @access public + * @var tnsAgeRangeAgeRangeType + */ + public $ageRangeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AgeRange"; + } + + public function __construct($ageRangeType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->ageRangeType = $ageRangeType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Audio", FALSE)) { +/** + * Encapsulates an Audio media identified by a MediaId. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Audio extends Media { + /** + * @access public + * @var integer + */ + public $durationMillis; + + /** + * @access public + * @var string + */ + public $streamingUrl; + + /** + * @access public + * @var boolean + */ + public $readyToPlayOnTheWeb; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Audio"; + } + + public function __construct($durationMillis = NULL, $streamingUrl = NULL, $readyToPlayOnTheWeb = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->durationMillis = $durationMillis; + $this->streamingUrl = $streamingUrl; + $this->readyToPlayOnTheWeb = $readyToPlayOnTheWeb; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("BatchFailureResult", FALSE)) { +/** + * Represents a failure result for a mutate operation that was applied in a + * transactional batch. It does not imply that the corresponding operation + * for this result itself caused the failure. To determine that, please see + * the {@link FailureResult} provided for the first operation of the batch. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BatchFailureResult extends OperationResult { + /** + * @access public + * @var integer + */ + public $operationIndexInBatch; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BatchFailureResult"; + } + + public function __construct($operationIndexInBatch = NULL, $OperationResultType = NULL) { + parent::__construct(); + $this->operationIndexInBatch = $operationIndexInBatch; + $this->OperationResultType = $OperationResultType; + } +}} + +if (!class_exists("BudgetOperation", FALSE)) { +/** + * Operations for adding/updating Budget entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOperation extends Operation { + /** + * @access public + * @var Budget + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("BulkMutateJob", FALSE)) { +/** + * A {@code BulkMutateJob} is essentially a mixed collection of mutate + * operations from the following AdWords API campaign management services: + *

        + *
      • {@link CampaignService}
      • + *
      • {@link CampaignTargetService}
      • + *
      • {@link CampaignCriterionService}
      • + *
      • {@link AdGroupService}
      • + *
      • {@link AdGroupAdService}
      • + *
      • {@link AdGroupCriterionService}
      • + *
      + * + *

      The mutate operations in a job's request are constructed in exactly the + * same way as they are for synchronous calls to these services.

      + * + *

      The mutate operations are grouped by their scoping entity in the + * AdWords customer tree. Currently, mutate operations can be grouped either + * by the customer or by their parent campaign. However, they cannot be + * grouped both ways - some by customer and others by campaigns - in the same + * job.

      + * + *

      Note: A job may have no more than 500,000 mutate + * operations in total, and no more than 10 different scoping campaigns.

      + * + *

      The mutate operations must be packaged into containers called + * {@code Operation Streams}, each tagged with the ID of the scoping entity of + * its operations.

      + * + *

      To facilitate the building of very large bulk mutate jobs, the operation + * streams of a job can be submitted using multiple request parts. A job is + * queued for processing as soon as it can be determined that all of its + * request parts have been received.

      + * + *

      Note: A job may have no more than 100 request parts. + * Each part may have no more than 25 operation streams and no more than 10,000 + * operations in total.

      + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BulkMutateJob extends Job { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var BulkMutateJobPolicy + */ + public $policy; + + /** + * @access public + * @var BulkMutateRequest + */ + public $request; + + /** + * @access public + * @var tnsBasicJobStatus + */ + public $status; + + /** + * @access public + * @var BulkMutateJobEvent[] + */ + public $history; + + /** + * @access public + * @var BulkMutateResult + */ + public $result; + + /** + * @access public + * @var integer + */ + public $numRequestParts; + + /** + * @access public + * @var integer + */ + public $numRequestPartsReceived; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateJob"; + } + + public function __construct($id = NULL, $policy = NULL, $request = NULL, $status = NULL, $history = NULL, $result = NULL, $numRequestParts = NULL, $numRequestPartsReceived = NULL, $failureReason = NULL, $stats = NULL, $billingSummary = NULL, $JobType = NULL) { + parent::__construct(); + $this->id = $id; + $this->policy = $policy; + $this->request = $request; + $this->status = $status; + $this->history = $history; + $this->result = $result; + $this->numRequestParts = $numRequestParts; + $this->numRequestPartsReceived = $numRequestPartsReceived; + $this->failureReason = $failureReason; + $this->stats = $stats; + $this->billingSummary = $billingSummary; + $this->JobType = $JobType; + } +}} + +if (!class_exists("BulkMutateJobEvent", FALSE)) { +/** + * An event defined by a status change of a bulk mutate job. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BulkMutateJobEvent extends JobEvent { + /** + * @access public + * @var tnsBasicJobStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateJobEvent"; + } + + public function __construct($status = NULL, $dateTime = NULL, $JobEventType = NULL) { + parent::__construct(); + $this->status = $status; + $this->dateTime = $dateTime; + $this->JobEventType = $JobEventType; + } +}} + +if (!class_exists("BulkMutateJobSelector", FALSE)) { +/** + * Specifies additional criteria for selecting bulk mutate jobs. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BulkMutateJobSelector extends JobSelector { + /** + * @access public + * @var integer[] + */ + public $jobIds; + + /** + * @access public + * @var integer + */ + public $resultPartIndex; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateJobSelector"; + } + + public function __construct($jobIds = NULL, $resultPartIndex = NULL, $includeHistory = NULL, $includeStats = NULL, $JobSelectorType = NULL) { + parent::__construct(); + $this->jobIds = $jobIds; + $this->resultPartIndex = $resultPartIndex; + $this->includeHistory = $includeHistory; + $this->includeStats = $includeStats; + $this->JobSelectorType = $JobSelectorType; + } +}} + +if (!class_exists("BulkMutateJobStats", FALSE)) { +/** + * Bulk mutate job-handling statistics. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BulkMutateJobStats extends JobStats { + /** + * @access public + * @var integer + */ + public $numOperations; + + /** + * @access public + * @var integer + */ + public $numFailedOperations; + + /** + * @access public + * @var integer + */ + public $numUnprocessedOperations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateJobStats"; + } + + public function __construct($numOperations = NULL, $numFailedOperations = NULL, $numUnprocessedOperations = NULL, $progressPercent = NULL, $pendingTimeMillis = NULL, $processingTimeMillis = NULL, $JobStatsType = NULL) { + parent::__construct(); + $this->numOperations = $numOperations; + $this->numFailedOperations = $numFailedOperations; + $this->numUnprocessedOperations = $numUnprocessedOperations; + $this->progressPercent = $progressPercent; + $this->pendingTimeMillis = $pendingTimeMillis; + $this->processingTimeMillis = $processingTimeMillis; + $this->JobStatsType = $JobStatsType; + } +}} + +if (!class_exists("CampaignAdExtensionOperation", FALSE)) { +/** + * CampaignAdExtension service operation. Note: The {@code SET} operator + * is not supported. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtensionOperation extends Operation { + /** + * @access public + * @var CampaignAdExtension + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("CampaignCriterionLimitExceeded", FALSE)) { +/** + * Error to indicate that too many negative criteria added to some campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterionLimitExceeded extends EntityCountLimitExceeded { + /** + * @access public + * @var tnsCampaignCriterionLimitExceededCriteriaLimitType + */ + public $limitType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionLimitExceeded"; + } + + public function __construct($limitType = NULL, $reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->limitType = $limitType; + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CampaignCriterionOperation", FALSE)) { +/** + * Generic operation (add, remove and set) for campaign criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterionOperation extends Operation { + /** + * @access public + * @var CampaignCriterion + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("CampaignOperation", FALSE)) { +/** + * An operation on an AdWords campaign. + *

      Note: The REMOVE operator is not + * supported. To remove a campaign, set its {@link Campaign#status status} + * to DELETED.

      + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignOperation extends Operation { + /** + * @access public + * @var Campaign + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("CampaignTargetOperation", FALSE)) { +/** + * Sets a list of targets on a specified campaign. + *

      Note: Only the SET operator is supported.

      + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignTargetOperation extends Operation { + /** + * @access public + * @var TargetList + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignTargetOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Carrier", FALSE)) { +/** + * Represents a Carrier Criterion. + *

      A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Carrier extends Criterion { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Carrier"; + } + + public function __construct($name = NULL, $countryCode = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->name = $name; + $this->countryCode = $countryCode; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ContentLabel", FALSE)) { +/** + * Content Label for category exclusion. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ContentLabel extends Criterion { + /** + * @access public + * @var tnsContentLabelType + */ + public $contentLabelType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentLabel"; + } + + public function __construct($contentLabelType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->contentLabelType = $contentLabelType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionPolicyError", FALSE)) { +/** + * Contains the policy violations for a single BiddableAdGroupCriterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionPolicyError extends PolicyViolationError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionPolicyError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("ExplorerAutoOptimizerSetting", FALSE)) { +/** + * Settings for Explorer (GDN Auto Optimizer). + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExplorerAutoOptimizerSetting extends Setting { + /** + * @access public + * @var boolean + */ + public $optIn; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExplorerAutoOptimizerSetting"; + } + + public function __construct($optIn = NULL, $SettingType = NULL) { + parent::__construct(); + $this->optIn = $optIn; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("FailureResult", FALSE)) { +/** + * Represents a failure result for an individual mutate operation. + * + *

      Currently, operations are applied in transactional batches, so the + * corresponding operation for this result may not itself be faulty.

      + * + *

      The errors in the exception may contain {@code OGNL path}s that identify + * the faulty operations in the batch. Please see the subsequent + * {@link BatchFailureResult}s to determine the remaining operations that were + * also applied in the batch and their positions within the batch.

      + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FailureResult extends OperationResult { + /** + * @access public + * @var ApiException + */ + public $cause; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FailureResult"; + } + + public function __construct($cause = NULL, $OperationResultType = NULL) { + parent::__construct(); + $this->cause = $cause; + $this->OperationResultType = $OperationResultType; + } +}} + +if (!class_exists("FeedItemOperation", FALSE)) { +/** + * FeedItem service mutate operation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemOperation extends Operation { + /** + * @access public + * @var FeedItem + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("GeoTargetTypeSetting", FALSE)) { +/** + * Represents a collection of settings related to ads geotargeting. + * + *

      AdWords ads can be geotargeted using Location of Presence (LOP), + * Area of Interest (AOI), or both. LOP is the physical location + * of the user performing the search; AOI is the geographical region + * in which the searcher is interested. For example, if a user in + * New York City performs a search "hotels california", their LOP + * is New York City and their AOI is California. + * + *

      Additionally, ads can be positively or negatively geotargeted. + * An ad that is positively geotargeted to New York City only appears + * to users whose location is related (via AOI or LOP) to New York City. An ad + * that is negatively geotargeted to New York City appears for all + * users except those whose location is related to New York City. Ads can + * only be negatively geotargeted if a positive geotargeting is also supplied, and + * the negatively geotargeted region must be contained within the positive + * region. + * + *

      Geotargeting settings allow ads to be targeted in the following way: + *

        + *
      • Positively geotargeted using solely AOI, solely LOP, or either. + *
      • Negatively geotargeted using solely LOP, or both. + *
      + * + *

      This setting applies only to ads shown on the search network, and does + * not affect ads shown on the Google Display Network. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoTargetTypeSetting extends Setting { + /** + * @access public + * @var tnsGeoTargetTypeSettingPositiveGeoTargetType + */ + public $positiveGeoTargetType; + + /** + * @access public + * @var tnsGeoTargetTypeSettingNegativeGeoTargetType + */ + public $negativeGeoTargetType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetTypeSetting"; + } + + public function __construct($positiveGeoTargetType = NULL, $negativeGeoTargetType = NULL, $SettingType = NULL) { + parent::__construct(); + $this->positiveGeoTargetType = $positiveGeoTargetType; + $this->negativeGeoTargetType = $negativeGeoTargetType; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("Image", FALSE)) { +/** + * Encapsulates an Image media. For {@code SET},{@code REMOVE} operations in + * MediaService, use {@code mediaId}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Image extends Media { + /** + * @access public + * @var base64Binary + */ + public $data; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Image"; + } + + public function __construct($data = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->data = $data; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("KeywordMatchSetting", FALSE)) { +/** + * Improved exact and phrase match option includes misspellings, plurals, + * and other close variants of your keywords. + * + * Default value set to {@code true} to include close variants. For more + * information, see the article + * + * What are keyword matching options?. + * + * This setting is required when creating new campaigns. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class KeywordMatchSetting extends Setting { + /** + * @access public + * @var boolean + */ + public $optIn; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchSetting"; + } + + public function __construct($optIn = NULL, $SettingType = NULL) { + parent::__construct(); + $this->optIn = $optIn; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LostResult", FALSE)) { +/** + * Represents the result of processing an individual mutate operation that + * however failed to get durably saved despite the service's best efforts. + * + *

      The operation is considered to have completed processing because it + * either was successfully performed or failed with validation errors, and + * cannot be retried without the risk of doing duplicate work. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LostResult extends OperationResult { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LostResult"; + } + + public function __construct($OperationResultType = NULL) { + parent::__construct(); + $this->OperationResultType = $OperationResultType; + } +}} + +if (!class_exists("RealTimeBiddingSetting", FALSE)) { +/** + * Settings for Real-Time Bidding, a feature only available for campaigns + * targeting the Ad Exchange network. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RealTimeBiddingSetting extends Setting { + /** + * @access public + * @var boolean + */ + public $optIn; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RealTimeBiddingSetting"; + } + + public function __construct($optIn = NULL, $SettingType = NULL) { + parent::__construct(); + $this->optIn = $optIn; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("MutateJobService", FALSE)) { +/** + * MutateJobService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class MutateJobService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "MutateJobServiceGetResponse", + "get" => "MutateJobServiceGet", + "mutate" => "MutateJobServiceMutate", + "mutateResponse" => "MutateJobServiceMutateResponse", + "mutateCallToAction" => "MutateJobServiceMutateCallToAction", + "search" => "MutateJobServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "Ad" => "Ad", + "AdError" => "AdError", + "ApiError" => "ApiError", + "AdExtension" => "AdExtension", + "AdExtensionError" => "AdExtensionError", + "AdExtensionOverride" => "AdExtensionOverride", + "AdExtensionOverrideError" => "AdExtensionOverrideError", + "AdExtensionOverrideOperation" => "AdExtensionOverrideOperation", + "Operation" => "Operation", + "AdGroup" => "AdGroup", + "AdGroupAd" => "AdGroupAd", + "AdGroupAdCountLimitExceeded" => "AdGroupAdCountLimitExceeded", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "AdGroupAdError" => "AdGroupAdError", + "AdGroupAdExperimentData" => "AdGroupAdExperimentData", + "AdGroupAdOperation" => "AdGroupAdOperation", + "AdGroupBidModifier" => "AdGroupBidModifier", + "AdGroupBidModifierOperation" => "AdGroupBidModifierOperation", + "AdGroupCriterion" => "AdGroupCriterion", + "AdGroupCriterionError" => "AdGroupCriterionError", + "AdGroupCriterionExperimentBidMultiplier" => "AdGroupCriterionExperimentBidMultiplier", + "AdGroupCriterionLimitExceeded" => "AdGroupCriterionLimitExceeded", + "AdGroupCriterionOperation" => "AdGroupCriterionOperation", + "AdGroupExperimentBidMultipliers" => "AdGroupExperimentBidMultipliers", + "AdGroupExperimentData" => "AdGroupExperimentData", + "AdGroupOperation" => "AdGroupOperation", + "AdGroupServiceError" => "AdGroupServiceError", + "AdSchedule" => "AdSchedule", + "Criterion" => "Criterion", + "AdScheduleTarget" => "AdScheduleTarget", + "Target" => "Target", + "AdScheduleTargetList" => "AdScheduleTargetList", + "TargetList" => "TargetList", + "AdUnionId" => "AdUnionId", + "Address" => "Address", + "AdxError" => "AdxError", + "AgeRange" => "AgeRange", + "ApiErrorReason" => "ApiErrorReason", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Audio" => "Audio", + "Media" => "Media", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BatchFailureResult" => "BatchFailureResult", + "OperationResult" => "OperationResult", + "BetaError" => "BetaError", + "Bid" => "Bid", + "BidMultiplier" => "BidMultiplier", + "BiddableAdGroupCriterion" => "BiddableAdGroupCriterion", + "BiddableAdGroupCriterionExperimentData" => "BiddableAdGroupCriterionExperimentData", + "BiddingError" => "BiddingError", + "BiddingErrors" => "BiddingErrors", + "BiddingScheme" => "BiddingScheme", + "BiddingStrategyConfiguration" => "BiddingStrategyConfiguration", + "BiddingTransitionError" => "BiddingTransitionError", + "Bids" => "Bids", + "BillingSummary" => "BillingSummary", + "Budget" => "Budget", + "BudgetError" => "BudgetError", + "BudgetOperation" => "BudgetOperation", + "BudgetOptimizerBiddingScheme" => "BudgetOptimizerBiddingScheme", + "BulkMutateJob" => "BulkMutateJob", + "Job" => "Job", + "BulkMutateJobError" => "BulkMutateJobError", + "BulkMutateJobEvent" => "BulkMutateJobEvent", + "JobEvent" => "JobEvent", + "BulkMutateJobPolicy" => "BulkMutateJobPolicy", + "BulkMutateJobSelector" => "BulkMutateJobSelector", + "JobSelector" => "JobSelector", + "BulkMutateJobStats" => "BulkMutateJobStats", + "JobStats" => "JobStats", + "BulkMutateRequest" => "BulkMutateRequest", + "BulkMutateResult" => "BulkMutateResult", + "Campaign" => "Campaign", + "CampaignAdExtension" => "CampaignAdExtension", + "CampaignAdExtensionError" => "CampaignAdExtensionError", + "CampaignAdExtensionOperation" => "CampaignAdExtensionOperation", + "CampaignCriterion" => "CampaignCriterion", + "CampaignCriterionError" => "CampaignCriterionError", + "CampaignCriterionLimitExceeded" => "CampaignCriterionLimitExceeded", + "CampaignCriterionOperation" => "CampaignCriterionOperation", + "CampaignError" => "CampaignError", + "CampaignOperation" => "CampaignOperation", + "CampaignTargetOperation" => "CampaignTargetOperation", + "Carrier" => "Carrier", + "ClientTermsError" => "ClientTermsError", + "ComparableValue" => "ComparableValue", + "ContentLabel" => "ContentLabel", + "ConversionOptimizerBiddingScheme" => "ConversionOptimizerBiddingScheme", + "ConversionOptimizerEligibility" => "ConversionOptimizerEligibility", + "CpaBid" => "CpaBid", + "CpcBid" => "CpcBid", + "CpmBid" => "CpmBid", + "CriterionError" => "CriterionError", + "CriterionParameter" => "CriterionParameter", + "CriterionPolicyError" => "CriterionPolicyError", + "PolicyViolationError" => "PolicyViolationError", + "DatabaseError" => "DatabaseError", + "DateError" => "DateError", + "DeprecatedAd" => "DeprecatedAd", + "Dimensions" => "Dimensions", + "DistinctError" => "DistinctError", + "DomainInfoExtension" => "DomainInfoExtension", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EnhancedCpcBiddingScheme" => "EnhancedCpcBiddingScheme", + "EntityAccessDenied" => "EntityAccessDenied", + "EntityId" => "EntityId", + "EntityNotFound" => "EntityNotFound", + "ExemptionRequest" => "ExemptionRequest", + "ExplorerAutoOptimizerSetting" => "ExplorerAutoOptimizerSetting", + "Setting" => "Setting", + "FailureResult" => "FailureResult", + "FeedItem" => "FeedItem", + "FeedItemAttributeError" => "FeedItemAttributeError", + "FeedItemAttributeValue" => "FeedItemAttributeValue", + "FeedItemDevicePreference" => "FeedItemDevicePreference", + "FeedItemError" => "FeedItemError", + "FeedItemOperation" => "FeedItemOperation", + "FeedItemSchedule" => "FeedItemSchedule", + "FeedItemScheduling" => "FeedItemScheduling", + "FeedItemValidationDetail" => "FeedItemValidationDetail", + "ForwardCompatibilityError" => "ForwardCompatibilityError", + "FrequencyCap" => "FrequencyCap", + "Gender" => "Gender", + "GeoPoint" => "GeoPoint", + "GeoTargetTypeSetting" => "GeoTargetTypeSetting", + "IdError" => "IdError", + "Image" => "Image", + "ImageAd" => "ImageAd", + "ImageError" => "ImageError", + "InAppLinkExtension" => "InAppLinkExtension", + "InternalApiError" => "InternalApiError", + "JobError" => "JobError", + "JobResult" => "JobResult", + "Keyword" => "Keyword", + "KeywordMatchSetting" => "KeywordMatchSetting", + "Language" => "Language", + "Location" => "Location", + "LocationExtension" => "LocationExtension", + "LocationOverrideInfo" => "LocationOverrideInfo", + "LocationSyncExtension" => "LocationSyncExtension", + "LongValue" => "LongValue", + "LostResult" => "LostResult", + "ManualCPCAdGroupCriterionExperimentBidMultiplier" => "ManualCPCAdGroupCriterionExperimentBidMultiplier", + "ManualCPCAdGroupExperimentBidMultipliers" => "ManualCPCAdGroupExperimentBidMultipliers", + "ManualCPMAdGroupExperimentBidMultipliers" => "ManualCPMAdGroupExperimentBidMultipliers", + "ManualCpcBiddingScheme" => "ManualCpcBiddingScheme", + "ManualCpmBiddingScheme" => "ManualCpmBiddingScheme", + "MediaError" => "MediaError", + "Media_Size_DimensionsMapEntry" => "Media_Size_DimensionsMapEntry", + "Media_Size_StringMapEntry" => "Media_Size_StringMapEntry", + "MobileAd" => "MobileAd", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "MobileDevice" => "MobileDevice", + "MobileExtension" => "MobileExtension", + "MobileImageAd" => "MobileImageAd", + "Money" => "Money", + "NegativeAdGroupCriterion" => "NegativeAdGroupCriterion", + "NegativeCampaignCriterion" => "NegativeCampaignCriterion", + "NetworkSetting" => "NetworkSetting", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OAuthInfo" => "OAuthInfo", + "Operand" => "Operand", + "OperatingSystemVersion" => "OperatingSystemVersion", + "OperationAccessDenied" => "OperationAccessDenied", + "OperationStream" => "OperationStream", + "OperationStreamResult" => "OperationStreamResult", + "OperatorError" => "OperatorError", + "OverrideInfo" => "OverrideInfo", + "PageOnePromotedBiddingScheme" => "PageOnePromotedBiddingScheme", + "PagingError" => "PagingError", + "PercentCpaBid" => "PercentCpaBid", + "PercentCpaBiddingScheme" => "PercentCpaBiddingScheme", + "PlaceHolder" => "PlaceHolder", + "Placement" => "Placement", + "Platform" => "Platform", + "PolicyViolationError.Part" => "PolicyViolationErrorPart", + "PolicyViolationKey" => "PolicyViolationKey", + "Product" => "Product", + "ProductAd" => "ProductAd", + "ProductCondition" => "ProductCondition", + "ProductConditionOperand" => "ProductConditionOperand", + "Proximity" => "Proximity", + "QualityInfo" => "QualityInfo", + "QueryError" => "QueryError", + "QuotaCheckError" => "QuotaCheckError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RealTimeBiddingSetting" => "RealTimeBiddingSetting", + "RegionCodeError" => "RegionCodeError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "ReturnValueResult" => "ReturnValueResult", + "RichMediaAd" => "RichMediaAd", + "SelectorError" => "SelectorError", + "SettingError" => "SettingError", + "SimpleMutateJob" => "SimpleMutateJob", + "SimpleMutateResult" => "SimpleMutateResult", + "Sitelink" => "Sitelink", + "SitelinksExtension" => "SitelinksExtension", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StatsQueryError" => "StatsQueryError", + "StringLengthError" => "StringLengthError", + "String_StringMapEntry" => "String_StringMapEntry", + "TargetCpaBiddingScheme" => "TargetCpaBiddingScheme", + "TargetError" => "TargetError", + "TargetingSettingDetail" => "TargetingSettingDetail", + "TargetSpendBiddingScheme" => "TargetSpendBiddingScheme", + "TargetingSetting" => "TargetingSetting", + "TempAdUnionId" => "TempAdUnionId", + "TemplateAd" => "TemplateAd", + "TemplateElement" => "TemplateElement", + "TemplateElementField" => "TemplateElementField", + "TextAd" => "TextAd", + "ThirdPartyRedirectAd" => "ThirdPartyRedirectAd", + "TrackingSetting" => "TrackingSetting", + "UnprocessedResult" => "UnprocessedResult", + "CriterionUserInterest" => "CriterionUserInterest", + "CriterionUserList" => "CriterionUserList", + "Vertical" => "Vertical", + "Video" => "Video", + "Webpage" => "Webpage", + "WebpageCondition" => "WebpageCondition", + "WebpageParameter" => "WebpageParameter", + "DynamicSearchAd" => "DynamicSearchAd", + "AdError.Reason" => "AdErrorReason", + "AdExtensionError.Reason" => "AdExtensionErrorReason", + "AdExtensionOverride.ApprovalStatus" => "AdExtensionOverrideApprovalStatus", + "AdExtensionOverride.Status" => "AdExtensionOverrideStatus", + "AdExtensionOverrideError.Reason" => "AdExtensionOverrideErrorReason", + "AdGroupAd.ApprovalStatus" => "AdGroupAdApprovalStatus", + "AdGroupAd.Status" => "AdGroupAdStatus", + "AdGroupAdError.Reason" => "AdGroupAdErrorReason", + "AdGroupCriterionError.Reason" => "AdGroupCriterionErrorReason", + "AdGroupCriterionLimitExceeded.CriteriaLimitType" => "AdGroupCriterionLimitExceededCriteriaLimitType", + "AdGroupServiceError.Reason" => "AdGroupServiceErrorReason", + "AdGroup.Status" => "AdGroupStatus", + "AdServingOptimizationStatus" => "AdServingOptimizationStatus", + "AdxError.Reason" => "AdxErrorReason", + "AgeRange.AgeRangeType" => "AgeRangeAgeRangeType", + "ApprovalStatus" => "ApprovalStatus", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BasicJobStatus" => "BasicJobStatus", + "BetaError.Reason" => "BetaErrorReason", + "BidModifierSource" => "BidModifierSource", + "BidSource" => "BidSource", + "BiddingError.Reason" => "BiddingErrorReason", + "BiddingErrors.Reason" => "BiddingErrorsReason", + "BiddingStrategySource" => "BiddingStrategySource", + "BiddingStrategyType" => "BiddingStrategyType", + "BiddingTransitionError.Reason" => "BiddingTransitionErrorReason", + "Budget.BudgetDeliveryMethod" => "BudgetBudgetDeliveryMethod", + "Budget.BudgetPeriod" => "BudgetBudgetPeriod", + "Budget.BudgetStatus" => "BudgetBudgetStatus", + "BudgetError.Reason" => "BudgetErrorReason", + "BulkMutateJobError.Reason" => "BulkMutateJobErrorReason", + "CampaignAdExtension.ApprovalStatus" => "CampaignAdExtensionApprovalStatus", + "CampaignAdExtension.Status" => "CampaignAdExtensionStatus", + "CampaignAdExtensionError.Reason" => "CampaignAdExtensionErrorReason", + "CampaignCriterionError.Reason" => "CampaignCriterionErrorReason", + "CampaignCriterionLimitExceeded.CriteriaLimitType" => "CampaignCriterionLimitExceededCriteriaLimitType", + "CampaignError.Reason" => "CampaignErrorReason", + "CampaignStatus" => "CampaignStatus", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "ContentLabelType" => "ContentLabelType", + "ConversionOptimizerBiddingScheme.BidType" => "ConversionOptimizerBiddingSchemeBidType", + "ConversionOptimizerBiddingScheme.PricingMode" => "ConversionOptimizerBiddingSchemePricingMode", + "ConversionOptimizerEligibility.RejectionReason" => "ConversionOptimizerEligibilityRejectionReason", + "Criterion.Type" => "CriterionType", + "CriterionError.Reason" => "CriterionErrorReason", + "CriterionTypeGroup" => "CriterionTypeGroup", + "CriterionUse" => "CriterionUse", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DayOfWeek" => "DayOfWeek", + "DeprecatedAd.Type" => "DeprecatedAdType", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityAccessDenied.Reason" => "EntityAccessDeniedReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityId.Type" => "EntityIdType", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "ExperimentDataStatus" => "ExperimentDataStatus", + "ExperimentDeltaStatus" => "ExperimentDeltaStatus", + "FeedItem.Status" => "FeedItemStatus", + "FeedItemError.Reason" => "FeedItemErrorReason", + "FeedItemValidationDetail.ApprovalStatus" => "FeedItemValidationDetailApprovalStatus", + "FeedItemValidationDetail.ValidationStatus" => "FeedItemValidationDetailValidationStatus", + "ForwardCompatibilityError.Reason" => "ForwardCompatibilityErrorReason", + "Gender.GenderType" => "GenderGenderType", + "GeoTargetTypeSetting.NegativeGeoTargetType" => "GeoTargetTypeSettingNegativeGeoTargetType", + "GeoTargetTypeSetting.PositiveGeoTargetType" => "GeoTargetTypeSettingPositiveGeoTargetType", + "IdError.Reason" => "IdErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InAppLinkExtension.AppStore" => "InAppLinkExtensionAppStore", + "InternalApiError.Reason" => "InternalApiErrorReason", + "JobError.Reason" => "JobErrorReason", + "KeywordMatchType" => "KeywordMatchType", + "Level" => "Level", + "LocationExtension.Source" => "LocationExtensionSource", + "LocationOverrideInfo.RadiusUnits" => "LocationOverrideInfoRadiusUnits", + "LocationTargetingStatus" => "LocationTargetingStatus", + "MarkupLanguageType" => "MarkupLanguageType", + "Media.MediaType" => "MediaMediaType", + "Media.MimeType" => "MediaMimeType", + "Media.Size" => "MediaSize", + "MediaError.Reason" => "MediaErrorReason", + "MinuteOfHour" => "MinuteOfHour", + "MobileDevice.DeviceType" => "MobileDeviceDeviceType", + "MultiplierSource" => "MultiplierSource", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperatingSystemVersion.OperatorType" => "OperatingSystemVersionOperatorType", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "PageOnePromotedBiddingScheme.StrategyGoal" => "PageOnePromotedBiddingSchemeStrategyGoal", + "PagingError.Reason" => "PagingErrorReason", + "PolicyViolationError.Reason" => "PolicyViolationErrorReason", + "Proximity.DistanceUnits" => "ProximityDistanceUnits", + "QueryError.Reason" => "QueryErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RegionCodeError.Reason" => "RegionCodeErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RichMediaAd.AdAttribute" => "RichMediaAdAdAttribute", + "RichMediaAd.RichMediaAdType" => "RichMediaAdRichMediaAdType", + "SelectorError.Reason" => "SelectorErrorReason", + "ServingStatus" => "ServingStatus", + "SettingError.Reason" => "SettingErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "StatsQueryError.Reason" => "StatsQueryErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "SystemServingStatus" => "SystemServingStatus", + "TargetError.Reason" => "TargetErrorReason", + "TemplateElementField.Type" => "TemplateElementFieldType", + "ThirdPartyRedirectAd.ExpandingDirection" => "ThirdPartyRedirectAdExpandingDirection", + "TimeUnit" => "TimeUnit", + "CriterionUserList.MembershipStatus" => "CriterionUserListMembershipStatus", + "UserStatus" => "UserStatus", + "VideoType" => "VideoType", + "WebpageConditionOperand" => "WebpageConditionOperand", + "getResult" => "getResult", + "getResultResponse" => "getResultResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/MutateJobService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = MutateJobService::$classmap; + parent::__construct($wsdl, $options, $user, 'MutateJobService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Query the status of existing jobs, both simple and bulk API. + *

      Use a {@link JobSelector} to query and return a list which may + * contain both {@link BulkMutateJob} and/or {@link SimpleMutateJob}.

      + */ + public function get($selector) { + $arg = new MutateJobServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Query mutation results, of a {@code COMPLETED} job. + *

      Use a {@link JobSelector} to query and return either a + * {@link BulkMutateResult} or a {@link SimpleMutateResult}. Submit only one job ID + * at a time.

      + */ + public function getResult($selector) { + $arg = new getResult($selector); + $result = $this->__soapCall("getResult", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Simplified way of submitting a mutation job. The provided list of + * operations, if valid, will create a new job with a unique id, which will + * be returned. This id can later be used in invocations of + * {@link #get} and {@link #getResult}. Policy can optionally be specified. + * + *

      When this method returns with success, the job will be in + * {@code PROCESSING} or {@code PENDING} state and no further action is + * needed for the job to get executed.

      + */ + public function mutate($operations, $policy) { + $arg = new MutateJobServiceMutate($operations, $policy); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/OfflineConversionFeedService.php b/src/Google/Api/Ads/AdWords/v201309/OfflineConversionFeedService.php new file mode 100755 index 000000000..b657c0f42 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/OfflineConversionFeedService.php @@ -0,0 +1,2926 @@ +googleClickId = $googleClickId; + $this->conversionName = $conversionName; + $this->conversionTime = $conversionTime; + $this->conversionValue = $conversionValue; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CollectionSizeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CollectionSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CurrencyCodeErrorReason", FALSE)) { +/** + * Encodes the reason (cause) of a particular {@link CurrencyCodeError}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CurrencyCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CurrencyCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MatchesRegexErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MatchesRegexErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MatchesRegexError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OfflineConversionErrorReason", FALSE)) { +/** + * The reasons for an OfflineConversionError. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OfflineConversionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OfflineConversionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PagingErrorReason", FALSE)) { +/** + * The reasons for errors when using pagination. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegionCodeErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RegionCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OfflineConversionFeedServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD. + * + * + * + * Reports an offline conversion for each entry in {@code operations}. + *

      + * This bulk operation does not have any transactional guarantees. Some operations can succeed + * while others fail. + * + * @param operations A list of offline conversion feed operations. + * @return The list of offline conversion feed results (in the same order as the operations). + * @throws {@link ApiException} if problems occurred while applying offline conversions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OfflineConversionFeedServiceMutate { + /** + * @access public + * @var OfflineConversionFeedOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("OfflineConversionFeedServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OfflineConversionFeedServiceMutateResponse { + /** + * @access public + * @var OfflineConversionFeedReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CollectionSizeError", FALSE)) { +/** + * Errors associated with the size of the given collection being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CollectionSizeError extends ApiError { + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CurrencyCodeError", FALSE)) { +/** + * Errors for currency codes. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CurrencyCodeError extends ApiError { + /** + * @access public + * @var tnsCurrencyCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CurrencyCodeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("MatchesRegexError", FALSE)) { +/** + * Errors associated with a given string not matching the provided + * regular expression. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MatchesRegexError extends ApiError { + /** + * @access public + * @var tnsMatchesRegexErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MatchesRegexError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OfflineConversionError", FALSE)) { +/** + * Errors that the {@link OfflineConversionFeedService} can throw. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OfflineConversionError extends ApiError { + /** + * @access public + * @var tnsOfflineConversionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OfflineConversionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OfflineConversionFeedOperation", FALSE)) { +/** + * Operation for uploading {@link OfflineConversionFeed}. + * See {@link OfflineConversionFeedService#mutate} + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OfflineConversionFeedOperation extends Operation { + /** + * @access public + * @var OfflineConversionFeed + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OfflineConversionFeedOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PagingError", FALSE)) { +/** + * Error codes for pagination. + * See {@link com.google.ads.api.services.common.pagination.Paging}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingError extends ApiError { + /** + * @access public + * @var tnsPagingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RegionCodeError", FALSE)) { +/** + * A list of all errors associated with the @RegionCode constraints. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RegionCodeError extends ApiError { + /** + * @access public + * @var tnsRegionCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * Indicates that a field was rejected due to compatibility issues. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("OfflineConversionFeedReturnValue", FALSE)) { +/** + * A container for return values from the OfflineConversionFeedService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OfflineConversionFeedReturnValue extends ListReturnValue { + /** + * @access public + * @var OfflineConversionFeed[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OfflineConversionFeedReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("OfflineConversionFeedService", FALSE)) { +/** + * OfflineConversionFeedService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class OfflineConversionFeedService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "OfflineConversionFeedServiceGetResponse", + "get" => "OfflineConversionFeedServiceGet", + "mutate" => "OfflineConversionFeedServiceMutate", + "mutateResponse" => "OfflineConversionFeedServiceMutateResponse", + "mutateCallToAction" => "OfflineConversionFeedServiceMutateCallToAction", + "search" => "OfflineConversionFeedServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "CollectionSizeError" => "CollectionSizeError", + "CurrencyCodeError" => "CurrencyCodeError", + "DateError" => "DateError", + "DistinctError" => "DistinctError", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "MatchesRegexError" => "MatchesRegexError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OfflineConversionError" => "OfflineConversionError", + "OfflineConversionFeed" => "OfflineConversionFeed", + "OfflineConversionFeedOperation" => "OfflineConversionFeedOperation", + "Operation" => "Operation", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "PagingError" => "PagingError", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RegionCodeError" => "RegionCodeError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "OfflineConversionFeedReturnValue" => "OfflineConversionFeedReturnValue", + "ListReturnValue" => "ListReturnValue", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "CurrencyCodeError.Reason" => "CurrencyCodeErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "MatchesRegexError.Reason" => "MatchesRegexErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OfflineConversionError.Reason" => "OfflineConversionErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "PagingError.Reason" => "PagingErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RegionCodeError.Reason" => "RegionCodeErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/OfflineConversionFeedService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = OfflineConversionFeedService::$classmap; + parent::__construct($wsdl, $options, $user, 'OfflineConversionFeedService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD. + * + * + * + * Reports an offline conversion for each entry in {@code operations}. + *

      + * This bulk operation does not have any transactional guarantees. Some operations can succeed + * while others fail. + * + * @param operations A list of offline conversion feed operations. + * @return The list of offline conversion feed results (in the same order as the operations). + * @throws {@link ApiException} if problems occurred while applying offline conversions. + */ + public function mutate($operations) { + $arg = new OfflineConversionFeedServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/PromotionService.php b/src/Google/Api/Ads/AdWords/v201309/PromotionService.php new file mode 100755 index 000000000..d68f8343e --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/PromotionService.php @@ -0,0 +1,5097 @@ +streetAddress = $streetAddress; + $this->streetAddress2 = $streetAddress2; + $this->cityName = $cityName; + $this->provinceCode = $provinceCode; + $this->provinceName = $provinceName; + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + } +}} + +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.

      + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("Criterion", FALSE)) { +/** + * Represents a criterion (such as a keyword, placement, or vertical). + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Criterion { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsCriterionType + */ + public $type; + + /** + * @access public + * @var string + */ + public $CriterionType; + + private $_parameterMap = array ( + "Criterion.Type" => "CriterionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + public function __construct($id = NULL, $type = NULL, $CriterionType = NULL) { + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionParameter", FALSE)) { +/** + * Base type of criterion parameters. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionParameter { + /** + * @access public + * @var string + */ + public $CriterionParameterType; + + private $_parameterMap = array ( + "CriterionParameter.Type" => "CriterionParameterType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionParameter"; + } + + public function __construct($CriterionParameterType = NULL) { + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateRange", FALSE)) { +/** + * Represents a range of dates that has either an upper or a lower bound. + * The format for the date is YYYYMMDD. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateRange { + /** + * @access public + * @var Date + */ + public $min; + + /** + * @access public + * @var Date + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("GeoPoint", FALSE)) { +/** + * Specifies a geo location with the supplied latitude/longitude. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoPoint { + /** + * @access public + * @var integer + */ + public $latitudeInMicroDegrees; + + /** + * @access public + * @var integer + */ + public $longitudeInMicroDegrees; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoPoint"; + } + + public function __construct($latitudeInMicroDegrees = NULL, $longitudeInMicroDegrees = NULL) { + $this->latitudeInMicroDegrees = $latitudeInMicroDegrees; + $this->longitudeInMicroDegrees = $longitudeInMicroDegrees; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Keyword", FALSE)) { +/** + * Represents a keyword. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Keyword extends Criterion { + /** + * @access public + * @var string + */ + public $text; + + /** + * @access public + * @var tnsKeywordMatchType + */ + public $matchType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Keyword"; + } + + public function __construct($text = NULL, $matchType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->text = $text; + $this->matchType = $matchType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Language", FALSE)) { +/** + * Represents a Language criterion. + *

      A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Language extends Criterion { + /** + * @access public + * @var string + */ + public $code; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Language"; + } + + public function __construct($code = NULL, $name = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->code = $code; + $this->name = $name; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Location", FALSE)) { +/** + * Represents Location criterion. + *

      A criterion of this type can only be created using an ID. A criterion of this type can be either targeted or excluded. + * This is enabled for AdX. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Location extends Criterion { + /** + * @access public + * @var string + */ + public $locationName; + + /** + * @access public + * @var string + */ + public $displayType; + + /** + * @access public + * @var tnsLocationTargetingStatus + */ + public $targetingStatus; + + /** + * @access public + * @var Location[] + */ + public $parentLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($locationName = NULL, $displayType = NULL, $targetingStatus = NULL, $parentLocations = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->locationName = $locationName; + $this->displayType = $displayType; + $this->targetingStatus = $targetingStatus; + $this->parentLocations = $parentLocations; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileAppCategory", FALSE)) { +/** + * Represents the mobile app category to be targeted. + * View the complete list of + * available mobile app categories. + * This is enabled for AdX. + * This is a beta feature. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileAppCategory extends Criterion { + /** + * @access public + * @var integer + */ + public $mobileAppCategoryId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAppCategory"; + } + + public function __construct($mobileAppCategoryId = NULL, $displayName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->mobileAppCategoryId = $mobileAppCategoryId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileApplication", FALSE)) { +/** + * Represents the mobile application to be targeted. + * This is enabled for AdX. + * This is a beta feature. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileApplication extends Criterion { + /** + * @access public + * @var string + */ + public $appId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileApplication"; + } + + public function __construct($appId = NULL, $displayName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->appId = $appId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Placement", FALSE)) { +/** + * A placement used for modifying bids for sites when targeting the content + * network. + * This is enabled for AdX. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Placement extends Criterion { + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + public function __construct($url = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->url = $url; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("Product", FALSE)) { +/** + * Product targeting criteria, represents a filter for products in the + * product feed that is defined by the advertiser. The criteria is used to + * determine the products in a Merchant Center account to be used with the + * ProductAds in the AdGroup. This criteria is available only to some advertisers. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Product extends Criterion { + /** + * @access public + * @var ProductCondition[] + */ + public $conditions; + + /** + * @access public + * @var string + */ + public $text; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + public function __construct($conditions = NULL, $text = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->conditions = $conditions; + $this->text = $text; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ProductCondition", FALSE)) { +/** + * Conditions to filter the products defined in product feed for targeting. + * The condition is defined as operand=argument. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProductCondition { + /** + * @access public + * @var string + */ + public $argument; + + /** + * @access public + * @var ProductConditionOperand + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductCondition"; + } + + public function __construct($argument = NULL, $operand = NULL) { + $this->argument = $argument; + $this->operand = $operand; + } +}} + +if (!class_exists("ProductConditionOperand", FALSE)) { +/** + * Attribute for the product condition. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProductConditionOperand { + /** + * @access public + * @var string + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductConditionOperand"; + } + + public function __construct($operand = NULL) { + $this->operand = $operand; + } +}} + +if (!class_exists("Proximity", FALSE)) { +/** + * Represents a Proximity Criterion. + * + * A proximity is an area within a certain radius of a point with the center point being described + * by a lat/long pair. The caller may also alternatively provide address fields which will be + * geocoded into a lat/long pair. Note: If a geoPoint value is provided, the address is not + * used for calculating the lat/long to target. + *

      A criterion of this type is only targetable. + * This is enabled for AdX. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Proximity extends Criterion { + /** + * @access public + * @var GeoPoint + */ + public $geoPoint; + + /** + * @access public + * @var tnsProximityDistanceUnits + */ + public $radiusDistanceUnits; + + /** + * @access public + * @var double + */ + public $radiusInUnits; + + /** + * @access public + * @var Address + */ + public $address; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Proximity"; + } + + public function __construct($geoPoint = NULL, $radiusDistanceUnits = NULL, $radiusInUnits = NULL, $address = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->geoPoint = $geoPoint; + $this->radiusDistanceUnits = $radiusDistanceUnits; + $this->radiusInUnits = $radiusInUnits; + $this->address = $address; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * Indicates that a field was rejected due to compatibility issues. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CriterionUserInterest", FALSE)) { +/** + * User Interest represents a particular interest-based vertical to be targeted. + * This is enabled for AdX. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserInterest extends Criterion { + /** + * @access public + * @var integer + */ + public $userInterestId; + + /** + * @access public + * @var string + */ + public $userInterestName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserInterest"; + } + + public function __construct($userInterestId = NULL, $userInterestName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->userInterestId = $userInterestId; + $this->userInterestName = $userInterestName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionUserList", FALSE)) { +/** + * UserList - represents a user list that is defined by the advertiser to be targeted. + * This is enabled for AdX. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserList extends Criterion { + /** + * @access public + * @var integer + */ + public $userListId; + + /** + * @access public + * @var string + */ + public $userListName; + + /** + * @access public + * @var tnsCriterionUserListMembershipStatus + */ + public $userListMembershipStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList"; + } + + public function __construct($userListId = NULL, $userListName = NULL, $userListMembershipStatus = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->userListId = $userListId; + $this->userListName = $userListName; + $this->userListMembershipStatus = $userListMembershipStatus; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Vertical", FALSE)) { +/** + * Use verticals to target or exclude placements in the Google Display Network + * based on the category into which the placement falls (for example, "Pets & + * Animals/Pets/Dogs"). + * View the complete list + * of available vertical categories. + * This is enabled for AdX. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Vertical extends Criterion { + /** + * @access public + * @var integer + */ + public $verticalId; + + /** + * @access public + * @var integer + */ + public $verticalParentId; + + /** + * @access public + * @var string[] + */ + public $path; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Vertical"; + } + + public function __construct($verticalId = NULL, $verticalParentId = NULL, $path = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->verticalId = $verticalId; + $this->verticalParentId = $verticalParentId; + $this->path = $path; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Webpage", FALSE)) { +/** + * Criterion for targeting webpages of an advertiser's website. The + * website domain name is specified at the campaign level. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Webpage extends Criterion { + /** + * @access public + * @var WebpageParameter + */ + public $parameter; + + /** + * @access public + * @var double + */ + public $criteriaCoverage; + + /** + * @access public + * @var string[] + */ + public $criteriaSamples; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Webpage"; + } + + public function __construct($parameter = NULL, $criteriaCoverage = NULL, $criteriaSamples = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->parameter = $parameter; + $this->criteriaCoverage = $criteriaCoverage; + $this->criteriaSamples = $criteriaSamples; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("WebpageCondition", FALSE)) { +/** + * Logical expression for targeting webpages of an advertiser's website. + * + *

      A condition is defined as {@code operand OP argument} + * where {@code operand} is one of the values enumerated in + * {@link WebpageConditionOperand}, and, based on this value, + * {@code OP} is either of {@code EQUALS} or {@code CONTAINS}.

      + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageCondition { + /** + * @access public + * @var tnsWebpageConditionOperand + */ + public $operand; + + /** + * @access public + * @var string + */ + public $argument; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageCondition"; + } + + public function __construct($operand = NULL, $argument = NULL) { + $this->operand = $operand; + $this->argument = $argument; + } +}} + +if (!class_exists("WebpageParameter", FALSE)) { +/** + * Parameter of Webpage criterion, expressed as a list of conditions, or + * logical expressions, for targeting webpages of an advertiser's website. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageParameter extends CriterionParameter { + /** + * @access public + * @var string + */ + public $criterionName; + + /** + * @access public + * @var WebpageCondition[] + */ + public $conditions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageParameter"; + } + + public function __construct($criterionName = NULL, $conditions = NULL, $CriterionParameterType = NULL) { + parent::__construct(); + $this->criterionName = $criterionName; + $this->conditions = $conditions; + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * The types of criteria. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("KeywordMatchType", FALSE)) { +/** + * Match type of a keyword. i.e. the way we match a keyword string with + * search queries. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class KeywordMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationTargetingStatus", FALSE)) { +/** + * Enum that represents the different Targeting Status values for a Location criterion. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationTargetingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationTargetingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProximityDistanceUnits", FALSE)) { +/** + * The radius distance is expressed in either kilometers or miles. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProximityDistanceUnits { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Proximity.DistanceUnits"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUserListMembershipStatus", FALSE)) { +/** + * Membership status of the user list. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList.MembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("WebpageConditionOperand", FALSE)) { +/** + * Operand value of {@link WebpageCondition}. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageConditionOperand { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageConditionOperand"; + } + + public function __construct() { + } +}} + +if (!class_exists("Creative", FALSE)) { +/** + * Creative for a text ad. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Creative { + /** + * @access public + * @var string + */ + public $headline; + + /** + * @access public + * @var string + */ + public $line1; + + /** + * @access public + * @var string + */ + public $line2; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Creative"; + } + + public function __construct($headline = NULL, $line1 = NULL, $line2 = NULL) { + $this->headline = $headline; + $this->line1 = $line1; + $this->line2 = $line2; + } +}} + +if (!class_exists("ExpressSoapHeader", FALSE)) { +/** + * {@link SoapHeader} for AdWords Express services. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExpressSoapHeader extends SoapRequestHeader { + /** + * @access public + * @var integer + */ + public $expressBusinessId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExpressSoapHeader"; + } + + public function __construct($expressBusinessId = NULL, $authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + parent::__construct(); + $this->expressBusinessId = $expressBusinessId; + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("KeywordSet", FALSE)) { +/** + * A keyword set based {@link Criterion}. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class KeywordSet extends Criterion { + /** + * @access public + * @var string + */ + public $keywordSetId; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var boolean + */ + public $deprecated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordSet"; + } + + public function __construct($keywordSetId = NULL, $name = NULL, $deprecated = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->keywordSetId = $keywordSetId; + $this->name = $name; + $this->deprecated = $deprecated; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("NegativeCriterion", FALSE)) { +/** + * A negative criterion. It wraps a {@link Criterion} and will be associated with an ad group as a + * {@link com.google.ads.api.services.campaignmgmt.criterion.adgroupcriterion.NegativeAdGroupCriterion} + * . + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NegativeCriterion extends Criterion { + /** + * @access public + * @var Criterion + */ + public $criterion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NegativeCriterion"; + } + + public function __construct($criterion = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->criterion = $criterion; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("NegativeKeyword", FALSE)) { +/** + * Criterion to mark a keyword is negative keyword. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NegativeKeyword extends Keyword { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NegativeKeyword"; + } + + public function __construct($text = NULL, $matchType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->text = $text; + $this->matchType = $matchType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("NoStatsPage", FALSE)) { +/** + * Base class for Get results for a page of entities that do not use statistics. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NoStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NoStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("ProductService", FALSE)) { +/** + * A {@link Criterion} which describes the product or service an Ad is targeting. A product and + * service criterion can be used to derive a group of {@link KeywordSet} by AdWords Express. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProductService extends Criterion { + /** + * @access public + * @var string + */ + public $text; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductService"; + } + + public function __construct($text = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->text = $text; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Promotion", FALSE)) { +/** + * A promotion for a business. It contains all the user specified data as needed by AdWords Express + * to generate AdWords campaigns. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Promotion { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsPromotionStatus + */ + public $status; + + /** + * @access public + * @var Creative[] + */ + public $creatives; + + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * @access public + * @var boolean + */ + public $streetAddressVisible; + + /** + * @access public + * @var boolean + */ + public $callTrackingEnabled; + + /** + * @access public + * @var Money + */ + public $budget; + + /** + * @access public + * @var Criterion[] + */ + public $criteria; + + /** + * @access public + * @var integer[] + */ + public $campaignIds; + + /** + * @access public + * @var Money + */ + public $remainingBudget; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Promotion"; + } + + public function __construct($id = NULL, $name = NULL, $status = NULL, $creatives = NULL, $destinationUrl = NULL, $streetAddressVisible = NULL, $callTrackingEnabled = NULL, $budget = NULL, $criteria = NULL, $campaignIds = NULL, $remainingBudget = NULL) { + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->creatives = $creatives; + $this->destinationUrl = $destinationUrl; + $this->streetAddressVisible = $streetAddressVisible; + $this->callTrackingEnabled = $callTrackingEnabled; + $this->budget = $budget; + $this->criteria = $criteria; + $this->campaignIds = $campaignIds; + $this->remainingBudget = $remainingBudget; + } +}} + +if (!class_exists("PromotionError", FALSE)) { +/** + * Promotion related errors for AdWords Express. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PromotionError extends ApiError { + /** + * @access public + * @var tnsPromotionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PromotionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PromotionOperation", FALSE)) { +/** + * A typed {@link Operation} class that uses an instance of {@link Promotion} as its operand. + * + *

      Note: The REMOVE operator is not + * supported. To remove a {@link Promotion}, set its {@link Promotion#status status} to + * DELETED.

      + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PromotionOperation extends Operation { + /** + * @access public + * @var Promotion + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PromotionOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("PromotionPage", FALSE)) { +/** + * Contains a page of {@link Promotion}s with no stats. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PromotionPage extends NoStatsPage { + /** + * @access public + * @var Promotion[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PromotionPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("PromotionStatus", FALSE)) { +/** + * Statuses of a promotion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PromotionStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Promotion.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("PromotionErrorReason", FALSE)) { +/** + * Reason behind the {@code PromotionError}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PromotionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PromotionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PromotionServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Retrieves the promotions that meet the criteria set in the given selector. + * @param selector the selector specifying the AdWords Express promotion to return + * @return list of AdWords Express promotion identified by the selector + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PromotionServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("PromotionServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PromotionServiceGetResponse { + /** + * @access public + * @var PromotionPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("PromotionServiceMutate", FALSE)) { +/** + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET. + * + * + * + * Performs the given {@link PromotionOperation}. + * @param operations list of unique operations; the same AdWords Express promotion cannot be + * specified in more than one operation + * @return the updated AdWords Express promotion + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PromotionServiceMutate { + /** + * @access public + * @var PromotionOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("PromotionServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PromotionServiceMutateResponse { + /** + * @access public + * @var Promotion[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("PromotionService", FALSE)) { +/** + * PromotionService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class PromotionService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "PromotionServiceGetResponse", + "get" => "PromotionServiceGet", + "mutate" => "PromotionServiceMutate", + "mutateResponse" => "PromotionServiceMutateResponse", + "mutateCallToAction" => "PromotionServiceMutateCallToAction", + "search" => "PromotionServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "Address" => "Address", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "ComparableValue" => "ComparableValue", + "Criterion" => "Criterion", + "CriterionParameter" => "CriterionParameter", + "DatabaseError" => "DatabaseError", + "Date" => "Date", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "GeoPoint" => "GeoPoint", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "Keyword" => "Keyword", + "Language" => "Language", + "Location" => "Location", + "LongValue" => "LongValue", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "Money" => "Money", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "Operation" => "Operation", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Page" => "Page", + "Paging" => "Paging", + "Placement" => "Placement", + "Predicate" => "Predicate", + "Product" => "Product", + "ProductCondition" => "ProductCondition", + "ProductConditionOperand" => "ProductConditionOperand", + "Proximity" => "Proximity", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "Selector" => "Selector", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "CriterionUserInterest" => "CriterionUserInterest", + "CriterionUserList" => "CriterionUserList", + "Vertical" => "Vertical", + "Webpage" => "Webpage", + "WebpageCondition" => "WebpageCondition", + "WebpageParameter" => "WebpageParameter", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "Criterion.Type" => "CriterionType", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "KeywordMatchType" => "KeywordMatchType", + "LocationTargetingStatus" => "LocationTargetingStatus", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "Predicate.Operator" => "PredicateOperator", + "Proximity.DistanceUnits" => "ProximityDistanceUnits", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + "CriterionUserList.MembershipStatus" => "CriterionUserListMembershipStatus", + "WebpageConditionOperand" => "WebpageConditionOperand", + "Creative" => "Creative", + "ExpressSoapHeader" => "ExpressSoapHeader", + "KeywordSet" => "KeywordSet", + "NegativeCriterion" => "NegativeCriterion", + "NegativeKeyword" => "NegativeKeyword", + "NoStatsPage" => "NoStatsPage", + "ProductService" => "ProductService", + "Promotion" => "Promotion", + "PromotionError" => "PromotionError", + "PromotionOperation" => "PromotionOperation", + "PromotionPage" => "PromotionPage", + "Promotion.Status" => "PromotionStatus", + "PromotionError.Reason" => "PromotionErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/express/v201309/PromotionService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = PromotionService::$classmap; + parent::__construct($wsdl, $options, $user, 'PromotionService', 'https://adwords.google.com/api/adwords/express/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Retrieves the promotions that meet the criteria set in the given selector. + * @param selector the selector specifying the AdWords Express promotion to return + * @return list of AdWords Express promotion identified by the selector + */ + public function get($selector) { + $arg = new PromotionServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET. + * + * + * + * Performs the given {@link PromotionOperation}. + * @param operations list of unique operations; the same AdWords Express promotion cannot be + * specified in more than one operation + * @return the updated AdWords Express promotion + */ + public function mutate($operations) { + $arg = new PromotionServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + +}} diff --git a/src/Google/Api/Ads/AdWords/v201309/ReportDefinitionService.php b/src/Google/Api/Ads/AdWords/v201309/ReportDefinitionService.php new file mode 100755 index 000000000..cc838a29b --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/ReportDefinitionService.php @@ -0,0 +1,2348 @@ +enumValue = $enumValue; + $this->enumDisplayValue = $enumDisplayValue; + } +}} + +if (!class_exists("ReportDefinitionField", FALSE)) { +/** + * Represents the fields that can be used to create a ReportDefinition. + * This class allows the user to query the list of fields applicable to a + * given report type. Consumers of reports will be able use the retrieved + * fields through the {@link ReportDefinitionService#getReportFields} + * api and run the corresponding reports. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReportDefinitionField { + /** + * @access public + * @var string + */ + public $fieldName; + + /** + * @access public + * @var string + */ + public $displayFieldName; + + /** + * @access public + * @var string + */ + public $xmlAttributeName; + + /** + * @access public + * @var string + */ + public $fieldType; + + /** + * @access public + * @var string[] + */ + public $enumValues; + + /** + * @access public + * @var boolean + */ + public $canSelect; + + /** + * @access public + * @var boolean + */ + public $canFilter; + + /** + * @access public + * @var boolean + */ + public $isEnumType; + + /** + * @access public + * @var boolean + */ + public $isBeta; + + /** + * @access public + * @var EnumValuePair[] + */ + public $enumValuePairs; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportDefinitionField"; + } + + public function __construct($fieldName = NULL, $displayFieldName = NULL, $xmlAttributeName = NULL, $fieldType = NULL, $enumValues = NULL, $canSelect = NULL, $canFilter = NULL, $isEnumType = NULL, $isBeta = NULL, $enumValuePairs = NULL) { + $this->fieldName = $fieldName; + $this->displayFieldName = $displayFieldName; + $this->xmlAttributeName = $xmlAttributeName; + $this->fieldType = $fieldType; + $this->enumValues = $enumValues; + $this->canSelect = $canSelect; + $this->canFilter = $canFilter; + $this->isEnumType = $isEnumType; + $this->isBeta = $isBeta; + $this->enumValuePairs = $enumValuePairs; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CollectionSizeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CollectionSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReportDefinitionReportType", FALSE)) { +/** + * Enums for report types. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReportDefinitionReportType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportDefinition.ReportType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReportDefinitionErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * a {@link ReportDefinitionService#mutate(java.util.List)} operation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReportDefinitionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportDefinitionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getReportFields", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the available report fields for a given report type. + * + * @param reportType The type of report. + * @return The list of available report fields. Each + * {@link ReportDefinitionField} encapsulates the field name, the + * field data type, and the enum values (if the field's type is + * {@code enum}). + * @throws ApiException if a problem occurred while fetching the + * ReportDefinitionField information. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getReportFields { + /** + * @access public + * @var tnsReportDefinitionReportType + */ + public $reportType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reportType = NULL) { + $this->reportType = $reportType; + } +}} + +if (!class_exists("getReportFieldsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getReportFieldsResponse { + /** + * @access public + * @var ReportDefinitionField[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CollectionSizeError", FALSE)) { +/** + * Errors associated with the size of the given collection being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CollectionSizeError extends ApiError { + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * Indicates that a field was rejected due to compatibility issues. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReportDefinitionError", FALSE)) { +/** + * Encapsulates the errors that can be thrown during {@link ReportDefinition} + * mutate operation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReportDefinitionError extends ApiError { + /** + * @access public + * @var tnsReportDefinitionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportDefinitionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ReportDefinitionService", FALSE)) { +/** + * ReportDefinitionService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class ReportDefinitionService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "ReportDefinitionServiceGetResponse", + "get" => "ReportDefinitionServiceGet", + "mutate" => "ReportDefinitionServiceMutate", + "mutateResponse" => "ReportDefinitionServiceMutateResponse", + "mutateCallToAction" => "ReportDefinitionServiceMutateCallToAction", + "search" => "ReportDefinitionServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "ClientTermsError" => "ClientTermsError", + "CollectionSizeError" => "CollectionSizeError", + "DateError" => "DateError", + "DistinctError" => "DistinctError", + "EnumValuePair" => "EnumValuePair", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperatorError" => "OperatorError", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "ReportDefinitionError" => "ReportDefinitionError", + "ReportDefinitionField" => "ReportDefinitionField", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperatorError.Reason" => "OperatorErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "ReportDefinition.ReportType" => "ReportDefinitionReportType", + "ReportDefinitionError.Reason" => "ReportDefinitionErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "getReportFields" => "getReportFields", + "getReportFieldsResponse" => "getReportFieldsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/ReportDefinitionService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ReportDefinitionService::$classmap; + parent::__construct($wsdl, $options, $user, 'ReportDefinitionService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the available report fields for a given report type. + * + * @param reportType The type of report. + * @return The list of available report fields. Each + * {@link ReportDefinitionField} encapsulates the field name, the + * field data type, and the enum values (if the field's type is + * {@code enum}). + * @throws ApiException if a problem occurred while fetching the + * ReportDefinitionField information. + */ + public function getReportFields($reportType) { + $arg = new getReportFields($reportType); + $result = $this->__soapCall("getReportFields", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/SharedCriterionService.php b/src/Google/Api/Ads/AdWords/v201309/SharedCriterionService.php new file mode 100755 index 000000000..fa48ac6c2 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/SharedCriterionService.php @@ -0,0 +1,3844 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * This field must be greater than or equal to 0. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("ProductConditionOperand", FALSE)) { +/** + * This field can be selected using the value "Operand". + * This field is required and should not be {@code null}. + * This string must not be empty. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProductConditionOperand { + /** + * @access public + * @var string + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductConditionOperand"; + } + + public function __construct($operand = NULL) { + $this->operand = $operand; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("WebpageCondition", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageCondition { + /** + * @access public + * @var tnsWebpageConditionOperand + */ + public $operand; + + /** + * @access public + * @var string + */ + public $argument; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageCondition"; + } + + public function __construct($operand = NULL, $argument = NULL) { + $this->operand = $operand; + $this->argument = $argument; + } +}} + +if (!class_exists("CriterionParameter", FALSE)) { +/** + * Indicates that this instance is a subtype of CriterionParameter. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionParameter { + /** + * @access public + * @var string + */ + public $CriterionParameterType; + + private $_parameterMap = array ( + "CriterionParameter.Type" => "CriterionParameterType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionParameter"; + } + + public function __construct($CriterionParameterType = NULL) { + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("ProductCondition", FALSE)) { +/** + * This field can be selected using the value "Argument". + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProductCondition { + /** + * @access public + * @var string + */ + public $argument; + + /** + * @access public + * @var ProductConditionOperand + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductCondition"; + } + + public function __construct($argument = NULL, $operand = NULL) { + $this->argument = $argument; + $this->operand = $operand; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Indicates that this instance is a subtype of ApplicationException. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * This field must contain distinct elements. + * This field must not contain {@code null} elements. + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("Criterion", FALSE)) { +/** + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Criterion { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsCriterionType + */ + public $type; + + /** + * @access public + * @var string + */ + public $CriterionType; + + private $_parameterMap = array ( + "Criterion.Type" => "CriterionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + public function __construct($id = NULL, $type = NULL, $CriterionType = NULL) { + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("SharedCriterion", FALSE)) { +/** + * This field can be selected using the value "SharedSetId".This field can be filtered on. + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedCriterion { + /** + * @access public + * @var integer + */ + public $sharedSetId; + + /** + * @access public + * @var Criterion + */ + public $criterion; + + /** + * @access public + * @var boolean + */ + public $negative; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedCriterion"; + } + + public function __construct($sharedSetId = NULL, $criterion = NULL, $negative = NULL) { + $this->sharedSetId = $sharedSetId; + $this->criterion = $criterion; + $this->negative = $negative; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Indicates that this instance is a subtype of ListReturnValue. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Indicates that this instance is a subtype of Page. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("KeywordMatchType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class KeywordMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SharedCriterionErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedCriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedCriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUserListMembershipStatus", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList.MembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("WebpageConditionOperand", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageConditionOperand { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageConditionOperand"; + } + + public function __construct() { + } +}} + +if (!class_exists("SharedCriterionServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * @param selector filters the criteria returned + * @return + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedCriterionServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("SharedCriterionServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedCriterionServiceGetResponse { + /** + * @access public + * @var SharedCriterionPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("SharedCriterionServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, REMOVE. + * + * + * + * Adds, removes criteria in a shared set. + * @param operations + * @return + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedCriterionServiceMutate { + /** + * @access public + * @var SharedCriterionOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("SharedCriterionServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedCriterionServiceMutateResponse { + /** + * @access public + * @var SharedCriterionReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CriterionError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionError extends ApiError { + /** + * @access public + * @var tnsCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Keyword", FALSE)) { +/** + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Keyword extends Criterion { + /** + * @access public + * @var string + */ + public $text; + + /** + * @access public + * @var tnsKeywordMatchType + */ + public $matchType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Keyword"; + } + + public function __construct($text = NULL, $matchType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->text = $text; + $this->matchType = $matchType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileAppCategory", FALSE)) { +/** + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileAppCategory extends Criterion { + /** + * @access public + * @var integer + */ + public $mobileAppCategoryId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAppCategory"; + } + + public function __construct($mobileAppCategoryId = NULL, $displayName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->mobileAppCategoryId = $mobileAppCategoryId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileApplication", FALSE)) { +/** + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileApplication extends Criterion { + /** + * @access public + * @var string + */ + public $appId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileApplication"; + } + + public function __construct($appId = NULL, $displayName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->appId = $appId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Placement", FALSE)) { +/** + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Placement extends Criterion { + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + public function __construct($url = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->url = $url; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SharedCriterionError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedCriterionError extends ApiError { + /** + * @access public + * @var tnsSharedCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedCriterionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CriterionUserInterest", FALSE)) { +/** + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserInterest extends Criterion { + /** + * @access public + * @var integer + */ + public $userInterestId; + + /** + * @access public + * @var string + */ + public $userInterestName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserInterest"; + } + + public function __construct($userInterestId = NULL, $userInterestName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->userInterestId = $userInterestId; + $this->userInterestName = $userInterestName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionUserList", FALSE)) { +/** + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserList extends Criterion { + /** + * @access public + * @var integer + */ + public $userListId; + + /** + * @access public + * @var string + */ + public $userListName; + + /** + * @access public + * @var tnsCriterionUserListMembershipStatus + */ + public $userListMembershipStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList"; + } + + public function __construct($userListId = NULL, $userListName = NULL, $userListMembershipStatus = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->userListId = $userListId; + $this->userListName = $userListName; + $this->userListMembershipStatus = $userListMembershipStatus; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Vertical", FALSE)) { +/** + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Vertical extends Criterion { + /** + * @access public + * @var integer + */ + public $verticalId; + + /** + * @access public + * @var integer + */ + public $verticalParentId; + + /** + * @access public + * @var string[] + */ + public $path; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Vertical"; + } + + public function __construct($verticalId = NULL, $verticalParentId = NULL, $path = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->verticalId = $verticalId; + $this->verticalParentId = $verticalParentId; + $this->path = $path; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("WebpageParameter", FALSE)) { +/** + * This field is required and should not be {@code null}. + * The length of this string should be between 1 and 2048, inclusive. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageParameter extends CriterionParameter { + /** + * @access public + * @var string + */ + public $criterionName; + + /** + * @access public + * @var WebpageCondition[] + */ + public $conditions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageParameter"; + } + + public function __construct($criterionName = NULL, $conditions = NULL, $CriterionParameterType = NULL) { + parent::__construct(); + $this->criterionName = $criterionName; + $this->conditions = $conditions; + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Webpage", FALSE)) { +/** + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Webpage extends Criterion { + /** + * @access public + * @var WebpageParameter + */ + public $parameter; + + /** + * @access public + * @var double + */ + public $criteriaCoverage; + + /** + * @access public + * @var string[] + */ + public $criteriaSamples; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Webpage"; + } + + public function __construct($parameter = NULL, $criteriaCoverage = NULL, $criteriaSamples = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->parameter = $parameter; + $this->criteriaCoverage = $criteriaCoverage; + $this->criteriaSamples = $criteriaSamples; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Product", FALSE)) { +/** + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Product extends Criterion { + /** + * @access public + * @var ProductCondition[] + */ + public $conditions; + + /** + * @access public + * @var string + */ + public $text; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + public function __construct($conditions = NULL, $text = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->conditions = $conditions; + $this->text = $text; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("SharedCriterionOperation", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedCriterionOperation extends Operation { + /** + * @access public + * @var SharedCriterion + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedCriterionOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("SharedCriterionPage", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedCriterionPage extends Page { + /** + * @access public + * @var SharedCriterion[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedCriterionPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("SharedCriterionReturnValue", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedCriterionReturnValue extends ListReturnValue { + /** + * @access public + * @var SharedCriterion[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedCriterionReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("SharedCriterionService", FALSE)) { +/** + * SharedCriterionService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class SharedCriterionService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "SharedCriterionServiceGetResponse", + "get" => "SharedCriterionServiceGet", + "mutate" => "SharedCriterionServiceMutate", + "mutateResponse" => "SharedCriterionServiceMutateResponse", + "mutateCallToAction" => "SharedCriterionServiceMutateCallToAction", + "search" => "SharedCriterionServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "ClientTermsError" => "ClientTermsError", + "CriterionError" => "CriterionError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "Keyword" => "Keyword", + "Criterion" => "Criterion", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Placement" => "Placement", + "Predicate" => "Predicate", + "ProductConditionOperand" => "ProductConditionOperand", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SharedCriterionError" => "SharedCriterionError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "CriterionUserInterest" => "CriterionUserInterest", + "CriterionUserList" => "CriterionUserList", + "Vertical" => "Vertical", + "WebpageCondition" => "WebpageCondition", + "WebpageParameter" => "WebpageParameter", + "CriterionParameter" => "CriterionParameter", + "DatabaseError" => "DatabaseError", + "ProductCondition" => "ProductCondition", + "Webpage" => "Webpage", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Product" => "Product", + "Selector" => "Selector", + "SharedCriterion" => "SharedCriterion", + "SharedCriterionOperation" => "SharedCriterionOperation", + "Operation" => "Operation", + "SharedCriterionPage" => "SharedCriterionPage", + "Page" => "Page", + "SharedCriterionReturnValue" => "SharedCriterionReturnValue", + "ListReturnValue" => "ListReturnValue", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "Criterion.Type" => "CriterionType", + "CriterionError.Reason" => "CriterionErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "KeywordMatchType" => "KeywordMatchType", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SharedCriterionError.Reason" => "SharedCriterionErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + "CriterionUserList.MembershipStatus" => "CriterionUserListMembershipStatus", + "WebpageConditionOperand" => "WebpageConditionOperand", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/SharedCriterionService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = SharedCriterionService::$classmap; + parent::__construct($wsdl, $options, $user, 'SharedCriterionService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * @param selector filters the criteria returned + * @return + * @throws ApiException + */ + public function get($selector) { + $arg = new SharedCriterionServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, REMOVE. + * + * + * + * Adds, removes criteria in a shared set. + * @param operations + * @return + * @throws ApiException + */ + public function mutate($operations) { + $arg = new SharedCriterionServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/SharedSetService.php b/src/Google/Api/Ads/AdWords/v201309/SharedSetService.php new file mode 100755 index 000000000..2d6f6bc5f --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/SharedSetService.php @@ -0,0 +1,3299 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * This field must be greater than or equal to 0. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SharedSet", FALSE)) { +/** + * This field can be selected using the value "SharedSetId".This field can be filtered on. + * This field is required and should not be {@code null} when it is contained within {@link Operator}s : SET, REMOVE. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedSet { + /** + * @access public + * @var integer + */ + public $sharedSetId; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsSharedSetType + */ + public $type; + + /** + * @access public + * @var integer + */ + public $memberCount; + + /** + * @access public + * @var integer + */ + public $referenceCount; + + /** + * @access public + * @var tnsSharedSetStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSet"; + } + + public function __construct($sharedSetId = NULL, $name = NULL, $type = NULL, $memberCount = NULL, $referenceCount = NULL, $status = NULL) { + $this->sharedSetId = $sharedSetId; + $this->name = $name; + $this->type = $type; + $this->memberCount = $memberCount; + $this->referenceCount = $referenceCount; + $this->status = $status; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Indicates that this instance is a subtype of ListReturnValue. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Indicates that this instance is a subtype of Page. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Page { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + + private $_parameterMap = array ( + "Page.Type" => "PageType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Indicates that this instance is a subtype of ApplicationException. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * This field must contain distinct elements. + * This field must not contain {@code null} elements. + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PagingErrorReason", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SharedSetStatus", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedSetStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSet.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("SharedSetErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedSetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SharedSetType", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedSetType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSetType"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SharedSetServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of SharedSets based on the given selector. + * @param selector the selector specifying the query + * @return a list of SharedSet entities that meet the criterion specified + * by the selector + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedSetServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("SharedSetServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedSetServiceGetResponse { + /** + * @access public + * @var SharedSetPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("SharedSetServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Applies the list of mutate operations. + * @param operations the operations to apply + * @return the modified CriterionList entities + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedSetServiceMutate { + /** + * @access public + * @var SharedSetOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("SharedSetServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedSetServiceMutateResponse { + /** + * @access public + * @var SharedSetReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PagingError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingError extends ApiError { + /** + * @access public + * @var tnsPagingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SharedSetError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedSetError extends ApiError { + /** + * @access public + * @var tnsSharedSetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSetError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SharedSetOperation", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedSetOperation extends Operation { + /** + * @access public + * @var SharedSet + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSetOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("SharedSetReturnValue", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedSetReturnValue extends ListReturnValue { + /** + * @access public + * @var SharedSet[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSetReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NullStatsPage", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("SharedSetPage", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedSetPage extends NullStatsPage { + /** + * @access public + * @var SharedSet[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSetPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("SharedSetService", FALSE)) { +/** + * SharedSetService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class SharedSetService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "SharedSetServiceGetResponse", + "get" => "SharedSetServiceGet", + "mutate" => "SharedSetServiceMutate", + "mutateResponse" => "SharedSetServiceMutateResponse", + "mutateCallToAction" => "SharedSetServiceMutateCallToAction", + "search" => "SharedSetServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "ClientTermsError" => "ClientTermsError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PagingError" => "PagingError", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SharedSet" => "SharedSet", + "SharedSetError" => "SharedSetError", + "SharedSetOperation" => "SharedSetOperation", + "Operation" => "Operation", + "SharedSetPage" => "SharedSetPage", + "NullStatsPage" => "NullStatsPage", + "SharedSetReturnValue" => "SharedSetReturnValue", + "ListReturnValue" => "ListReturnValue", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "Page" => "Page", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Selector" => "Selector", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "PagingError.Reason" => "PagingErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SharedSet.Status" => "SharedSetStatus", + "SharedSetError.Reason" => "SharedSetErrorReason", + "SharedSetType" => "SharedSetType", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/SharedSetService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = SharedSetService::$classmap; + parent::__construct($wsdl, $options, $user, 'SharedSetService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of SharedSets based on the given selector. + * @param selector the selector specifying the query + * @return a list of SharedSet entities that meet the criterion specified + * by the selector + * @throws ApiException + */ + public function get($selector) { + $arg = new SharedSetServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Applies the list of mutate operations. + * @param operations the operations to apply + * @return the modified CriterionList entities + * @throws ApiException + */ + public function mutate($operations) { + $arg = new SharedSetServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/TargetingIdeaService.php b/src/Google/Api/Ads/AdWords/v201309/TargetingIdeaService.php new file mode 100755 index 000000000..9af20a9ed --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/TargetingIdeaService.php @@ -0,0 +1,8224 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BidLandscapeLandscapePoint", FALSE)) { +/** + * A set of estimates for a criterion's performance for a specific bid + * amount. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BidLandscapeLandscapePoint { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var integer + */ + public $clicks; + + /** + * @access public + * @var Money + */ + public $cost; + + /** + * @access public + * @var Money + */ + public $marginalCpc; + + /** + * @access public + * @var integer + */ + public $impressions; + + /** + * @access public + * @var integer + */ + public $promotedImpressions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidLandscape.LandscapePoint"; + } + + public function __construct($bid = NULL, $clicks = NULL, $cost = NULL, $marginalCpc = NULL, $impressions = NULL, $promotedImpressions = NULL) { + $this->bid = $bid; + $this->clicks = $clicks; + $this->cost = $cost; + $this->marginalCpc = $marginalCpc; + $this->impressions = $impressions; + $this->promotedImpressions = $promotedImpressions; + } +}} + +if (!class_exists("BiddingError", FALSE)) { +/** + * Represents bidding errors. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingError extends ApiError { + /** + * @access public + * @var tnsBiddingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BudgetError", FALSE)) { +/** + * A list of all the error codes being used by the common budget domain package. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetError extends ApiError { + /** + * @access public + * @var tnsBudgetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CollectionSizeError", FALSE)) { +/** + * Errors associated with the size of the given collection being + * out of bounds. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CollectionSizeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError"; + } + + 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("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("Criterion", FALSE)) { +/** + * Represents a criterion (such as a keyword, placement, or vertical). + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Criterion { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsCriterionType + */ + public $type; + + /** + * @access public + * @var string + */ + public $CriterionType; + + private $_parameterMap = array ( + "Criterion.Type" => "CriterionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + public function __construct($id = NULL, $type = NULL, $CriterionType = NULL) { + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionError", FALSE)) { +/** + * Error class used for reporting criteria related errors. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionError extends ApiError { + /** + * @access public + * @var tnsCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CriterionParameter", FALSE)) { +/** + * Base type of criterion parameters. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionParameter { + /** + * @access public + * @var string + */ + public $CriterionParameterType; + + private $_parameterMap = array ( + "CriterionParameter.Type" => "CriterionParameterType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionParameter"; + } + + public function __construct($CriterionParameterType = NULL) { + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Keyword", FALSE)) { +/** + * Represents a keyword. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Keyword extends Criterion { + /** + * @access public + * @var string + */ + public $text; + + /** + * @access public + * @var tnsKeywordMatchType + */ + public $matchType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Keyword"; + } + + public function __construct($text = NULL, $matchType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->text = $text; + $this->matchType = $matchType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Language", FALSE)) { +/** + * Represents a Language criterion. + *

      A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Language extends Criterion { + /** + * @access public + * @var string + */ + public $code; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Language"; + } + + public function __construct($code = NULL, $name = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->code = $code; + $this->name = $name; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Location", FALSE)) { +/** + * Represents Location criterion. + *

      A criterion of this type can only be created using an ID. A criterion of this type can be either targeted or excluded. + * This is enabled for AdX. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Location extends Criterion { + /** + * @access public + * @var string + */ + public $locationName; + + /** + * @access public + * @var string + */ + public $displayType; + + /** + * @access public + * @var tnsLocationTargetingStatus + */ + public $targetingStatus; + + /** + * @access public + * @var Location[] + */ + public $parentLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($locationName = NULL, $displayType = NULL, $targetingStatus = NULL, $parentLocations = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->locationName = $locationName; + $this->displayType = $displayType; + $this->targetingStatus = $targetingStatus; + $this->parentLocations = $parentLocations; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileAppCategory", FALSE)) { +/** + * Represents the mobile app category to be targeted. + * View the complete list of + * available mobile app categories. + * This is enabled for AdX. + * This is a beta feature. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileAppCategory extends Criterion { + /** + * @access public + * @var integer + */ + public $mobileAppCategoryId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAppCategory"; + } + + public function __construct($mobileAppCategoryId = NULL, $displayName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->mobileAppCategoryId = $mobileAppCategoryId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileApplication", FALSE)) { +/** + * Represents the mobile application to be targeted. + * This is enabled for AdX. + * This is a beta feature. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileApplication extends Criterion { + /** + * @access public + * @var string + */ + public $appId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileApplication"; + } + + public function __construct($appId = NULL, $displayName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->appId = $appId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NetworkSetting", FALSE)) { +/** + * Network settings for a Campaign. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NetworkSetting { + /** + * @access public + * @var boolean + */ + public $targetGoogleSearch; + + /** + * @access public + * @var boolean + */ + public $targetSearchNetwork; + + /** + * @access public + * @var boolean + */ + public $targetContentNetwork; + + /** + * @access public + * @var boolean + */ + public $targetPartnerSearchNetwork; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NetworkSetting"; + } + + public function __construct($targetGoogleSearch = NULL, $targetSearchNetwork = NULL, $targetContentNetwork = NULL, $targetPartnerSearchNetwork = NULL) { + $this->targetGoogleSearch = $targetGoogleSearch; + $this->targetSearchNetwork = $targetSearchNetwork; + $this->targetContentNetwork = $targetContentNetwork; + $this->targetPartnerSearchNetwork = $targetPartnerSearchNetwork; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Placement", FALSE)) { +/** + * A placement used for modifying bids for sites when targeting the content + * network. + * This is enabled for AdX. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Placement extends Criterion { + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + public function __construct($url = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->url = $url; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Platform", FALSE)) { +/** + * Represents Platform criterion. + *

      A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Platform extends Criterion { + /** + * @access public + * @var string + */ + public $platformName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Platform"; + } + + public function __construct($platformName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->platformName = $platformName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("PolicyViolationError", FALSE)) { +/** + * Represents violations of a single policy by some text in a field. + * + * Violations of a single policy by the same string in multiple places + * within a field is reported in one instance of this class and only one + * exemption needs to be filed. + * Violations of a single policy by two different strings is reported + * as two separate instances of this class. + * + * e.g. If 'ACME' violates 'capitalization' and occurs twice in a text ad it + * would be represented by one instance. If the ad also contains 'INC' which + * also violates 'capitalization' it would be represented in a separate + * instance. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PolicyViolationError extends ApiError { + /** + * @access public + * @var PolicyViolationKey + */ + public $key; + + /** + * @access public + * @var string + */ + public $externalPolicyName; + + /** + * @access public + * @var string + */ + public $externalPolicyUrl; + + /** + * @access public + * @var string + */ + public $externalPolicyDescription; + + /** + * @access public + * @var boolean + */ + public $isExemptable; + + /** + * @access public + * @var PolicyViolationErrorPart[] + */ + public $violatingParts; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PolicyViolationErrorPart", FALSE)) { +/** + * Points to a substring within an ad field or criterion. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PolicyViolationErrorPart { + /** + * @access public + * @var integer + */ + public $index; + + /** + * @access public + * @var integer + */ + public $length; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError.Part"; + } + + public function __construct($index = NULL, $length = NULL) { + $this->index = $index; + $this->length = $length; + } +}} + +if (!class_exists("PolicyViolationKey", FALSE)) { +/** + * Key of the violation. The key is used for referring to a violation when + * filing an exemption request. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PolicyViolationKey { + /** + * @access public + * @var string + */ + public $policyName; + + /** + * @access public + * @var string + */ + public $violatingText; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationKey"; + } + + public function __construct($policyName = NULL, $violatingText = NULL) { + $this->policyName = $policyName; + $this->violatingText = $violatingText; + } +}} + +if (!class_exists("Product", FALSE)) { +/** + * Product targeting criteria, represents a filter for products in the + * product feed that is defined by the advertiser. The criteria is used to + * determine the products in a Merchant Center account to be used with the + * ProductAds in the AdGroup. This criteria is available only to some advertisers. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Product extends Criterion { + /** + * @access public + * @var ProductCondition[] + */ + public $conditions; + + /** + * @access public + * @var string + */ + public $text; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + public function __construct($conditions = NULL, $text = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->conditions = $conditions; + $this->text = $text; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ProductCondition", FALSE)) { +/** + * Conditions to filter the products defined in product feed for targeting. + * The condition is defined as operand=argument. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProductCondition { + /** + * @access public + * @var string + */ + public $argument; + + /** + * @access public + * @var ProductConditionOperand + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductCondition"; + } + + public function __construct($argument = NULL, $operand = NULL) { + $this->argument = $argument; + $this->operand = $operand; + } +}} + +if (!class_exists("ProductConditionOperand", FALSE)) { +/** + * Attribute for the product condition. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProductConditionOperand { + /** + * @access public + * @var string + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductConditionOperand"; + } + + public function __construct($operand = NULL) { + $this->operand = $operand; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RegionCodeError", FALSE)) { +/** + * A list of all errors associated with the @RegionCode constraints. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RegionCodeError extends ApiError { + /** + * @access public + * @var tnsRegionCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("StatsQueryError", FALSE)) { +/** + * Represents possible error codes when querying for stats. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StatsQueryError extends ApiError { + /** + * @access public + * @var tnsStatsQueryErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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 associated with the length of the given string being + * out of bounds. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DataEntry", FALSE)) { +/** + * The base class of all return types of the table service. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DataEntry { + /** + * @access public + * @var string + */ + public $DataEntryType; + + private $_parameterMap = array ( + "DataEntry.Type" => "DataEntryType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DataEntry"; + } + + public function __construct($DataEntryType = NULL) { + $this->DataEntryType = $DataEntryType; + } +}} + +if (!class_exists("TargetError", FALSE)) { +/** + * A list of all the error codes being used by the common targeting package. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetError extends ApiError { + /** + * @access public + * @var tnsTargetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CriterionUserInterest", FALSE)) { +/** + * User Interest - represents a particular interest based vertical to be targeted. + * Targeting UserInterest is currently in a limited beta. If you'd like access + * please speak with your account representative. + * This is enabled for AdX. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserInterest extends Criterion { + /** + * @access public + * @var integer + */ + public $userInterestId; + + /** + * @access public + * @var string + */ + public $userInterestName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserInterest"; + } + + public function __construct($userInterestId = NULL, $userInterestName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->userInterestId = $userInterestId; + $this->userInterestName = $userInterestName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionUserList", FALSE)) { +/** + * UserList - represents a user list that is defined by the advertiser to be targeted. + * This is enabled for AdX. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserList extends Criterion { + /** + * @access public + * @var integer + */ + public $userListId; + + /** + * @access public + * @var string + */ + public $userListName; + + /** + * @access public + * @var tnsCriterionUserListMembershipStatus + */ + public $userListMembershipStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList"; + } + + public function __construct($userListId = NULL, $userListName = NULL, $userListMembershipStatus = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->userListId = $userListId; + $this->userListName = $userListName; + $this->userListMembershipStatus = $userListMembershipStatus; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Vertical", FALSE)) { +/** + * Use verticals to target or exclude placements in the Google Display Network + * based on the category into which the placement falls (for example, "Pets & + * Animals/Pets/Dogs"). + * View the complete list + * of available vertical categories. + * This is enabled for AdX. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Vertical extends Criterion { + /** + * @access public + * @var integer + */ + public $verticalId; + + /** + * @access public + * @var integer + */ + public $verticalParentId; + + /** + * @access public + * @var string[] + */ + public $path; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Vertical"; + } + + public function __construct($verticalId = NULL, $verticalParentId = NULL, $path = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->verticalId = $verticalId; + $this->verticalParentId = $verticalParentId; + $this->path = $path; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Webpage", FALSE)) { +/** + * Criterion for targeting webpages of an advertiser's website. The + * website domain name is specified at the campaign level. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Webpage extends Criterion { + /** + * @access public + * @var WebpageParameter + */ + public $parameter; + + /** + * @access public + * @var double + */ + public $criteriaCoverage; + + /** + * @access public + * @var string[] + */ + public $criteriaSamples; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Webpage"; + } + + public function __construct($parameter = NULL, $criteriaCoverage = NULL, $criteriaSamples = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->parameter = $parameter; + $this->criteriaCoverage = $criteriaCoverage; + $this->criteriaSamples = $criteriaSamples; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("WebpageCondition", FALSE)) { +/** + * Logical expression for targeting webpages of an advertiser's website. + * + *

      A condition is defined as {@code operand OP argument} + * where {@code operand} is one of the values enumerated in + * {@link WebpageConditionOperand}, and, based on this value, + * {@code OP} is either of {@code EQUALS} or {@code CONTAINS}.

      + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageCondition { + /** + * @access public + * @var tnsWebpageConditionOperand + */ + public $operand; + + /** + * @access public + * @var string + */ + public $argument; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageCondition"; + } + + public function __construct($operand = NULL, $argument = NULL) { + $this->operand = $operand; + $this->argument = $argument; + } +}} + +if (!class_exists("WebpageParameter", FALSE)) { +/** + * Parameter of Webpage criterion, expressed as a list of conditions, or + * logical expressions, for targeting webpages of an advertiser's website. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageParameter extends CriterionParameter { + /** + * @access public + * @var string + */ + public $criterionName; + + /** + * @access public + * @var WebpageCondition[] + */ + public $conditions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageParameter"; + } + + public function __construct($criterionName = NULL, $conditions = NULL, $CriterionParameterType = NULL) { + parent::__construct(); + $this->criterionName = $criterionName; + $this->conditions = $conditions; + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("AdGroupBidLandscapeType", FALSE)) { +/** + * Used to specify the type of {@code AdGroupLandscape} + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupBidLandscapeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidLandscape.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupCriterionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupCriterionLimitExceededCriteriaLimitType", FALSE)) { +/** + * The entity type that exceeded the limit. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionLimitExceededCriteriaLimitType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionLimitExceeded.CriteriaLimitType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorReason", FALSE)) { +/** + * Reason for bidding error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetErrorReason", FALSE)) { +/** + * The reasons for the budget error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * The types of criteria. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionErrorReason", FALSE)) { +/** + * Concrete type of criterion is required for ADD and SET operations. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("KeywordMatchType", FALSE)) { +/** + * Match type of a keyword. i.e. the way we match a keyword string with + * search queries. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class KeywordMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationTargetingStatus", FALSE)) { +/** + * Enum that represents the different Targeting Status values for a Location criterion. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationTargetingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationTargetingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegionCodeErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RegionCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsQueryErrorReason", FALSE)) { +/** + * The reasons for errors when querying for stats. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StatsQueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUserListMembershipStatus", FALSE)) { +/** + * Membership status of the user list. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList.MembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("WebpageConditionOperand", FALSE)) { +/** + * Operand value of {@link WebpageCondition}. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageConditionOperand { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageConditionOperand"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdFormatSpec", FALSE)) { +/** + * A placement response object which provides information about one of the ad formats + * supported by a placement. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdFormatSpec { + /** + * @access public + * @var tnsSiteConstantsAdFormat + */ + public $format; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdFormatSpec"; + } + + public function __construct($format = NULL) { + $this->format = $format; + } +}} + +if (!class_exists("AdSpec", FALSE)) { +/** + * Interface for ad specifications to implement. See individual spec + * documentation for more details on how to use each type, and + * {@link AdSpecListSearchParameter} to understand what these specs are for. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdSpec { + /** + * @access public + * @var DisplayAdSpec + */ + public $DisplayAdSpec; + + /** + * @access public + * @var InStreamAdSpec + */ + public $InStreamAdSpec; + + /** + * @access public + * @var TextAdSpec + */ + public $TextAdSpec; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSpec"; + } + + public function __construct($DisplayAdSpec = NULL, $InStreamAdSpec = NULL, $TextAdSpec = NULL) { + $this->DisplayAdSpec = $DisplayAdSpec; + $this->InStreamAdSpec = $InStreamAdSpec; + $this->TextAdSpec = $TextAdSpec; + } +}} + +if (!class_exists("Attribute", FALSE)) { +/** + * {@link Attribute}s encompass the core information about a particular + * {@link com.google.ads.api.services.targetingideas.TargetingIdea}. Some + * attributes are for {@code KEYWORD} {@link IdeaType}s, some are for + * {@code PLACEMENT} {@link IdeaType}s, and some are for both. Ultimately, an + * {@link Attribute} instance simply wraps an actual value of interest. For + * example, {@link KeywordAttribute} wraps the keyword itself, while a + * {@link BooleanAttribute} simply wraps a boolean describing some information + * about the keyword idea. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Attribute { + /** + * @access public + * @var string + */ + public $AttributeType; + + private $_parameterMap = array ( + "Attribute.Type" => "AttributeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Attribute"; + } + + public function __construct($AttributeType = NULL) { + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("BidLandscapeAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a {@link BidLandscape} value. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BidLandscapeAttribute extends Attribute { + /** + * @access public + * @var BidLandscape + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidLandscapeAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("BooleanAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a boolean value. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BooleanAttribute extends Attribute { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("CriterionAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a {@link Criterion} value. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionAttribute extends Attribute { + /** + * @access public + * @var Criterion + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("CurrencyCodeError", FALSE)) { +/** + * Errors for currency codes. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CurrencyCodeError extends ApiError { + /** + * @access public + * @var tnsCurrencyCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CurrencyCodeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DisplayAdSpec", FALSE)) { +/** + * Placement request/response object which provides details about display + * ad types, options, and other available configuration variables. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DisplayAdSpec { + /** + * @access public + * @var DisplayType[] + */ + public $displayTypes; + + /** + * @access public + * @var tnsDisplayAdSpecActivationOption[] + */ + public $activationOptions; + + /** + * @access public + * @var DisplayAdSpecAdSizeSpec[] + */ + public $adSizeSpecs; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DisplayAdSpec"; + } + + public function __construct($displayTypes = NULL, $activationOptions = NULL, $adSizeSpecs = NULL) { + $this->displayTypes = $displayTypes; + $this->activationOptions = $activationOptions; + $this->adSizeSpecs = $adSizeSpecs; + } +}} + +if (!class_exists("DisplayAdSpecAdSizeSpec", FALSE)) { +/** + * Specification for an ad size. This specification allows customization by + * display options for more fine-grained control over returns, so that + * customers can associate ad options with specific sizes. For example, + * suppose the customer in general would like to see placements with + * {@code DisplayOption.STANDARD} and {@code DisplayOption.POP_UNDER} - + * except for 300x250 ads which should only be STANDARD. The customer would + * create a {@code DisplayAdSpec} with {@code DisplayOption.STANDARD} and + * {@code DisplayOption.POP_UNDER}, and also send in an {@code AdSizeSpec} + * with {@code width} of 300, {@code} height of 250, and {@code displayOptionFilter} + * set to {@code DisplayOption.STANDARD}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DisplayAdSpecAdSizeSpec { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var tnsDisplayAdSpecActivationOption[] + */ + public $activationOptionFilter; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DisplayAdSpec.AdSizeSpec"; + } + + public function __construct($width = NULL, $height = NULL, $activationOptionFilter = NULL) { + $this->width = $width; + $this->height = $height; + $this->activationOptionFilter = $activationOptionFilter; + } +}} + +if (!class_exists("DisplayType", FALSE)) { +/** + * Base interface for types of display ads. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DisplayType { + /** + * @access public + * @var FlashDisplayType + */ + public $FlashDisplayType; + + /** + * @access public + * @var HtmlDisplayType + */ + public $HtmlDisplayType; + + /** + * @access public + * @var ImageDisplayType + */ + public $ImageDisplayType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DisplayType"; + } + + public function __construct($FlashDisplayType = NULL, $HtmlDisplayType = NULL, $ImageDisplayType = NULL) { + $this->FlashDisplayType = $FlashDisplayType; + $this->HtmlDisplayType = $HtmlDisplayType; + $this->ImageDisplayType = $ImageDisplayType; + } +}} + +if (!class_exists("DoubleAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a double value. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DoubleAttribute extends Attribute { + /** + * @access public + * @var double + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("FlashDisplayType", FALSE)) { +/** + * {@link DisplayType} implementation for Flash display ads. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FlashDisplayType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashDisplayType"; + } + + public function __construct() { + } +}} + +if (!class_exists("HtmlDisplayType", FALSE)) { +/** + * HTML-specific options for display ads are contained within + * this class. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class HtmlDisplayType { + /** + * @access public + * @var tnsHtmlDisplayTypeHtmlOption + */ + public $htmlOption; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "HtmlDisplayType"; + } + + public function __construct($htmlOption = NULL) { + $this->htmlOption = $htmlOption; + } +}} + +if (!class_exists("IdeaTypeAttribute", FALSE)) { +/** + * {@link Attribute} type that contains an {@link IdeaType} value. For example, + * if a {@link com.google.ads.api.services.targetingideas.TargetingIdea} + * represents a keyword idea, its {@link IdeaTypeAttribute} would contain a + * {@code KEYWORD} {@link IdeaType}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdeaTypeAttribute extends Attribute { + /** + * @access public + * @var tnsIdeaType + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdeaTypeAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("ImageDisplayType", FALSE)) { +/** + * {@link DisplayType} implementation for images. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ImageDisplayType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageDisplayType"; + } + + public function __construct() { + } +}} + +if (!class_exists("InStreamAdInfo", FALSE)) { +/** + * Information specific to the instream ad format. Instream ads are video ads + * which play as part of the delivery of video content, either before, during, + * or after the content itself. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InStreamAdInfo { + /** + * @access public + * @var integer + */ + public $maxAdDuration; + + /** + * @access public + * @var integer + */ + public $minAdDuration; + + /** + * @access public + * @var integer + */ + public $medianAdDuration; + + /** + * @access public + * @var double + */ + public $preRollPercent; + + /** + * @access public + * @var double + */ + public $midRollPercent; + + /** + * @access public + * @var double + */ + public $postRollPercent; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InStreamAdInfo"; + } + + public function __construct($maxAdDuration = NULL, $minAdDuration = NULL, $medianAdDuration = NULL, $preRollPercent = NULL, $midRollPercent = NULL, $postRollPercent = NULL) { + $this->maxAdDuration = $maxAdDuration; + $this->minAdDuration = $minAdDuration; + $this->medianAdDuration = $medianAdDuration; + $this->preRollPercent = $preRollPercent; + $this->midRollPercent = $midRollPercent; + $this->postRollPercent = $postRollPercent; + } +}} + +if (!class_exists("InStreamAdInfoAttribute", FALSE)) { +/** + * {@link Attribute} type that contains an {@link InStreamAdInfo} value. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InStreamAdInfoAttribute extends Attribute { + /** + * @access public + * @var InStreamAdInfo + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InStreamAdInfoAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("InStreamAdSpec", FALSE)) { +/** + * Placement request/response object which provides details about instream + * ad types, options, and other available configuration variables. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InStreamAdSpec { + /** + * @access public + * @var tnsInStreamAdSpecInStreamType[] + */ + public $inStreamTypes; + + /** + * @access public + * @var integer[] + */ + public $durations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InStreamAdSpec"; + } + + public function __construct($inStreamTypes = NULL, $durations = NULL) { + $this->inStreamTypes = $inStreamTypes; + $this->durations = $durations; + } +}} + +if (!class_exists("IntegerAttribute", FALSE)) { +/** + * {@link Attribute} type that contains an integer value. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IntegerAttribute extends Attribute { + /** + * @access public + * @var integer + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IntegerAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("IntegerSetAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a Set of integer values. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IntegerSetAttribute extends Attribute { + /** + * @access public + * @var integer[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IntegerSetAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("KeywordAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a {@link Keyword} value. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class KeywordAttribute extends Attribute { + /** + * @access public + * @var Keyword + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("LongAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a long value. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LongAttribute extends Attribute { + /** + * @access public + * @var integer + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("LongComparisonOperation", FALSE)) { +/** + * Object representing integer comparison operations. This is usually used within + * a particular + * {@link com.google.ads.api.services.targetingideas.search.SearchParameter} to + * specify the valid values requested for the specific + * {@link com.google.ads.api.services.common.optimization.attributes.Attribute}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LongComparisonOperation { + /** + * @access public + * @var integer + */ + public $minimum; + + /** + * @access public + * @var integer + */ + public $maximum; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongComparisonOperation"; + } + + public function __construct($minimum = NULL, $maximum = NULL) { + $this->minimum = $minimum; + $this->maximum = $maximum; + } +}} + +if (!class_exists("LongRangeAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a {@link Range} of {@link LongValue} + * values. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LongRangeAttribute extends Attribute { + /** + * @access public + * @var Range + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongRangeAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("MatchesRegexError", FALSE)) { +/** + * Errors associated with a given string not matching the provided + * regular expression. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MatchesRegexError extends ApiError { + /** + * @access public + * @var tnsMatchesRegexErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MatchesRegexError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("MoneyAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a {@link Money} value. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MoneyAttribute extends Attribute { + /** + * @access public + * @var Money + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MoneyAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("MonthlySearchVolume", FALSE)) { +/** + * A keyword response value representing search volume for a single month. An + * instance with a {@code null} count is valid, indicating that the information + * is unavailable. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MonthlySearchVolume { + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $count; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MonthlySearchVolume"; + } + + public function __construct($year = NULL, $month = NULL, $count = NULL) { + $this->year = $year; + $this->month = $month; + $this->count = $count; + } +}} + +if (!class_exists("MonthlySearchVolumeAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a list of {@link MonthlySearchVolume} + * values. The list contains the past 12 {@link MonthlySearchVolume}s + * (excluding the current month). The first item is the data for the most + * recent month and the last item is the data for the oldest month. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MonthlySearchVolumeAttribute extends Attribute { + /** + * @access public + * @var MonthlySearchVolume[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MonthlySearchVolumeAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("OpportunityIdeaTypeAttribute", FALSE)) { +/** + * {@link Attribute} type that contains an {@link OpportunityIdeaType} value. + * For example, if a + * {@link com.google.ads.api.services.optimization.bulkopportunity.OpportunityIdea} + * represents a keyword idea, its {@link OpportunityIdeaTypeAttribute} would + * contain a {@code KEYWORD} {@link OpportunityIdeaType}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OpportunityIdeaTypeAttribute extends Attribute { + /** + * @access public + * @var tnsOpportunityIdeaType + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OpportunityIdeaTypeAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("PlacementAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a {@link Placement} value. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PlacementAttribute extends Attribute { + /** + * @access public + * @var Placement + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("PlacementTypeAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a {@link PlacementType} value. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PlacementTypeAttribute extends Attribute { + /** + * @access public + * @var tnsSiteConstantsPlacementType + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementTypeAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("Range", FALSE)) { +/** + * Represents a range of values that has either an upper or a lower bound. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Range { + /** + * @access public + * @var ComparableValue + */ + public $min; + + /** + * @access public + * @var ComparableValue + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Range"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("SearchParameter", FALSE)) { +/** + * A set of {@link SearchParameter}s are supplied to the + * {@link com.google.ads.api.services.targetingideas.TargetingIdeaSelector} + * to specify how the user wants to filter the set of all possible + * {@link com.google.ads.api.services.targetingideas.TargetingIdea}s. + * + * There is a {@link SearchParameter} for all types of inputs. + * {@link SearchParameter}s can conceptually be broken down into two types. + *
        + *
      • Input {@link SearchParameter}s provide the seed information from which + * ideas should be generated or statistic information is desired + * (e.g. {@link RelatedToQuerySearchParameter}, + * {@link RelatedToUrlSearchParameter}, etc). + * Such {@link SearchParameters} are required for valid requests.
      • + *
      • Filter {@link SearchParameter}s are used to trim down the results based + * on {@link com.google.ads.api.services.targetingideas.attributes.Attribute} + * related information (eg. {@link CompetitionSearchParameter}, etc.).
      • + *

      + * + * A request should only contain one instance of each {@link SearchParameter} + *

      One or more of the following {@link SearchParameter}s are required:
      + *

      • {@link CategoryProductsAndServicesSearchParameter}
      • + *
      • {@link RelatedToQuerySearchParameter}
      • + *
      • {@link RelatedToUrlSearchParameter}
      • + *

      + *

      {@link IdeaType} KEYWORD supports following {@link SearchParameter}s:
      + *

        + *
      • {@link CompetitionSearchParameter}
      • + *
      • {@link ExcludedKeywordSearchParameter}
      • + *
      • {@link IdeaTextFilterSearchParameter}
      • + *
      • {@link IncludeAdultContentSearchParameter}
      • + *
      • {@link CategoryProductsAndServicesSearchParameter}
      • + *
      • {@link LanguageSearchParameter}
      • + *
      • {@link NetworkSearchParameter}
      • + *
      • {@link RelatedToQuerySearchParameter}
      • + *
      • {@link RelatedToUrlSearchParameter}
      • + *
      • {@link SearchVolumeSearchParameter}
      • + *

      + *

      {@link IdeaType} PLACEMENT supports following {@link SearchParameter}s:
      + *

        + *
      • {@link LanguageSearchParameter}
      • + *
      • {@link PlacementTypeSearchParameter}
      • + *
      • {@link RelatedToQuerySearchParameter}
      • + *
      • {@link RelatedToUrlSearchParameter}
      • + *

      + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SearchParameter { + /** + * @access public + * @var string + */ + public $SearchParameterType; + + private $_parameterMap = array ( + "SearchParameter.Type" => "SearchParameterType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SearchParameter"; + } + + public function __construct($SearchParameterType = NULL) { + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("SearchVolumeSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} that specifies the level of search volume expected in results, + * and it has a direct relationship to + * {@link com.google.ads.api.services.targetingideas.external.AttributeType#SEARCH_VOLUME}. + * Absence of a {@link SearchVolumeSearchParameter} in a + * {@link com.google.ads.api.services.targetingideas.TargetingIdeaSelector} is + * equivalent to having no constraint on search volume specified. + *

      This element is supported by following {@link IdeaType}s: KEYWORD. + *

      This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SearchVolumeSearchParameter extends SearchParameter { + /** + * @access public + * @var LongComparisonOperation + */ + public $operation; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SearchVolumeSearchParameter"; + } + + public function __construct($operation = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->operation = $operation; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("StringAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a string value. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringAttribute extends Attribute { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("TargetingIdea", FALSE)) { +/** + * Represents a {@link TargetingIdea} returned by search criteria specified in + * the {@link TargetingIdeaSelector}. Targeting ideas are keywords or placements + * that are similar to those the user inputs. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetingIdea { + /** + * @access public + * @var Type_AttributeMapEntry[] + */ + public $data; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingIdea"; + } + + public function __construct($data = NULL) { + $this->data = $data; + } +}} + +if (!class_exists("TargetingIdeaError", FALSE)) { +/** + * Base error class for the + * {@link com.google.ads.api.services.targetingideas.TargetingIdeaService}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetingIdeaError extends ApiError { + /** + * @access public + * @var tnsTargetingIdeaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingIdeaError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TargetingIdeaPage", FALSE)) { +/** + * Contains a subset of {@link TargetingIdea}s from the search criteria + * specified by a {@link TargetingIdeaSelector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetingIdeaPage { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var TargetingIdea[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingIdeaPage"; + } + + public function __construct($totalNumEntries = NULL, $entries = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->entries = $entries; + } +}} + +if (!class_exists("TargetingIdeaSelector", FALSE)) { +/** + * A descriptor for finding {@link TargetingIdea}s that match the specified + * criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetingIdeaSelector { + /** + * @access public + * @var SearchParameter[] + */ + public $searchParameters; + + /** + * @access public + * @var tnsIdeaType + */ + public $ideaType; + + /** + * @access public + * @var tnsRequestType + */ + public $requestType; + + /** + * @access public + * @var tnsAttributeType[] + */ + public $requestedAttributeTypes; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * @access public + * @var string + */ + public $localeCode; + + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingIdeaSelector"; + } + + public function __construct($searchParameters = NULL, $ideaType = NULL, $requestType = NULL, $requestedAttributeTypes = NULL, $paging = NULL, $localeCode = NULL, $currencyCode = NULL) { + $this->searchParameters = $searchParameters; + $this->ideaType = $ideaType; + $this->requestType = $requestType; + $this->requestedAttributeTypes = $requestedAttributeTypes; + $this->paging = $paging; + $this->localeCode = $localeCode; + $this->currencyCode = $currencyCode; + } +}} + +if (!class_exists("TextAdSpec", FALSE)) { +/** + * Specification for a text ad. Currently there are no customizable + * options on text ads, but the presence of a {@code TextAdSpec} in a + * request indicates that text ads are a desired result, and the presence + * of a {@code TextAdSpec} in a response indicates that there are text + * ads available in the requested inventory. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TextAdSpec { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextAdSpec"; + } + + public function __construct() { + } +}} + +if (!class_exists("TrafficEstimatorError", FALSE)) { +/** + * Base error class for + * {@link com.google.ads.api.services.trafficestimator.TrafficEstimatorService}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TrafficEstimatorError extends ApiError { + /** + * @access public + * @var tnsTrafficEstimatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrafficEstimatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Type_AttributeMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Type + * and value of type Attribute. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Type_AttributeMapEntry { + /** + * @access public + * @var tnsAttributeType + */ + public $key; + + /** + * @access public + * @var Attribute + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Type_AttributeMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("WebpageDescriptor", FALSE)) { +/** + * Basic information about a webpage. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageDescriptor { + /** + * @access public + * @var string + */ + public $url; + + /** + * @access public + * @var string + */ + public $title; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageDescriptor"; + } + + public function __construct($url = NULL, $title = NULL) { + $this->url = $url; + $this->title = $title; + } +}} + +if (!class_exists("WebpageDescriptorAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a {@link WebpageDescriptor} value. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageDescriptorAttribute extends Attribute { + /** + * @access public + * @var WebpageDescriptor + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageDescriptorAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("AttributeType", FALSE)) { +/** + * Represents the type of + * {@link com.google.ads.api.services.common.optimization.attributes.Attribute}. + *

      {@link IdeaType} KEYWORD supports the following {@link AttributeType}s:
      + *

      • {@link #AD_SHARE}
      • + *
      • {@link #AVERAGE_CPC}
      • + *
      • {@link #AVERAGE_TARGETED_MONTHLY_SEARCHES}
      • + *
      • {@link #CATEGORY_PRODUCTS_AND_SERVICES}
      • + *
      • {@link #COMPETITION}
      • + *
      • {@link #CRITERION}
      • + *
      • {@link #EXTRACTED_FROM_WEBPAGE}
      • + *
      • {@link #GLOBAL_MONTHLY_SEARCHES}
      • + *
      • {@link #IDEA_TYPE}
      • + *
      • {@link #KEYWORD}
      • + *
      • {@link #KEYWORD_CATEGORY}
      • + *
      • {@link #KEYWORD_TEXT}
      • + *
      • {@link #NEGATIVE_KEYWORDS}
      • + *
      • {@link #NGRAM_GROUP}
      • + *
      • {@link #SEARCH_SHARE}
      • + *
      • {@link #SEARCH_VOLUME}
      • + *
      • {@link #TARGETED_MONTHLY_SEARCHES}
      • + *
      + *

      {@link IdeaType} PLACEMENT supports the following {@link AttributeType}s:
      + *

      • {@link #AD_TYPE_SPEC}
      • + *
      • {@link #APPROX_CONTENT_IMPRESSIONS_PER_DAY}
      • + *
      • {@link #CRITERION}
      • + *
      • {@link #FORMATS}
      • + *
      • {@link #IDEA_TYPE}
      • + *
      • {@link #IN_STREAM_AD_INFO}
      • + *
      • {@link #PLACEMENT}
      • + *
      • {@link #PLACEMENT_CATEGORY}
      • + *
      • {@link #PLACEMENT_NAME}
      • + *
      • {@link #PLACEMENT_TYPE}
      • + *
      • {@link #PUBLISHER_DESCRIPTION}
      • + *
      • {@link #SAMPLE_URL}
      • + *
      + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AttributeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AttributeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompetitionSearchParameterLevel", FALSE)) { +/** + * An enumeration of possible values to be used in conjunction with the + * {@link CompetitionSearchParameter} to specify the granularity of + * competition to be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CompetitionSearchParameterLevel { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompetitionSearchParameter.Level"; + } + + public function __construct() { + } +}} + +if (!class_exists("CurrencyCodeErrorReason", FALSE)) { +/** + * Encodes the reason (cause) of a particular {@link CurrencyCodeError}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CurrencyCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CurrencyCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DisplayAdSpecActivationOption", FALSE)) { +/** + * Activation options. Describes the ad's activated mode. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DisplayAdSpecActivationOption { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DisplayAdSpec.ActivationOption"; + } + + public function __construct() { + } +}} + +if (!class_exists("HtmlDisplayTypeHtmlOption", FALSE)) { +/** + * Served by a third party. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class HtmlDisplayTypeHtmlOption { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "HtmlDisplayType.HtmlOption"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdeaType", FALSE)) { +/** + * Represents the type of idea. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdeaType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdeaType"; + } + + public function __construct() { + } +}} + +if (!class_exists("InStreamAdSpecInStreamType", FALSE)) { +/** + * Display subtype. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InStreamAdSpecInStreamType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InStreamAdSpec.InStreamType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MatchesRegexErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MatchesRegexErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MatchesRegexError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OpportunityIdeaType", FALSE)) { +/** + * Represents the type of opportunity. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OpportunityIdeaType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OpportunityIdeaType"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestType", FALSE)) { +/** + * Represents the type of the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestType"; + } + + public function __construct() { + } +}} + +if (!class_exists("SiteConstantsAdFormat", FALSE)) { +/** + * Enumerates the ad formats which can be reported in search results. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SiteConstantsAdFormat { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SiteConstants.AdFormat"; + } + + public function __construct() { + } +}} + +if (!class_exists("SiteConstantsPlacementType", FALSE)) { +/** + * A placement request and response value indicating the type of site or other medium + * (for example, a web page, in a feed, in a video) where ads will appear. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SiteConstantsPlacementType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SiteConstants.PlacementType"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetingIdeaErrorReason", FALSE)) { +/** + * An enumeration of + * {@link com.google.ads.api.services.targetingideas.TargetingIdeaService} + * specific errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetingIdeaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingIdeaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TrafficEstimatorErrorReason", FALSE)) { +/** + * When the request with {@code null} campaign ID in + * {@link com.google.ads.api.services.trafficestimator.CampaignEstimateRequest} + * contains an + * {@link com.google.ads.api.services.trafficestimator.AdGroupEstimateRequest} + * with an ID. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TrafficEstimatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrafficEstimatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetingIdeaServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a page of ideas that match the query described by the specified + * {@link TargetingIdeaSelector}. + * + *

      The selector must specify a {@code paging} value, with {@code numberResults} set to 800 or + * less. Large result sets must be composed through multiple calls to this method, advancing the + * paging {@code startIndex} value by {@code numberResults} with each call. + * + *

      Only a relatively small total number of results will be available through this method. + * Much larger result sets may be available using + * {@link #getBulkKeywordIdeas(TargetingIdeaSelector)} at the price of reduced flexibility in + * selector options. + * + * @param selector Query describing the types of results to return when + * finding matches (similar keyword ideas/placement ideas). + * @return A {@link TargetingIdeaPage} of results, that is a subset of the + * list of possible ideas meeting the criteria of the + * {@link TargetingIdeaSelector}. + * @throws ApiException If problems occurred while querying for ideas. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetingIdeaServiceGet { + /** + * @access public + * @var TargetingIdeaSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("TargetingIdeaServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetingIdeaServiceGetResponse { + /** + * @access public + * @var TargetingIdeaPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getBulkKeywordIdeas", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a page of ideas that match the query described by the specified + * {@link TargetingIdeaSelector}. This method is specialized for returning + * bulk keyword ideas, and thus the selector must be set for + * {@link com.google.ads.api.services.targetingideas.attributes.RequestType#IDEAS} and + * {@link com.google.ads.api.services.common.optimization.attributes.IdeaType#KEYWORD}. + * A limited, fixed set of attributes will be returned. + * + *

      A single-valued + * {@link com.google.ads.api.services.targetingideas.search.RelatedToUrlSearchParameter} + * must be supplied. Single-valued + * {@link com.google.ads.api.services.targetingideas.search.LanguageSearchParameter} and + * {@link com.google.ads.api.services.targetingideas.search.LocationSearchParameter} are + * both optional. Other search parameters compatible with a keyword query may also be + * supplied. + * + *

      The selector must specify a {@code paging} value, with {@code numberResults} set to 800 + * or less. If a URL based search is performed it will return up to 100 keywords when the site is + * not owned, or up to 800 if it is. Number of keywords returned on a keyword based search is up + * to 800. Large result sets must be composed through multiple calls to this method, advancing the + * paging {@code startIndex} value by {@code numberResults} with each call. + * + *

      This method can make many more results available than {@link #get(TargetingIdeaSelector)}, + * but allows less control over the query. For fine-tuned queries that do not need large numbers + * of results, prefer {@link #get(TargetingIdeaSelector)}. + * + * @param selector Query describing the bulk keyword ideas to return. + * @return A {@link TargetingIdeaPage} of results, that is a subset of the + * list of possible ideas meeting the criteria of the + * {@link TargetingIdeaSelector}. + * @throws ApiException If problems occurred while querying for ideas. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getBulkKeywordIdeas { + /** + * @access public + * @var TargetingIdeaSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("getBulkKeywordIdeasResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getBulkKeywordIdeasResponse { + /** + * @access public + * @var TargetingIdeaPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupCriterionError", FALSE)) { +/** + * Base error class for Ad Group Criterion Service. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionError extends ApiError { + /** + * @access public + * @var tnsAdGroupCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdGroupCriterionLimitExceeded", FALSE)) { +/** + * Signals that too many criteria were added to some ad group. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionLimitExceeded extends EntityCountLimitExceeded { + /** + * @access public + * @var tnsAdGroupCriterionLimitExceededCriteriaLimitType + */ + public $limitType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionLimitExceeded"; + } + + public function __construct($limitType = NULL, $reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->limitType = $limitType; + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BidLandscape", FALSE)) { +/** + * Represents data about a bid landscape for an ad group or criterion. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BidLandscape extends DataEntry { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var string + */ + public $startDate; + + /** + * @access public + * @var string + */ + public $endDate; + + /** + * @access public + * @var BidLandscapeLandscapePoint[] + */ + public $landscapePoints; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidLandscape"; + } + + public function __construct($campaignId = NULL, $adGroupId = NULL, $startDate = NULL, $endDate = NULL, $landscapePoints = NULL, $DataEntryType = NULL) { + parent::__construct(); + $this->campaignId = $campaignId; + $this->adGroupId = $adGroupId; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->landscapePoints = $landscapePoints; + $this->DataEntryType = $DataEntryType; + } +}} + +if (!class_exists("CriterionBidLandscape", FALSE)) { +/** + * The bid landscape for a criterion. A bid landscape estimates how a + * a criterion will perform based on different bid amounts. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionBidLandscape extends BidLandscape { + /** + * @access public + * @var integer + */ + public $criterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionBidLandscape"; + } + + public function __construct($criterionId = NULL, $campaignId = NULL, $adGroupId = NULL, $startDate = NULL, $endDate = NULL, $landscapePoints = NULL, $DataEntryType = NULL) { + parent::__construct(); + $this->criterionId = $criterionId; + $this->campaignId = $campaignId; + $this->adGroupId = $adGroupId; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->landscapePoints = $landscapePoints; + $this->DataEntryType = $DataEntryType; + } +}} + +if (!class_exists("CriterionPolicyError", FALSE)) { +/** + * Contains the policy violations for a single BiddableAdGroupCriterion. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionPolicyError extends PolicyViolationError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionPolicyError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("AdFormatSpecListAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a list of {@link AdFormatSpec} values. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdFormatSpecListAttribute extends Attribute { + /** + * @access public + * @var AdFormatSpec[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdFormatSpecListAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("AdSpecListAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a list of {@link AdSpec} values. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdSpecListAttribute extends Attribute { + /** + * @access public + * @var AdSpec[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSpecListAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("AdSpecListSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for {@code PLACEMENT} {@link IdeaType}s used to + * filter the results by the list of {@link AdSpec}s. See {@link AdSpec} + * documentation for details on available options. + *

      This element is supported by following {@link IdeaType}s: PLACEMENT. + *

      This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdSpecListSearchParameter extends SearchParameter { + /** + * @access public + * @var AdSpec[] + */ + public $adSpecs; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSpecListSearchParameter"; + } + + public function __construct($adSpecs = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->adSpecs = $adSpecs; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("CategoryProductsAndServicesSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for {@code KEYWORD} {@link IdeaType}s that + * sets a keyword category that all search results should belong to. + * Uses the newer "Products and Services" taxonomy. + *

      This search parameter can be used in bulk keyword requests through the {@link com.google.ads.api.services.targetingideas.TargetingIdeaService#getBulkKeywordIdeas(TargetingIdeaSelector)} method. + *

      This element is supported by following {@link IdeaType}s: KEYWORD. + *

      This element is supported by following {@link RequestType}s: IDEAS. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CategoryProductsAndServicesSearchParameter extends SearchParameter { + /** + * @access public + * @var integer + */ + public $categoryId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CategoryProductsAndServicesSearchParameter"; + } + + public function __construct($categoryId = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->categoryId = $categoryId; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("CompetitionSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for {@code KEYWORD} {@link IdeaType}s used to + * filter the results by the amount of competition (eg: LOW, MEDIUM, HIGH). + *

      This element is supported by following {@link IdeaType}s: KEYWORD. + *

      This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CompetitionSearchParameter extends SearchParameter { + /** + * @access public + * @var tnsCompetitionSearchParameterLevel[] + */ + public $levels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompetitionSearchParameter"; + } + + public function __construct($levels = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->levels = $levels; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("ExcludedKeywordSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for {@code KEYWORD} {@link IdeaType}s that + * specifies {@link Keyword}s that should be excluded from the results.

      + * + * The {@link KeywordMatchType} associated with these keywords is used to + * provide various filtering strategies. For example, the excluded keyword + * "brand x player" will exclude ideas from the resulting ideas as + * described by the table below. + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      Idea{@code BROAD}{@code PHRASE}{@code EXACT}
      brand x playerExcludeExcludeExclude
      blu-ray brand x playerExcludeExcludeInclude
      brand x dvd playerExcludeIncludeInclude
      brand x dvdIncludeIncludeInclude
      + *

      This element is supported by following {@link IdeaType}s: KEYWORD. + *

      This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExcludedKeywordSearchParameter extends SearchParameter { + /** + * @access public + * @var Keyword[] + */ + public $keywords; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExcludedKeywordSearchParameter"; + } + + public function __construct($keywords = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->keywords = $keywords; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("IdeaTextFilterSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for {@code KEYWORD} {@link IdeaType}s that + * specifies a collection of strings by which the results should be + * constrained. This guarantees that each idea in the result will match + * at least one of the {@code included} values. + * + * For this {@link SearchParameter}, excluded items will always take + * priority over included ones. + * + * This can handle a maximum of 200 (included + excluded) elements. + *

      This element is supported by following {@link IdeaType}s: KEYWORD. + *

      This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdeaTextFilterSearchParameter extends SearchParameter { + /** + * @access public + * @var string[] + */ + public $included; + + /** + * @access public + * @var string[] + */ + public $excluded; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdeaTextFilterSearchParameter"; + } + + public function __construct($included = NULL, $excluded = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->included = $included; + $this->excluded = $excluded; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("IncludeAdultContentSearchParameter", FALSE)) { +/** + * {@link SearchParameter} that specifies whether adult content should be + * returned.

      + * + * Presence of this {@link SearchParameter} will allow adult keywords + * to be included in the results. + *

      This element is supported by following {@link IdeaType}s: KEYWORD. + *

      This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IncludeAdultContentSearchParameter extends SearchParameter { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IncludeAdultContentSearchParameter"; + } + + public function __construct($SearchParameterType = NULL) { + parent::__construct(); + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("LanguageSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for both {@code PLACEMENT} and {@code KEYWORD} + * {@link IdeaType}s used to indicate multiple language being targeted. This can + * be used, for example, to search for {@code KEYWORD} {@link IdeaType}s that + * are best for Japanese language. + * + *

      The service allows at most one language to be targeted for KEYWORD requests and 10 languages + * for PLACEMENT requests. + *

      This search parameter can be used in bulk keyword requests through the {@link com.google.ads.api.services.targetingideas.TargetingIdeaService#getBulkKeywordIdeas(TargetingIdeaSelector)} method. It must be single-valued when used in a call to that method. + *

      This element is supported by following {@link IdeaType}s: KEYWORD, PLACEMENT. + *

      This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LanguageSearchParameter extends SearchParameter { + /** + * @access public + * @var Language[] + */ + public $languages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LanguageSearchParameter"; + } + + public function __construct($languages = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->languages = $languages; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("LocationSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for both {@code PLACEMENT} and {@code KEYWORD} + * {@link IdeaType}s used to indicate the locations being targeted. This can + * be used, for example, to search for {@code KEYWORD} {@link IdeaType}s that + * are best for Japan and Los Angeles. + * + *

      This parameter replaces the {@code CountryTargetSearchParameter}. + * + *

      Warning: Not all back-ends support sub-country precision. + * + *

      The service allows up to 10 locations to be targeted for KEYWORD requests and 50 locations + * for PLACEMENT requests. + *

      This search parameter can be used in bulk keyword requests through the {@link com.google.ads.api.services.targetingideas.TargetingIdeaService#getBulkKeywordIdeas(TargetingIdeaSelector)} method. It must be single-valued when used in a call to that method. + *

      This element is supported by following {@link IdeaType}s: KEYWORD, PLACEMENT. + *

      This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationSearchParameter extends SearchParameter { + /** + * @access public + * @var Location[] + */ + public $locations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationSearchParameter"; + } + + public function __construct($locations = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->locations = $locations; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("NetworkSearchParameter", FALSE)) { +/** + *

      A {@link SearchParameter} for setting the search network. Currently we + * support two network setting options: + *

        + *
      • Google search network
      • + *
      • Google search network and AFS
      • + *
      + *

      This element is supported by following {@link IdeaType}s: KEYWORD. + *

      This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NetworkSearchParameter extends SearchParameter { + /** + * @access public + * @var NetworkSetting + */ + public $networkSetting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NetworkSearchParameter"; + } + + public function __construct($networkSetting = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->networkSetting = $networkSetting; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("PlacementTypeSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for {@code PLACEMENT} {@link IdeaType}s + * used to filter results based on the type of website, known as + * {@link com.google.ads.api.services.targetingideas.attributes.Type#PLACEMENT_TYPE}, + * that they appear in. For example, searches may be limited to find + * results that only appear within mobile websites or feeds. + *

      This element is supported by following {@link IdeaType}s: PLACEMENT. + *

      This element is supported by following {@link RequestType}s: IDEAS. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PlacementTypeSearchParameter extends SearchParameter { + /** + * @access public + * @var tnsSiteConstantsPlacementType[] + */ + public $placementTypes; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementTypeSearchParameter"; + } + + public function __construct($placementTypes = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->placementTypes = $placementTypes; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("RelatedToQuerySearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for a query of {@code String}s. + *

      This search parameter can be used in bulk keyword requests through the {@link com.google.ads.api.services.targetingideas.TargetingIdeaService#getBulkKeywordIdeas(TargetingIdeaSelector)} method. + *

      This element is supported by following {@link IdeaType}s: KEYWORD, PLACEMENT. + *

      This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RelatedToQuerySearchParameter extends SearchParameter { + /** + * @access public + * @var string[] + */ + public $queries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RelatedToQuerySearchParameter"; + } + + public function __construct($queries = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->queries = $queries; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("RelatedToUrlSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for {@code KEYWORD} and {@code PLACEMENT} + * {@link IdeaType}s that specifies a set of URLs that results should + * in some way be related too. For example, keyword results would be + * similar to content keywords found on the related URLs. + *

      This search parameter can be used in bulk keyword requests through the {@link com.google.ads.api.services.targetingideas.TargetingIdeaService#getBulkKeywordIdeas(TargetingIdeaSelector)} method. It must be single-valued when used in a call to that method. + *

      This element is supported by following {@link IdeaType}s: KEYWORD, PLACEMENT. + *

      This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RelatedToUrlSearchParameter extends SearchParameter { + /** + * @access public + * @var string[] + */ + public $urls; + + /** + * @access public + * @var boolean + */ + public $includeSubUrls; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RelatedToUrlSearchParameter"; + } + + public function __construct($urls = NULL, $includeSubUrls = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->urls = $urls; + $this->includeSubUrls = $includeSubUrls; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("AdGroupBidLandscape", FALSE)) { +/** + * Represents data about a bidlandscape for an adgroup. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupBidLandscape extends BidLandscape { + /** + * @access public + * @var tnsAdGroupBidLandscapeType + */ + public $type; + + /** + * @access public + * @var boolean + */ + public $landscapeCurrent; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidLandscape"; + } + + public function __construct($type = NULL, $landscapeCurrent = NULL, $campaignId = NULL, $adGroupId = NULL, $startDate = NULL, $endDate = NULL, $landscapePoints = NULL, $DataEntryType = NULL) { + parent::__construct(); + $this->type = $type; + $this->landscapeCurrent = $landscapeCurrent; + $this->campaignId = $campaignId; + $this->adGroupId = $adGroupId; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->landscapePoints = $landscapePoints; + $this->DataEntryType = $DataEntryType; + } +}} + +if (!class_exists("TargetingIdeaService", FALSE)) { +/** + * TargetingIdeaService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class TargetingIdeaService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "TargetingIdeaServiceGetResponse", + "get" => "TargetingIdeaServiceGet", + "mutate" => "TargetingIdeaServiceMutate", + "mutateResponse" => "TargetingIdeaServiceMutateResponse", + "mutateCallToAction" => "TargetingIdeaServiceMutateCallToAction", + "search" => "TargetingIdeaServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdGroupBidLandscape" => "AdGroupBidLandscape", + "BidLandscape" => "BidLandscape", + "AdGroupCriterionError" => "AdGroupCriterionError", + "ApiError" => "ApiError", + "AdGroupCriterionLimitExceeded" => "AdGroupCriterionLimitExceeded", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "AdxError" => "AdxError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "DataEntry" => "DataEntry", + "BidLandscape.LandscapePoint" => "BidLandscapeLandscapePoint", + "BiddingError" => "BiddingError", + "BudgetError" => "BudgetError", + "ClientTermsError" => "ClientTermsError", + "CollectionSizeError" => "CollectionSizeError", + "ComparableValue" => "ComparableValue", + "Criterion" => "Criterion", + "CriterionBidLandscape" => "CriterionBidLandscape", + "CriterionError" => "CriterionError", + "CriterionParameter" => "CriterionParameter", + "CriterionPolicyError" => "CriterionPolicyError", + "PolicyViolationError" => "PolicyViolationError", + "DatabaseError" => "DatabaseError", + "DateError" => "DateError", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "Keyword" => "Keyword", + "Language" => "Language", + "Location" => "Location", + "LongValue" => "LongValue", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "Money" => "Money", + "NetworkSetting" => "NetworkSetting", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "Paging" => "Paging", + "Placement" => "Placement", + "Platform" => "Platform", + "PolicyViolationError.Part" => "PolicyViolationErrorPart", + "PolicyViolationKey" => "PolicyViolationKey", + "Product" => "Product", + "ProductCondition" => "ProductCondition", + "ProductConditionOperand" => "ProductConditionOperand", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RegionCodeError" => "RegionCodeError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StatsQueryError" => "StatsQueryError", + "StringLengthError" => "StringLengthError", + "TargetError" => "TargetError", + "CriterionUserInterest" => "CriterionUserInterest", + "CriterionUserList" => "CriterionUserList", + "Vertical" => "Vertical", + "Webpage" => "Webpage", + "WebpageCondition" => "WebpageCondition", + "WebpageParameter" => "WebpageParameter", + "AdGroupBidLandscape.Type" => "AdGroupBidLandscapeType", + "AdGroupCriterionError.Reason" => "AdGroupCriterionErrorReason", + "AdGroupCriterionLimitExceeded.CriteriaLimitType" => "AdGroupCriterionLimitExceededCriteriaLimitType", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BiddingError.Reason" => "BiddingErrorReason", + "BudgetError.Reason" => "BudgetErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "Criterion.Type" => "CriterionType", + "CriterionError.Reason" => "CriterionErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "KeywordMatchType" => "KeywordMatchType", + "LocationTargetingStatus" => "LocationTargetingStatus", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RegionCodeError.Reason" => "RegionCodeErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "StatsQueryError.Reason" => "StatsQueryErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetError.Reason" => "TargetErrorReason", + "CriterionUserList.MembershipStatus" => "CriterionUserListMembershipStatus", + "WebpageConditionOperand" => "WebpageConditionOperand", + "AdFormatSpec" => "AdFormatSpec", + "AdFormatSpecListAttribute" => "AdFormatSpecListAttribute", + "Attribute" => "Attribute", + "AdSpec" => "AdSpec", + "AdSpecListAttribute" => "AdSpecListAttribute", + "AdSpecListSearchParameter" => "AdSpecListSearchParameter", + "SearchParameter" => "SearchParameter", + "BidLandscapeAttribute" => "BidLandscapeAttribute", + "BooleanAttribute" => "BooleanAttribute", + "CategoryProductsAndServicesSearchParameter" => "CategoryProductsAndServicesSearchParameter", + "CompetitionSearchParameter" => "CompetitionSearchParameter", + "CriterionAttribute" => "CriterionAttribute", + "CurrencyCodeError" => "CurrencyCodeError", + "DisplayAdSpec" => "DisplayAdSpec", + "DisplayAdSpec.AdSizeSpec" => "DisplayAdSpecAdSizeSpec", + "DisplayType" => "DisplayType", + "DoubleAttribute" => "DoubleAttribute", + "ExcludedKeywordSearchParameter" => "ExcludedKeywordSearchParameter", + "FlashDisplayType" => "FlashDisplayType", + "HtmlDisplayType" => "HtmlDisplayType", + "IdeaTextFilterSearchParameter" => "IdeaTextFilterSearchParameter", + "IdeaTypeAttribute" => "IdeaTypeAttribute", + "ImageDisplayType" => "ImageDisplayType", + "InStreamAdInfo" => "InStreamAdInfo", + "InStreamAdInfoAttribute" => "InStreamAdInfoAttribute", + "InStreamAdSpec" => "InStreamAdSpec", + "IncludeAdultContentSearchParameter" => "IncludeAdultContentSearchParameter", + "IntegerAttribute" => "IntegerAttribute", + "IntegerSetAttribute" => "IntegerSetAttribute", + "KeywordAttribute" => "KeywordAttribute", + "LanguageSearchParameter" => "LanguageSearchParameter", + "LocationSearchParameter" => "LocationSearchParameter", + "LongAttribute" => "LongAttribute", + "LongComparisonOperation" => "LongComparisonOperation", + "LongRangeAttribute" => "LongRangeAttribute", + "MatchesRegexError" => "MatchesRegexError", + "MoneyAttribute" => "MoneyAttribute", + "MonthlySearchVolume" => "MonthlySearchVolume", + "MonthlySearchVolumeAttribute" => "MonthlySearchVolumeAttribute", + "NetworkSearchParameter" => "NetworkSearchParameter", + "OpportunityIdeaTypeAttribute" => "OpportunityIdeaTypeAttribute", + "PlacementAttribute" => "PlacementAttribute", + "PlacementTypeAttribute" => "PlacementTypeAttribute", + "PlacementTypeSearchParameter" => "PlacementTypeSearchParameter", + "Range" => "Range", + "RelatedToQuerySearchParameter" => "RelatedToQuerySearchParameter", + "RelatedToUrlSearchParameter" => "RelatedToUrlSearchParameter", + "SearchVolumeSearchParameter" => "SearchVolumeSearchParameter", + "StringAttribute" => "StringAttribute", + "TargetingIdea" => "TargetingIdea", + "TargetingIdeaError" => "TargetingIdeaError", + "TargetingIdeaPage" => "TargetingIdeaPage", + "TargetingIdeaSelector" => "TargetingIdeaSelector", + "TextAdSpec" => "TextAdSpec", + "TrafficEstimatorError" => "TrafficEstimatorError", + "Type_AttributeMapEntry" => "Type_AttributeMapEntry", + "WebpageDescriptor" => "WebpageDescriptor", + "WebpageDescriptorAttribute" => "WebpageDescriptorAttribute", + "AttributeType" => "AttributeType", + "CompetitionSearchParameter.Level" => "CompetitionSearchParameterLevel", + "CurrencyCodeError.Reason" => "CurrencyCodeErrorReason", + "DisplayAdSpec.ActivationOption" => "DisplayAdSpecActivationOption", + "HtmlDisplayType.HtmlOption" => "HtmlDisplayTypeHtmlOption", + "IdeaType" => "IdeaType", + "InStreamAdSpec.InStreamType" => "InStreamAdSpecInStreamType", + "MatchesRegexError.Reason" => "MatchesRegexErrorReason", + "OpportunityIdeaType" => "OpportunityIdeaType", + "RequestType" => "RequestType", + "SiteConstants.AdFormat" => "SiteConstantsAdFormat", + "SiteConstants.PlacementType" => "SiteConstantsPlacementType", + "TargetingIdeaError.Reason" => "TargetingIdeaErrorReason", + "TrafficEstimatorError.Reason" => "TrafficEstimatorErrorReason", + "getBulkKeywordIdeas" => "getBulkKeywordIdeas", + "getBulkKeywordIdeasResponse" => "getBulkKeywordIdeasResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/o/v201309/TargetingIdeaService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = TargetingIdeaService::$classmap; + parent::__construct($wsdl, $options, $user, 'TargetingIdeaService', 'https://adwords.google.com/api/adwords/o/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a page of ideas that match the query described by the specified + * {@link TargetingIdeaSelector}. + * + *

      The selector must specify a {@code paging} value, with {@code numberResults} set to 800 or + * less. Large result sets must be composed through multiple calls to this method, advancing the + * paging {@code startIndex} value by {@code numberResults} with each call. + * + *

      Only a relatively small total number of results will be available through this method. + * Much larger result sets may be available using + * {@link #getBulkKeywordIdeas(TargetingIdeaSelector)} at the price of reduced flexibility in + * selector options. + * + * @param selector Query describing the types of results to return when + * finding matches (similar keyword ideas/placement ideas). + * @return A {@link TargetingIdeaPage} of results, that is a subset of the + * list of possible ideas meeting the criteria of the + * {@link TargetingIdeaSelector}. + * @throws ApiException If problems occurred while querying for ideas. + */ + public function get($selector) { + $arg = new TargetingIdeaServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a page of ideas that match the query described by the specified + * {@link TargetingIdeaSelector}. This method is specialized for returning + * bulk keyword ideas, and thus the selector must be set for + * {@link com.google.ads.api.services.targetingideas.attributes.RequestType#IDEAS} and + * {@link com.google.ads.api.services.common.optimization.attributes.IdeaType#KEYWORD}. + * A limited, fixed set of attributes will be returned. + * + *

      A single-valued + * {@link com.google.ads.api.services.targetingideas.search.RelatedToUrlSearchParameter} + * must be supplied. Single-valued + * {@link com.google.ads.api.services.targetingideas.search.LanguageSearchParameter} and + * {@link com.google.ads.api.services.targetingideas.search.LocationSearchParameter} are + * both optional. Other search parameters compatible with a keyword query may also be + * supplied. + * + *

      The selector must specify a {@code paging} value, with {@code numberResults} set to 800 + * or less. If a URL based search is performed it will return up to 100 keywords when the site is + * not owned, or up to 800 if it is. Number of keywords returned on a keyword based search is up + * to 800. Large result sets must be composed through multiple calls to this method, advancing the + * paging {@code startIndex} value by {@code numberResults} with each call. + * + *

      This method can make many more results available than {@link #get(TargetingIdeaSelector)}, + * but allows less control over the query. For fine-tuned queries that do not need large numbers + * of results, prefer {@link #get(TargetingIdeaSelector)}. + * + * @param selector Query describing the bulk keyword ideas to return. + * @return A {@link TargetingIdeaPage} of results, that is a subset of the + * list of possible ideas meeting the criteria of the + * {@link TargetingIdeaSelector}. + * @throws ApiException If problems occurred while querying for ideas. + */ + public function getBulkKeywordIdeas($selector) { + $arg = new getBulkKeywordIdeas($selector); + $result = $this->__soapCall("getBulkKeywordIdeas", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/TrafficEstimatorService.php b/src/Google/Api/Ads/AdWords/v201309/TrafficEstimatorService.php new file mode 100755 index 000000000..ddc8008f2 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/TrafficEstimatorService.php @@ -0,0 +1,4858 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CollectionSizeError", FALSE)) { +/** + * Errors associated with the size of the given collection being + * out of bounds. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CollectionSizeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError"; + } + + 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("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("Criterion", FALSE)) { +/** + * Represents a criterion (such as a keyword, placement, or vertical). + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Criterion { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsCriterionType + */ + public $type; + + /** + * @access public + * @var string + */ + public $CriterionType; + + private $_parameterMap = array ( + "Criterion.Type" => "CriterionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + public function __construct($id = NULL, $type = NULL, $CriterionType = NULL) { + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionParameter", FALSE)) { +/** + * Base type of criterion parameters. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionParameter { + /** + * @access public + * @var string + */ + public $CriterionParameterType; + + private $_parameterMap = array ( + "CriterionParameter.Type" => "CriterionParameterType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionParameter"; + } + + public function __construct($CriterionParameterType = NULL) { + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityAccessDenied", FALSE)) { +/** + * Reports permission problems trying to access an entity. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityAccessDenied extends ApiError { + /** + * @access public + * @var tnsEntityAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Keyword", FALSE)) { +/** + * Represents a keyword. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Keyword extends Criterion { + /** + * @access public + * @var string + */ + public $text; + + /** + * @access public + * @var tnsKeywordMatchType + */ + public $matchType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Keyword"; + } + + public function __construct($text = NULL, $matchType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->text = $text; + $this->matchType = $matchType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Language", FALSE)) { +/** + * Represents a Language criterion. + *

      A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Language extends Criterion { + /** + * @access public + * @var string + */ + public $code; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Language"; + } + + public function __construct($code = NULL, $name = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->code = $code; + $this->name = $name; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Location", FALSE)) { +/** + * Represents Location criterion. + *

      A criterion of this type can only be created using an ID. A criterion of this type can be either targeted or excluded. + * This is enabled for AdX. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Location extends Criterion { + /** + * @access public + * @var string + */ + public $locationName; + + /** + * @access public + * @var string + */ + public $displayType; + + /** + * @access public + * @var tnsLocationTargetingStatus + */ + public $targetingStatus; + + /** + * @access public + * @var Location[] + */ + public $parentLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($locationName = NULL, $displayType = NULL, $targetingStatus = NULL, $parentLocations = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->locationName = $locationName; + $this->displayType = $displayType; + $this->targetingStatus = $targetingStatus; + $this->parentLocations = $parentLocations; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileAppCategory", FALSE)) { +/** + * Represents the mobile app category to be targeted. + * View the complete list of + * available mobile app categories. + * This is enabled for AdX. + * This is a beta feature. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileAppCategory extends Criterion { + /** + * @access public + * @var integer + */ + public $mobileAppCategoryId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAppCategory"; + } + + public function __construct($mobileAppCategoryId = NULL, $displayName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->mobileAppCategoryId = $mobileAppCategoryId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileApplication", FALSE)) { +/** + * Represents the mobile application to be targeted. + * This is enabled for AdX. + * This is a beta feature. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileApplication extends Criterion { + /** + * @access public + * @var string + */ + public $appId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileApplication"; + } + + public function __construct($appId = NULL, $displayName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->appId = $appId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NetworkSetting", FALSE)) { +/** + * Network settings for a Campaign. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NetworkSetting { + /** + * @access public + * @var boolean + */ + public $targetGoogleSearch; + + /** + * @access public + * @var boolean + */ + public $targetSearchNetwork; + + /** + * @access public + * @var boolean + */ + public $targetContentNetwork; + + /** + * @access public + * @var boolean + */ + public $targetPartnerSearchNetwork; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NetworkSetting"; + } + + public function __construct($targetGoogleSearch = NULL, $targetSearchNetwork = NULL, $targetContentNetwork = NULL, $targetPartnerSearchNetwork = NULL) { + $this->targetGoogleSearch = $targetGoogleSearch; + $this->targetSearchNetwork = $targetSearchNetwork; + $this->targetContentNetwork = $targetContentNetwork; + $this->targetPartnerSearchNetwork = $targetPartnerSearchNetwork; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NotWhitelistedError", FALSE)) { +/** + * Indicates that the customer is not whitelisted for accessing the API. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Placement", FALSE)) { +/** + * A placement used for modifying bids for sites when targeting the content + * network. + * This is enabled for AdX. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Placement extends Criterion { + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + public function __construct($url = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->url = $url; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Product", FALSE)) { +/** + * Product targeting criteria, represents a filter for products in the + * product feed that is defined by the advertiser. The criteria is used to + * determine the products in a Merchant Center account to be used with the + * ProductAds in the AdGroup. This criteria is available only to some advertisers. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Product extends Criterion { + /** + * @access public + * @var ProductCondition[] + */ + public $conditions; + + /** + * @access public + * @var string + */ + public $text; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + public function __construct($conditions = NULL, $text = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->conditions = $conditions; + $this->text = $text; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ProductCondition", FALSE)) { +/** + * Conditions to filter the products defined in product feed for targeting. + * The condition is defined as operand=argument. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProductCondition { + /** + * @access public + * @var string + */ + public $argument; + + /** + * @access public + * @var ProductConditionOperand + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductCondition"; + } + + public function __construct($argument = NULL, $operand = NULL) { + $this->argument = $argument; + $this->operand = $operand; + } +}} + +if (!class_exists("ProductConditionOperand", FALSE)) { +/** + * Attribute for the product condition. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProductConditionOperand { + /** + * @access public + * @var string + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductConditionOperand"; + } + + public function __construct($operand = NULL) { + $this->operand = $operand; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RateExceededError", FALSE)) { +/** + * Signals that a call failed because a measured rate exceeded. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ReadOnlyError", FALSE)) { +/** + * Errors from attempting to write to read-only fields. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RegionCodeError", FALSE)) { +/** + * A list of all errors associated with the @RegionCode constraints. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RegionCodeError extends ApiError { + /** + * @access public + * @var tnsRegionCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * Indicates that a field was rejected due to compatibility issues. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TargetError", FALSE)) { +/** + * A list of all the error codes being used by the common targeting package. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetError extends ApiError { + /** + * @access public + * @var tnsTargetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CriterionUserInterest", FALSE)) { +/** + * User Interest - represents a particular interest based vertical to be targeted. + * Targeting UserInterest is currently in a limited beta. If you'd like access + * please speak with your account representative. + * This is enabled for AdX. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserInterest extends Criterion { + /** + * @access public + * @var integer + */ + public $userInterestId; + + /** + * @access public + * @var string + */ + public $userInterestName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserInterest"; + } + + public function __construct($userInterestId = NULL, $userInterestName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->userInterestId = $userInterestId; + $this->userInterestName = $userInterestName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionUserList", FALSE)) { +/** + * UserList - represents a user list that is defined by the advertiser to be targeted. + * This is enabled for AdX. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserList extends Criterion { + /** + * @access public + * @var integer + */ + public $userListId; + + /** + * @access public + * @var string + */ + public $userListName; + + /** + * @access public + * @var tnsCriterionUserListMembershipStatus + */ + public $userListMembershipStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList"; + } + + public function __construct($userListId = NULL, $userListName = NULL, $userListMembershipStatus = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->userListId = $userListId; + $this->userListName = $userListName; + $this->userListMembershipStatus = $userListMembershipStatus; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Vertical", FALSE)) { +/** + * Use verticals to target or exclude placements in the Google Display Network + * based on the category into which the placement falls (for example, "Pets & + * Animals/Pets/Dogs"). + * View the complete list + * of available vertical categories. + * This is enabled for AdX. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Vertical extends Criterion { + /** + * @access public + * @var integer + */ + public $verticalId; + + /** + * @access public + * @var integer + */ + public $verticalParentId; + + /** + * @access public + * @var string[] + */ + public $path; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Vertical"; + } + + public function __construct($verticalId = NULL, $verticalParentId = NULL, $path = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->verticalId = $verticalId; + $this->verticalParentId = $verticalParentId; + $this->path = $path; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Webpage", FALSE)) { +/** + * Criterion for targeting webpages of an advertiser's website. The + * website domain name is specified at the campaign level. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Webpage extends Criterion { + /** + * @access public + * @var WebpageParameter + */ + public $parameter; + + /** + * @access public + * @var double + */ + public $criteriaCoverage; + + /** + * @access public + * @var string[] + */ + public $criteriaSamples; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Webpage"; + } + + public function __construct($parameter = NULL, $criteriaCoverage = NULL, $criteriaSamples = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->parameter = $parameter; + $this->criteriaCoverage = $criteriaCoverage; + $this->criteriaSamples = $criteriaSamples; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("WebpageCondition", FALSE)) { +/** + * Logical expression for targeting webpages of an advertiser's website. + * + *

      A condition is defined as {@code operand OP argument} + * where {@code operand} is one of the values enumerated in + * {@link WebpageConditionOperand}, and, based on this value, + * {@code OP} is either of {@code EQUALS} or {@code CONTAINS}.

      + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageCondition { + /** + * @access public + * @var tnsWebpageConditionOperand + */ + public $operand; + + /** + * @access public + * @var string + */ + public $argument; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageCondition"; + } + + public function __construct($operand = NULL, $argument = NULL) { + $this->operand = $operand; + $this->argument = $argument; + } +}} + +if (!class_exists("WebpageParameter", FALSE)) { +/** + * Parameter of Webpage criterion, expressed as a list of conditions, or + * logical expressions, for targeting webpages of an advertiser's website. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageParameter extends CriterionParameter { + /** + * @access public + * @var string + */ + public $criterionName; + + /** + * @access public + * @var WebpageCondition[] + */ + public $conditions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageParameter"; + } + + public function __construct($criterionName = NULL, $conditions = NULL, $CriterionParameterType = NULL) { + parent::__construct(); + $this->criterionName = $criterionName; + $this->conditions = $conditions; + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * The types of criteria. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityAccessDeniedReason", FALSE)) { +/** + * User did not have read access. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("KeywordMatchType", FALSE)) { +/** + * Match type of a keyword. i.e. the way we match a keyword string with + * search queries. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class KeywordMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationTargetingStatus", FALSE)) { +/** + * Enum that represents the different Targeting Status values for a Location criterion. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationTargetingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationTargetingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegionCodeErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RegionCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUserListMembershipStatus", FALSE)) { +/** + * Membership status of the user list. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList.MembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("WebpageConditionOperand", FALSE)) { +/** + * Operand value of {@link WebpageCondition}. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageConditionOperand { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageConditionOperand"; + } + + public function __construct() { + } +}} + +if (!class_exists("CurrencyCodeError", FALSE)) { +/** + * Errors for currency codes. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CurrencyCodeError extends ApiError { + /** + * @access public + * @var tnsCurrencyCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CurrencyCodeError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Estimate", FALSE)) { +/** + * Abstract class representing an reply to an {@link EstimateRequest}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Estimate { + /** + * @access public + * @var string + */ + public $EstimateType; + + private $_parameterMap = array ( + "Estimate.Type" => "EstimateType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Estimate"; + } + + public function __construct($EstimateType = NULL) { + $this->EstimateType = $EstimateType; + } +}} + +if (!class_exists("EstimateRequest", FALSE)) { +/** + * Abstract class representing a request to estimate stats. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EstimateRequest { + /** + * @access public + * @var string + */ + public $EstimateRequestType; + + private $_parameterMap = array ( + "EstimateRequest.Type" => "EstimateRequestType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EstimateRequest"; + } + + public function __construct($EstimateRequestType = NULL) { + $this->EstimateRequestType = $EstimateRequestType; + } +}} + +if (!class_exists("KeywordEstimate", FALSE)) { +/** + * Represents the traffic estimate result for a single keyword. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class KeywordEstimate extends Estimate { + /** + * @access public + * @var integer + */ + public $criterionId; + + /** + * @access public + * @var StatsEstimate + */ + public $min; + + /** + * @access public + * @var StatsEstimate + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordEstimate"; + } + + public function __construct($criterionId = NULL, $min = NULL, $max = NULL, $EstimateType = NULL) { + parent::__construct(); + $this->criterionId = $criterionId; + $this->min = $min; + $this->max = $max; + $this->EstimateType = $EstimateType; + } +}} + +if (!class_exists("KeywordEstimateRequest", FALSE)) { +/** + * Represents a keyword to be estimated. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class KeywordEstimateRequest extends EstimateRequest { + /** + * @access public + * @var Keyword + */ + public $keyword; + + /** + * @access public + * @var Money + */ + public $maxCpc; + + /** + * @access public + * @var boolean + */ + public $isNegative; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordEstimateRequest"; + } + + public function __construct($keyword = NULL, $maxCpc = NULL, $isNegative = NULL, $EstimateRequestType = NULL) { + parent::__construct(); + $this->keyword = $keyword; + $this->maxCpc = $maxCpc; + $this->isNegative = $isNegative; + $this->EstimateRequestType = $EstimateRequestType; + } +}} + +if (!class_exists("MatchesRegexError", FALSE)) { +/** + * Errors associated with a given string not matching the provided + * regular expression. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MatchesRegexError extends ApiError { + /** + * @access public + * @var tnsMatchesRegexErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MatchesRegexError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("StatsEstimate", FALSE)) { +/** + * Represents a set of stats for a traffic estimate. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StatsEstimate { + /** + * @access public + * @var Money + */ + public $averageCpc; + + /** + * @access public + * @var double + */ + public $averagePosition; + + /** + * @access public + * @var double + */ + public $clicksPerDay; + + /** + * @access public + * @var double + */ + public $impressionsPerDay; + + /** + * @access public + * @var double + */ + public $clickThroughRate; + + /** + * @access public + * @var Money + */ + public $totalCost; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsEstimate"; + } + + public function __construct($averageCpc = NULL, $averagePosition = NULL, $clicksPerDay = NULL, $impressionsPerDay = NULL, $clickThroughRate = NULL, $totalCost = NULL) { + $this->averageCpc = $averageCpc; + $this->averagePosition = $averagePosition; + $this->clicksPerDay = $clicksPerDay; + $this->impressionsPerDay = $impressionsPerDay; + $this->clickThroughRate = $clickThroughRate; + $this->totalCost = $totalCost; + } +}} + +if (!class_exists("TrafficEstimatorError", FALSE)) { +/** + * Base error class for + * {@link com.google.ads.api.services.trafficestimator.TrafficEstimatorService}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TrafficEstimatorError extends ApiError { + /** + * @access public + * @var tnsTrafficEstimatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrafficEstimatorError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TrafficEstimatorResult", FALSE)) { +/** + * Contains results of traffic estimation request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TrafficEstimatorResult { + /** + * @access public + * @var CampaignEstimate[] + */ + public $campaignEstimates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrafficEstimatorResult"; + } + + public function __construct($campaignEstimates = NULL) { + $this->campaignEstimates = $campaignEstimates; + } +}} + +if (!class_exists("TrafficEstimatorSelector", FALSE)) { +/** + * Contains a list of campaigns to perform a traffic estimate on. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TrafficEstimatorSelector { + /** + * @access public + * @var CampaignEstimateRequest[] + */ + public $campaignEstimateRequests; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrafficEstimatorSelector"; + } + + public function __construct($campaignEstimateRequests = NULL) { + $this->campaignEstimateRequests = $campaignEstimateRequests; + } +}} + +if (!class_exists("CurrencyCodeErrorReason", FALSE)) { +/** + * Encodes the reason (cause) of a particular {@link CurrencyCodeError}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CurrencyCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CurrencyCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MatchesRegexErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MatchesRegexErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MatchesRegexError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TrafficEstimatorErrorReason", FALSE)) { +/** + * When the request with {@code null} campaign ID in + * {@link com.google.ads.api.services.trafficestimator.CampaignEstimateRequest} + * contains an + * {@link com.google.ads.api.services.trafficestimator.AdGroupEstimateRequest} + * with an ID. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TrafficEstimatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrafficEstimatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TrafficEstimatorServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns traffic estimates for specified criteria. + * + * @param selector Campaigns, ad groups and keywords for which traffic + * should be estimated. + * @return Traffic estimation results. + * @throws ApiException if problems occurred while retrieving estimates + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TrafficEstimatorServiceGet { + /** + * @access public + * @var TrafficEstimatorSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("TrafficEstimatorServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TrafficEstimatorServiceGetResponse { + /** + * @access public + * @var TrafficEstimatorResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("AdGroupEstimate", FALSE)) { +/** + * Represents the estimate results for a single ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupEstimate extends Estimate { + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var KeywordEstimate[] + */ + public $keywordEstimates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupEstimate"; + } + + public function __construct($adGroupId = NULL, $keywordEstimates = NULL, $EstimateType = NULL) { + parent::__construct(); + $this->adGroupId = $adGroupId; + $this->keywordEstimates = $keywordEstimates; + $this->EstimateType = $EstimateType; + } +}} + +if (!class_exists("AdGroupEstimateRequest", FALSE)) { +/** + * Represents an ad group that will be estimated. Ad groups may be all + * new or all existing, or a mixture of new and existing. Only existing + * campaigns can contain estimates for existing ad groups.

      + * + *

      To make a keyword estimates request in which estimates do not consider + * existing account information (e.g. historical ad group performance), set both + * {@link #adGroupId} and the enclosing {@link CampaignEstimateRequest}'s + * {@code campaignId} to {@code null}. + * + *

      For more details on usage, refer to document at + * {@link CampaignEstimateRequest}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupEstimateRequest extends EstimateRequest { + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var KeywordEstimateRequest[] + */ + public $keywordEstimateRequests; + + /** + * @access public + * @var Money + */ + public $maxCpc; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupEstimateRequest"; + } + + public function __construct($adGroupId = NULL, $keywordEstimateRequests = NULL, $maxCpc = NULL, $EstimateRequestType = NULL) { + parent::__construct(); + $this->adGroupId = $adGroupId; + $this->keywordEstimateRequests = $keywordEstimateRequests; + $this->maxCpc = $maxCpc; + $this->EstimateRequestType = $EstimateRequestType; + } +}} + +if (!class_exists("CampaignEstimate", FALSE)) { +/** + * Represents the estimate results for a single campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignEstimate extends Estimate { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var AdGroupEstimate[] + */ + public $adGroupEstimates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignEstimate"; + } + + public function __construct($campaignId = NULL, $adGroupEstimates = NULL, $EstimateType = NULL) { + parent::__construct(); + $this->campaignId = $campaignId; + $this->adGroupEstimates = $adGroupEstimates; + $this->EstimateType = $EstimateType; + } +}} + +if (!class_exists("CampaignEstimateRequest", FALSE)) { +/** + * Represents a campaign that will be estimated.

      + * + * Returns traffic estimates for the requested set of campaigns. + * The campaigns can be all new or all existing, or a mixture of + * new and existing. Only existing campaigns may contain estimates for existing + * ad groups.

      + * + * For existing campaigns, the campaign and optionally the ad group will be + * used as context to produce more accurate estimates. Traffic estimates may + * only be requested on keywords, so regardless of whether campaign and ad group + * IDs are provided or left blank, at least one keyword is required to estimate + * traffic.

      + * + * To make a keyword estimates request in which estimates do not consider + * existing account information (e.g. historical ad group performance), set + * {@link #campaignId} to {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignEstimateRequest extends EstimateRequest { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var AdGroupEstimateRequest[] + */ + public $adGroupEstimateRequests; + + /** + * @access public + * @var Criterion[] + */ + public $criteria; + + /** + * @access public + * @var NetworkSetting + */ + public $networkSetting; + + /** + * @access public + * @var Money + */ + public $dailyBudget; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignEstimateRequest"; + } + + public function __construct($campaignId = NULL, $adGroupEstimateRequests = NULL, $criteria = NULL, $networkSetting = NULL, $dailyBudget = NULL, $EstimateRequestType = NULL) { + parent::__construct(); + $this->campaignId = $campaignId; + $this->adGroupEstimateRequests = $adGroupEstimateRequests; + $this->criteria = $criteria; + $this->networkSetting = $networkSetting; + $this->dailyBudget = $dailyBudget; + $this->EstimateRequestType = $EstimateRequestType; + } +}} + +if (!class_exists("TrafficEstimatorService", FALSE)) { +/** + * TrafficEstimatorService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class TrafficEstimatorService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "TrafficEstimatorServiceGetResponse", + "get" => "TrafficEstimatorServiceGet", + "mutate" => "TrafficEstimatorServiceMutate", + "mutateResponse" => "TrafficEstimatorServiceMutateResponse", + "mutateCallToAction" => "TrafficEstimatorServiceMutateCallToAction", + "search" => "TrafficEstimatorServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdxError" => "AdxError", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "CollectionSizeError" => "CollectionSizeError", + "ComparableValue" => "ComparableValue", + "Criterion" => "Criterion", + "CriterionParameter" => "CriterionParameter", + "DatabaseError" => "DatabaseError", + "DateError" => "DateError", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EntityAccessDenied" => "EntityAccessDenied", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "Keyword" => "Keyword", + "Language" => "Language", + "Location" => "Location", + "LongValue" => "LongValue", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "Money" => "Money", + "NetworkSetting" => "NetworkSetting", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "Placement" => "Placement", + "Product" => "Product", + "ProductCondition" => "ProductCondition", + "ProductConditionOperand" => "ProductConditionOperand", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RegionCodeError" => "RegionCodeError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "TargetError" => "TargetError", + "CriterionUserInterest" => "CriterionUserInterest", + "CriterionUserList" => "CriterionUserList", + "Vertical" => "Vertical", + "Webpage" => "Webpage", + "WebpageCondition" => "WebpageCondition", + "WebpageParameter" => "WebpageParameter", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "Criterion.Type" => "CriterionType", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityAccessDenied.Reason" => "EntityAccessDeniedReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "KeywordMatchType" => "KeywordMatchType", + "LocationTargetingStatus" => "LocationTargetingStatus", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "OperatorError.Reason" => "OperatorErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RegionCodeError.Reason" => "RegionCodeErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetError.Reason" => "TargetErrorReason", + "CriterionUserList.MembershipStatus" => "CriterionUserListMembershipStatus", + "WebpageConditionOperand" => "WebpageConditionOperand", + "AdGroupEstimate" => "AdGroupEstimate", + "Estimate" => "Estimate", + "AdGroupEstimateRequest" => "AdGroupEstimateRequest", + "EstimateRequest" => "EstimateRequest", + "CampaignEstimate" => "CampaignEstimate", + "CampaignEstimateRequest" => "CampaignEstimateRequest", + "CurrencyCodeError" => "CurrencyCodeError", + "KeywordEstimate" => "KeywordEstimate", + "KeywordEstimateRequest" => "KeywordEstimateRequest", + "MatchesRegexError" => "MatchesRegexError", + "StatsEstimate" => "StatsEstimate", + "TrafficEstimatorError" => "TrafficEstimatorError", + "TrafficEstimatorResult" => "TrafficEstimatorResult", + "TrafficEstimatorSelector" => "TrafficEstimatorSelector", + "CurrencyCodeError.Reason" => "CurrencyCodeErrorReason", + "MatchesRegexError.Reason" => "MatchesRegexErrorReason", + "TrafficEstimatorError.Reason" => "TrafficEstimatorErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/o/v201309/TrafficEstimatorService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = TrafficEstimatorService::$classmap; + parent::__construct($wsdl, $options, $user, 'TrafficEstimatorService', 'https://adwords.google.com/api/adwords/o/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns traffic estimates for specified criteria. + * + * @param selector Campaigns, ad groups and keywords for which traffic + * should be estimated. + * @return Traffic estimation results. + * @throws ApiException if problems occurred while retrieving estimates + */ + public function get($selector) { + $arg = new TrafficEstimatorServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php b/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php new file mode 100755 index 000000000..214814208 --- /dev/null +++ b/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php @@ -0,0 +1,607 @@ +NULL if the last request was not proper XML + * @see PrepareRequest() + * @see RemoveSensitiveInfo() + * @access private + */ + private $lastRequestDom; + + /** + * The last SOAP XML response from the server. + * @var string the last SOAP XML response from the server + * @access protected + */ + protected $lastResponse; + + /** + * The last SOAP XML DOMDocument response from the server. + * @var DOMDocument the last SOAP XML response from the server. Can be + * NULL if the last request was not proper XML + * @access private + */ + private $lastResponseDom; + + /** + * The last SOAP fault generated from the server. NULL if none. + * @var SOAPFault the last SOAP fault generated from the server + * @access protected + */ + protected $lastSoapFault; + + /** + * The name of the last method called from this client. + * @var string the name of the last method called from this client + * @access protected + */ + protected $lastMethodName; + + /** + * The last arguments passed to the called SOAP method + * @var array the last arguments passed to the called SOAP method + */ + protected $lastArguments; + + /** + * The last headers used in the request. + * @var array the last headers used in the request + */ + protected $lastHeaders; + + /** + * The transport layer override. + * @var null|SoapClient + */ + protected $transportLayer; + + /** + * The constructor intended to be called by all sub-classes. + * @param string $wsdl URI of the WSDL file or NULL if working in non-WSDL + * mode + * @param array $options the SOAP client options + * @param AdsUser $user the user which is responsible for this client + * @param string $serviceName the name of the service which is making this + * call + * @param string $serviceNamespace the namespace of the service + * @access protected + */ + protected function __construct($wsdl, array $options, AdsUser $user, + $serviceName, $serviceNamespace) { + $this->user = $user; + $this->serviceName = $serviceName; + $this->serviceNamespace = $serviceNamespace; + $options['typemap'] = $this->GetTypemaps(); + $this->options = $options; + parent::__construct($wsdl, $options); + } + + /** + * Overrides the method SoapClient.__doRequest() to + * perform a clean up of the request XML before marshalling. + * @param string $request the request XML + * @param string $location the URL to request + * @param string $action the SOAP action + * @param string $version the SOAP version + * @return string the XML SOAP response + */ + function __doRequest($request , $location , $action , $version, + $one_way = 0) { + $this->lastRequest = $this->PrepareRequest($request, $this->lastArguments, + $this->lastHeaders); + + if (!empty($this->transportLayer)) { + $response = $this->transportLayer->__doRequest($this->lastRequest, + $location, $action, $version); + + return $response; + } + + return parent::__doRequest($this->lastRequest, + $location, $action, $version); + } + + /** + * Overrides the method SoapClient.__soapCall() to process the + * response from the SOAP call. + * @param string $function_name the name of the function being called + * @param array $arguments the arguments to that function + * @param array $options the options for the SOAP call + * @param array $input_headers the optional input headers + * @param array $output_headers the options output headers + * @return mixed the return from the parent __soapCall + * @throws SOAPFault if there was an exception making the request + */ + 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; + $this->lastArguments = $arguments; + $response = parent::__soapCall($function_name, $arguments, $options, + $input_headers, $output_headers); + $this->ProcessResponse($this->lastRequest, + $this->__getLastResponse(), $function_name); + return $response; + } catch (SoapFault $e) { + $this->ProcessResponse($this->lastRequest, + $this->__getLastResponse(), $function_name, $e); + throw $e; + } + } + + /** + * Processes the response from the __doRequest call. + * @param string $request the request to the server + * @param string $response the response from the server + * @param string $method the method called + * @param SoapFault $e the SOAP fault thrown if any + * @access private + */ + private function ProcessResponse($request, $response, $method, + SoapFault $e = NULL) { + $this->lastSoapFault = $e; + $this->lastRequestDom = NULL; + $this->lastResponseDom = NULL; + $this->lastRequest = $this->RemoveSensitiveInfo($request); + $this->lastResponse = $response; + $this->lastMethodName = $method; + + try { + $this->GetLastResponseDom(); + } catch (DOMException $domException) { + trigger_error('Failed to load response into DOM: ' + . $domException->getMessage(), E_USER_NOTICE); + } + + try { + $this->GetLastRequestDom(); + } catch (DOMException $domException) { + trigger_error('Failed to load request into DOM: ' + . $domException->getMessage(), E_USER_NOTICE); + } + + $level = isset($e) ? Logger::$ERROR : Logger::$INFO; + $this->LogSoapXml($level); + $this->LogRequestInfo($level); + } + + /** + * Logs the SOAP XML to the Logger::$SOAP_XML_LOG log after the request has + * transformed by PrepareRequest() and both the request and response have + * been sanitized by RemoveSensitiveInfo(). + * @param string $level the log level to use + * @see PrepareRequest() + * @see RemoveSensitiveInfo() + * @access private + */ + private function LogSoapXml($level) { + $message = sprintf("%s\n\n%s\n\n%s\n\n%s\n", + trim($this->__getLastRequestHeaders()), + XmlUtils::PrettyPrint($this->lastRequest), + trim($this->__getLastResponseHeaders()), + XmlUtils::PrettyPrint($this->lastResponse)); + Logger::log(Logger::$SOAP_XML_LOG, $message, $level); + } + + /** + * Logs the request info to the Logger::$REQUEST_INFO_LOG log the request has + * transformed by PrepareRequest() and both the request has been sanitized by + * RemoveSensitiveInfo(). + * @param string $level the log level to use + * @see PrepareRequest() + * @see RemoveSensitiveInfo() + * @access private + */ + private function LogRequestInfo($level) { + $message = $this->GenerateRequestInfoMessage($this->lastRequest, + $this->lastResponse, $this->lastSoapFault); + Logger::log(Logger::$REQUEST_INFO_LOG, $message, $level); + } + + /** + * Gets the user for this client. + * @return AdsUser the user for this client. + */ + public function GetAdsUser() { + return $this->user; + } + + /** + * Gets the server that the request was made to. + * @return string the server that the request was made to + */ + public function GetServer() { + preg_match('/^.*Host:\\s(.*)Connection:.*$/s', + $this->__getLastRequestHeaders(), $hostMatches); + if (sizeof($hostMatches) >= 2) { + return trim($hostMatches[1]); + } else { + return NULL; + } + } + + /** + * 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 + */ + public function GetServiceName() { + return $this->serviceName; + } + + /** + * Gets the method name for the last method called. + * @return string the name of last method called + */ + public function GetLastMethodName() { + return $this->lastMethodName; + } + + /** + * Gets the response time for the last call + * @return double the response time of the last call + */ + public function GetLastResponseTime() { + try { + $responseTimeElements = + $this->GetLastResponseDom()->getElementsByTagName('responseTime'); + foreach ($responseTimeElements as $responseTimeElement) { + return $responseTimeElement->nodeValue; + } + } catch (DOMException $e) { + trigger_error('Failed to load response into DOM: ' + . $e->getMessage(), E_USER_NOTICE); + return "null"; + } + } + + /** + * Gets the request ID for the last call + * @return string the request ID of the last call + */ + public function GetLastRequestId() { + try { + $requestIdElements = + $this->GetLastResponseDom()->getElementsByTagName('requestId'); + foreach ($requestIdElements as $requestIdElement) { + return $requestIdElement->nodeValue; + } + } catch (DOMException $e) { + trigger_error('Failed to load response into DOM: ' + . $e->getMessage(), E_USER_NOTICE); + return 'null'; + } + } + + /** + * Returns TRUE if there was a SOAP fault during the last call. + * @returns boolean TRUE if there was a SOAP fault during the last + * call + */ + public function IsFault() { + return isset($this->lastSoapFault); + } + + /** + * Returns the SOAP fault message if there was any + * @return string the fault message if there was any + */ + public function GetLastFaultMessage() { + return $this->IsFault() + ? $this->lastSoapFault->getMessage() : 'null'; + } + + /** + * Depending on the version of PHP, the xsi:types need to be added and empty + * tags may need to be removed. The SoapRequestXmlFixer class can facilitate + * these changes. + * @param string $request the request to be modified + * @param array $arguments the arguments passed to the SOAP method + * @param array $headers the headers used in the request + * @return string the XML request ready to be sent to the server + * @access protected + */ + protected function PrepareRequest($request, array $arguments, + array $headers) { + $addXsiTypes = FALSE; + $removeEmptyElements = FALSE; + $replaceReferences = FALSE; + + if (version_compare(PHP_VERSION, '5.2.0', '<')) { + trigger_error('The minimum required version of this client library' + . ' is 5.2.0.', E_USER_ERROR); + } + if (version_compare(PHP_VERSION, '5.2.6', '<') || + (PHP_OS == 'Darwin' && version_compare(PHP_VERSION, '5.3.0', '<'))) { + $addXsiTypes = TRUE; + } + + $removeEmptyElements = version_compare(PHP_VERSION, '5.2.3', '<'); + $replaceReferences = version_compare(PHP_VERSION, '5.2.2', '>='); + + if ($addXsiTypes || $removeEmptyElements || $replaceReferences) { + $fixer = new SoapRequestXmlFixer($addXsiTypes, $removeEmptyElements, + $replaceReferences); + return $fixer->FixXml($request, $arguments, $headers); + } else { + // Empty string is appended to "save" the XML from being deleted. + return $request . ''; + } + } + + /** + * Gets the names of all registered request header elements. + * @return array the names of the request header elements + */ + public function GetHeaderNames() { + return array_keys($this->headers); + } + + /** + * Gets the value for a registered request header element. + * @param string $key the name of the request header element + * @return string the value of the request header element or NULL + * if not found + */ + public function GetHeaderValue($key) { + if (array_key_exists($key, $this->headers)) { + return $this->headers[$key]; + } else { + return NULL; + } + } + + /** + * Sets the value for a request header. + * @param string $key the name of the request header element + * @param string $value the value for the request header element + */ + public function SetHeaderValue($key, $value) { + $this->headers[$key] = $value; + } + + /** + * Generates the SOAP header for the client. + * @return SoapHeader the instantiated SoapHeader ready to set + * @access protected + */ + protected abstract function GenerateSoapHeader(); + + /** + * Removes any sensitive information from the request XML. This method is + * called after the request has been made and before logging any XML. + * @param string $request the request just made to the server + * @return string the request with any sensitive information removed ready to + * be logged. + * @access protected + */ + protected abstract function RemoveSensitiveInfo($request); + + /** + * Generates the request information using the request and response. This + * method is called after the request has been made and RemoveSensitiveInfo() + * has been called as well. + * @return string the request information ready to be logged + * @access protected + * @see RemoveSensitiveInfo + */ + protected abstract function GenerateRequestInfoMessage(); + + /** + * Gets the DOMDocument representing the last response from this client. + * @return DOMDocument the DOMDocument representing the last response + * @throws DOMException if the DOMDocument could not be loaded + */ + public function GetLastResponseDom() { + if (!isset($this->lastResponseDom)) { + $this->lastResponseDom = XmlUtils::GetDomFromXml($this->lastResponse); + } + + return $this->lastResponseDom; + } + + /** + * Get the DOMDocument representing the last request from this client. + * @return DOMDocument the DOMDocument representing the last request + * @throws DOMException if the DOMDocument could not be loaded + */ + public function GetLastRequestDom() { + if (!isset($this->lastRequestDom)) { + $this->lastRequestDom = XmlUtils::GetDomFromXml($this->lastRequest); + } + + return $this->lastRequestDom; + } + + /** + * Returns the typemaps to be used when constructing the SOAP client. + * @return array the typemap entries + */ + protected function GetTypemaps() { + $typemaps = array(); + // Convert longs more intelligently, due to overflow issue in 32 bit + // environments. + $typemaps[] = array( + 'type_ns' => 'http://www.w3.org/2001/XMLSchema', + 'type_name' => 'long', + 'from_xml' => 'AdsSoapClient::TypemapLongFromXml', + 'to_xml' => 'AdsSoapClient::TypemapLongToXml'); + return $typemaps; + } + + /** + * A typemap conversion function for parsing long values in SOAP responses. + * @param string $xml the XML snippet containing the long value. + * @return mixed the inner long value as an integer, float, or string + */ + public static function TypemapLongFromXml($xml) { + $document = XmlUtils::GetDomFromXml($xml); + $tag = $document->documentElement->localName; + $value = $document->documentElement->nodeValue; + $isIdField = preg_match('/^id$|Id$|ID$/', $tag); + if (!$isIdField) { + if (strcmp(strval(intval($value)), $value) === 0) { + return intval($value); + } elseif (strcmp(sprintf('%.0f', floatval($value)), $value) === 0) { + return floatval($value); + } + } + return $value; + } + + /** + * A typemap conversion function for serializing long values in SOAP requests. + * @param mixed $value the long value + * @return string an XML snippet with the serialized value + */ + public static function TypemapLongToXml($value) { + if (is_float($value)) { + $value = sprintf('%.0f', $value); + } + // Any outer XML tag can be used here, as it is later removed by SoapClient. + return sprintf('%s', $value); + } + + /** + * Creates a new object of the given type, using the optional parameters. + * When pseudo-namespace support is enabled class names can become very long, + * and this function provides an alternative way to create objects that is + * more readable. + * @param string $type the type of object to create + * @param array $params parameters to pass into the constructor, as either + * flat array in the correct order for the constructor or as an + * associative array from parameter name to value + * @return mixed a new instance of a class that represents that type + */ + public function Create($type, $params = NULL) { + if (array_key_exists($type, $this->options['classmap'])) { + $class = $this->options['classmap'][$type]; + $reflectionClass = new ReflectionClass($class); + if (isset($params)) { + if (MapUtils::IsMap($params)) { + $params = MapUtils::MapToMethodParameters($params, + $reflectionClass->getConstructor()); + } + return $reflectionClass->newInstanceArgs($params); + } else { + return $reflectionClass->newInstance(); + } + } else { + trigger_error('Unknown type: ' . $type, E_USER_ERROR); + } + } + + /** + * Set the non-default transport layer mechanism. + * + * WARNING: to be used for testing purposes only. + * + * @param SoapClient $client the soap client to use. + * @return AdsSoapClient this prepared client. + */ + public function __SetTransportLayer(SoapClient $client) { + $this->transportLayer = $client; + } +} diff --git a/src/Google/Api/Ads/Common/Lib/AdsUser.php b/src/Google/Api/Ads/Common/Lib/AdsUser.php new file mode 100755 index 000000000..1954bb123 --- /dev/null +++ b/src/Google/Api/Ads/Common/Lib/AdsUser.php @@ -0,0 +1,506 @@ +requestHeaderElements = array(); + + $buildIni = parse_ini_file(dirname(__FILE__) . + '/../Lib/build.ini', FALSE); + $this->libVersion = $buildIni['LIB_VERSION']; + $this->libName = $buildIni['LIB_NAME']; + } + + /** + * Gets the authenticaiton value for the $authVar supplied. If + * the $authVar is set, it is is used. Otherwise, the supplied + * $authenticationIni is queired for the variable. If none is found + * NULL is returned. + * @param string $authVar the default value for the authenticaiton variable + * @param string $authVarName the name of the authencation variable + * @param array $authIni the array of authentication variables from + * an INI file + * @return string the authentication variable value + * @access protected + */ + protected function GetAuthVarValue($authVar, $authVarName, + array $authIni) { + if (isset($authVar)) { + return $authVar; + } else { + if (array_key_exists($authVarName, $authIni)) { + return $authIni[$authVarName]; + } else { + return NULL; + } + } + } + + /** + * Gets the names of all registered request header elements. + * @return array the names of the request header elements + */ + public function GetHeaderNames() { + return array_keys($this->requestHeaderElements); + } + + /** + * Gets the value for a registered request header element. + * @param string $key the name of the request header element + * @return string the value of the request header element or NULL if not found + */ + public function GetHeaderValue($key) { + if (array_key_exists($key, $this->requestHeaderElements)) { + return $this->requestHeaderElements[$key]; + } else { + return NULL; + } + } + + /** + * Sets the value for a request header. + * @param string $key the name of the request header element + * @param string $value the value for the request header element + */ + public function SetHeaderValue($key, $value) { + $this->requestHeaderElements[$key] = $value; + } + + /** + * Gets the service by its service name. + * @param string $serviceName the service name + * @param SoapClientFactory $serviceFactory the service factory + * @return SoapClient the instantiated service + */ + public function GetServiceSoapClient($serviceName, + SoapClientFactory $serviceFactory) { + return $serviceFactory->GenerateSoapClient($serviceName); + } + + /** + * Initializes the logging mechanism used by services created by this user. + * HTTP headers and SOAP XML are logged to the soap_xml.log file and all + * request information is logged to the request_info.log file under the logs + * directory. + */ + protected function InitLogs() { + Logger::LogToFile(Logger::$SOAP_XML_LOG, + $this->logsDirectory . "/soap_xml.log"); + Logger::LogToFile(Logger::$REQUEST_INFO_LOG, + $this->logsDirectory . "/request_info.log"); + Logger::SetLogLevel(Logger::$SOAP_XML_LOG, Logger::$FATAL); + Logger::SetLogLevel(Logger::$REQUEST_INFO_LOG, Logger::$FATAL); + } + + /** + * Configures the library to log basic information about all requests and + * the full SOAP XML request and response only when an error occurs. + */ + public function LogDefaults() { + Logger::SetLogLevel(Logger::$SOAP_XML_LOG, Logger::$ERROR); + Logger::SetLogLevel(Logger::$REQUEST_INFO_LOG, Logger::$INFO); + } + + /** + * Configures the library to only log requests that return an error. + */ + public function LogErrors() { + Logger::SetLogLevel(Logger::$SOAP_XML_LOG, Logger::$ERROR); + Logger::SetLogLevel(Logger::$REQUEST_INFO_LOG, Logger::$ERROR); + } + + /** + * Configures the library to log all requests. + */ + public function LogAll() { + Logger::SetLogLevel(Logger::$SOAP_XML_LOG, Logger::$INFO); + Logger::SetLogLevel(Logger::$REQUEST_INFO_LOG, Logger::$INFO); + } + + /** + * Loads the settings for this client library. If the settings INI file + * located at $settingsIniPath cannot be loaded, then the + * parameters passed into this method are used. + * @param string $settingsIniPath the path to the settings INI file + * @param string $defaultVersion the default version if the settings INI file + * cannot be loaded + * @param string $defaultServer the default server if the settings INI file + * cannot be loaded + * @param string $defaultLogsDir the default logs directory if the settings + * INI file cannot be loaded + * @param string $logsRelativePathBase the relative path base for the logs + * directory + */ + public function LoadSettings($settingsIniPath, $defaultVersion, + $defaultServer, $defaultLogsDir, $logsRelativePathBase) { + // Set no time limit for PHP operations. + set_time_limit(0); + ini_set('default_socket_timeout', 480); + + $settingsIni = parse_ini_file($settingsIniPath, TRUE); + + // Logging settings. + $pathRelative = $this->GetSetting($settingsIni, 'LOGGING', + 'PATH_RELATIVE', FALSE); + $libLogDirPath = $this->GetSetting($settingsIni, 'LOGGING', + 'LIB_LOG_DIR_PATH', $defaultLogsDir); + $relativePath = realpath($logsRelativePathBase . '/' . $libLogDirPath); + + if ($pathRelative && $relativePath) { + $this->logsDirectory = $relativePath; + } elseif (!$pathRelative && $libLogDirPath) { + $this->logsDirectory = $libLogDirPath; + } else { + $this->logsDirectory = $defaultLogsDir; + } + $this->InitLogs(); + + // Server settings. + $this->defaultVersion = $this->GetSetting($settingsIni, 'SERVER', + 'DEFAULT_VERSION', $defaultVersion); + $this->defaultServer = $this->GetSetting($settingsIni, 'SERVER', + 'DEFAULT_SERVER', $defaultServer); + + // SOAP settings. + $this->soapCompression = (bool) $this->GetSetting($settingsIni, 'SOAP', + 'COMPRESSION', TRUE); + $this->soapCompressionLevel = $this->GetSetting($settingsIni, 'SOAP', + 'COMPRESSION_LEVEL', 1); + if ($this->soapCompressionLevel < 1 || $this->soapCompressionLevel > 9) { + $this->soapCompressionLevel = 1; + } + $this->wsdlCache = (int) $this->GetSetting($settingsIni, 'SOAP', + 'WSDL_CACHE', WSDL_CACHE_NONE); + if ($this->wsdlCache < 0 || $this->wsdlCache > 3) { + $this->wsdlCache = WSDL_CACHE_NONE; + } + + // Proxy settings. + $proxyHost = $this->GetSetting($settingsIni, 'PROXY', 'HOST'); + if (isset($proxyHost)) { + $this->Define('HTTP_PROXY_HOST', $proxyHost); + } + $proxyPort = $this->GetSetting($settingsIni, 'PROXY', 'PORT'); + if (isset($proxyPort)) { + $this->Define('HTTP_PROXY_PORT', (int) $proxyPort); + } + $proxyUser = $this->GetSetting($settingsIni, 'PROXY', 'USER'); + if (isset($proxyUser)) { + $this->Define('HTTP_PROXY_USER', $proxyUser); + } + $proxyPassword = $this->GetSetting($settingsIni, 'PROXY', 'PASSWORD'); + if (isset($proxyPassword)) { + $this->Define('HTTP_PROXY_PASSWORD', $proxyPassword); + } + + // Auth settings. + $this->authServer = $this->GetSetting($settingsIni, 'AUTH', 'AUTH_SERVER', + 'https://accounts.google.com'); + // OAuth2. + $this->oauth2Handler = $this->GetDefaultOAuth2Handler( + $this->GetSetting($settingsIni, 'AUTH', 'OAUTH2_HANDLER_CLASS')); + + // SSL settings. + $sslVerifyPeer = $this->GetSetting($settingsIni, 'SSL', 'VERIFY_PEER'); + if (isset($sslVerifyPeer)) { + $this->Define('SSL_VERIFY_PEER', $sslVerifyPeer); + } + $sslVerifyHost = $this->GetSetting($settingsIni, 'SSL', 'VERIFY_HOST'); + if (isset($sslVerifyHost)) { + $this->Define('SSL_VERIFY_HOST', (int) $sslVerifyHost); + } + $sslCaPath = $this->GetSetting($settingsIni, 'SSL', 'CA_PATH'); + if (isset($sslCaPath)) { + $this->Define('SSL_CA_PATH', $sslCaPath); + } + $sslCaFile = $this->GetSetting($settingsIni, 'SSL', 'CA_FILE'); + if (isset($sslCaFile)) { + $this->Define('SSL_CA_FILE', $sslCaFile); + } + } + + /** + * Gets the value for a given setting based on the contents of the parsed INI + * file. + * @param array $settings the parsed settings INI file + * @param string $section the name of the section containing the setting + * @param string $name the name of the setting + * @param mixed $default the default value of the setting + * @return string the value of the setting + */ + private function GetSetting($settings, $section, $name, $default = NULL) { + if (!$settings || !array_key_exists($section, $settings) + || !array_key_exists($name, $settings[$section]) + || $settings[$section][$name] == NULL + || $settings[$section][$name] == '') { + return $default; + } + return $settings[$section][$name]; + } + + /** + * Define a constant if it isn't already defined. If it is defined but the + * value is different then attempt to redefine it, which will fail and throw + * the appropriate error. + * @param string $name the name of the constant + * @param string $value the value of the constant + */ + private function Define($name, $value) { + if (!defined($name) || (constant($name) != $value)) { + define($name, $value); + } + } + + /** + * Gets the default server. + * @return string the default server + */ + public function GetDefaultServer() { + return $this->defaultServer; + } + + /** + * Sets the default server. + * @param string $defaultServer the default server + */ + public function SetDefaultServer($defaultServer) { + $this->defaultServer = $defaultServer; + } + + /** + * Gets the default version. + * @return string the default version + */ + public function GetDefaultVersion() { + return $this->defaultVersion; + } + + /** + * Sets the default version. + * @param string $defaultVersion the default version + */ + public function SetDefaultVersion($defaultVersion) { + $this->defaultVersion = $defaultVersion; + } + + /** + * Gets the logs directory. + * @return string the logs directory + */ + public function GetLogsDirectory() { + return $this->logsDirectory; + } + + /** + * Is SOAP compression enabled. + * @return bool is SOAP compression enabled + */ + public function IsSoapCompressionEnabled() { + return $this->soapCompression; + } + + /** + * Gets the SOAP compression level. + * @return int the SOAP compression level + */ + public function GetSoapCompressionLevel() { + return $this->soapCompressionLevel; + } + + /** + * Gets the type of WSDL caching in use. + * @return int the type of WSDL caching in use + */ + public function GetWsdlCacheType() { + return $this->wsdlCache; + } + + /** + * Gets the server used for authentication. + * @return string the server used for authentiation + */ + public function GetAuthServer() { + return $this->authServer; + } + + /** + * Gets the OAuth2 info for this user. + * @return array the OAuth2 info for this user + */ + public function GetOAuth2Info() { + return $this->oauth2Info; + } + + /** + * Sets the OAuth2 info for this user. + * @param array $oauth2Info the OAuth2 info for this user + */ + public function SetOAuth2Info($oauth2Info) { + $this->oauth2Info = $oauth2Info; + } + + /** + * Gets the OAuth2 handler for this user. + * @return OAuth2Handler the OAuth2 handler for this user + */ + public function GetOAuth2Handler() { + return $this->oauth2Handler; + } + + /** + * Sets the OAuth2 handler for this user. + * @param array $oauth2Handler the OAuth2 handler for this user + */ + public function SetOAuth2Handler($oauth2Handler) { + $this->oauth2Handler = $oauth2Handler; + } + + /** + * Gets the appropriate user agent header name for the API this client library + * is targeting. + * @return string The user agent header name. + */ + abstract protected function GetUserAgentHeaderName(); + + /** + * Gets the name and version of this client library. + * @return array An array containing the name and version of this client + * library, e.g.: ['DfpApi-PHP', '2.13.0']. + */ + abstract protected function GetClientLibraryNameAndVersion(); + + /** + * Gets common PHP user agent parts for ads client libraries such as PHP + * version, operating system, browser, or if compression is being used or not. + * @return array An array of arrays with each inner array representing a user + * agent parts, e.g.: ['PHP', '5.3.2'] or ['PHP', '5.4.0']. + */ + private function GetCommonClientLibraryUserAgentParts() { + return array(array($this->libName, $this->libVersion), array('PHP', + PHP_VERSION)); + } + + /** + * Gets the user agent string that identifies this library for this user. + * @return string A user agent string. + */ + public function GetClientLibraryUserAgent() { + return $this->GetHeaderValue($this->GetUserAgentHeaderName()); + } + + /** + * Gets all the user agent parts that identify this client library. + * @return array An array of all the user agent parts that identify this + * client library where each user agent part has been joined by a '/' + * (forward slash). + */ + private function GetAllClientLibraryUserAgentParts() { + $allUserAgentParts[] = implode('/', + $this->GetClientLibraryNameAndVersion()); + + foreach ($this->GetCommonClientLibraryUserAgentParts() as $userAgentPart) { + $allUserAgentParts[] = implode('/', $userAgentPart); + } + + return $allUserAgentParts; + } + + /** + * Sets the user agent string that identifies this library for this user. + * + * TODO(vtsao): The current contract requires that subclasses call this method + * in their constructor. + * + * @param $applicationName The application name that will appear in this + * header. + */ + public function SetClientLibraryUserAgent($applicationName) { + $this->SetHeaderValue($this->GetUserAgentHeaderName(), sprintf("%s (%s)", + $applicationName, implode(', ', + $this->GetAllClientLibraryUserAgentParts()))); + } + + /** + * Get the default OAuth2 Handler for this user. + * @param NULL|string $className the name of the oauth2Handler class or NULL + * @return mixed the configured OAuth2Handler class + */ + public abstract function GetDefaultOAuth2Handler($className = NULL); + + /** + * Validates that the OAuth2 info is complete. + * @throws ValidationException if there are any validation errors + * @access protected + */ + protected function ValidateOAuth2Info() { + $requiredFields = array('client_id', 'client_secret'); + foreach ($requiredFields as $field) { + if (empty($this->oauth2Info[$field])) { + throw new ValidationException($field, NULL, + sprintf('%s is required.', $field)); + } + } + if (empty($this->oauth2Info['access_token']) + && empty($this->oauth2Info['refresh_token'])) { + throw new ValidationException('refresh_token', NULL, + 'Either the refresh_token or the access_token is required.'); + } + } +} + diff --git a/src/Google/Api/Ads/Common/Lib/ServiceException.php b/src/Google/Api/Ads/Common/Lib/ServiceException.php new file mode 100755 index 000000000..d2d6d7f6d --- /dev/null +++ b/src/Google/Api/Ads/Common/Lib/ServiceException.php @@ -0,0 +1,47 @@ +user = $user; + $this->version = $version; + $this->server = $server; + $this->productName = $productName; + $this->headerOverrides = $headerOverrides; + } + + /** + * Initiates a require_once for the service. + * @param string $serviceName the service to instantiate + */ + abstract public function DoRequireOnce($serviceName); + + /** + * Generates a SOAP client for the given service name. Generates a user level + * error if this instalation of PHP does not have the extension for SOAP + * installed. + * @param string $serviceName the name of the service to generate a client for + * @return AdsSoapClient an instantiated SOAP client + */ + public function GenerateSoapClient($serviceName) { + if (extension_loaded('soap')) { + $this->DoRequireOnce($serviceName); + $soapClient = $this->GenerateServiceClient($serviceName); + return $soapClient; + } else { + trigger_error('This client library requires the SOAP extension to be' + . ' activated. See http://php.net/manual/en/soap.installation.php for' + . ' details.', E_USER_ERROR); + } + } + + /** + * Generates the SOAP service client without the proper headers set yet. + * @param string $serviceName the service to create a client for + * @return AdsSoapClient the SOAP service client + * @access protected + */ + protected function GenerateServiceClient($serviceName) { + $location = $this->GetServiceLocation($serviceName); + $wsdl = $location . '?wsdl'; + $options = array( + 'trace' => TRUE, + 'encoding' => 'utf-8', + 'connection_timeout' => 0, + 'features' => SOAP_SINGLE_ELEMENT_ARRAYS); + $contextOptions = array(); + + // Compression settings. + if ($this->GetAdsUser()->IsSoapCompressionEnabled()) { + $options['compression'] = SOAP_COMPRESSION_ACCEPT | + self::GetCompressionKind() | + $this->GetAdsUser()->GetSoapCompressionLevel(); + // The User-Agent HTTP header must contain the string 'gzip'. + $options['user_agent'] = 'PHP-SOAP/'. phpversion() . ', gzip'; + } + + // WSDL caching settings. + $options['cache_wsdl'] = $this->GetAdsUser()->GetWsdlCacheType(); + + // Proxy settings. + if (defined('HTTP_PROXY_HOST') && HTTP_PROXY_HOST != '') { + $options['proxy_host'] = HTTP_PROXY_HOST; + } + if (defined('HTTP_PROXY_PORT') && HTTP_PROXY_PORT != '') { + $options['proxy_port'] = HTTP_PROXY_PORT; + } + if (defined('HTTP_PROXY_USER') && HTTP_PROXY_USER != '') { + $options['proxy_login'] = HTTP_PROXY_USER; + } + if (defined('HTTP_PROXY_PASSWORD') && HTTP_PROXY_PASSWORD != '') { + $options['proxy_password'] = HTTP_PROXY_PASSWORD; + } + + // SSL settings. + if (defined('SSL_VERIFY_PEER') && SSL_VERIFY_PEER != '') { + $contextOptions['ssl']['verify_peer'] = SSL_VERIFY_PEER; + } + if (defined('SSL_VERIFY_HOST') && SSL_VERIFY_HOST) { + $contextOptions['ssl']['CN_match'] = parse_url($location, PHP_URL_HOST); + } + if (defined('SSL_CA_PATH') && SSL_CA_PATH != '') { + $contextOptions['ssl']['capath'] = SSL_CA_PATH; + } + if (defined('SSL_CA_FILE') && SSL_CA_FILE != '') { + $contextOptions['ssl']['cafile'] = SSL_CA_FILE; + } + + $options['stream_context'] = stream_context_create($contextOptions); + + $soapClient = new $serviceName($wsdl, $options, $this->GetAdsUser()); + $soapClient->__setLocation($location); + + // Copy headers from user. + foreach($this->GetAdsUser()->GetHeaderNames() as $key) { + $soapClient->SetHeaderValue( + $key, $this->GetAdsUser()->GetHeaderValue($key)); + } + + // Copy headers from overrides. + if (isset($this->headerOverrides)) { + foreach($this->headerOverrides as $key => $value) { + $soapClient->SetHeaderValue($key, $value); + } + } + + return $soapClient; + } + + /** + * Gets the end-point location of the service. + * @param string $serviceName the service to instantiate + * @return string the end-point location of the service. + * @access protected + */ + protected function GetServiceLocation($serviceName) { + $classVars = get_class_vars($serviceName); + $endpoint = $classVars['endpoint']; + return preg_replace(SoapClientFactory::$SERVER_REGEX, $this->GetServer(), + $endpoint); + } + + /** + * Gets the user associated with this factory. + * @return AdsUser the user associated with this factory + */ + public function GetAdsUser() { + return $this->user; + } + + /** + * Gets the version associated with this factory. + * @return string the version associated with this factory + */ + public function GetVersion() { + return $this->version; + } + + /** + * Gets the server associated with this factory. + * @return string the server associated with this factory + */ + public function GetServer() { + return $this->server; + } + + /** + * Gets the product name associated with this factory. + * @return string the product name associated with this factory + */ + public function GetProductName() { + return $this->productName; + } + + /** + * Get the compression flag + * @return int Get the compression flag value + */ + protected static function GetCompressionKind() { + if (!isset(self::$COMPRESSION_KIND)) { + if (version_compare(PHP_VERSION, '5.4.0', '>=') + && version_compare(PHP_VERSION, '5.4.4', '<') + ) { + self::$COMPRESSION_KIND = SOAP_COMPRESSION_DEFLATE; + } else { + self::$COMPRESSION_KIND = SOAP_COMPRESSION_GZIP; + } + } + + return self::$COMPRESSION_KIND; + } +} + diff --git a/src/Google/Api/Ads/Common/Lib/ValidationException.php b/src/Google/Api/Ads/Common/Lib/ValidationException.php new file mode 100755 index 000000000..c8da0e462 --- /dev/null +++ b/src/Google/Api/Ads/Common/Lib/ValidationException.php @@ -0,0 +1,68 @@ +trigger = $trigger; + parent::__construct(sprintf(self::EXCEPTION_FORMAT, $trigger, $value, + $message)); + } + + /** + * Get the trigger for the validation error. + * @return string the trigger for the validation error. + */ + public function GetTrigger() { + return $this->trigger; + } +} + diff --git a/src/Google/Api/Ads/Common/Lib/build.ini b/src/Google/Api/Ads/Common/Lib/build.ini new file mode 100755 index 000000000..7b9ca5f61 --- /dev/null +++ b/src/Google/Api/Ads/Common/Lib/build.ini @@ -0,0 +1,3 @@ +LIB_VERSION = 5.2.0 +LIB_NAME = "Common-PHP" + diff --git a/src/Google/Api/Ads/Common/Util/ApiPropertiesUtils.php b/src/Google/Api/Ads/Common/Util/ApiPropertiesUtils.php new file mode 100755 index 000000000..c69b9d142 --- /dev/null +++ b/src/Google/Api/Ads/Common/Util/ApiPropertiesUtils.php @@ -0,0 +1,43 @@ +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 new file mode 100755 index 000000000..d53f80d23 --- /dev/null +++ b/src/Google/Api/Ads/Common/Util/AuthTokenException.php @@ -0,0 +1,92 @@ +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/ChoiceUtils.php b/src/Google/Api/Ads/Common/Util/ChoiceUtils.php new file mode 100755 index 000000000..40ece6e23 --- /dev/null +++ b/src/Google/Api/Ads/Common/Util/ChoiceUtils.php @@ -0,0 +1,62 @@ + $value) { + if (isset($value)) { + return $value; + } + } + return NULL; + } +} + diff --git a/src/Google/Api/Ads/Common/Util/CurlUtils.php b/src/Google/Api/Ads/Common/Util/CurlUtils.php new file mode 100755 index 000000000..dcccc6763 --- /dev/null +++ b/src/Google/Api/Ads/Common/Util/CurlUtils.php @@ -0,0 +1,142 @@ +Init($url); + + // Default options. + $this->SetOpt($ch, CURLOPT_FOLLOWLOCATION, TRUE); + $this->SetOpt($ch, CURLOPT_HEADER, FALSE); + $this->SetOpt($ch, CURLOPT_RETURNTRANSFER, TRUE); + $this->SetOpt($ch, CURLOPT_ENCODING, 'gzip'); + $this->SetOpt($ch, CURLOPT_USERAGENT, 'curl, gzip'); + + // Proxy options. + if (defined('HTTP_PROXY_HOST') && HTTP_PROXY_HOST != '') { + $this->SetOpt($ch, CURLOPT_PROXY, HTTP_PROXY_HOST); + } + if (defined('HTTP_PROXY_PORT') && HTTP_PROXY_PORT != '') { + $this->SetOpt($ch, CURLOPT_PROXYPORT, HTTP_PROXY_PORT); + } + if (defined('HTTP_PROXY_USER') && defined('HTTP_PROXY_PASSWORD') + && HTTP_PROXY_USER != '' && HTTP_PROXY_PASSWORD != '') { + $this->SetOpt($ch, CURLOPT_PROXYUSERPWD, HTTP_PROXY_USER . ':' + . HTTP_PROXY_PASSWORD); + } + + // SSL options. + if (defined('SSL_VERIFY_PEER') && SSL_VERIFY_PEER != '') { + $this->SetOpt($ch, CURLOPT_SSL_VERIFYPEER, SSL_VERIFY_PEER); + } else { + // Default to disabled, for backwards compatibility. + $this->SetOpt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); + } + if (defined('SSL_VERIFY_HOST') && SSL_VERIFY_HOST != '') { + if (SSL_VERIFY_HOST) { + // Verify that the host exists in the certificate and matches the + // host in the request. + $this->SetOpt($ch, CURLOPT_SSL_VERIFYHOST, 2); + } else { + $this->SetOpt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); + } + } else { + $this->SetOpt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); + } + if (defined('SSL_CA_PATH') && SSL_CA_PATH != '') { + $this->SetOpt($ch, CURLOPT_CAPATH, SSL_CA_PATH); + } + if (defined('SSL_CA_FILE') && SSL_CA_FILE != '') { + $this->SetOpt($ch, CURLOPT_CAINFO, SSL_CA_FILE); + } + + return $ch; + } + + /** + * Wraps the global curl function + * {@link http://php.net/manual/en/function.curl-init.php}. + */ + public function Init($url = NULL) { + return curl_init($url); + } + + /** + * Wraps the global curl function + * {@link http://php.net/manual/en/function.curl-setopt.php}. + */ + public function SetOpt($ch, $option, $value) { + return curl_setopt($ch, $option, $value); + } + + /** + * Wraps the global curl function + * {@link http://php.net/manual/en/function.curl-exec.php}. + */ + public function Exec($ch) { + return curl_exec($ch); + } + + /** + * Wraps the global curl function + * {@link http://php.net/manual/en/function.curl-getinfo.php}. + */ + public function GetInfo($ch, $opt = 0) { + return curl_getinfo($ch, $opt); + } + + /** + * Wraps the global curl function + * {@link http://php.net/manual/en/function.curl-error.php}. + */ + public function Error($ch) { + return curl_error($ch); + } + + /** + * Wraps the global curl function + * {@link http://php.net/manual/en/function.curl-close.php}. + */ + public function Close($ch) { + curl_close($ch); + } +} + diff --git a/src/Google/Api/Ads/Common/Util/DeprecationUtils.php b/src/Google/Api/Ads/Common/Util/DeprecationUtils.php new file mode 100755 index 000000000..71f68b96a --- /dev/null +++ b/src/Google/Api/Ads/Common/Util/DeprecationUtils.php @@ -0,0 +1,100 @@ +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)); + } + } + + /** + * Log messages to the relevant message sources. + * + * @param string $message is the message to log + * @param string $level is the message level to log + */ + protected static function Log($message, $level = NULL) { + Logger::log(Logger::$SOAP_XML_LOG, $message, $level); + Logger::log(Logger::$REQUEST_INFO_LOG, $message, $level); + } +} + diff --git a/src/Google/Api/Ads/Common/Util/ErrorUtils.php b/src/Google/Api/Ads/Common/Util/ErrorUtils.php new file mode 100755 index 000000000..6c660cc55 --- /dev/null +++ b/src/Google/Api/Ads/Common/Util/ErrorUtils.php @@ -0,0 +1,91 @@ +detail)) { + foreach (get_object_vars($fault->detail) as $fieldName => $fieldValue) { + if ($fieldName == ErrorUtils::$API_EXCEPTION_FIELD_NAME) { + $errors = $fieldValue->errors; + if (!is_array($errors)) { + $errors = array($errors); + } + foreach ($errors as $error) { + if ($error instanceof SoapVar) { + $error = $error->enc_value; + } + $results[] = $error; + } + } + } + } + return $results; + } + + /** + * Gets the index of the operation that was the source of an error. + * @param mixed $error the error returned in the response + * @return int the index of the operation that caused the error, or NULL if + * no operation was referenced by the error + */ + public static function GetSourceOperationIndex($error) { + $matches = array(); + if (preg_match(ErrorUtils::$OPERATION_INDEX_OGNL_REGEX, $error->fieldPath, + $matches)) { + return $matches[1]; + } else { + // Invalid fieldPath. + return NULL; + } + } +} + diff --git a/src/Google/Api/Ads/Common/Util/Logger.php b/src/Google/Api/Ads/Common/Util/Logger.php new file mode 100755 index 000000000..d4d0a054b --- /dev/null +++ b/src/Google/Api/Ads/Common/Util/Logger.php @@ -0,0 +1,242 @@ +SOAP_XML_LOG and + * all records of requests to REQUEST_INFO_LOG. + * + * Currently, levels are only used as indicators (there is no filtering + * mechanism as of yet). + * + * A list of supported appenders (file handles) can be found here: + * {@link http://us2.php.net/manual/en/wrappers.php} + * + * @package GoogleApiAdsCommon + * @subpackage Util + */ +class Logger { + + /** + * Logs all incomming and outgoing SOAP XML. + * @var string log for all incomming and outgoing SOAP XML + */ + public static $SOAP_XML_LOG = 'soap_xml'; + + /** + * Logs all information about requests. + * @var string log for all information about requests + */ + public static $REQUEST_INFO_LOG = 'request_info'; + + /** + * Standard out stream for use with the LogToStream method. + * @see self::LogToStream() + * @var string stream for stdout + */ + public static $STD_OUT_STREAM = 'php://stdout'; + + /** + * Standard error stream for use with the LogToStream method. + * @see self::LogToStream() + * @var string stream for stderr + */ + public static $STD_ERR_STREAM = 'php://stderr'; + + /** + * INFO level. + * @var string the info level + */ + public static $INFO = 'INFO'; + + /** + * DEBUG level. + * @var string the debug level + */ + public static $DEBUG = 'DEBUG'; + + /** + * ERROR level. + * @var string the error level + */ + public static $ERROR = 'ERROR'; + + /** + * FATAL level. + * @var string the fatal level + */ + public static $FATAL = 'FATAL'; + + private static $logToMap = array(); + private static $logLevelMap = array(); + private static $timeFormat = 'M d Y H:i:s.u'; + + /** + * The Logger class is not meant to have any instances. + * @access private + */ + private function __construct() {} + + /** + * Logs the given log to a file at the file path. + * @param string $log the unique name of the log + * @param string $filePath the location of the file to append the log to + */ + public static function LogToFile($log, $filePath) { + self::LogTo($log, $filePath); + } + + /** + * Logs the given log to a stream represented by $phpIoStream. The + * availble streams are listed here: + * + * {@link http://us3.php.net/manual/en/wrappers.php.php} + * + * The variables $STD_OUT_STREAM and $STD_ERR_STREAM are + * provided for your convenience. + * @param string $log the unique name of the log + * @param string $phpIoStream the php I/O stream of the form php://* + * @see self::$STD_OUT_STREAM + * @see self::$STD_ERR_STREAM + */ + public static function LogToStream($log, $phpIoStream) { + self::LogTo($log, $phpIoStream); + } + + /** + * Logs the log to a handle location which can be any writable stream. + * @param string $log the unique name of the log + * @param string $handleLocation the location of the handle to fopen + * @access private + */ + private static function LogTo($log, $handleLocation) { + if (!array_key_exists($log, self::$logToMap)) { + self::$logToMap[$log] = array(); + } + + $appenders = self::$logToMap[$log]; + + if (array_search($handleLocation, $appenders) === FALSE) { + array_push($appenders, $handleLocation); + } + + self::$logToMap[$log] = $appenders; + } + + /** + * Sets the logging level for a given log. Only messages at that log level + * or higher will be written to the log. + * @param string $log the unique name of the log + * @param string $level the level to filter for + */ + public static function SetLogLevel($log, $level) { + self::$logLevelMap[$log] = $level; + } + + /** + * Logs a message to the log at a specific level. + * @param string $log the unique name of the log + * @param string $message the message to write + * @param string $level the level at which to write the message + */ + public static function Log($log, $message, $level = NULL) { + if (!isset($level)) { + $level = self::$INFO; + } + + self::LogToAllAppenders($log, $message, $level); + } + + /** + * Logs the message at a specific level to all appenders for that log. + * @param string $log the unique name of the log + * @param string $message the message to write + * @param string $level the level at which to write the message + * @access private + */ + private static function LogToAllAppenders($log, $message, $level) { + if (array_key_exists($log, self::$logToMap)) { + $logLevel = array_key_exists($log, self::$logLevelMap) ? + self::$logLevelMap[$log] : self::$INFO; + if (self::ShouldLog($logLevel, $level)) { + $appenders = self::$logToMap[$log]; + self::LogToAppenders($appenders, $message, $level); + } + } + } + + /** + * Determines if a message of a given level should be written to a log of a + * given level. + * @param string $logLevel the level of the log + * @param string $messageLevel the level of the message + */ + private static function ShouldLog($logLevel, $messageLevel) { + $levelPriority = + array(self::$DEBUG, self::$INFO, self::$ERROR, self::$FATAL); + return array_search($logLevel, $levelPriority) <= + array_search($messageLevel, $levelPriority); + } + + /** + * Writes the message to all appenders (any writable handle location that + * can be fopen'ed) at a specific level. + * @param array $appenders the appenders to write to + * @param string $message the message to write + * @param string $level the level at which to write the message + * @access private + */ + private static function LogToAppenders(array $appenders, $message, $level) { + foreach ($appenders as $handle) { + self::WriteMessage($handle, $message, $level); + } + } + + /** + * Writes a message with the prepended time and level to the handle + * location. The handle will be opened, written to and then closed. + * @param string $handleLocation the location of the handle that will be + * fopen'ed + * @param string $message the message to write + * @param string $level the level of the message + * @access private + */ + private static function WriteMessage($handleLocation, $message, $level) { + $fp = fopen($handleLocation, 'a'); + $line = '[' . date(self::$timeFormat, time()) . ' - ' . $level . '] ' + . $message . "\n"; + fwrite($fp, $line); + fclose($fp); + } +} + diff --git a/src/Google/Api/Ads/Common/Util/MapUtils.php b/src/Google/Api/Ads/Common/Util/MapUtils.php new file mode 100755 index 000000000..62d37fdc6 --- /dev/null +++ b/src/Google/Api/Ads/Common/Util/MapUtils.php @@ -0,0 +1,113 @@ +key] = $mapEntry->value; + } + return $result; + } + + /** + * Gets an array of map entries from a map (associative array). A map entry + * is any object that has a key and value field. An optional map entry class + * name can be specified for constructing the entries, otherise the stdClass + * is used. + * @param array $map a map from key to value + * @param string $mapEntryClassName an optional class name to use when + * constructing the map entries + * @return array an array of map entries built from the key-value pairs in + * the map + */ + public static function GetMapEntries(array $map, $mapEntryClassName = NULL) { + $result = array(); + foreach($map as $key => $value) { + if (isset($mapEntryClassName)) { + $entry = new $mapEntryClassName(); + } else { + $entry = (object) array(); + } + $entry->key = $key; + $entry->value = $value; + $result[] = $entry; + } + return $result; + } + + /** + * Determines if an array is a map (associative array) vs. a flat, + * numerically indexed array. + * @param array $array the array to evaluate + * @return bool true if the array is a map, false otherwise + */ + public static function IsMap(array $array) { + return (bool) sizeof(array_filter(array_keys($array), 'is_string')); + } + + /** + * Converts a map (associative array) to a flat, numerically indexed array + * of method parameters. The method is used to determine the order of the + * parameters, and NULL values are using for missing parameters. + * @param array $map the map of parameter names to values + * @param ReflectionMethod $method the method to use for the mapping + * @return array the parameter values as a flat array + */ + public static function MapToMethodParameters($map, $method) { + $params = $method->getParameters(); + $result = array_fill(0, sizeof($params), NULL); + foreach ($params as $param) { + if (isset($map[$param->getName()])) { + $result[$param->getPosition()] = $map[$param->getName()]; + } + } + return $result; + } +} + diff --git a/src/Google/Api/Ads/Common/Util/MediaUtils.php b/src/Google/Api/Ads/Common/Util/MediaUtils.php new file mode 100755 index 000000000..4bc9d08d7 --- /dev/null +++ b/src/Google/Api/Ads/Common/Util/MediaUtils.php @@ -0,0 +1,65 @@ +path for + * use with the API where Data is needed. + * @param string $path the path of the file or URL of the asset + * @param boolean $useIncludePath use include path (optional) + * @param resource $context a context resource (optional) + * @return string the base64 encoded data of the file + * @see http://us2.php.net/file_get_contents + */ + public static function GetBase64Data($path, $useIncludePath = NULL, + $context = NULL) { + if ($useIncludePath) { + return file_get_contents($path, FILE_USE_INCLUDE_PATH, $context); + } else { + return file_get_contents($path, 0, $context); + } + } +} + diff --git a/src/Google/Api/Ads/Common/Util/OAuth2Handler.php b/src/Google/Api/Ads/Common/Util/OAuth2Handler.php new file mode 100755 index 000000000..f01d8e5d8 --- /dev/null +++ b/src/Google/Api/Ads/Common/Util/OAuth2Handler.php @@ -0,0 +1,282 @@ +server = $server; + $this->scope = $scope; + } + + /** + * Gets the authorization URL to redirect to. + * @param array $credentials the credentials, including client_id + * @param string $redirectUri optional callback URL + * @param boolean $offline whether or not to request offline access (aka a + * refresh token), false by default + * @param array $params optional array of additional parameters to include + * in the URL + * @return string an authorization URL to redirect the user to + * @see https://developers.google.com/accounts/docs/OAuth2WebServer#formingtheurl + */ + public function GetAuthorizationUrl(array $credentials, + $redirectUri = NULL, $offline = NULL, array $params = NULL) { + if (empty($credentials['client_id'])) { + throw new OAuth2Exception('client_id required.'); + } + $params = is_null($params) ? array() : $params; + $redirectUri = is_null($redirectUri) ? + self::DEFAULT_REDIRECT_URI : $redirectUri; + + $params = array_merge($params, array( + 'response_type' => 'code', + 'client_id' => $credentials['client_id'], + 'redirect_uri' => $redirectUri, + 'scope' => $this->scope, + 'access_type' => $offline ? 'offline' : 'online' + )); + return $this->GetAuthorizeEndpoint($params); + } + + /** + * Gets the access token for an authorized request token. + * @param array $credentials the credentials, including client_id and + * client_secret + * @param string $code the authorization code returned in the response + * @param string $redirectUri optional callback URL + * @return array the credentials passed in plus access_token, expires_in, + * timestamp and optionally refresh_token if offline mode was requested + * @see https://developers.google.com/accounts/docs/OAuth2WebServer#handlingtheresponse + */ + public abstract function GetAccessToken(array $credentials, $code, + $redirectUri = NULL); + + /** + * Get the valid access token or the token if needed and possible. + * @param array $credentials the credentials, including client_id and + * client_secret + * @return array the credentials passed in plus any refreshed credentials + * if they were refreshed + */ + public function GetOrRefreshAccessToken(array $credentials) { + if ($this->ShouldRefreshAccessToken($credentials) && + $this->CanRefreshAccessToken($credentials)) { + $credentials = $this->RefreshAccessToken($credentials); + } + return $credentials; + } + + /** + * Determines if the access token should be refreshed. + * @param array $credentials the credentials, including client_id and + * client_secret + * @return boolean TRUE if the Access Token should be refreshed + */ + public function ShouldRefreshAccessToken(array $credentials) { + return (!$this->IsAccessTokenValid($credentials) || + $this->IsAccessTokenExpiring($credentials)); + } + + /** + * Determines if the access token is still valid. If expiry information isn't + * available then this function will assume it is. + * @param array $credentials the credentials, including access_token, + * timestamp and expires_in + * @return boolean TRUE if the access token is valid or if expiring + * information isn't available + */ + public function IsAccessTokenValid(array $credentials) { + if (empty($credentials['access_token'])) { + return FALSE; + } + $expiry = $this->GetExpiryTimestamp($credentials); + if ($expiry) { + // Test if expiry hasn't passed. + return $expiry > time(); + } + + // No expiry information, assume valid. + return TRUE; + } + + /** + * Tests if the access token is about to expire or has expired. + * @param array $credentials the credentials, including access_token, + * timestamp and expires_in + * @return boolean TRUE if the token has expired + **/ + public function IsAccessTokenExpiring(array $credentials) { + $expiry = $this->GetExpiryTimestamp($credentials); + if ($expiry) { + // Subtract the refresh buffer. + $expiry -= self::REFRESH_BUFFER; + + // Test if expiry has passed. + return $expiry < time(); + } + + return FALSE; + } + + /** + * Get the expiry of a given credential, or false if none is found. + * @param array $credentials the credentials, including access_token, + * timestamp and expires_in + * @return int|boolean utc timestamp if exists or FALSE if none found + */ + private function GetExpiryTimestamp(array $credentials) { + if (empty($credentials['timestamp']) + || empty($credentials['expires_in'])) { + return FALSE; + } + + // Set to refreshed time. + $expires = intval($credentials['timestamp']); + + // Add the expiry value. + $expires += intval($credentials['expires_in']); + + return $expires; + } + + /** + * Determines if the access token can be refreshed. + * @param array $credentials the credentials + * @return boolean TRUE if the credentials can be refreshed + */ + public function CanRefreshAccessToken(array $credentials) { + return !empty($credentials['refresh_token']); + } + + /** + * Refreshes the access token. + * @param array $credentials the credentials, including the client_id, + * client_secret, refresh_token + * @return array the credentials + * @see https://developers.google.com/accounts/docs/OAuth2WebServer#offline + */ + public abstract function RefreshAccessToken(array $credentials); + + /** + * Formats OAuth2 credentials for use in a URL. + * For example: access_token=token. + * @param array $credentials the OAuth2 credentials + * @return string the credentials formatted for use in a URL + */ + public function FormatCredentialsForUrl($credentials) { + if (empty($credentials['access_token'])) { + throw new OAuth2Exception('access_token required.'); + } + $params = array('access_token' => $credentials['access_token']); + return http_build_query($params, NULL, '&'); + } + + /** + * Formats OAuth2 credentials for use in an HTTP header. + * For example: Bearer token + * @param array $credentials the OAuth2 credentials + * @return string the credentials formatted for use in an HTTP header + */ + public function FormatCredentialsForHeader($credentials) { + if (empty($credentials['access_token'])) { + throw new OAuth2Exception('access_token required.'); + } + $tokenType = !empty($credentials['token_type']) ? + $credentials['token_type'] : 'Bearer'; + return sprintf('%s %s', $tokenType, + urlencode($credentials['access_token'])); + } + + /** + * Gets the authorization endpoint using the given server and parameters. + * @param array $params the parameters to include in the endpoint + * @return string the authorization endpoint + */ + protected function GetAuthorizeEndpoint($params = NULL) { + return $this->GetEndpoint(self::AUTHORIZE_ENDPOINT, $params); + } + + /** + * Gets the access endpoint using the given server and parameters. + * @param array $params the parameters to include in the endpoint + * @return string the access endpoint + */ + protected function GetAccessEndpoint($params = NULL) { + return $this->GetEndpoint(self::ACCESS_ENDPOINT, $params); + } + + /** + * Gets an endpoint using the given server and parameters. + * @param string $endpoint the base endpoint URL to use + * @param array $params the parameters to include in the endpoint + * @return string the endpoint + */ + private function GetEndpoint($endpoint, $params = NULL) { + $endpoint = UrlUtils::AddParamsToUrl($endpoint, $params); + if (!empty($this->server)) { + $endpoint = UrlUtils::ReplaceServerInUrl($endpoint, $this->server); + } + return $endpoint; + } +} + +/** + * Exception thrown when OAuth2 flow fails. + * @package GoogleApiAdsCommon + * @subpackage Util + */ +class OAuth2Exception extends Exception { + public function __construct($message, $code = NULL) { + parent::__construct($message, $code); + } +} + diff --git a/src/Google/Api/Ads/Common/Util/OgnlUtils.php b/src/Google/Api/Ads/Common/Util/OgnlUtils.php new file mode 100755 index 000000000..1fd39d12c --- /dev/null +++ b/src/Google/Api/Ads/Common/Util/OgnlUtils.php @@ -0,0 +1,107 @@ + 0) { + $matches = array(); + if (preg_match(self::$OGNL_TOKEN_REGEX, $expression, $matches)) { + $token = array_shift($matches); + $expression = substr($expression, strlen($token)); + // Remove empty matches. + $matches = array_filter($matches, 'strlen'); + foreach ($matches as $field) { + if (is_object($context) && property_exists($context, $field)) { + $context = $context->$field; + } else if (is_array($context) && array_key_exists($field, $context)) { + $context = $context[$field]; + } else { + // Field doesn't evaluate in the context. + return NULL; + } + } + } else { + // Invalid expression. + return NULL; + } + } + return $context; + } + + /** + * Retrieves the operation index from an OGNL expression that references an + * operation. + * @param string $expression the OGNL expression + * @return int the operation index referenced, or NULL if no operation was + * references + */ + public static function GetOperationIndex($expression) { + $matches = array(); + if (preg_match(self::$OPERATION_INDEX_REGEX, $expression, $matches)) { + return $matches[1]; + } else { + return NULL; + } + } +} + diff --git a/src/Google/Api/Ads/Common/Util/SimpleOAuth2Handler.php b/src/Google/Api/Ads/Common/Util/SimpleOAuth2Handler.php new file mode 100755 index 000000000..9bb1dab65 --- /dev/null +++ b/src/Google/Api/Ads/Common/Util/SimpleOAuth2Handler.php @@ -0,0 +1,125 @@ +curlUtils = is_null($curlUtils) ? new CurlUtils() : $curlUtils; + } + + /** + * @see OAuth2Hanlder::GetAccessToken() + */ + public function GetAccessToken(array $credentials, $code, + $redirectUri = NULL) { + if (empty($credentials['client_id'])) { + throw new OAuth2Exception('client_id required.'); + } + if (empty($credentials['client_secret'])) { + throw new OAuth2Exception('client_secret required.'); + } + $redirectUri = !empty($redirectUri) ? + $redirectUri : self::DEFAULT_REDIRECT_URI; + $params = array( + 'code' => $code, + 'client_id' => $credentials['client_id'], + 'client_secret' => $credentials['client_secret'], + 'redirect_uri' => $redirectUri, + 'grant_type' => 'authorization_code' + ); + $endpoint = $this->GetAccessEndpoint(); + $response = $this->MakeRequest($endpoint, $params); + return array_merge($credentials, $response, array('timestamp' => time())); + } + + /** + * @see OAuth2Hanlder::RefreshAccessToken() + */ + public function RefreshAccessToken(array $credentials) { + if (empty($credentials['refresh_token'])) { + throw new OAuth2Exception('Offline access (refresh_token) required.'); + } + if (empty($credentials['client_id'])) { + throw new OAuth2Exception('client_id required.'); + } + if (empty($credentials['client_secret'])) { + throw new OAuth2Exception('client_secret required.'); + } + $params = array( + 'refresh_token' => $credentials['refresh_token'], + 'client_id' => $credentials['client_id'], + 'client_secret' => $credentials['client_secret'], + 'grant_type' => 'refresh_token' + ); + $endpoint = $this->GetAccessEndpoint(); + $response = $this->MakeRequest($endpoint, $params); + return array_merge($credentials, $response, array('timestamp' => time())); + } + + /** + * Makes an HTTP request to the given URL and extracts the returned OAuth2 + * response. + * @param string $url the URL to make the request to + * @param array $params the parameters to include in the POST body + * @return OAuthToken the returned token + */ + protected function MakeRequest($url, $params) { + $ch = $this->curlUtils->CreateSession($url); + $this->curlUtils->SetOpt($ch, CURLOPT_POSTFIELDS, $params); + $response = $this->curlUtils->Exec($ch); + $error = $this->curlUtils->Error($ch); + $httpCode = $this->curlUtils->GetInfo($ch, CURLINFO_HTTP_CODE); + $this->curlUtils->Close($ch); + + if (!empty($error)) { + throw new OAuth2Exception($error, $httpCode); + } + if ($httpCode != 200) { + throw new OAuth2Exception($response, $httpCode); + } + return json_decode($response, TRUE); + } +} diff --git a/src/Google/Api/Ads/Common/Util/SoapRequestXmlFixer.php b/src/Google/Api/Ads/Common/Util/SoapRequestXmlFixer.php new file mode 100755 index 000000000..2c4ce8037 --- /dev/null +++ b/src/Google/Api/Ads/Common/Util/SoapRequestXmlFixer.php @@ -0,0 +1,234 @@ +TRUE if xsi:types should be added + * to all complex type elements + * @param boolean $removeEmptyElements TRUE if all empty elements + * should be removed from the XML request + * @param boolean $replaceReferences TRUE if element references + * should be replaced with a copy of the element. + */ + public function __construct($addXsiTypes, $removeEmptyElements, + $replaceReferences) { + $this->addXsiTypes = $addXsiTypes; + $this->removeEmptyElements = $removeEmptyElements; + $this->replaceReferences = $replaceReferences; + } + + /** + * Fixes the XML based on the parameters specified in the constructor. + * @param string $request the raw request produced by the SOAP client + * @param array $arguments the arguments passed to the SOAP method + * @param array $headers the headers used in the request + * @return string the prepared request ready to be sent to the server + */ + public function FixXml($request, array $arguments, array $headers) { + $requestDom = XmlUtils::GetDomFromXml($request); + $xpath = new DOMXPath($requestDom); + + // Fix headers. + $headersDomNodes = $xpath->query( + "//*[local-name()='Envelope']/*[local-name()='Header']/*"); + $this->FixXmlNodes($headersDomNodes, $headers, $xpath); + + // Fix body. + $argumentsDomNodes = $xpath->query( + "//*[local-name()='Envelope']/*[local-name()='Body']/*"); + $this->FixXmlNodes($argumentsDomNodes, $arguments, $xpath); + + // Remove empty headers. + if ($this->removeEmptyElements) { + $this->RemoveEmptyHeaderElements($xpath); + } + + // Remove id attributes. + if ($this->replaceReferences) { + $this->RemoveIdAttributes($xpath); + } + + return $requestDom->saveXML(); + } + + /** + * Fix a list of nodes corresponding to an array of objects. + * @param DOMNodeList $nodeList the node list matching $objects + * @param array $objects the objects array matching $nodeList + * @param DOMXPath $xpath the xpath object representing the DOM + */ + private function FixXmlNodes(DOMNodeList $nodeList, array $objects, + DOMXPath $xpath) { + if ($nodeList->length == sizeof($objects)) { + $i = 0; + foreach ($objects as $object) { + $this->FixXmlNode($nodeList->item($i), $object, $xpath); + $i++; + } + } + } + + /** + * Fix a node corresponding to an objects. + * @param DOMNode $node the node matching $object + * @param mixed $object the object matching $node + * @param DOMXPath $xpath the xpath object representing the DOM + */ + private function FixXmlNode(DOMNode $node, $object, DOMXPath $xpath) { + if ($object instanceof SoapHeader) { + $this->FixXmlNode($node, $object->data, $xpath); + } elseif ($object instanceof SoapVar) { + $this->FixXmlNode($node, $object->enc_value, $xpath); + } else { + if ($this->addXsiTypes && is_object($object)) { + $this->AddXsiType($node, $object); + } + + // Remove empty elements. + if ($this->removeEmptyElements && !isset($object)) { + $node->parentNode->removeChild($node); + } + + // Replace element references. + if ($this->replaceReferences && $node->hasAttribute('href')) { + $this->ReplaceElementReference($node, $xpath); + } + + if (is_object($object)) { + foreach (get_object_vars($object) as $varName => $varValue) { + $nodeList = + $xpath->query("*[local-name() = '" . $varName . "']", $node); + + if (is_array($varValue)) { + $this->FixXmlNodes($nodeList, $varValue, $xpath); + } else if ($nodeList->length == 1) { + $this->FixXmlNode($nodeList->item(0), $varValue, $xpath); + } + } + } + } + } + + /** + * Adds the xsi:type to the DOMNode generated from the corresponding object. + * @param DOMNode $domNode the DOM node corresponding to the object + * @param $object the object used to determine the xsi:type + * @access private + */ + private function AddXsiType(DOMNode $domNode, $object) { + $xsiType = $domNode->getAttributeNS(self::$XSI_NAMESPACE, 'xsi:type'); + if (method_exists($object, 'getXsiTypeName') + && method_exists($object, 'getNamespace') + && empty($xsiType)) { + $xsiTypeName = $object->getXsiTypeName(); + if (isset($xsiTypeName) && $xsiTypeName != '') { + $prefix = $domNode->lookupPrefix($object->getNamespace()); + $domNode->setAttributeNS(self::$XSI_NAMESPACE, 'xsi:type', + (isset($prefix) ? $prefix . ':' : '') . $xsiTypeName); + } + } + } + + /** + * Replaces an element reference with a copy of the element it references. + * @param DOMElement $elementReference the element reference to replace + * @param DOMXPath $xpath the xpath object representing the DOM + * @access private + */ + private function ReplaceElementReference(DOMElement $elementReference, + DOMXPath $xpath) { + $href = $elementReference->getAttribute('href'); + if (version_compare(PHP_VERSION, '5.2.2', '>=') + && version_compare(PHP_VERSION, '5.2.4', '<')) { + // These versions have a bug where href is generated without the # symbol. + $href = '#' . $href; + } + $id = substr($href, 1); + $referencedElements = $xpath->query('//*[@id="' . $id . '"]'); + if ($referencedElements->length > 0) { + $referencedElement = $referencedElements->item(0); + for ($i = 0; $i < $referencedElement->childNodes->length; $i++) { + $childNode = $referencedElement->childNodes->item($i); + $elementReference->appendChild($childNode->cloneNode(true)); + } + $elementReference->removeAttribute('href'); + } + } + + /** + * Removed id attributes leftover after reference replacement. + * @param DOMXPath $xpath the xpath object representing the DOM + * @access private + */ + private function RemoveIdAttributes(DOMXPath $xpath) { + $elements = $xpath->query('//*[@id]'); + for ($i = 0; $i < $elements->length; $i++) { + $element = $elements->item($i); + $element->removeAttribute('id'); + } + } + + /** + * Removes empty header elements from the request. + * @param DOMXPath $xpath the xpath object representing the DOM + * @access private + */ + private function RemoveEmptyHeaderElements(DOMXPath $xpath) { + $requestHeaderDom = $xpath->query( + "//*[local-name()='Envelope']/*[local-name()='Header']" + . "/*[local-name()='RequestHeader']")->item(0); + + $childNodes = $requestHeaderDom->childNodes; + + foreach ($childNodes as $childNode) { + if ($childNode->nodeValue == NULL) { + $requestHeaderDom->removeChild($childNode); + } + } + } +} + diff --git a/src/Google/Api/Ads/Common/Util/UrlUtils.php b/src/Google/Api/Ads/Common/Util/UrlUtils.php new file mode 100755 index 000000000..e04009f2d --- /dev/null +++ b/src/Google/Api/Ads/Common/Util/UrlUtils.php @@ -0,0 +1,79 @@ +$xml. + * @param string $xml the XML to create a DOMDocument from + * @return DOMDocument the DOMDocument of the XML + * @throws DOMException if the DOM could not be loaded + */ + public static function GetDomFromXml($xml) { + set_error_handler(array('XmlUtils', 'HandleXmlError')); + $dom = new DOMDocument(); + $dom->loadXML($xml, + LIBXML_DTDLOAD | LIBXML_DTDATTR | LIBXML_NOENT | LIBXML_XINCLUDE); + restore_error_handler(); + return $dom; + } + + /** + * Gets the XML represenation of the document. + * @param DOMDocument $document the document to convert + * @return string the XML represenation of the document + */ + public static function GetXmlFromDom($document) { + return trim($document->saveXml()); + } + + /** + * Returns a pretty printed XML. If the XML cannot be loaded a string + * stripped of any newlines is returned. + * @param string $xml the XML to pretty print + * @return string a pretty printed string + */ + public static function PrettyPrint($xml) { + try { + $dom = self::GetDomFromXml($xml); + $dom->formatOutput = true; + return self::GetXmlFromDom($dom); + } catch (DOMException $e) { + restore_error_handler(); + return str_replace(array("\r\n", "\n", "\r"), '', $xml); + } + } + + /** + * Converts a DOMDocument to a stdClass object, where each element under + * the root node is a field. Atribute values are ignored. + * @param DOMDocument $document the document to convert + * @returns Object the converted object + */ + public static function ConvertDocumentToObject($document) { + return self::ConvertElementToObject($document->documentElement); + } + + /** + * Converts a DOMElement to a stdClass object, where each child element is + * a field. Attribute values are ignored. + * @param DOMElement $element the element to convert + * @returns Object the converted object + */ + private static function ConvertElementToObject($element) { + $result = array(); + if ($element->hasChildNodes()) { + $numChildNodes = $element->childNodes->length; + for ($i = 0; $i < $numChildNodes; $i++) { + $childNode = $element->childNodes->item($i); + if ($childNode instanceof DOMElement) { + $name = $childNode->tagName; + $value = self::ConvertElementToObject($childNode); + if (isset($result[$name])) { + if (!is_array($result[$name])) { + $result[$name] = array($result[$name]); + } + $result[$name][] = $value; + } else { + $result[$name] = $value; + } + } + } + } + if (sizeof($result) > 0) { + return (Object) $result; + } else { + return self::ConvertNodeValueToObject($element->nodeValue); + } + } + + /** + * Converts a node value to a PHP value of the appropriate type. + * @param string $value the value of the node + * @return mixed the PHP value as the appropriate type + */ + private static function ConvertNodeValueToObject($value) { + if (is_numeric($value)) { + if (strcmp(strval(intval($value)), $value) === 0) { + return intval($value); + } elseif (strcmp(sprintf('%.0f', floatval($value)), $value) === 0) { + return floatval($value); + } else { + return $value; + } + } else if (strtolower($value) == 'true' || strtolower($value) == 'false') { + return filter_var($value, FILTER_VALIDATE_BOOLEAN); + } else { + return $value; + } + } + + /** + * Converts an object to a DOMDocument. The root element name is passed in as + * a parameter, and each field of the object becomes a child element. Array + * values are represented by multiples instances of that element. Methods on + * the object are ignored. There is no support for XML attributes. + * @param Object $object the object to serialize + * @param string $rootElementName the name of the root element + * @return DOMDocument the document representing the object + */ + public static function ConvertObjectToDocument($object, $rootElementName) { + $document = new DOMDocument(); + $document->appendChild( + self::ConvertObjectToElement($object, $rootElementName, $document)); + return $document; + } + + /** + * Converts an object to an DOMElement. + * @param Object $object the object to serialize + * @param string $elementName the name of the element to serialize + * @param DOMDocument $document the document that the element will be added to + * @return DOMElement the element representing the object + */ + private static function ConvertObjectToElement($object, $elementName, + $document) { + if (!isset($object)) { + return NULL; + } + $element = $document->createElement($elementName); + $children = array(); + if (is_array($object) && MapUtils::IsMap($object)) { + $object = (Object) $object; + } + if (is_object($object)) { + foreach(get_object_vars($object) as $field => $value) { + if (is_array($value) && !MapUtils::IsMap($value)) { + foreach($value as $item) { + $children[] = + self::ConvertObjectToElement($item, $field, $document); + } + } else { + $children[] = + self::ConvertObjectToElement($value, $field, $document); + } + } + foreach ($children as $child) { + if (isset($child)) { + $element->appendChild($child); + } + } + } else { + $element->nodeValue = self::ConvertObjectToNodeValue($object); + } + return $element; + } + + /** + * Converts a PHP value to a string for use in an XML node value. + * @param mixed $object the PHP value + * @returns string the string value of the object + */ + private static function ConvertObjectToNodeValue($object) { + if (is_float($object)) { + if (floatval(strval($object)) == $object) { + return strval($object); + } else { + return sprintf('%.0f', $object); + } + } else if (is_bool($object)) { + return $object ? 'true': 'false'; + } else { + return strval($object); + } + } + + /** + * Caputures the warnings thrown by the loadXML function to create a proper + * DOMException. + * @param string $errno contains the level of the error raised, as an integer + * @param string $errstr contains the error message, as a string + * @param string $errfile contains the filename that the error was raised in, + * as a string + * @param integer $errline contains the line number the error was raised at, + * as an integer + * @return boolean FALSE if the normal error handler should + * continue + */ + public static function HandleXmlError($errno, $errstr, $errfile, $errline) { + if ($errno == E_WARNING + && substr_count($errstr, 'DOMDocument::loadXML()') > 0) { + throw new DOMException($errstr); + } else { + return FALSE; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/Lib/DfpSoapClient.php b/src/Google/Api/Ads/Dfp/Lib/DfpSoapClient.php new file mode 100755 index 000000000..b9e666619 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Lib/DfpSoapClient.php @@ -0,0 +1,136 @@ +NULL if working in + * non-WSDL mode + * @param array $options the SOAP client options + * @param AdsUser $user the user which is responsible for this client + * @param string $serviceName the name of the service which is making this + * call + * @param string $serviceNamespace the namespace of the service + */ + public function __construct($wsdl, array $options, AdsUser $user, + $serviceName, $serviceNamespace) { + parent::__construct($wsdl, $options, $user, $serviceName, + $serviceNamespace); + } + + /** + * Generates the SOAP header for the client. + * @return SoapHeader the instantiated SoapHeader ready to set + * @access protected + */ + protected function GenerateSoapHeader() { + $headerObject = $this->Create('SoapRequestHeader'); + foreach (get_object_vars($headerObject) as $var => $value) { + switch ($var) { + case 'authentication': + $oAuth2Info = $this->user->GetOAuth2Info(); + $oAuth2Handler = $this->user->GetOAuth2Handler(); + if (!empty($oAuth2Info)) { + $oAuth2Info = $oAuth2Handler->GetOrRefreshAccessToken($oAuth2Info); + $this->user->SetOAuth2Info($oAuth2Info); + if ($oAuth2Handler->IsAccessTokenValid($oAuth2Info)) { + $authentication = $this->Create('OAuth'); + $authentication->parameters = + $oAuth2Handler->FormatCredentialsForHeader($oAuth2Info); + } + } else { + $authentication = $this->Create('ClientLogin'); + $authentication->token = $this->GetHeaderValue('authToken'); + } + $headerObject->$var = $authentication; + break; + default: + $headerObject->$var = $this->GetHeaderValue($var); + } + } + return new SoapHeader($this->serviceNamespace, 'RequestHeader', + $headerObject, FALSE); + } + + /** + * Removes the authentication information 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 + */ + protected function RemoveSensitiveInfo($request) { + $tags = array('authToken', 'authentication'); + $regexFormat = '/(<(?:[^:]+:)?%s(?:\s[^>]*)?>).*(<\/(?:[^:]+:)?%s\s*>)/sU'; + $result = $request; + foreach ($tags as $tag) { + $regex = sprintf($regexFormat, $tag, $tag); + $result = preg_replace($regex, '\1*****\2', $result); + } + return isset($result) ? $result : $request; + } + + /** + * Generates the request info message containing: + *

        + *
      • email
      • + *
      • service
      • + *
      • method
      • + *
      • responseTime
      • + *
      • requestId
      • + *
      • server
      • + *
      • isFault
      • + *
      • faultMessage
      • + *
      + * @return string the request info message to log + * @access protected + */ + 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(); + } +} + diff --git a/src/Google/Api/Ads/Dfp/Lib/DfpSoapClientFactory.php b/src/Google/Api/Ads/Dfp/Lib/DfpSoapClientFactory.php new file mode 100755 index 000000000..5a0412f32 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Lib/DfpSoapClientFactory.php @@ -0,0 +1,62 @@ +GetVersion(), $serviceName . '.php')); + } +} + diff --git a/src/Google/Api/Ads/Dfp/Lib/DfpUser.php b/src/Google/Api/Ads/Dfp/Lib/DfpUser.php new file mode 100755 index 000000000..bfa08eeff --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Lib/DfpUser.php @@ -0,0 +1,368 @@ +The DfpUser class can be configured in one of two ways: + *
        + *
      1. Using an authenitcation INI file
      2. + *
      3. Using supplied credentials
      4. + *

      + *

      If an authentication INI file is provided and successfully loaded, those + * values will be used unless a corresponding parameter overwrites it. + * If the authentication INI file is not provided (e.g. it is NULL) + * the class will attempt to load the default authentication file at the path + * of "../auth.ini" relative to this file's directory. Any corresponding + * parameter, which is not NULL will however, overwrite any + * parameter loaded from the default INI.

      + *

      Likewise, if a custom settings INI file is not provided, the default + * settings INI file will be loaded from the path of "../settings.ini" + * relative to this file's directory.

      + * @param string $authenticationIniPath the absolute path to the + * 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 + * @param string $networkCode the network code the user belongs to + * (optional header). Can be left NULL if the user only belongs + * to one network. Will overwrite the networkCode entry in any INI + * 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) { + parent::__construct(); + + $buildIniDfp = parse_ini_file(dirname(__FILE__) . '/build.ini', + false); + $buildIniCommon = parse_ini_file(dirname(__FILE__) . + '/../../Common/Lib/build.ini', false); + $this->libName = $buildIniDfp['LIB_NAME']; + $this->libVersion = $buildIniCommon['LIB_VERSION']; + + $apiProps = ApiPropertiesUtils::ParseApiPropertiesFile(dirname(__FILE__) . + '/api.properties'); + $versions = explode(',', $apiProps['api.versions']); + $this->defaultVersion = $versions[count($versions) - 1]; + $this->defaultServer = $apiProps['api.server']; + + if (isset($authenticationIniPath)) { + $authenticationIni = + parse_ini_file(realpath($authenticationIniPath), TRUE); + } else { + $authenticationIni = + 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); + $this->SetNetworkCode($networkCode); + + if (!isset($settingsIniPath)) { + $settingsIniPath = dirname(__FILE__) . '/../settings.ini'; + } + + $this->loadSettings($settingsIniPath, + $this->defaultVersion, + $this->defaultServer, + getcwd(), dirname(__FILE__)); + } + + /** + * Gets the service by its service name. + * @param $serviceName the service name + * @param string $version the version of the service to get. If + * NULL, then the default version will be used + * @param string $server the server to make the request to. If + * NULL, then the default server will be used + * @param SoapClientFactory $serviceFactory the factory to create the client. + * If NULL, then the built-in SOAP client factory will be used + * @return SoapClient the instantiated service + * @throws ServiceException if an error occurred when getting the service + */ + public function GetService($serviceName, $version = NULL, $server = NULL, + SoapClientFactory $serviceFactory = NULL) { + $this->ValidateUser(); + if (!isset($serviceFactory)) { + if (!isset($version)) { + $version = $this->GetDefaultVersion(); + } + + if (!isset($server)) { + $server = $this->GetDefaultServer(); + } + + $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 + */ + public function GetNetworkCode() { + return $this->GetHeaderValue('networkCode'); + } + + /** + * Sets the code for the network that this user belongs to. + * @param string $networkCode the network code + */ + public function SetNetworkCode($networkCode) { + $this->SetHeaderValue('networkCode', $networkCode); + } + + /** + * Gets the raw application name for this user. + * @return string The raw application name. + */ + public function GetApplicationName() { + return $this->applicationName; + } + + /** + * Sets the raw application name for this user. + * @param string $applicationName The raw application name. + */ + public function SetApplicationName($applicationName) { + $this->applicationName = $applicationName; + } + + /** + * @see AdsUser::GetUserAgentHeaderName() + */ + public function GetUserAgentHeaderName() { + return self::USER_AGENT_HEADER_NAME; + } + + /** + * @see AdsUser::GetClientLibraryNameAndVersion() + */ + 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 + * @return mixed the configured OAuth2Handler class + */ + public function GetDefaultOAuth2Handler($className = NULL) { + $className = !empty($className) ? $className : self::OAUTH2_HANDLER_CLASS; + return new $className($this->GetAuthServer(), self::OAUTH2_SCOPE); + } + + /** + * Validates the user and throws a validation error if there are any errors. + * @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(); + } + + if ($this->GetApplicationName() === NULL + || trim($this->GetApplicationName()) === '' + || strpos($this->GetApplicationName(), + self::DEFAULT_APPLICATION_NAME) !== false) { + throw new ValidationException('applicationName', NULL, + sprintf("The property applicationName is required and cannot be " + . "NULL, the empty string, or the default [%s]", + self::DEFAULT_APPLICATION_NAME)); + } + } + + /** + * Handles calls to undefined methods. + * @param string $name the name of the method being called + * @param array $arguments the arguments passed to the method + * @return mixed the result of the correct method call, or nothing if there + * is no correct method + */ + public function __call($name, $arguments) { + // Handle calls to legacy Get*Service() methods. + if (preg_match('/^Get(\w+Service)$/i', $name, $matches)) { + $serviceName = $matches[1]; + array_unshift($arguments, $serviceName); + return call_user_func_array(array($this, 'GetService'), $arguments); + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/Lib/api.properties b/src/Google/Api/Ads/Dfp/Lib/api.properties new file mode 100755 index 000000000..a03c11042 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Lib/api.properties @@ -0,0 +1,285 @@ +;; Library +lib.product=Dfp +lib.package=GoogleApiAdsDfp + +;; WSDL2PHP +;; Optionally specify a proxy to use when processing the WSDLs in the format +;; tcp://host:port. +wsdl2php.proxy= +;; If enabled, class names (but not service names) will be prefixed with the +;; package name. Ex) GoogleApiAdsAdWords_Campaign +wsdl2php.enablePseudoNamespaces=False +;; Class map to be used if pseudo-namespace support is not enabled, to work +;; around common conflicts, in JSON format. +wsdl2php.conflictClassmap={"DateTime":"DfpDateTime", "Location":"DfpLocation", "OAuth":"DfpOAuth"} +;; Other class fixes. +wsdl2php.classmap= +wsdl2php.skipClassNameCheckTypes= + +;; API +api.server=https://www.google.com +api.versions=v201208,v201211,v201302,v201306,v201308,v201311,v201403 + +;; v201208 +api.versions.v201208.services=AudienceSegmentService,CompanyService,ContentService,CreativeService,CreativeSetService,CreativeTemplateService,CustomFieldService,CustomTargetingService,ForecastService,InventoryService,LabelService,LineItemService,LineItemCreativeAssociationService,NetworkService,OrderService,PlacementService,PublisherQueryLanguageService,ReportService,SuggestedAdUnitService,TeamService,ThirdPartySlotService,UserService,UserTeamAssociationService +api.versions.v201208.services.AudienceSegmentService.wsdl=${api.server}/apis/ads/publisher/v201208/AudienceSegmentService?wsdl +api.versions.v201208.services.CompanyService.wsdl=${api.server}/apis/ads/publisher/v201208/CompanyService?wsdl +api.versions.v201208.services.ContentService.wsdl=${api.server}/apis/ads/publisher/v201208/ContentService?wsdl +api.versions.v201208.services.CreativeService.wsdl=${api.server}/apis/ads/publisher/v201208/CreativeService?wsdl +api.versions.v201208.services.CreativeSetService.wsdl=${api.server}/apis/ads/publisher/v201208/CreativeSetService?wsdl +api.versions.v201208.services.CreativeTemplateService.wsdl=${api.server}/apis/ads/publisher/v201208/CreativeTemplateService?wsdl +api.versions.v201208.services.CustomFieldService.wsdl=${api.server}/apis/ads/publisher/v201208/CustomFieldService?wsdl +api.versions.v201208.services.CustomTargetingService.wsdl=${api.server}/apis/ads/publisher/v201208/CustomTargetingService?wsdl +api.versions.v201208.services.ForecastService.wsdl=${api.server}/apis/ads/publisher/v201208/ForecastService?wsdl +api.versions.v201208.services.InventoryService.wsdl=${api.server}/apis/ads/publisher/v201208/InventoryService?wsdl +api.versions.v201208.services.LabelService.wsdl=${api.server}/apis/ads/publisher/v201208/LabelService?wsdl +api.versions.v201208.services.LineItemService.wsdl=${api.server}/apis/ads/publisher/v201208/LineItemService?wsdl +api.versions.v201208.services.LineItemCreativeAssociationService.wsdl=${api.server}/apis/ads/publisher/v201208/LineItemCreativeAssociationService?wsdl +api.versions.v201208.services.NetworkService.wsdl=${api.server}/apis/ads/publisher/v201208/NetworkService?wsdl +api.versions.v201208.services.OrderService.wsdl=${api.server}/apis/ads/publisher/v201208/OrderService?wsdl +api.versions.v201208.services.PlacementService.wsdl=${api.server}/apis/ads/publisher/v201208/PlacementService?wsdl +api.versions.v201208.services.PublisherQueryLanguageService.wsdl=${api.server}/apis/ads/publisher/v201208/PublisherQueryLanguageService?wsdl +api.versions.v201208.services.ReportService.wsdl=${api.server}/apis/ads/publisher/v201208/ReportService?wsdl +api.versions.v201208.services.SuggestedAdUnitService.wsdl=${api.server}/apis/ads/publisher/v201208/SuggestedAdUnitService?wsdl +api.versions.v201208.services.TeamService.wsdl=${api.server}/apis/ads/publisher/v201208/TeamService?wsdl +api.versions.v201208.services.ThirdPartySlotService.wsdl=${api.server}/apis/ads/publisher/v201208/ThirdPartySlotService?wsdl +api.versions.v201208.services.UserService.wsdl=${api.server}/apis/ads/publisher/v201208/UserService?wsdl +api.versions.v201208.services.UserTeamAssociationService.wsdl=${api.server}/apis/ads/publisher/v201208/UserTeamAssociationService?wsdl + +;; v201211 +api.versions.v201211.services=AudienceSegmentService,CompanyService,ContentService,CreativeService,CreativeSetService,CreativeTemplateService,CreativeWrapperService,CustomFieldService,CustomTargetingService,ForecastService,InventoryService,LabelService,LineItemService,LineItemCreativeAssociationService,NetworkService,OrderService,PlacementService,PublisherQueryLanguageService,ReportService,SuggestedAdUnitService,TeamService,ThirdPartySlotService,UserService,UserTeamAssociationService +api.versions.v201211.services.AudienceSegmentService.wsdl=${api.server}/apis/ads/publisher/v201211/AudienceSegmentService?wsdl +api.versions.v201211.services.CompanyService.wsdl=${api.server}/apis/ads/publisher/v201211/CompanyService?wsdl +api.versions.v201211.services.ContentService.wsdl=${api.server}/apis/ads/publisher/v201211/ContentService?wsdl +api.versions.v201211.services.CreativeService.wsdl=${api.server}/apis/ads/publisher/v201211/CreativeService?wsdl +api.versions.v201211.services.CreativeSetService.wsdl=${api.server}/apis/ads/publisher/v201211/CreativeSetService?wsdl +api.versions.v201211.services.CreativeTemplateService.wsdl=${api.server}/apis/ads/publisher/v201211/CreativeTemplateService?wsdl +api.versions.v201211.services.CreativeWrapperService.wsdl=${api.server}/apis/ads/publisher/v201211/CreativeWrapperService?wsdl +api.versions.v201211.services.CustomFieldService.wsdl=${api.server}/apis/ads/publisher/v201211/CustomFieldService?wsdl +api.versions.v201211.services.CustomTargetingService.wsdl=${api.server}/apis/ads/publisher/v201211/CustomTargetingService?wsdl +api.versions.v201211.services.ForecastService.wsdl=${api.server}/apis/ads/publisher/v201211/ForecastService?wsdl +api.versions.v201211.services.InventoryService.wsdl=${api.server}/apis/ads/publisher/v201211/InventoryService?wsdl +api.versions.v201211.services.LabelService.wsdl=${api.server}/apis/ads/publisher/v201211/LabelService?wsdl +api.versions.v201211.services.LineItemService.wsdl=${api.server}/apis/ads/publisher/v201211/LineItemService?wsdl +api.versions.v201211.services.LineItemCreativeAssociationService.wsdl=${api.server}/apis/ads/publisher/v201211/LineItemCreativeAssociationService?wsdl +api.versions.v201211.services.NetworkService.wsdl=${api.server}/apis/ads/publisher/v201211/NetworkService?wsdl +api.versions.v201211.services.OrderService.wsdl=${api.server}/apis/ads/publisher/v201211/OrderService?wsdl +api.versions.v201211.services.PlacementService.wsdl=${api.server}/apis/ads/publisher/v201211/PlacementService?wsdl +api.versions.v201211.services.PublisherQueryLanguageService.wsdl=${api.server}/apis/ads/publisher/v201211/PublisherQueryLanguageService?wsdl +api.versions.v201211.services.ReportService.wsdl=${api.server}/apis/ads/publisher/v201211/ReportService?wsdl +api.versions.v201211.services.SuggestedAdUnitService.wsdl=${api.server}/apis/ads/publisher/v201211/SuggestedAdUnitService?wsdl +api.versions.v201211.services.TeamService.wsdl=${api.server}/apis/ads/publisher/v201211/TeamService?wsdl +api.versions.v201211.services.ThirdPartySlotService.wsdl=${api.server}/apis/ads/publisher/v201211/ThirdPartySlotService?wsdl +api.versions.v201211.services.UserService.wsdl=${api.server}/apis/ads/publisher/v201211/UserService?wsdl +api.versions.v201211.services.UserTeamAssociationService.wsdl=${api.server}/apis/ads/publisher/v201211/UserTeamAssociationService?wsdl + +;; v201302 +api.versions.v201302.services=ActivityService,ActivityGroupService,AdRuleService,AudienceSegmentService,CompanyService,ContactService,ContentService,ContentBundleService,CreativeService,CreativeSetService,CreativeTemplateService,CreativeWrapperService,CustomFieldService,CustomTargetingService,ForecastService,InventoryService,LabelService,LineItemService,LineItemCreativeAssociationService,NetworkService,OrderService,PlacementService,PublisherQueryLanguageService,ReportService,SuggestedAdUnitService,TeamService,ThirdPartySlotService,UserService,UserTeamAssociationService +api.versions.v201302.services.ActivityService.wsdl=${api.server}/apis/ads/publisher/v201302/ActivityService?wsdl +api.versions.v201302.services.ActivityGroupService.wsdl=${api.server}/apis/ads/publisher/v201302/ActivityGroupService?wsdl +api.versions.v201302.services.AdRuleService.wsdl=${api.server}/apis/ads/publisher/v201302/AdRuleService?wsdl +api.versions.v201302.services.AudienceSegmentService.wsdl=${api.server}/apis/ads/publisher/v201302/AudienceSegmentService?wsdl +api.versions.v201302.services.CompanyService.wsdl=${api.server}/apis/ads/publisher/v201302/CompanyService?wsdl +api.versions.v201302.services.ContactService.wsdl=${api.server}/apis/ads/publisher/v201302/ContactService?wsdl +api.versions.v201302.services.ContentService.wsdl=${api.server}/apis/ads/publisher/v201302/ContentService?wsdl +api.versions.v201302.services.ContentBundleService.wsdl=${api.server}/apis/ads/publisher/v201302/ContentBundleService?wsdl +api.versions.v201302.services.CreativeService.wsdl=${api.server}/apis/ads/publisher/v201302/CreativeService?wsdl +api.versions.v201302.services.CreativeSetService.wsdl=${api.server}/apis/ads/publisher/v201302/CreativeSetService?wsdl +api.versions.v201302.services.CreativeTemplateService.wsdl=${api.server}/apis/ads/publisher/v201302/CreativeTemplateService?wsdl +api.versions.v201302.services.CreativeWrapperService.wsdl=${api.server}/apis/ads/publisher/v201302/CreativeWrapperService?wsdl +api.versions.v201302.services.CustomFieldService.wsdl=${api.server}/apis/ads/publisher/v201302/CustomFieldService?wsdl +api.versions.v201302.services.CustomTargetingService.wsdl=${api.server}/apis/ads/publisher/v201302/CustomTargetingService?wsdl +api.versions.v201302.services.ForecastService.wsdl=${api.server}/apis/ads/publisher/v201302/ForecastService?wsdl +api.versions.v201302.services.InventoryService.wsdl=${api.server}/apis/ads/publisher/v201302/InventoryService?wsdl +api.versions.v201302.services.LabelService.wsdl=${api.server}/apis/ads/publisher/v201302/LabelService?wsdl +api.versions.v201302.services.LineItemService.wsdl=${api.server}/apis/ads/publisher/v201302/LineItemService?wsdl +api.versions.v201302.services.LineItemCreativeAssociationService.wsdl=${api.server}/apis/ads/publisher/v201302/LineItemCreativeAssociationService?wsdl +api.versions.v201302.services.NetworkService.wsdl=${api.server}/apis/ads/publisher/v201302/NetworkService?wsdl +api.versions.v201302.services.OrderService.wsdl=${api.server}/apis/ads/publisher/v201302/OrderService?wsdl +api.versions.v201302.services.PlacementService.wsdl=${api.server}/apis/ads/publisher/v201302/PlacementService?wsdl +api.versions.v201302.services.PublisherQueryLanguageService.wsdl=${api.server}/apis/ads/publisher/v201302/PublisherQueryLanguageService?wsdl +api.versions.v201302.services.ReportService.wsdl=${api.server}/apis/ads/publisher/v201302/ReportService?wsdl +api.versions.v201302.services.SuggestedAdUnitService.wsdl=${api.server}/apis/ads/publisher/v201302/SuggestedAdUnitService?wsdl +api.versions.v201302.services.TeamService.wsdl=${api.server}/apis/ads/publisher/v201302/TeamService?wsdl +api.versions.v201302.services.ThirdPartySlotService.wsdl=${api.server}/apis/ads/publisher/v201302/ThirdPartySlotService?wsdl +api.versions.v201302.services.UserService.wsdl=${api.server}/apis/ads/publisher/v201302/UserService?wsdl +api.versions.v201302.services.UserTeamAssociationService.wsdl=${api.server}/apis/ads/publisher/v201302/UserTeamAssociationService?wsdl + +;; 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 + +;; 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 +api.versions.v201403.services.ActivityService.wsdl=${api.server}/apis/ads/publisher/v201403/ActivityService?wsdl +api.versions.v201403.services.ActivityGroupService.wsdl=${api.server}/apis/ads/publisher/v201403/ActivityGroupService?wsdl +api.versions.v201403.services.AdRuleService.wsdl=${api.server}/apis/ads/publisher/v201403/AdRuleService?wsdl +api.versions.v201403.services.AudienceSegmentService.wsdl=${api.server}/apis/ads/publisher/v201403/AudienceSegmentService?wsdl +api.versions.v201403.services.BaseRateService.wsdl=${api.server}/apis/ads/publisher/v201403/BaseRateService?wsdl +api.versions.v201403.services.CompanyService.wsdl=${api.server}/apis/ads/publisher/v201403/CompanyService?wsdl +api.versions.v201403.services.ContactService.wsdl=${api.server}/apis/ads/publisher/v201403/ContactService?wsdl +api.versions.v201403.services.ContentService.wsdl=${api.server}/apis/ads/publisher/v201403/ContentService?wsdl +api.versions.v201403.services.ContentBundleService.wsdl=${api.server}/apis/ads/publisher/v201403/ContentBundleService?wsdl +api.versions.v201403.services.ContentMetadataKeyHierarchyService.wsdl=${api.server}/apis/ads/publisher/v201403/ContentMetadataKeyHierarchyService?wsdl +api.versions.v201403.services.CreativeService.wsdl=${api.server}/apis/ads/publisher/v201403/CreativeService?wsdl +api.versions.v201403.services.CreativeSetService.wsdl=${api.server}/apis/ads/publisher/v201403/CreativeSetService?wsdl +api.versions.v201403.services.CreativeTemplateService.wsdl=${api.server}/apis/ads/publisher/v201403/CreativeTemplateService?wsdl +api.versions.v201403.services.CreativeWrapperService.wsdl=${api.server}/apis/ads/publisher/v201403/CreativeWrapperService?wsdl +api.versions.v201403.services.CustomFieldService.wsdl=${api.server}/apis/ads/publisher/v201403/CustomFieldService?wsdl +api.versions.v201403.services.CustomTargetingService.wsdl=${api.server}/apis/ads/publisher/v201403/CustomTargetingService?wsdl +api.versions.v201403.services.ExchangeRateService.wsdl=${api.server}/apis/ads/publisher/v201403/ExchangeRateService?wsdl +api.versions.v201403.services.ForecastService.wsdl=${api.server}/apis/ads/publisher/v201403/ForecastService?wsdl +api.versions.v201403.services.InventoryService.wsdl=${api.server}/apis/ads/publisher/v201403/InventoryService?wsdl +api.versions.v201403.services.LabelService.wsdl=${api.server}/apis/ads/publisher/v201403/LabelService?wsdl +api.versions.v201403.services.LineItemService.wsdl=${api.server}/apis/ads/publisher/v201403/LineItemService?wsdl +api.versions.v201403.services.LineItemCreativeAssociationService.wsdl=${api.server}/apis/ads/publisher/v201403/LineItemCreativeAssociationService?wsdl +api.versions.v201403.services.LineItemTemplateService.wsdl=${api.server}/apis/ads/publisher/v201403/LineItemTemplateService?wsdl +api.versions.v201403.services.LiveStreamEventService.wsdl=${api.server}/apis/ads/publisher/v201403/LiveStreamEventService?wsdl +api.versions.v201403.services.NetworkService.wsdl=${api.server}/apis/ads/publisher/v201403/NetworkService?wsdl +api.versions.v201403.services.OrderService.wsdl=${api.server}/apis/ads/publisher/v201403/OrderService?wsdl +api.versions.v201403.services.PlacementService.wsdl=${api.server}/apis/ads/publisher/v201403/PlacementService?wsdl +api.versions.v201403.services.ProductService.wsdl=${api.server}/apis/ads/publisher/v201403/ProductService?wsdl +api.versions.v201403.services.ProductTemplateService.wsdl=${api.server}/apis/ads/publisher/v201403/ProductTemplateService?wsdl +api.versions.v201403.services.ProposalService.wsdl=${api.server}/apis/ads/publisher/v201403/ProposalService?wsdl +api.versions.v201403.services.ProposalLineItemService.wsdl=${api.server}/apis/ads/publisher/v201403/ProposalLineItemService?wsdl +api.versions.v201403.services.PublisherQueryLanguageService.wsdl=${api.server}/apis/ads/publisher/v201403/PublisherQueryLanguageService?wsdl +api.versions.v201403.services.RateCardService.wsdl=${api.server}/apis/ads/publisher/v201403/RateCardService?wsdl +api.versions.v201403.services.RateCardCustomizationService.wsdl=${api.server}/apis/ads/publisher/v201403/RateCardCustomizationService?wsdl +api.versions.v201403.services.RateCardCustomizationGroupService.wsdl=${api.server}/apis/ads/publisher/v201403/RateCardCustomizationGroupService?wsdl +api.versions.v201403.services.ReconciliationOrderReportService.wsdl=${api.server}/apis/ads/publisher/v201403/ReconciliationOrderReportService?wsdl +api.versions.v201403.services.ReconciliationReportService.wsdl=${api.server}/apis/ads/publisher/v201403/ReconciliationReportService?wsdl +api.versions.v201403.services.ReconciliationReportRowService.wsdl=${api.server}/apis/ads/publisher/v201403/ReconciliationReportRowService?wsdl +api.versions.v201403.services.ReportService.wsdl=${api.server}/apis/ads/publisher/v201403/ReportService?wsdl +api.versions.v201403.services.SuggestedAdUnitService.wsdl=${api.server}/apis/ads/publisher/v201403/SuggestedAdUnitService?wsdl +api.versions.v201403.services.TeamService.wsdl=${api.server}/apis/ads/publisher/v201403/TeamService?wsdl +api.versions.v201403.services.UserService.wsdl=${api.server}/apis/ads/publisher/v201403/UserService?wsdl +api.versions.v201403.services.UserTeamAssociationService.wsdl=${api.server}/apis/ads/publisher/v201403/UserTeamAssociationService?wsdl +api.versions.v201403.services.WorkflowRequestService.wsdl=${api.server}/apis/ads/publisher/v201403/WorkflowRequestService?wsdl + diff --git a/src/Google/Api/Ads/Dfp/Lib/build.ini b/src/Google/Api/Ads/Dfp/Lib/build.ini new file mode 100755 index 000000000..c91dff31d --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Lib/build.ini @@ -0,0 +1,2 @@ +LIB_NAME = "DfpApi-PHP" + diff --git a/src/Google/Api/Ads/Dfp/Util/DateTimeUtils.php b/src/Google/Api/Ads/Dfp/Util/DateTimeUtils.php new file mode 100755 index 000000000..ede172d4a --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Util/DateTimeUtils.php @@ -0,0 +1,183 @@ +date = new Date(); + $result->date->year = (int) $dateTime->format('Y'); + $result->date->month = (int) $dateTime->format('m'); + $result->date->day = (int) $dateTime->format('d'); + $result->hour = (int) $dateTime->format('H'); + $result->minute = (int) $dateTime->format('i'); + $result->second = (int) $dateTime->format('s'); + $result->timeZoneID = $dateTime->format('e'); + return $result; + } + + /** + * Converts a string in the form of {@code yyyy-MM-dd'T'HH:mm:ss±HH:mm} to a + * DfpDateTime. + */ + public static function ToDfpDateTimeFromString($dateTime) { + return self::ToDfpDateTime(DateTime::createFromFormat(self::ISO8601, + $dateTime)); + } + + /** + * Converts a string in the form of {@code yyyy-MM-dd'T'HH:mm:ss±HH:mm} to a + * DfpDateTime in the time zone supplied. + */ + public static function ToDfpDateTimeFromStringWithTimeZone($dateTime, + $timeZoneId) { + return self::ToDfpDateTime( + (new DateTime($dateTime, new DateTimeZone($timeZoneId)))); + } + + /** + * Converts a DfpDateTime to a PHP DateTime. + * + * @param DfpDateTime $dfpDateTime a DfpDateTime object + * @return DateTime a PHP DateTime object + */ + public static function FromDfpDateTime(DfpDateTime $dfpDateTime) { + $dateTimeString = sprintf("%d-%d-%dT%d:%d:%d", $dfpDateTime->date->year, + $dfpDateTime->date->month, $dfpDateTime->date->day, $dfpDateTime->hour, + $dfpDateTime->minute, $dfpDateTime->second); + return new DateTime($dateTimeString, + new DateTimeZone($dfpDateTime->timeZoneID)); + } + + /** + * Returns string representation of the specified DFP date. + * + * @param Date $dfpDate the DFP date to stringify + * @return string a string representation of the DFP {@code Date} in + * {@code yyyy-MM-dd} + */ + public static function ToString(Date $dfpDate) { + return sprintf(self::DFP_DATE_PATTERN, $dfpDate->year, $dfpDate->month, + $dfpDate->day); + } + + /** + * Returns string representation of this DFP date time with time zone. If you + * need to convert the DFP date time into another time zone before filtering + * on it, please use {@link #ToStringForTimeZone()} instead. + * + * @param DfpDateTime $dfpDateTime the DFP date time to stringify + * @return string a string representation of the DFP {@code DateTime} in + * {@code yyyy-MM-dd'T'HH:mm:ss±HH:mm}, e.g., + * {@code 2013-09-013T12:02:03+08:00} or + * {@code 2013-09-013T12:02:03Z} for Etc/GMT. + */ + public static function ToStringWithTimeZone(DfpDateTime $dfpDateTime) { + return self::FromDfpDateTime($dfpDateTime)->format(self::ISO8601); + } + + /** + * Returns string representation of this DFP date time with the specified time + * zone, preserving the millisecond instant. + *

      + * This function is useful for finding the local time in another time zone, + * especially for filtering. + *

      + * For example, if this date time holds 12:30 in Europe/London, the result + * from this method with Europe/Paris would be 13:30. You may also want to use + * this with your network's time zone, i.e., + *

      
      +   * $timeZoneId = $networkService->getCurrentNetwork()->timeZone;
      +   * $pqlFilterStatement = "... WHERE startDateTime >
      +   *     DateTimeUtils::ToString($apiDateTime, $timeZoneId)"
      +   * 
      + * + * @param DfpDateTime $dfpDateTime the DFP date time to stringify into a new + * time zone + * @param string $newZoneId the time zone ID of the new zone + * @return string a string representation of the DFP {@code DateTime} in + * {@code yyyy-MM-dd'T'HH:mm:ss} + */ + public static function ToStringForTimeZone(DfpDateTime $dfpDateTime, + $newZoneId) { + return self::FromDfpDateTime($dfpDateTime)-> + setTimezone(new DateTimeZone($newZoneId))-> + format(substr(self::ISO8601, 0, -1)); + } +} + diff --git a/src/Google/Api/Ads/Dfp/Util/Pql.php b/src/Google/Api/Ads/Dfp/Util/Pql.php new file mode 100755 index 000000000..7cb164e22 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Util/Pql.php @@ -0,0 +1,117 @@ +value) ? 'true' : 'false'; + } else if ($value instanceof NumberValue || $value instanceof TextValue) { + return strval($value->value); + } else if ($value instanceof DateTimeValue) { + return (isset($value->value)) + ? DateTimeUtils::ToStringWithTimeZone($value->value) : ''; + } else if ($value instanceof DateValue) { + return DateTimeUtils::ToString($value->value); + } else { + throw new InvalidArgumentException(sprintf("Unsupported Value type [%s]", + get_class($value))); + } + } + + /** + * Gets the column labels for the result set. + * + * @param ResultSet $resultSet the result set to get the column labels for + * @return array the string list of column labels + */ + public static function GetColumnLabels(ResultSet $resultSet) { + $columnLabels = array(); + foreach ($resultSet->columnTypes as $columnType) { + $columnLabels[] = $columnType->labelName; + } + return $columnLabels; + } + + /** + * Gets the values in a row of the result set in the form of a string list. + * + * @param Row $row the row to get the values for + * @return array the string list of row labels + */ + public static function GetRowStringValues(Row $row) { + return array_map(array('Pql', 'ToString'), $row->values); + } + + /** + * Combines the first and second result sets, if and only if, the columns + * of both result sets match. + * + * @throws InvalidArgumentException if the result sets to combine do not have + * identical column headers + */ + public static function CombineResultSets(ResultSet $first, + ResultSet $second) { + $firstColumns = self::GetColumnLabels($first); + $secondColumns = self::GetColumnLabels($second); + + if ($firstColumns !== $secondColumns) { + throw new InvalidArgumentException(sprintf("First result set columns " + . "[%s] do not match second result set columns [%s]", implode(', ', + $firstColumns), implode(', ', $secondColumns))); + } + + $combinedRows = $first->rows; + if (isset($second->rows)) { + $combinedRows = array_merge($combinedRows, $second->rows); + } + + return new ResultSet($first->columnTypes, $combinedRows); + } +} + diff --git a/src/Google/Api/Ads/Dfp/Util/ReportUtils.php b/src/Google/Api/Ads/Dfp/Util/ReportUtils.php new file mode 100755 index 000000000..3fbe6121a --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Util/ReportUtils.php @@ -0,0 +1,90 @@ +CreateSession($downloadUrl); + + if (isset($filePath)) { + $file = fopen($filePath, 'w'); + $curlUtils->SetOpt($ch, CURLOPT_FILE, $file); + } else { + $curlUtils->SetOpt($ch, CURLOPT_RETURNTRANSFER, 1); + } + + $result = $curlUtils->Exec($ch); + $httpCode = $curlUtils->GetInfo($ch, CURLINFO_HTTP_CODE); + $error = $curlUtils->Error($ch); + $downloadSize = $curlUtils->GetInfo($ch, CURLINFO_SIZE_DOWNLOAD); + + $curlUtils->Close($ch); + if (isset($file)) { + fclose($file); + } + + if ($httpCode != 200) { + $message = sprintf('Invalid report download URL: %s', $downloadUrl); + throw new InvalidArgumentException($message, $httpCode); + } + + if (isset($filePath)) { + return $downloadSize; + } else { + return $result; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/Util/ServiceUtils.php b/src/Google/Api/Ads/Dfp/Util/ServiceUtils.php new file mode 100755 index 000000000..a12e906c1 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Util/ServiceUtils.php @@ -0,0 +1,135 @@ +$methodName is not a + * get*ByStatement method or the filterText contains the LIMIT or + * OFFSET options + */ + public static function GetAllObjects(DfpSoapClient $service, + $methodName, $filterText = NULL) { + if (!isset($filterText)) { + $filterText = ''; + } + if (!preg_match(self::GET_BY_STATEMENT_METHOD_NAME_REGEX, $methodName)) { + throw new InvalidArgumentException( + 'The method name must be in the format a "get*ByStatement".'); + } + $matches = array(); + if (preg_match(self::INCOMPATIBLE_FILTER_TEXT_REGEX, $filterText, + $matches)) { + throw new InvalidArgumentException( + 'The filter text contains an option that is incompatible with this ' + .'method: ' . $matches[0]); + } + + $allObjects = array(); + $filterStatement = new Statement(); + $offset = 0; + $page = NULL; + + do { + $filterStatement->query = $filterText . ' LIMIT ' . self::PAGE_SIZE + . ' OFFSET ' . $offset; + $page = $service->$methodName($filterStatement); + if (isset($page->results)) { + $allObjects = array_merge($allObjects, $page->results); + } + $offset += self::PAGE_SIZE; + } while (isset($page->results) + && sizeof($page->results) == self::PAGE_SIZE); + + return $allObjects; + } + + /** + * Returns some of the objects from an account, using the service and method + * name provided. + * @param DfpSoapClient $service the service to use + * @param string $methodName the name of the method + * @param string $filterText filter text + * @return array the objects retrieved from the service using the method + * @throws InvalidArgumentException if $methodName is not a + * get*ByStatement method or the filterText contains the LIMIT or + * OFFSET options + */ + public static function GetSomeObjects(DfpSoapClient $service, + $methodName, $filterText) { + if (!preg_match(self::GET_BY_STATEMENT_METHOD_NAME_REGEX, $methodName)) { + throw new InvalidArgumentException( + 'The method name must be in the format a "get*ByStatement".'); + } + $filterStatement = new Statement(); + $filterStatement->query = $filterText; + $page = $service->$methodName($filterStatement); + return $page->results; + } +} + diff --git a/src/Google/Api/Ads/Dfp/auth.ini b/src/Google/Api/Ads/Dfp/auth.ini new file mode 100755 index 000000000..2991c18d3 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/auth.ini @@ -0,0 +1,32 @@ +; Detailed descriptions of these properties can be found at: +; https://developers.google.com/doubleclick-publishers/docs/soap_xml + +; The header networkCode is needed for every request except +; NetworkService.makeTestNetwork and NetworkService.getAllNetworks. +; Comment out the line below when calling either of those methods. +networkCode = "INSERT_NETWORK_CODE_HERE" + +; Any string of your choosing to identify your application to DFP. +applicationName = "INSERT_APPLICATION_NAME_HERE" + +[OAUTH2] + +; If you do not have a client ID or secret, please create one of type +; "installed application" in the Google API console: +; https://cloud.google.com/console +client_id = "INSERT_OAUTH2_CLIENT_ID_HERE" +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" + +; (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 new file mode 100755 index 000000000..d6448883c --- /dev/null +++ b/src/Google/Api/Ads/Dfp/settings.ini @@ -0,0 +1,58 @@ +[LOGGING] +; Log directory is either an absolute path, or relative path from the +; DfpUser.php file. +; PATH_RELATIVE = "0" +; LIB_LOG_DIR_PATH = "path/to/logs" + +[SERVER] +DEFAULT_VERSION = "v201403" +DEFAULT_SERVER = "https://www.google.com" + +[SOAP] +; Enable/disable gzip compression on SOAP requests and responses. +COMPRESSION = 1 + +; The level of gzip compression to use, from 1 to 9. The higher the level the +; greater the compression and time needed to perform the compression. The +; recommended and default value is 1. +COMPRESSION_LEVEL = 1 + +; The type of WSDL caching to use. The possible values are 0 (none), 1 (disk), +; 2 (memory), or 3 (disk and memory). The default value is 0. +WSDL_CACHE = 0 + +; Other WSDL caching settings can be set in php.ini. See the following page for +; the complete list: http://www.php.net/manual/en/soap.configuration.php + +[PROXY] +; Proxy settings to be used by HTTP (and therefore SOAP) requests. +; HOST = "" +; PORT = "" +; USER = "" +; PASSWORD = "" + +[AUTH] +; The server to use when making ClientLogin or OAuth2 requests. +; This normally doesn't need to be changed from the default value +; "https://accounts.google.com". +; AUTH_SERVER = "" + +; The OAuth2Handler class to use for OAuth2 flow. +; OAUTH2_HANDLER_CLASS = "SimpleOAuth2Handler" + +[SSL] +; Enable/disable peer verification of SSL certificates. If enabled, specify +; either CA_PATH or CA_FILE. +VERIFY_PEER = 0 + +; Enable/disable host verification of SSL certificates. This option requires +; that VERIFY_PEER is enabled. +VERIFY_HOST = 0 + +; The certificate authority directory to search in when performing peer +; validation. For example: /etc/ssl/certs +; CA_PATH = "" + +; The certificate authority file to use when performing peer validation. +; CA_FILE = "" + diff --git a/src/Google/Api/Ads/Dfp/v201208/AudienceSegmentService.php b/src/Google/Api/Ads/Dfp/v201208/AudienceSegmentService.php new file mode 100755 index 000000000..026b3a15a --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/AudienceSegmentService.php @@ -0,0 +1,2453 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("AudienceSegmentPage", FALSE)) { +/** + * Represents a page of {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AudienceSegmentPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("AudienceSegment", FALSE)) { +/** + * An {@link AudienceSegment} represents audience segment object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AudienceSegment { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 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, $AudienceSegmentType = null) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->size = $size; + $this->AudienceSegmentType = $AudienceSegmentType; + } + +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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. + * 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 v201208 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("AudienceSegmentStatus", FALSE)) { +/** + * Specifies the statuses for {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AudienceSegmentStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("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 v201208 + */ +class GetAudienceSegmentsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetAudienceSegmentsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("AudienceSegmentService", FALSE)) { +/** + * AudienceSegmentService + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AudienceSegmentService extends DfpSoapClient { + + const SERVICE_NAME = "AudienceSegmentService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201208/AudienceSegmentService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/AudienceSegmentService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AudienceSegmentPage" => "AudienceSegmentPage", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "OAuth" => "DfpOAuth", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "AudienceSegment" => "AudienceSegment", + "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", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "AudienceSegment.Status" => "AudienceSegmentStatus", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "getAudienceSegmentsByStatement" => "GetAudienceSegmentsByStatement", + "getAudienceSegmentsByStatementResponse" => "GetAudienceSegmentsByStatementResponse", + ); + + + /** + * 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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/CompanyService.php b/src/Google/Api/Ads/Dfp/v201208/CompanyService.php new file mode 100755 index 000000000..0073ad104 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/CompanyService.php @@ -0,0 +1,3634 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CompanyCreditStatusError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Company { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 $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, $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->appliedTeamIds = $appliedTeamIds; + $this->thirdPartyCompanyId = $thirdPartyCompanyId; + $this->lastModifiedDateTime = $lastModifiedDateTime; + } + +}} + +if (!class_exists("CompanyError", FALSE)) { +/** + * A list of all errors associated with companies. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CompanyError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CompanyPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InvalidEmailError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CompanyCreditStatusErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CompanyCreditStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CompanyType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CompanyErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InvalidEmailErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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. + * 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 v201208 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateCompanies { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateCompaniesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateCompany { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateCompanyResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetCompaniesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetCompaniesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetCompany { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetCompanyResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateCompanies { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateCompaniesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateCompany { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateCompanyResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CompanyService extends DfpSoapClient { + + const SERVICE_NAME = "CompanyService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201208/CompanyService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/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", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/ContentService.php b/src/Google/Api/Ads/Dfp/v201208/ContentService.php new file mode 100755 index 000000000..1ccd4cb89 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/ContentService.php @@ -0,0 +1,3008 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Content { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "Content"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsContentStatus + */ + 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, $status = null) { + $this->id = $id; + $this->name = $name; + $this->status = $status; + } + +}} + +if (!class_exists("ContentPage", FALSE)) { +/** + * Captures a page of {@code Content} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ContentPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ContentPartnerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ContentPartnerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ContentStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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. + * 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 v201208 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetContentByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetContentByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetContentByStatementAndCustomTargetingValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetContentByStatementAndCustomTargetingValueResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("GetUncategorizedContentByStatement", FALSE)) { +/** + * Gets a {@link ContentPage} of {@link Content} objects that are not + * associated with the {@link Network}'s + * {@link Network#contentBrowseCustomTargetingKeyId}. This content is + * considered uncategorized. This method also satisfies 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}
      + * + * This method is no longer supported as of version 201211 + * @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 v201208 + */ +class GetUncategorizedContentByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("GetUncategorizedContentByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class GetUncategorizedContentByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ContentService extends DfpSoapClient { + + const SERVICE_NAME = "ContentService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201208/ContentService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/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", + "CommonError" => "CommonError", + "Content" => "Content", + "ContentPage" => "ContentPage", + "ContentPartnerError" => "ContentPartnerError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "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", + "StringLengthError.Reason" => "StringLengthErrorReason", + "getContentByStatement" => "GetContentByStatement", + "getContentByStatementResponse" => "GetContentByStatementResponse", + "getContentByStatementAndCustomTargetingValue" => "GetContentByStatementAndCustomTargetingValue", + "getContentByStatementAndCustomTargetingValueResponse" => "GetContentByStatementAndCustomTargetingValueResponse", + "getUncategorizedContentByStatement" => "GetUncategorizedContentByStatement", + "getUncategorizedContentByStatementResponse" => "GetUncategorizedContentByStatementResponse", + ); + + + /** + * 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=null, $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; + } + /** + * Gets a {@link ContentPage} of {@link Content} objects that are not + * associated with the {@link Network}'s + * {@link Network#contentBrowseCustomTargetingKeyId}. This content is + * considered uncategorized. This method also satisfies 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}
      + * + * This method is no longer supported as of version 201211 + * @params filterStatement a Publisher Query Language statement used to filter + * a set of content + * @return the content that matches the given filter + */ + public function getUncategorizedContentByStatement($filterStatement) { + $args = new GetUncategorizedContentByStatement($filterStatement); + $result = $this->__soapCall("getUncategorizedContentByStatement", array($args)); + return $result->rval; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/CreativeService.php b/src/Google/Api/Ads/Dfp/v201208/CreativeService.php new file mode 100755 index 000000000..803a7b542 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/CreativeService.php @@ -0,0 +1,8353 @@ + "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 v201208 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AssetCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Asset { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AssetError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ConversionEvent_TrackingUrlsMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeAsset { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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) { + $this->assetId = $assetId; + $this->assetByteArray = $assetByteArray; + $this->fileName = $fileName; + $this->fileSize = $fileSize; + } + +}} + +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 v201208 + */ +class CustomCreativeAsset { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeAssetMacroError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeSetError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FileError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class HasDestinationUrlCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ImageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalRedirectCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "InternalRedirectCreative"; + + /** + * @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($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->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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LegacyDfpCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemCreativeAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LongCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RedirectAsset extends Asset { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RichMediaStudioChildAssetProperty { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RichMediaStudioCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StringCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("TemplateCreative", FALSE)) { +/** + * A {@code Creative} that is created by the specified creative template. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TemplateCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "TemplateCreative"; + + /** + * @access public + * @var integer + */ + public $creativeTemplateId; + + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * @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, $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->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 v201208 + */ +class TemplateInstantiatedCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("TextAdCreative", FALSE)) { +/** + * A simple plain text-based {@code Creative}. This creative is only available to small business + * networks. + * + * Starting in version v201306 this will be returned as a {@link TemplateCreative} + * identified with a {@link TemplateCreative#creativeTemplateId} of {@code 10000440}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TextAdCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "TextAdCreative"; + + /** + * @access public + * @var string + */ + public $hoverText; + + /** + * @access public + * @var tnsTargetWindow + */ + public $targetWindow; + + /** + * @access public + * @var string + */ + public $linkColor; + + /** + * @access public + * @var string + */ + public $linkTitle; + + /** + * @access public + * @var string + */ + public $text; + + /** + * @access public + * @var string + */ + public $textColor; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($hoverText = null, $targetWindow = null, $linkColor = null, $linkTitle = null, $text = null, $textColor = null, $destinationUrl = null) { + parent::__construct(); + $this->hoverText = $hoverText; + $this->targetWindow = $targetWindow; + $this->linkColor = $linkColor; + $this->linkTitle = $linkTitle; + $this->text = $text; + $this->textColor = $textColor; + $this->destinationUrl = $destinationUrl; + } + +}} + +if (!class_exists("ThirdPartyCreative", FALSE)) { +/** + * A {@code Creative} that is served by a 3rd-party vendor. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ThirdPartyCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TrackingUrls { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UnsupportedCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UrlCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class VastRedirectCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "VastRedirectCreative"; + + /** + * @access public + * @var string + */ + public $vastXmlUrl; + + /** + * @access public + * @var tnsVastRedirectType + */ + public $vastRedirectType; + + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $companionCreativeIds = null, $trackingUrls = 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->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $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 v201208 + */ +class VideoRedirectAsset extends RedirectAsset { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class VpaidLinearCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $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->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 v201208 + */ +class VpaidLinearRedirectCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiFramework { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AssetErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ConversionEvent { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeAssetMacroErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeSetErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FileErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("FlashExpandableCreativeExpandDirection", FALSE)) { +/** + * The possible expand directions + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FlashExpandableCreativeExpandDirection { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "FlashExpandableCreative.ExpandDirection"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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 v201208 + */ +class ImageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemCreativeAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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. + * 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 v201208 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RichMediaStudioChildAssetPropertyType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RichMediaStudioCreativeArtworkType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RichMediaStudioCreativeBillingAttribute { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RichMediaStudioCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RichMediaStudioCreativeFormat { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("TargetWindow", FALSE)) { +/** + * The different values for target window, corresponds to an HTML link's + * {@code target} attribute. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TargetWindow { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "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("TemplateInstantiatedCreativeErrorReason", FALSE)) { +/** + * The reason for the error + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TemplateInstantiatedCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class VastRedirectType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateCreativeResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateCreatives { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateCreativesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetCreativeResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetCreativesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetCreativesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateCreativeResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateCreatives { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateCreativesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BaseDynamicAllocationCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AspectRatioImageCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "AspectRatioImageCreative"; + + /** + * @access public + * @var CreativeAsset[] + */ + public $imageAssets; + + /** + * @access public + * @var string + */ + public $fallbackText; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $fallbackText = null, $destinationUrl = null) { + parent::__construct(); + $this->imageAssets = $imageAssets; + $this->fallbackText = $fallbackText; + $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 v201208 + */ +class BaseFlashCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BaseFlashRedirectCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BaseImageCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "BaseImageCreative"; + + /** + * @access public + * @var string + */ + public $imageName; + + /** + * @access public + * @var base64Binary + */ + public $imageByteArray; + + /** + * @access public + * @var boolean + */ + public $overrideSize; + + /** + * @access public + * @var Size + */ + public $assetSize; + + /** + * @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($imageName = null, $imageByteArray = null, $overrideSize = null, $assetSize = null, $imageUrl = null, $destinationUrl = null) { + parent::__construct(); + $this->imageName = $imageName; + $this->imageByteArray = $imageByteArray; + $this->overrideSize = $overrideSize; + $this->assetSize = $assetSize; + $this->imageUrl = $imageUrl; + $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 v201208 + */ +class BaseImageRedirectCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BaseRichMediaStudioCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BaseVideoCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $destinationUrl = null) { + parent::__construct(); + $this->duration = $duration; + $this->allowDurationOverride = $allowDurationOverride; + $this->trackingUrls = $trackingUrls; + $this->companionCreativeIds = $companionCreativeIds; + $this->customParameters = $customParameters; + $this->destinationUrl = $destinationUrl; + } + +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ClickTrackingCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("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 v201208 + */ +class LegacyDfpMobileCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FlashCreative extends BaseFlashCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "FlashCreative"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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) { + 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; + } + +}} + +if (!class_exists("FlashExpandableCreative", FALSE)) { +/** + * An expandable {@code Creative} where the collapsed size is a Flash SWF file and + * the expanded size is another Flash SWF file. If Flash isn't supported in the browser, + * the fallback image will be used. + *

      + * This creative will not work with iframe ad tags. + *

      + * This creative is only available to small business networks. + * + * Starting in version v201306 this will be returned as a {@link TemplateCreative} + * identified with a {@link TemplateCreative#creativeTemplateId} of {@code 10001160}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FlashExpandableCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "FlashExpandableCreative"; + + /** + * @access public + * @var integer + */ + public $collapsedFlashAssetId; + + /** + * @access public + * @var base64Binary + */ + public $collapsedFlashAssetByteArray; + + /** + * @access public + * @var string + */ + public $collapsedFlashFileName; + + /** + * @access public + * @var integer + */ + public $collapsedFallbackImageAssetId; + + /** + * @access public + * @var base64Binary + */ + public $collapsedFallbackImageAssetByteArray; + + /** + * @access public + * @var string + */ + public $collapsedFallbackImageFileName; + + /** + * @access public + * @var integer + */ + public $expandedFlashAssetId; + + /** + * @access public + * @var base64Binary + */ + public $expandedFlashAssetByteArray; + + /** + * @access public + * @var string + */ + public $expandedFlashFileName; + + /** + * @access public + * @var integer + */ + public $requiredFlashVersion; + + /** + * @access public + * @var integer + */ + public $collapsedWidth; + + /** + * @access public + * @var integer + */ + public $collapsedHeight; + + /** + * @access public + * @var integer + */ + public $expandedWidth; + + /** + * @access public + * @var integer + */ + public $expandedHeight; + + /** + * @access public + * @var tnsFlashExpandableCreativeExpandDirection + */ + public $expandDirection; + + /** + * @access public + * @var boolean + */ + public $expandOnMouseOver; + + /** + * @access public + * @var string + */ + public $javascriptFunctionForExpand; + + /** + * @access public + * @var boolean + */ + public $collapseOnMouseOut; + + /** + * @access public + * @var string + */ + public $javascriptFunctionForCollapse; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($collapsedFlashAssetId = null, $collapsedFlashAssetByteArray = null, $collapsedFlashFileName = null, $collapsedFallbackImageAssetId = null, $collapsedFallbackImageAssetByteArray = null, $collapsedFallbackImageFileName = null, $expandedFlashAssetId = null, $expandedFlashAssetByteArray = null, $expandedFlashFileName = null, $requiredFlashVersion = null, $collapsedWidth = null, $collapsedHeight = null, $expandedWidth = null, $expandedHeight = null, $expandDirection = null, $expandOnMouseOver = null, $javascriptFunctionForExpand = null, $collapseOnMouseOut = null, $javascriptFunctionForCollapse = null, $destinationUrl = null) { + parent::__construct(); + $this->collapsedFlashAssetId = $collapsedFlashAssetId; + $this->collapsedFlashAssetByteArray = $collapsedFlashAssetByteArray; + $this->collapsedFlashFileName = $collapsedFlashFileName; + $this->collapsedFallbackImageAssetId = $collapsedFallbackImageAssetId; + $this->collapsedFallbackImageAssetByteArray = $collapsedFallbackImageAssetByteArray; + $this->collapsedFallbackImageFileName = $collapsedFallbackImageFileName; + $this->expandedFlashAssetId = $expandedFlashAssetId; + $this->expandedFlashAssetByteArray = $expandedFlashAssetByteArray; + $this->expandedFlashFileName = $expandedFlashFileName; + $this->requiredFlashVersion = $requiredFlashVersion; + $this->collapsedWidth = $collapsedWidth; + $this->collapsedHeight = $collapsedHeight; + $this->expandedWidth = $expandedWidth; + $this->expandedHeight = $expandedHeight; + $this->expandDirection = $expandDirection; + $this->expandOnMouseOver = $expandOnMouseOver; + $this->javascriptFunctionForExpand = $javascriptFunctionForExpand; + $this->collapseOnMouseOut = $collapseOnMouseOut; + $this->javascriptFunctionForCollapse = $javascriptFunctionForCollapse; + $this->destinationUrl = $destinationUrl; + } + +}} + +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 v201208 + */ +class FlashOverlayCreative extends BaseFlashCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $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->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("FlashPushdownCreative", FALSE)) { +/** + * {@code Creative} that pushes page content down when the creative expands. + * The collapsed size is one Flash SWF file and the expanded size is another Flash SWF file. + *

      + * This creative will not work with iframe ad tags. + *

      + * This creative is only available to small business networks. + * + * Starting in version v201306 this will be returned as a {@link TemplateCreative} + * identified with a {@link TemplateCreative#creativeTemplateId} of {@code 10001400}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FlashPushdownCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "FlashPushdownCreative"; + + /** + * @access public + * @var integer + */ + public $collapsedFlashAssetId; + + /** + * @access public + * @var base64Binary + */ + public $collapsedFlashAssetByteArray; + + /** + * @access public + * @var string + */ + public $collapsedFlashFileName; + + /** + * @access public + * @var integer + */ + public $collapsedFallbackImageAssetId; + + /** + * @access public + * @var base64Binary + */ + public $collapsedFallbackImageAssetByteArray; + + /** + * @access public + * @var string + */ + public $collapsedFallbackImageFileName; + + /** + * @access public + * @var integer + */ + public $expandedFlashAssetId; + + /** + * @access public + * @var base64Binary + */ + public $expandedFlashAssetByteArray; + + /** + * @access public + * @var string + */ + public $expandedFlashFileName; + + /** + * @access public + * @var integer + */ + public $requiredFlashVersion; + + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $collapsedHeight; + + /** + * @access public + * @var integer + */ + public $expandedHeight; + + /** + * @access public + * @var boolean + */ + public $pushdownOnMouseOver; + + /** + * @access public + * @var string + */ + public $javascriptFunctionForPushdown; + + /** + * @access public + * @var boolean + */ + public $collapseOnMouseOut; + + /** + * @access public + * @var string + */ + public $javascriptFunctionForCollapse; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($collapsedFlashAssetId = null, $collapsedFlashAssetByteArray = null, $collapsedFlashFileName = null, $collapsedFallbackImageAssetId = null, $collapsedFallbackImageAssetByteArray = null, $collapsedFallbackImageFileName = null, $expandedFlashAssetId = null, $expandedFlashAssetByteArray = null, $expandedFlashFileName = null, $requiredFlashVersion = null, $width = null, $collapsedHeight = null, $expandedHeight = null, $pushdownOnMouseOver = null, $javascriptFunctionForPushdown = null, $collapseOnMouseOut = null, $javascriptFunctionForCollapse = null, $destinationUrl = null) { + parent::__construct(); + $this->collapsedFlashAssetId = $collapsedFlashAssetId; + $this->collapsedFlashAssetByteArray = $collapsedFlashAssetByteArray; + $this->collapsedFlashFileName = $collapsedFlashFileName; + $this->collapsedFallbackImageAssetId = $collapsedFallbackImageAssetId; + $this->collapsedFallbackImageAssetByteArray = $collapsedFallbackImageAssetByteArray; + $this->collapsedFallbackImageFileName = $collapsedFallbackImageFileName; + $this->expandedFlashAssetId = $expandedFlashAssetId; + $this->expandedFlashAssetByteArray = $expandedFlashAssetByteArray; + $this->expandedFlashFileName = $expandedFlashFileName; + $this->requiredFlashVersion = $requiredFlashVersion; + $this->width = $width; + $this->collapsedHeight = $collapsedHeight; + $this->expandedHeight = $expandedHeight; + $this->pushdownOnMouseOver = $pushdownOnMouseOver; + $this->javascriptFunctionForPushdown = $javascriptFunctionForPushdown; + $this->collapseOnMouseOut = $collapseOnMouseOut; + $this->javascriptFunctionForCollapse = $javascriptFunctionForCollapse; + $this->destinationUrl = $destinationUrl; + } + +}} + +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 v201208 + */ +class FlashRedirectCreative extends BaseFlashRedirectCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FlashRedirectOverlayCreative extends BaseFlashRedirectCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $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->flashUrl = $flashUrl; + $this->fallbackUrl = $fallbackUrl; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + } + +}} + +if (!class_exists("FloatingFlashCreative", FALSE)) { +/** + * A floating flash creative. This creative is an interstitial creative, + * and its {@link #size} must be 1x1. + *

      + * This creative will not work with iframe ad tags. + *

      + * This creative is only available to small business networks. + * + * Starting in version v201306 this will be returned as a {@link TemplateCreative} + * identified with a {@link TemplateCreative#creativeTemplateId} of {@code 10000560}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FloatingFlashCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "FloatingFlashCreative"; + + /** + * @access public + * @var string + */ + public $flashName; + + /** + * @access public + * @var base64Binary + */ + public $flashByteArray; + + /** + * @access public + * @var integer + */ + public $flashAssetId; + + /** + * @access public + * @var string + */ + public $fallbackImageName; + + /** + * @access public + * @var base64Binary + */ + public $fallbackImageByteArray; + + /** + * @access public + * @var integer + */ + public $fallbackImageAssetId; + + /** + * @access public + * @var integer + */ + public $requiredFlashVersion; + + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var string + */ + public $topPosition; + + /** + * @access public + * @var string + */ + public $leftPosition; + + /** + * @access public + * @var integer + */ + public $displayTimeInSecond; + + /** + * @access public + * @var string + */ + public $thirdPartyImpressionTracker; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $flashAssetId = null, $fallbackImageName = null, $fallbackImageByteArray = null, $fallbackImageAssetId = null, $requiredFlashVersion = null, $width = null, $height = null, $topPosition = null, $leftPosition = null, $displayTimeInSecond = null, $thirdPartyImpressionTracker = null, $destinationUrl = null) { + parent::__construct(); + $this->flashName = $flashName; + $this->flashByteArray = $flashByteArray; + $this->flashAssetId = $flashAssetId; + $this->fallbackImageName = $fallbackImageName; + $this->fallbackImageByteArray = $fallbackImageByteArray; + $this->fallbackImageAssetId = $fallbackImageAssetId; + $this->requiredFlashVersion = $requiredFlashVersion; + $this->width = $width; + $this->height = $height; + $this->topPosition = $topPosition; + $this->leftPosition = $leftPosition; + $this->displayTimeInSecond = $displayTimeInSecond; + $this->thirdPartyImpressionTracker = $thirdPartyImpressionTracker; + $this->destinationUrl = $destinationUrl; + } + +}} + +if (!class_exists("HasHtmlSnippetDynamicAllocationCreative", FALSE)) { +/** + * Dynamic allocation creative with a backfill code snippet. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class HasHtmlSnippetDynamicAllocationCreative extends BaseDynamicAllocationCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ImageCreative extends BaseImageCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "ImageCreative"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($imageName = null, $imageByteArray = null, $overrideSize = null, $assetSize = null, $imageUrl = null) { + parent::__construct(); + $this->imageName = $imageName; + $this->imageByteArray = $imageByteArray; + $this->overrideSize = $overrideSize; + $this->assetSize = $assetSize; + $this->imageUrl = $imageUrl; + } + +}} + +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 v201208 + */ +class ImageOverlayCreative extends BaseImageCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $imageName = null, $imageByteArray = null, $overrideSize = null, $assetSize = null, $imageUrl = null) { + parent::__construct(); + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->duration = $duration; + $this->imageName = $imageName; + $this->imageByteArray = $imageByteArray; + $this->overrideSize = $overrideSize; + $this->assetSize = $assetSize; + $this->imageUrl = $imageUrl; + } + +}} + +if (!class_exists("ImageRedirectCreative", FALSE)) { +/** + * A {@code Creative} that loads an image asset from a specified URL. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ImageRedirectCreative extends BaseImageRedirectCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "ImageRedirectCreative"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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) { + parent::__construct(); + $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 v201208 + */ +class ImageRedirectOverlayCreative extends BaseImageRedirectCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $imageUrl = null) { + parent::__construct(); + $this->assetSize = $assetSize; + $this->duration = $duration; + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->imageUrl = $imageUrl; + } + +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RichMediaStudioCreative extends BaseRichMediaStudioCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class VideoCreative extends BaseVideoCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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) { + parent::__construct(); + $this->duration = $duration; + $this->allowDurationOverride = $allowDurationOverride; + $this->trackingUrls = $trackingUrls; + $this->companionCreativeIds = $companionCreativeIds; + $this->customParameters = $customParameters; + } + +}} + +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 v201208 + */ +class VideoRedirectCreative extends BaseVideoCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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) { + parent::__construct(); + $this->videoAssets = $videoAssets; + $this->duration = $duration; + $this->allowDurationOverride = $allowDurationOverride; + $this->trackingUrls = $trackingUrls; + $this->companionCreativeIds = $companionCreativeIds; + $this->customParameters = $customParameters; + } + +}} + +if (!class_exists("AdExchangeCreative", FALSE)) { +/** + * An Ad Exchange dynamic allocation creative. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdExchangeCreative extends HasHtmlSnippetDynamicAllocationCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AdSenseCreative extends HasHtmlSnippetDynamicAllocationCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeService extends DfpSoapClient { + + const SERVICE_NAME = "CreativeService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201208/CreativeService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/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", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "LegacyDfpMobileCreative" => "LegacyDfpMobileCreative", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "FlashCreative" => "FlashCreative", + "FlashExpandableCreative" => "FlashExpandableCreative", + "FlashOverlayCreative" => "FlashOverlayCreative", + "FlashPushdownCreative" => "FlashPushdownCreative", + "FlashRedirectCreative" => "FlashRedirectCreative", + "FlashRedirectOverlayCreative" => "FlashRedirectOverlayCreative", + "FloatingFlashCreative" => "FloatingFlashCreative", + "HasDestinationUrlCreative" => "HasDestinationUrlCreative", + "HasHtmlSnippetDynamicAllocationCreative" => "HasHtmlSnippetDynamicAllocationCreative", + "ImageCreative" => "ImageCreative", + "ImageError" => "ImageError", + "ImageOverlayCreative" => "ImageOverlayCreative", + "ImageRedirectCreative" => "ImageRedirectCreative", + "ImageRedirectOverlayCreative" => "ImageRedirectOverlayCreative", + "InternalApiError" => "InternalApiError", + "InternalRedirectCreative" => "InternalRedirectCreative", + "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", + "TemplateCreative" => "TemplateCreative", + "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", + "TextAdCreative" => "TextAdCreative", + "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", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "FlashExpandableCreative.ExpandDirection" => "FlashExpandableCreativeExpandDirection", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "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", + "TargetWindow" => "TargetWindow", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/CreativeSetService.php b/src/Google/Api/Ads/Dfp/v201208/CreativeSetService.php new file mode 100755 index 000000000..244d4d300 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/CreativeSetService.php @@ -0,0 +1,4129 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AssetError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeAssetMacroError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeSet { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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) { + $this->id = $id; + $this->name = $name; + $this->masterCreativeId = $masterCreativeId; + $this->companionCreativeIds = $companionCreativeIds; + } + +}} + +if (!class_exists("CreativeSetError", FALSE)) { +/** + * Errors relating to creative sets & subclasses. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeSetError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeSetPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FileError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ImageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RichMediaStudioCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("TemplateInstantiatedCreativeError", FALSE)) { +/** + * Lists all errors associated with template instantiated creatives. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TemplateInstantiatedCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AssetErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeAssetMacroErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeSetErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FileErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ImageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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. + * 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 v201208 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RichMediaStudioCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("TemplateInstantiatedCreativeErrorReason", FALSE)) { +/** + * The reason for the error + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TemplateInstantiatedCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateCreativeSet { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateCreativeSetResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetCreativeSet { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetCreativeSetResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetCreativeSetsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetCreativeSetsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateCreativeSet { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateCreativeSetResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeSetService extends DfpSoapClient { + + const SERVICE_NAME = "CreativeSetService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201208/CreativeSetService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/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", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "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", + "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", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/CreativeTemplateService.php b/src/Google/Api/Ads/Dfp/v201208/CreativeTemplateService.php new file mode 100755 index 000000000..695b96ece --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/CreativeTemplateService.php @@ -0,0 +1,3519 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeTemplate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeTemplateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ListStringCreativeTemplateVariableVariableChoice { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeTemplatePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AssetCreativeTemplateVariableMimeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeTemplateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeTemplateStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeTemplateType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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. + * 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 v201208 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetCreativeTemplate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetCreativeTemplateResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetCreativeTemplatesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetCreativeTemplatesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AssetCreativeTemplateVariable extends CreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LongCreativeTemplateVariable extends CreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StringCreativeTemplateVariable extends CreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UrlCreativeTemplateVariable extends CreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ListStringCreativeTemplateVariable extends StringCreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeTemplateService extends DfpSoapClient { + + const SERVICE_NAME = "CreativeTemplateService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201208/CreativeTemplateService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/CustomFieldService.php b/src/Google/Api/Ads/Dfp/v201208/CustomFieldService.php new file mode 100755 index 000000000..76b16ac86 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/CustomFieldService.php @@ -0,0 +1,4233 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomFieldAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomField { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomFieldError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomFieldOption { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomFieldPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DeactivateCustomFields extends CustomFieldAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DropDownCustomField extends CustomField { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomFieldDataType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomFieldEntityType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomFieldErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomFieldVisibility { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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. + * 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 v201208 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateCustomField { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateCustomFieldResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateCustomFieldOption { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateCustomFieldOptionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateCustomFieldOptions { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateCustomFieldOptionsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateCustomFields { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateCustomFieldsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetCustomField { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetCustomFieldResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetCustomFieldOption { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetCustomFieldOptionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetCustomFieldsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetCustomFieldsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PerformCustomFieldAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PerformCustomFieldActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateCustomField { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateCustomFieldResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateCustomFieldOption { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateCustomFieldOptionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateCustomFieldOptions { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateCustomFieldOptionsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateCustomFields { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateCustomFieldsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ActivateCustomFields extends CustomFieldAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomFieldService extends DfpSoapClient { + + const SERVICE_NAME = "CustomFieldService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201208/CustomFieldService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/CustomTargetingService.php b/src/Google/Api/Ads/Dfp/v201208/CustomTargetingService.php new file mode 100755 index 000000000..8758cc8c4 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/CustomTargetingService.php @@ -0,0 +1,3896 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomTargetingKeyAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomTargetingKey { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomTargetingKeyPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomTargetingValueAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomTargetingValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomTargetingValuePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DeleteCustomTargetingKeys extends CustomTargetingKeyAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DeleteCustomTargetingValues extends CustomTargetingValueAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomTargetingKeyType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomTargetingValueMatchType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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. + * 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 v201208 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateCustomTargetingKeys { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateCustomTargetingKeysResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateCustomTargetingValues { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateCustomTargetingValuesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetCustomTargetingKeysByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetCustomTargetingKeysByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetCustomTargetingValuesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetCustomTargetingValuesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PerformCustomTargetingKeyAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PerformCustomTargetingKeyActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PerformCustomTargetingValueAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PerformCustomTargetingValueActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateCustomTargetingKeys { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateCustomTargetingKeysResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateCustomTargetingValues { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateCustomTargetingValuesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomTargetingService extends DfpSoapClient { + + const SERVICE_NAME = "CustomTargetingService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201208/CustomTargetingService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/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", + "CommonError" => "CommonError", + "CustomTargetingError" => "CustomTargetingError", + "CustomTargetingKeyAction" => "CustomTargetingKeyAction", + "CustomTargetingKey" => "CustomTargetingKey", + "CustomTargetingKeyPage" => "CustomTargetingKeyPage", + "CustomTargetingValueAction" => "CustomTargetingValueAction", + "CustomTargetingValue" => "CustomTargetingValue", + "CustomTargetingValuePage" => "CustomTargetingValuePage", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/ForecastService.php b/src/Google/Api/Ads/Dfp/v201208/ForecastService.php new file mode 100755 index 000000000..22a5427af --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/ForecastService.php @@ -0,0 +1,9388 @@ +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 v201208 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TechnologyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AudienceExtensionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BandwidthGroupTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BrowserLanguageTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BrowserTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ClickTrackingLineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CompanyCreditStatusError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ContentTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativePlaceholder { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomFieldValueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DateTimeRangeTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DayPart { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DayPartTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DayPartTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DeliveryData { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DeliveryIndicator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DeviceCapabilityTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DeviceCategoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DeviceManufacturerTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 overbook lower or equal + * priority line items. + *
      • Possible units -- How many units can be booked without affecting any + * higher priority line items. Booking more than this number can overbook + * higher priority line items. + *
      • Matched (forecast) units -- How many units satisfy all specified + * criteria. + *
      + * + *

      The term "can overbook" is used, because 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 v201208 + */ +class Forecast { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ForecastError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FrequencyCap { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FrequencyCapError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GenericTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GeoTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GeoTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InventoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InventoryTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InventoryUnitError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemCreativeAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemFlightDateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemOperationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemSummary { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 $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 BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * @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, $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, $customFieldValues = 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->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->customFieldValues = $customFieldValues; + $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 v201208 + */ +class DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class MetroLocation extends DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class MobileCarrierTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class MobileDeviceSubmodelTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class MobileDeviceTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Money { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class OperatingSystemTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class OperatingSystemVersionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class OrderError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PostalCodeLocation extends DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RegExError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RegionLocation extends DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ReservationDetailsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Stats { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Targeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TechnologyTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TimeOfDay { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UserDomainTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UserDomainTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("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 v201208 + */ +class VideoPositionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "VideoPositionTargeting"; + + /** + * @access public + * @var tnsVideoPositionTargetingType[] + */ + public $targetedVideoPositions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($targetedVideoPositions = null) { + $this->targetedVideoPositions = $targetedVideoPositions; + } + +}} + +if (!class_exists("AdUnitAfcSizeErrorReason", FALSE)) { +/** + * The supplied Afc size is not valid. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdUnitAfcSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AdUnitCodeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AudienceExtensionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ClickTrackingLineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CompanionDeliveryOption { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CompanyCreditStatusErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ComputedStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CostType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeRotationType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeSizeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomCriteriaSetLogicalOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AudienceSegmentCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DateTimeRangeTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DayOfWeek { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DayPartTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DeliveryTimeZone { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DeliveryRateType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class EnvironmentType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ForecastErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FrequencyCapErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GenericTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GeoTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InventoryTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InventoryUnitErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemCreativeAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemDiscountType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemFlightDateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemOperationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemSummaryDuration { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemSummaryReservationStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class MinuteOfHour { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class OrderErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativePersistenceType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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. + * 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 v201208 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RegExErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ReservationDetailsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RoadblockingType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StartDateTimeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TargetPlatform { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TechnologyTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TimeUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UnitType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UserDomainTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("VideoPositionTargetingType", FALSE)) { +/** + * Represents the options for targetable positions within a video. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class VideoPositionTargetingType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "VideoPositionTargetingType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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 v201208 + */ +class GetForecast { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetForecastResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetForecastById { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetForecastByIdResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AdUnitAfcSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AdUnitCodeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BandwidthGroup extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Browser extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BrowserLanguage extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CityLocation extends DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CountryLocation extends DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomCriteriaSet extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomCriteriaLeaf extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AudienceSegmentCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("DeviceCapability", FALSE)) { +/** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeviceCapability extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DeviceCategory extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DeviceManufacturer extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItem extends LineItemSummary { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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, $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, $customFieldValues = 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->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->customFieldValues = $customFieldValues; + $this->LineItemSummaryType = $LineItemSummaryType; + } + +}} + +if (!class_exists("MobileCarrier", FALSE)) { +/** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class MobileCarrier extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class MobileDevice extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class MobileDeviceSubmodel extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class OperatingSystem extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class OperatingSystemVersion extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ForecastService extends DfpSoapClient { + + const SERVICE_NAME = "ForecastService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201208/ForecastService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/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", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaSet" => "CustomCriteriaSet", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaNode" => "CustomCriteriaNode", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeRangeTargetingError" => "DateTimeRangeTargetingError", + "DateTimeValue" => "DateTimeValue", + "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", + "VideoPositionTargeting" => "VideoPositionTargeting", + "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", + "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", + "VideoPositionTargetingType" => "VideoPositionTargetingType", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/InventoryService.php b/src/Google/Api/Ads/Dfp/v201208/InventoryService.php new file mode 100755 index 000000000..0b3559318 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/InventoryService.php @@ -0,0 +1,5678 @@ +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 v201208 + */ +class AdSenseSettingsInheritedProperty { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AdUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 LabelFrequencyCap[] + */ + public $appliedLabelFrequencyCaps; + + /** + * @access public + * @var LabelFrequencyCap[] + */ + public $effectiveLabelFrequencyCaps; + + /** + * @access public + * @var integer[] + */ + public $effectiveTeamIds; + + /** + * @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, $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, $appliedLabelFrequencyCaps = null, $effectiveLabelFrequencyCaps = null, $effectiveTeamIds = null, $appliedTeamIds = null, $lastModifiedDateTime = 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->appliedLabelFrequencyCaps = $appliedLabelFrequencyCaps; + $this->effectiveLabelFrequencyCaps = $effectiveLabelFrequencyCaps; + $this->effectiveTeamIds = $effectiveTeamIds; + $this->appliedTeamIds = $appliedTeamIds; + $this->lastModifiedDateTime = $lastModifiedDateTime; + } + +}} + +if (!class_exists("AdUnitPage", FALSE)) { +/** + * Captures a page of {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdUnitPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AdUnitParent { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("ArchiveAdUnits", FALSE)) { +/** + * The action used for archiving {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ArchiveAdUnits extends AdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AssignAdUnitsToPlacement extends AdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeWrapperError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DeactivateAdUnits extends AdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FrequencyCap { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FrequencyCapError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InvalidColorError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InventoryUnitError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InventoryUnitPartnerAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AdUnitSize { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InventoryUnitSizesError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AdUnitTypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LabelFrequencyCap { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RegExError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Size_StringMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AdSenseAccountErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AdSenseSettingsAdType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AdSenseSettingsBorderStyle { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AdSenseSettingsFontFamily { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AdSenseSettingsFontSize { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AdUnitAfcSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AdUnitCodeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AdUnitTargetWindow { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AdUnitHierarchyErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeWrapperErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("EnvironmentType", FALSE)) { +/** + * Enum for the valid environments in which ads can be shown. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class EnvironmentType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FrequencyCapErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InvalidColorErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InventoryStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InventoryUnitErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InventoryUnitPartnerAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InventoryUnitSizesErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AdUnitTypeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class MobilePlatform { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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. + * 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 v201208 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RegExErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TargetPlatform { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TimeUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateAdUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateAdUnitResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateAdUnits { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateAdUnitsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetAdUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetAdUnitResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetAdUnitSizesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetAdUnitSizesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetAdUnitsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetAdUnitsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PerformAdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PerformAdUnitActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateAdUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateAdUnitResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateAdUnits { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateAdUnitsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ActivateAdUnits extends AdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AdSenseAccountError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AdUnitAfcSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AdUnitCodeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AdUnitHierarchyError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InventoryService extends DfpSoapClient { + + const SERVICE_NAME = "InventoryService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201208/InventoryService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/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", + "ArchiveAdUnits" => "ArchiveAdUnits", + "AssignAdUnitsToPlacement" => "AssignAdUnitsToPlacement", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CreativeWrapperError" => "CreativeWrapperError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "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", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "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", + "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", + "ServerError.Reason" => "ServerErrorReason", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/LabelService.php b/src/Google/Api/Ads/Dfp/v201208/LabelService.php new file mode 100755 index 000000000..6ebfe062b --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/LabelService.php @@ -0,0 +1,3613 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeWrapperError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("LabelAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LabelAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($LabelActionType = null) { + $this->LabelActionType = $LabelActionType; + } + +}} + +if (!class_exists("Label", FALSE)) { +/** + * A {@code Label} is additional information that can be added to an entity. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Label { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "Label"; + + /** + * @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 tnsLabelType[] + */ + public $types; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $types = null) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->isActive = $isActive; + $this->types = $types; + } + +}} + +if (!class_exists("LabelError", FALSE)) { +/** + * Errors specific to labels. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LabelError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("LabelPage", FALSE)) { +/** + * Captures a page of {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LabelPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "LabelPage"; + + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Label[] + */ + 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 v201208 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeWrapperErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("LabelErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LabelErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("LabelType", FALSE)) { +/** + * Represents the types of labels supported. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LabelType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "LabelType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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 v201208 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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. + * 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 v201208 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("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 v201208 + */ +class CreateLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateLabelResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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. + * + * @param labels the labels to create + * @return the created labels with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreateLabels { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("CreateLabelsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreateLabelsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("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 v201208 + */ +class GetLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetLabelResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@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}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels. + * @return the labels that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class GetLabelsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("GetLabelsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class GetLabelsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LabelPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + +}} + +if (!class_exists("PerformLabelAction", FALSE)) { +/** + * Performs actions on {@link Label} 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 + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PerformLabelAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LabelAction + */ + public $labelAction; + + /** + * @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($labelAction = null, $filterStatement = null) { + $this->labelAction = $labelAction; + $this->filterStatement = $filterStatement; + } + +}} + +if (!class_exists("PerformLabelActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PerformLabelActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("UpdateLabel", FALSE)) { +/** + * Updates the specified {@link Label}. + * + * @param label the label to update + * @return the updated label + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UpdateLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("UpdateLabelResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UpdateLabelResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("UpdateLabels", FALSE)) { +/** + * Updates the specified {@link Label} objects. + * + * @param labels the labels to update + * @return the updated labels + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UpdateLabels { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UpdateLabelsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("ActivateLabels", FALSE)) { +/** + * The action used for activating {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ActivateLabels extends LabelAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "ActivateLabels"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($LabelActionType = null) { + parent::__construct(); + $this->LabelActionType = $LabelActionType; + } + +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("DeactivateLabels", FALSE)) { +/** + * The action used for deactivating {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeactivateLabels extends LabelAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "DeactivateLabels"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($LabelActionType = null) { + parent::__construct(); + $this->LabelActionType = $LabelActionType; + } + +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("LabelService", FALSE)) { +/** + * LabelService + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LabelService extends DfpSoapClient { + + const SERVICE_NAME = "LabelService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201208/LabelService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/LabelService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ActivateLabels" => "ActivateLabels", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CreativeWrapperError" => "CreativeWrapperError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DeactivateLabels" => "DeactivateLabels", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "LabelAction" => "LabelAction", + "Label" => "Label", + "LabelError" => "LabelError", + "LabelPage" => "LabelPage", + "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", + "LabelError.Reason" => "LabelErrorReason", + "LabelType" => "LabelType", + "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", + "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", + ); + + + /** + * 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=null, $options, $user) { + $options["classmap"] = self::$classmap; + 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. + * + * @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 + */ + 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 + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@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}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels. + * @return the labels that match the given filter + */ + public function getLabelsByStatement($filterStatement) { + $args = new GetLabelsByStatement($filterStatement); + $result = $this->__soapCall("getLabelsByStatement", array($args)); + return $result->rval; + } + /** + * Performs actions on {@link Label} 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 + * @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)); + return $result->rval; + } + /** + * Updates the specified {@link Label} objects. + * + * @param labels the labels to update + * @return the updated labels + */ + public function updateLabels($labels) { + $args = new UpdateLabels($labels); + $result = $this->__soapCall("updateLabels", array($args)); + return $result->rval; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/LineItemCreativeAssociationService.php b/src/Google/Api/Ads/Dfp/v201208/LineItemCreativeAssociationService.php new file mode 100755 index 000000000..8a565bc4a --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/LineItemCreativeAssociationService.php @@ -0,0 +1,5498 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AssetError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AudienceExtensionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeAssetMacroError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeSetError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FileError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ImageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemCreativeAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemCreativeAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemCreativeAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemCreativeAssociationOperationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemCreativeAssociationPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemCreativeAssociationStats { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "LineItemCreativeAssociationStats"; + + /** + * @access public + * @var Stats + */ + public $stats; + + /** + * @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, $costInOrderCurrency = null) { + $this->stats = $stats; + $this->costInOrderCurrency = $costInOrderCurrency; + } + +}} + +if (!class_exists("LineItemError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with LineItem. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Money { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RichMediaStudioCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Stats { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("TemplateInstantiatedCreativeError", FALSE)) { +/** + * Lists all errors associated with template instantiated creatives. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TemplateInstantiatedCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AdSenseAccountErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AssetErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AudienceExtensionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeAssetMacroErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeSetErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FileErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ImageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemCreativeAssociationStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemCreativeAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemCreativeAssociationOperationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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. + * 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 v201208 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RichMediaStudioCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StartDateTimeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("TemplateInstantiatedCreativeErrorReason", FALSE)) { +/** + * The reason for the error + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TemplateInstantiatedCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateLineItemCreativeAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateLineItemCreativeAssociationResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateLineItemCreativeAssociations { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateLineItemCreativeAssociationsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetLineItemCreativeAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetLineItemCreativeAssociationResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetLineItemCreativeAssociationsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetLineItemCreativeAssociationsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetPreviewUrl { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetPreviewUrlResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PerformLineItemCreativeAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PerformLineItemCreativeAssociationActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateLineItemCreativeAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateLineItemCreativeAssociationResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateLineItemCreativeAssociations { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateLineItemCreativeAssociationsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ActivateLineItemCreativeAssociations extends LineItemCreativeAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AdSenseAccountError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("DeactivateLineItemCreativeAssociations", FALSE)) { +/** + * The action used for deactivating {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeactivateLineItemCreativeAssociations extends LineItemCreativeAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemCreativeAssociationService extends DfpSoapClient { + + const SERVICE_NAME = "LineItemCreativeAssociationService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201208/LineItemCreativeAssociationService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/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", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DeactivateLineItemCreativeAssociations" => "DeactivateLineItemCreativeAssociations", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LineItemCreativeAssociationAction" => "LineItemCreativeAssociationAction", + "LineItemCreativeAssociation" => "LineItemCreativeAssociation", + "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", + "LineItemCreativeAssociationOperationError" => "LineItemCreativeAssociationOperationError", + "LineItemCreativeAssociationPage" => "LineItemCreativeAssociationPage", + "LineItemCreativeAssociationStats" => "LineItemCreativeAssociationStats", + "LineItemError" => "LineItemError", + "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", + "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", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/LineItemService.php b/src/Google/Api/Ads/Dfp/v201208/LineItemService.php new file mode 100755 index 000000000..1ba93789e --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/LineItemService.php @@ -0,0 +1,10191 @@ +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 v201208 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TechnologyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AudienceExtensionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BandwidthGroupTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BrowserLanguageTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BrowserTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ClickTrackingLineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CompanyCreditStatusError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ContentTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativePlaceholder { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomFieldValueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DateTimeRangeTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DayPart { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DayPartTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DayPartTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DeliveryData { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DeliveryIndicator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DeviceCapabilityTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DeviceCategoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DeviceManufacturerTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ForecastError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FrequencyCap { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FrequencyCapError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GenericTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GeoTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GeoTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InventoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InventoryTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemCreativeAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemFlightDateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemOperationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemSummary { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 $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 BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * @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, $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, $customFieldValues = 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->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->customFieldValues = $customFieldValues; + $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 v201208 + */ +class DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class MetroLocation extends DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class MobileCarrierTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class MobileDeviceSubmodelTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class MobileDeviceTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Money { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class OperatingSystemTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class OperatingSystemVersionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class OrderError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PauseLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PostalCodeLocation extends DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RegionLocation extends DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ReleaseLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ReservationDetailsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ReserveLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "ReserveLineItems"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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("ResumeLineItems", FALSE)) { +/** + * The action used for resuming {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ResumeLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "ResumeLineItems"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Stats { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Targeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TechnologyTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TimeOfDay { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UnarchiveLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UserDomainTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UserDomainTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("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 v201208 + */ +class VideoPositionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "VideoPositionTargeting"; + + /** + * @access public + * @var tnsVideoPositionTargetingType[] + */ + public $targetedVideoPositions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($targetedVideoPositions = null) { + $this->targetedVideoPositions = $targetedVideoPositions; + } + +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AudienceExtensionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ClickTrackingLineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CompanionDeliveryOption { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CompanyCreditStatusErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ComputedStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CostType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeRotationType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeSizeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomCriteriaSetLogicalOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AudienceSegmentCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DateTimeRangeTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DayOfWeek { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DayPartTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DeliveryTimeZone { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DeliveryRateType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class EnvironmentType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ForecastErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FrequencyCapErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GenericTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GeoTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InventoryTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemCreativeAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemDiscountType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemFlightDateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemOperationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemSummaryDuration { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemSummaryReservationStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class MinuteOfHour { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class OrderErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativePersistenceType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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. + * 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 v201208 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ReservationDetailsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RoadblockingType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StartDateTimeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TargetPlatform { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TechnologyTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TimeUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UnitType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UserDomainTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("VideoPositionTargetingType", FALSE)) { +/** + * Represents the options for targetable positions within a video. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class VideoPositionTargetingType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "VideoPositionTargetingType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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 v201208 + */ +class CreateLineItem { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateLineItemResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateLineItems { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateLineItemsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetLineItem { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetLineItemResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 Property Object Property
      {@code costType}{@link LineItem#costType}
      {@code id}{@link LineItem#id}
      {@code lineItemType}{@link LineItem#lineItemType}
      {@code name}{@link LineItem#name}
      {@code orderId}{@link LineItem#orderId}
      {@code status}{@link LineItem#status}
      {@code unitsBought}{@link LineItem#unitsBought}
      {@code deliveryRateType}{@link LineItem#deliveryRateType}
      {@code lastModifiedDateTime}{@link LineItem#lastModifiedDateTime}
      {@code creationDateTime}{@link LineItem#creationDateTime}
      {@code isMissingCreatives}{@link LineItem#isMissingCreatives}
      + * + * @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 v201208 + */ +class GetLineItemsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetLineItemsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PerformLineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PerformLineItemActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateLineItem { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateLineItemResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateLineItems { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateLineItemsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ActivateLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ArchiveLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BandwidthGroup extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Browser extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BrowserLanguage extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CityLocation extends DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CountryLocation extends DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomCriteriaSet extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomCriteriaLeaf extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AudienceSegmentCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("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 v201208 + */ +class DeleteLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DeviceCapability extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DeviceCategory extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DeviceManufacturer extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItem extends LineItemSummary { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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, $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, $customFieldValues = 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->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->customFieldValues = $customFieldValues; + $this->LineItemSummaryType = $LineItemSummaryType; + } + +}} + +if (!class_exists("MobileCarrier", FALSE)) { +/** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class MobileCarrier extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class MobileDevice extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class MobileDeviceSubmodel extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class OperatingSystem extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class OperatingSystemVersion extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ReserveAndOverbookLineItems extends ReserveLineItems { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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() { + parent::__construct(); + } + +}} + +if (!class_exists("ResumeAndOverbookLineItems", FALSE)) { +/** + * The action used for resuming and overbooking {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ResumeAndOverbookLineItems extends ResumeLineItems { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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() { + parent::__construct(); + } + +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemService extends DfpSoapClient { + + const SERVICE_NAME = "LineItemService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201208/LineItemService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/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", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaSet" => "CustomCriteriaSet", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaNode" => "CustomCriteriaNode", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeRangeTargetingError" => "DateTimeRangeTargetingError", + "DateTimeValue" => "DateTimeValue", + "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", + "VideoPositionTargeting" => "VideoPositionTargeting", + "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", + "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", + "VideoPositionTargetingType" => "VideoPositionTargetingType", + "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=null, $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 Property Object Property
      {@code costType}{@link LineItem#costType}
      {@code id}{@link LineItem#id}
      {@code lineItemType}{@link LineItem#lineItemType}
      {@code name}{@link LineItem#name}
      {@code orderId}{@link LineItem#orderId}
      {@code status}{@link LineItem#status}
      {@code unitsBought}{@link LineItem#unitsBought}
      {@code deliveryRateType}{@link LineItem#deliveryRateType}
      {@code lastModifiedDateTime}{@link LineItem#lastModifiedDateTime}
      {@code creationDateTime}{@link LineItem#creationDateTime}
      {@code isMissingCreatives}{@link LineItem#isMissingCreatives}
      + * + * @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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/NetworkService.php b/src/Google/Api/Ads/Dfp/v201208/NetworkService.php new file mode 100755 index 000000000..2ad420a1e --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/NetworkService.php @@ -0,0 +1,2427 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InvalidEmailError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Network { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 $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, $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->effectiveRootAdUnitId = $effectiveRootAdUnitId; + $this->contentBrowseCustomTargetingKeyId = $contentBrowseCustomTargetingKeyId; + $this->isTest = $isTest; + } + +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InvalidEmailErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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. + * 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 v201208 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetAllNetworks { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetAllNetworksResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetCurrentNetwork { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetCurrentNetworkResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class MakeTestNetwork { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class MakeTestNetworkResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateNetwork { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateNetworkResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NetworkService extends DfpSoapClient { + + const SERVICE_NAME = "NetworkService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201208/NetworkService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/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", + "NotNullError" => "NotNullError", + "OAuth" => "DfpOAuth", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "TypeError" => "TypeError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/OrderService.php b/src/Google/Api/Ads/Dfp/v201208/OrderService.php new file mode 100755 index 000000000..f371f0d89 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/OrderService.php @@ -0,0 +1,5468 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CompanyCreditStatusError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomFieldValueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ForecastError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InvalidEmailError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InventoryTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Money { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class OrderActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Order { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 $agencyId; + + /** + * @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, $agencyId = 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->agencyId = $agencyId; + $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 v201208 + */ +class OrderError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class OrderPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PauseOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("ResumeOrders", FALSE)) { +/** + * The action used for resuming {@link Order} objects. All {@link LineItem} + * objects within the order will resume as well. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ResumeOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "ResumeOrders"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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("RetractOrders", FALSE)) { +/** + * The action used for retracting {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RetractOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RetractOrdersWithoutReservationChanges extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SubmitOrdersForApproval extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "SubmitOrdersForApproval"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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("SubmitOrdersForApprovalAndOverbook", FALSE)) { +/** + * The action used for submitting and overbooking {@link Order} objects for approval. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SubmitOrdersForApprovalAndOverbook extends SubmitOrdersForApproval { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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() { + parent::__construct(); + } + +}} + +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 v201208 + */ +class SubmitOrdersForApprovalWithoutReservationChanges extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("TemplateInstantiatedCreativeError", FALSE)) { +/** + * Lists all errors associated with template instantiated creatives. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TemplateInstantiatedCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UnarchiveOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CompanyCreditStatusErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ForecastErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InvalidEmailErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InventoryTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("OrderActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class OrderActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class OrderErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class OrderStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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. + * 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 v201208 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("TemplateInstantiatedCreativeErrorReason", FALSE)) { +/** + * The reason for the error + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TemplateInstantiatedCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("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 v201208 + */ +class CreateOrder { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateOrderResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateOrders { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateOrdersResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetOrder { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetOrderResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetOrdersByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetOrdersByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PerformOrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PerformOrderActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateOrder { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateOrderResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateOrders { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateOrdersResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApproveOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "ApproveOrders"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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("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 v201208 + */ +class ApproveOrdersWithoutReservationChanges extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ArchiveOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("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 v201208 + */ +class DeleteOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DisapproveOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DisapproveOrdersWithoutReservationChanges extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ResumeAndOverbookOrders extends ResumeOrders { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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() { + parent::__construct(); + } + +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApproveAndOverbookOrders extends ApproveOrders { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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() { + parent::__construct(); + } + +}} + +if (!class_exists("OrderService", FALSE)) { +/** + * OrderService + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class OrderService extends DfpSoapClient { + + const SERVICE_NAME = "OrderService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201208/OrderService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/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", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BooleanValue" => "BooleanValue", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DeleteOrders" => "DeleteOrders", + "DisapproveOrders" => "DisapproveOrders", + "DisapproveOrdersWithoutReservationChanges" => "DisapproveOrdersWithoutReservationChanges", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "ForecastError" => "ForecastError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargetingError" => "InventoryTargetingError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "Money" => "Money", + "NotNullError" => "NotNullError", + "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", + "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", + "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UnarchiveOrders" => "UnarchiveOrders", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "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", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/PlacementService.php b/src/Google/Api/Ads/Dfp/v201208/PlacementService.php new file mode 100755 index 000000000..708478b49 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/PlacementService.php @@ -0,0 +1,3992 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PlacementAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PlacementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PlacementPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RegExError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SiteTargetingInfo { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InventoryStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PlacementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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. + * 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 v201208 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RegExErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreatePlacement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreatePlacementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreatePlacements { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreatePlacementsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetPlacement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetPlacementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetPlacementsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetPlacementsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PerformPlacementAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PerformPlacementActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdatePlacement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdatePlacementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdatePlacements { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdatePlacementsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ActivatePlacements extends PlacementAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ArchivePlacements extends PlacementAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("DeactivatePlacements", FALSE)) { +/** + * The action used for deactivating {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeactivatePlacements extends PlacementAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Placement extends SiteTargetingInfo { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PlacementService extends DfpSoapClient { + + const SERVICE_NAME = "PlacementService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201208/PlacementService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/PublisherQueryLanguageService.php b/src/Google/Api/Ads/Dfp/v201208/PublisherQueryLanguageService.php new file mode 100755 index 000000000..5513cfd94 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/PublisherQueryLanguageService.php @@ -0,0 +1,4021 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ColumnType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FileError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InvalidEmailError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InventoryTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InventoryUnitError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemFlightDateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemOperationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class OrderActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class OrderError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RegExError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ReservationDetailsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ResultSet { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Row { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AdUnitAfcSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AdUnitCodeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AdUnitHierarchyErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FileErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InvalidEmailErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InventoryTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InventoryUnitErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemFlightDateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LineItemOperationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class OrderActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class OrderErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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. + * 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 v201208 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RegExErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ReservationDetailsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Select { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SelectResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AdUnitAfcSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AdUnitCodeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AdUnitHierarchyError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageService extends DfpSoapClient { + + const SERVICE_NAME = "PublisherQueryLanguageService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201208/PublisherQueryLanguageService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/ReportService.php b/src/Google/Api/Ads/Dfp/v201208/ReportService.php new file mode 100755 index 000000000..6a6a6c4bd --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/ReportService.php @@ -0,0 +1,3137 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ReportDownloadOptions { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ReportError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ReportJob { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ReportQuery { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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) { + $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; + } + +}} + +if (!class_exists("RequiredError", FALSE)) { +/** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ReportQueryAdUnitView { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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}. + * 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 v201208 + */ +class Column { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DateRangeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Dimension { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DimensionAttribute { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DimensionFilter { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ExportFormat { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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. + * 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 v201208 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ReportErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ReportJobStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetReportDownloadURL { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetReportDownloadURLResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetReportDownloadUrlWithOptions { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetReportDownloadUrlWithOptionsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetReportJob { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetReportJobResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RunReportJob { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RunReportJobResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ReportService extends DfpSoapClient { + + const SERVICE_NAME = "ReportService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201208/ReportService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/SuggestedAdUnitService.php b/src/Google/Api/Ads/Dfp/v201208/SuggestedAdUnitService.php new file mode 100755 index 000000000..728eba188 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/SuggestedAdUnitService.php @@ -0,0 +1,3164 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AdUnitSize { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SuggestedAdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SuggestedAdUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 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, $targetWindow = null, $targetPlatform = null, $suggestedAdUnitSizes = null) { + $this->id = $id; + $this->numRequests = $numRequests; + $this->path = $path; + $this->targetWindow = $targetWindow; + $this->targetPlatform = $targetPlatform; + $this->suggestedAdUnitSizes = $suggestedAdUnitSizes; + } + +}} + +if (!class_exists("SuggestedAdUnitPage", FALSE)) { +/** + * Contains a page of {@link SuggestedAdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SuggestedAdUnitPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SuggestedAdUnitUpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AdUnitTargetWindow { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class EnvironmentType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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. + * 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 v201208 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TargetPlatform { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetSuggestedAdUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetSuggestedAdUnitResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetSuggestedAdUnitsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetSuggestedAdUnitsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PerformSuggestedAdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PerformSuggestedAdUnitActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApproveSuggestedAdUnit extends SuggestedAdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SuggestedAdUnitService extends DfpSoapClient { + + const SERVICE_NAME = "SuggestedAdUnitService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201208/SuggestedAdUnitService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/SuggestedAdUnitService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/TeamService.php b/src/Google/Api/Ads/Dfp/v201208/TeamService.php new file mode 100755 index 000000000..3efeb40e9 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/TeamService.php @@ -0,0 +1,3102 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Team { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TeamPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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. + * 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 v201208 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TeamAccessType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateTeam { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateTeamResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateTeams { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateTeamsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetTeam { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetTeamResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetTeamsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetTeamsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateTeam { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateTeamResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateTeams { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateTeamsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TeamService extends DfpSoapClient { + + const SERVICE_NAME = "TeamService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201208/TeamService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/ThirdPartySlotService.php b/src/Google/Api/Ads/Dfp/v201208/ThirdPartySlotService.php new file mode 100755 index 000000000..095326693 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/ThirdPartySlotService.php @@ -0,0 +1,3023 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("ThirdPartySlotAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link ThirdPartySlot} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ThirdPartySlotAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "ThirdPartySlotAction"; + + /** + * @access public + * @var string + */ + public $ThirdPartySlotActionType; + private $_parameterMap = array( + "ThirdPartySlotAction.Type" => "ThirdPartySlotActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { + $this->{$this->_parameterMap[$var]} = $value; + } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get + * @return mixed Variable value + */ + public function __get($var) { + if (!isset($this->_parameterMap[$var])) { + return null; + } + return $this->{$this->_parameterMap[$var]}; + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($ThirdPartySlotActionType = null) { + $this->ThirdPartySlotActionType = $ThirdPartySlotActionType; + } + +}} + +if (!class_exists("ThirdPartySlot", FALSE)) { +/** + * A {@code ThirdPartySlot} represents how third-party creatives are + * uniquely identified in a third-party ad network, yield manager, or + * ad exchange's system. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ThirdPartySlot { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "ThirdPartySlot"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer[] + */ + public $creativeIds; + + /** + * @access public + * @var integer + */ + public $companyId; + + /** + * @access public + * @var string + */ + public $externalUniqueId; + + /** + * @access public + * @var string + */ + public $externalUniqueName; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsThirdPartySlotStatus + */ + 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, $creativeIds = null, $companyId = null, $externalUniqueId = null, $externalUniqueName = null, $description = null, $status = null) { + $this->id = $id; + $this->creativeIds = $creativeIds; + $this->companyId = $companyId; + $this->externalUniqueId = $externalUniqueId; + $this->externalUniqueName = $externalUniqueName; + $this->description = $description; + $this->status = $status; + } + +}} + +if (!class_exists("ThirdPartySlotPage", FALSE)) { +/** + * Captures a page of {@link ThirdPartySlot} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ThirdPartySlotPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "ThirdPartySlotPage"; + + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var ThirdPartySlot[] + */ + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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. + * 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 v201208 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("ThirdPartySlotStatus", FALSE)) { +/** + * The status of a {@code ThirdPartySlot}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ThirdPartySlotStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "ThirdPartySlot.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("CreateThirdPartySlot", FALSE)) { +/** + * Creates a new {@link ThirdPartySlot}. + * + * The following fields are required: + *
        + *
      • {@link ThirdPartySlot#companyId}
      • + *
      • {@link ThirdPartySlot#externalUniqueId}
      • + *
      • {@link ThirdPartySlot#externalUniqueName}
      • + *
      • {@link ThirdPartySlot#description}
      • + *
      + * + * @param thirdPartySlot the third-party slot to create + * @return the new third-party slot with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreateThirdPartySlot { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ThirdPartySlot + */ + public $thirdPartySlot; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($thirdPartySlot = null) { + $this->thirdPartySlot = $thirdPartySlot; + } + +}} + +if (!class_exists("CreateThirdPartySlotResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreateThirdPartySlotResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ThirdPartySlot + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + +}} + +if (!class_exists("GetThirdPartySlotsByStatement", FALSE)) { +/** + * Gets a {@link ThirdPartySlotPage} of {@link ThirdPartySlot} objects that + * satisfy the filter query. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of third-party slots + * @return the third-party slots that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class GetThirdPartySlotsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("GetThirdPartySlotsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class GetThirdPartySlotsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ThirdPartySlotPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + +}} + +if (!class_exists("PerformThirdPartySlotAction", FALSE)) { +/** + * Performs actions on {@link ThirdPartySlot} objects that match the given + * {@link Statement#query}. + * + * @param thirdPartySlotAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of third-party slots + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PerformThirdPartySlotAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ThirdPartySlotAction + */ + public $thirdPartySlotAction; + + /** + * @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($thirdPartySlotAction = null, $filterStatement = null) { + $this->thirdPartySlotAction = $thirdPartySlotAction; + $this->filterStatement = $filterStatement; + } + +}} + +if (!class_exists("PerformThirdPartySlotActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PerformThirdPartySlotActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("UpdateThirdPartySlot", FALSE)) { +/** + * Updates the specified {@link ThirdPartySlot}. + * + * @param thirdPartySlot the third-party slot to update + * @return the updated third-party slot + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UpdateThirdPartySlot { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ThirdPartySlot + */ + public $thirdPartySlot; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($thirdPartySlot = null) { + $this->thirdPartySlot = $thirdPartySlot; + } + +}} + +if (!class_exists("UpdateThirdPartySlotResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UpdateThirdPartySlotResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ThirdPartySlot + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + +}} + +if (!class_exists("ActivateThirdPartySlots", FALSE)) { +/** + * Action to activate {@link ThirdPartySlot} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ActivateThirdPartySlots extends ThirdPartySlotAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "ActivateThirdPartySlots"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($ThirdPartySlotActionType = null) { + parent::__construct(); + $this->ThirdPartySlotActionType = $ThirdPartySlotActionType; + } + +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("ArchiveThirdPartySlots", FALSE)) { +/** + * Action to archive {@link ThirdPartySlot} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ArchiveThirdPartySlots extends ThirdPartySlotAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "ArchiveThirdPartySlots"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($ThirdPartySlotActionType = null) { + parent::__construct(); + $this->ThirdPartySlotActionType = $ThirdPartySlotActionType; + } + +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("ThirdPartySlotService", FALSE)) { +/** + * ThirdPartySlotService + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ThirdPartySlotService extends DfpSoapClient { + + const SERVICE_NAME = "ThirdPartySlotService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201208/ThirdPartySlotService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/ThirdPartySlotService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ActivateThirdPartySlots" => "ActivateThirdPartySlots", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "ArchiveThirdPartySlots" => "ArchiveThirdPartySlots", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "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", + "ThirdPartySlotAction" => "ThirdPartySlotAction", + "ThirdPartySlot" => "ThirdPartySlot", + "ThirdPartySlotPage" => "ThirdPartySlotPage", + "UniqueError" => "UniqueError", + "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", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "ThirdPartySlot.Status" => "ThirdPartySlotStatus", + "createThirdPartySlot" => "CreateThirdPartySlot", + "createThirdPartySlotResponse" => "CreateThirdPartySlotResponse", + "getThirdPartySlotsByStatement" => "GetThirdPartySlotsByStatement", + "getThirdPartySlotsByStatementResponse" => "GetThirdPartySlotsByStatementResponse", + "performThirdPartySlotAction" => "PerformThirdPartySlotAction", + "performThirdPartySlotActionResponse" => "PerformThirdPartySlotActionResponse", + "updateThirdPartySlot" => "UpdateThirdPartySlot", + "updateThirdPartySlotResponse" => "UpdateThirdPartySlotResponse", + ); + + + /** + * 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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * Creates a new {@link ThirdPartySlot}. + * + * The following fields are required: + *
        + *
      • {@link ThirdPartySlot#companyId}
      • + *
      • {@link ThirdPartySlot#externalUniqueId}
      • + *
      • {@link ThirdPartySlot#externalUniqueName}
      • + *
      • {@link ThirdPartySlot#description}
      • + *
      + * + * @param thirdPartySlot the third-party slot to create + * @return the new third-party slot with its ID filled in + */ + public function createThirdPartySlot($thirdPartySlot) { + $args = new CreateThirdPartySlot($thirdPartySlot); + $result = $this->__soapCall("createThirdPartySlot", array($args)); + return $result->rval; + } + /** + * Gets a {@link ThirdPartySlotPage} of {@link ThirdPartySlot} objects that + * satisfy the filter query. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of third-party slots + * @return the third-party slots that match the given filter + */ + public function getThirdPartySlotsByStatement($filterStatement) { + $args = new GetThirdPartySlotsByStatement($filterStatement); + $result = $this->__soapCall("getThirdPartySlotsByStatement", array($args)); + return $result->rval; + } + /** + * Performs actions on {@link ThirdPartySlot} objects that match the given + * {@link Statement#query}. + * + * @param thirdPartySlotAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of third-party slots + * @return the result of the action performed + */ + public function performThirdPartySlotAction($thirdPartySlotAction, $filterStatement) { + $args = new PerformThirdPartySlotAction($thirdPartySlotAction, $filterStatement); + $result = $this->__soapCall("performThirdPartySlotAction", array($args)); + return $result->rval; + } + /** + * Updates the specified {@link ThirdPartySlot}. + * + * @param thirdPartySlot the third-party slot to update + * @return the updated third-party slot + */ + public function updateThirdPartySlot($thirdPartySlot) { + $args = new UpdateThirdPartySlot($thirdPartySlot); + $result = $this->__soapCall("updateThirdPartySlot", array($args)); + return $result->rval; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/UserService.php b/src/Google/Api/Ads/Dfp/v201208/UserService.php new file mode 100755 index 000000000..22e087ac8 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/UserService.php @@ -0,0 +1,3850 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomFieldValueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InvalidEmailError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Role { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UserAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UserPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UserRecord { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InvalidEmailErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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. + * 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 v201208 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("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 v201208 + */ +class CreateUser { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateUserResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateUsers { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateUsersResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetAllRoles { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetAllRolesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetCurrentUser { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetCurrentUserResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetUser { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetUserResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetUsersByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetUsersByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PerformUserAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PerformUserActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateUser { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateUserResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateUsers { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateUsersResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ActivateUsers extends UserAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("DeactivateUsers", FALSE)) { +/** + * The action used for deactivating {@link User} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeactivateUsers extends UserAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class User extends UserRecord { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const XSI_TYPE = "User"; + + /** + * @access public + * @var boolean + */ + public $isActive; + + /** + * @access public + * @var boolean + */ + public $isEmailNotificationAllowed; + + /** + * @access public + * @var string + */ + public $ordersUiLocalTimeZoneId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $ordersUiLocalTimeZoneId = null, $id = null, $name = null, $email = null, $roleId = null, $roleName = null, $preferredLocale = null, $UserRecordType = null) { + parent::__construct(); + $this->isActive = $isActive; + $this->isEmailNotificationAllowed = $isEmailNotificationAllowed; + $this->ordersUiLocalTimeZoneId = $ordersUiLocalTimeZoneId; + $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 v201208 + */ +class UserService extends DfpSoapClient { + + const SERVICE_NAME = "UserService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201208/UserService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/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", + "BooleanValue" => "BooleanValue", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CustomFieldValueError" => "CustomFieldValueError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DeactivateUsers" => "DeactivateUsers", + "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", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/UserTeamAssociationService.php b/src/Google/Api/Ads/Dfp/v201208/UserTeamAssociationService.php new file mode 100755 index 000000000..2af374fa0 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/UserTeamAssociationService.php @@ -0,0 +1,3172 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UserRecordTeamAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UserTeamAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UserTeamAssociation extends UserRecordTeamAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UserTeamAssociationPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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. + * 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 v201208 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TeamAccessType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateUserTeamAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateUserTeamAssociationResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateUserTeamAssociations { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class CreateUserTeamAssociationsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetUserTeamAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetUserTeamAssociationResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetUserTeamAssociationsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class GetUserTeamAssociationsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PerformUserTeamAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class PerformUserTeamAssociationActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateUserTeamAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateUserTeamAssociationResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateUserTeamAssociations { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UpdateUserTeamAssociationsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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("DeleteUserTeamAssociations", FALSE)) { +/** + * Action to delete the association between a {@link User} and a {@link Team}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeleteUserTeamAssociations extends UserTeamAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + 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 v201208 + */ +class UserTeamAssociationService extends DfpSoapClient { + + const SERVICE_NAME = "UserTeamAssociationService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201208"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201208/UserTeamAssociationService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/AudienceSegmentService.php b/src/Google/Api/Ads/Dfp/v201211/AudienceSegmentService.php new file mode 100755 index 000000000..93a15c66b --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/AudienceSegmentService.php @@ -0,0 +1,2453 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("AudienceSegmentPage", FALSE)) { +/** + * Represents a page of {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AudienceSegmentPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("AudienceSegment", FALSE)) { +/** + * An {@link AudienceSegment} represents audience segment object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AudienceSegment { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 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, $AudienceSegmentType = null) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->size = $size; + $this->AudienceSegmentType = $AudienceSegmentType; + } + +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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. + * 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 v201211 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("AudienceSegmentStatus", FALSE)) { +/** + * Specifies the statuses for {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AudienceSegmentStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("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 v201211 + */ +class GetAudienceSegmentsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetAudienceSegmentsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("AudienceSegmentService", FALSE)) { +/** + * AudienceSegmentService + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AudienceSegmentService extends DfpSoapClient { + + const SERVICE_NAME = "AudienceSegmentService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201211/AudienceSegmentService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/AudienceSegmentService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AudienceSegmentPage" => "AudienceSegmentPage", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "OAuth" => "DfpOAuth", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "AudienceSegment" => "AudienceSegment", + "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", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "AudienceSegment.Status" => "AudienceSegmentStatus", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "getAudienceSegmentsByStatement" => "GetAudienceSegmentsByStatement", + "getAudienceSegmentsByStatementResponse" => "GetAudienceSegmentsByStatementResponse", + ); + + + /** + * 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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/CompanyService.php b/src/Google/Api/Ads/Dfp/v201211/CompanyService.php new file mode 100755 index 000000000..ff86491b0 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/CompanyService.php @@ -0,0 +1,3634 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CompanyCreditStatusError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Company { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 $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, $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->appliedTeamIds = $appliedTeamIds; + $this->thirdPartyCompanyId = $thirdPartyCompanyId; + $this->lastModifiedDateTime = $lastModifiedDateTime; + } + +}} + +if (!class_exists("CompanyError", FALSE)) { +/** + * A list of all errors associated with companies. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CompanyError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CompanyPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InvalidEmailError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CompanyCreditStatusErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CompanyCreditStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CompanyType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CompanyErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InvalidEmailErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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. + * 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 v201211 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateCompanies { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateCompaniesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateCompany { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateCompanyResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetCompaniesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetCompaniesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetCompany { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetCompanyResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateCompanies { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateCompaniesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateCompany { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateCompanyResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CompanyService extends DfpSoapClient { + + const SERVICE_NAME = "CompanyService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201211/CompanyService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/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", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/ContentService.php b/src/Google/Api/Ads/Dfp/v201211/ContentService.php new file mode 100755 index 000000000..d00830bfa --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/ContentService.php @@ -0,0 +1,3048 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Content { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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) { + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->statusDefinedBy = $statusDefinedBy; + } + +}} + +if (!class_exists("ContentPage", FALSE)) { +/** + * Captures a page of {@code Content} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ContentPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ContentPartnerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ContentPartnerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ContentStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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. + * 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 v201211 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ContentStatusDefinedBy { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetContentByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetContentByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetContentByStatementAndCustomTargetingValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetContentByStatementAndCustomTargetingValueResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("GetUncategorizedContentByStatement", FALSE)) { +/** + * Gets a {@link ContentPage} of {@link Content} objects that are not + * associated with the {@link Network}'s + * {@link Network#contentBrowseCustomTargetingKeyId}. This content is + * considered uncategorized. This method also satisfies 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}
      + * + * This method is no longer supported as of version 201211 + * @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 v201211 + */ +class GetUncategorizedContentByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("GetUncategorizedContentByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class GetUncategorizedContentByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ContentService extends DfpSoapClient { + + const SERVICE_NAME = "ContentService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201211/ContentService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/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", + "CommonError" => "CommonError", + "Content" => "Content", + "ContentPage" => "ContentPage", + "ContentPartnerError" => "ContentPartnerError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "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", + "getUncategorizedContentByStatement" => "GetUncategorizedContentByStatement", + "getUncategorizedContentByStatementResponse" => "GetUncategorizedContentByStatementResponse", + ); + + + /** + * 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=null, $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; + } + /** + * Gets a {@link ContentPage} of {@link Content} objects that are not + * associated with the {@link Network}'s + * {@link Network#contentBrowseCustomTargetingKeyId}. This content is + * considered uncategorized. This method also satisfies 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}
      + * + * This method is no longer supported as of version 201211 + * @params filterStatement a Publisher Query Language statement used to filter + * a set of content + * @return the content that matches the given filter + */ + public function getUncategorizedContentByStatement($filterStatement) { + $args = new GetUncategorizedContentByStatement($filterStatement); + $result = $this->__soapCall("getUncategorizedContentByStatement", array($args)); + return $result->rval; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/CreativeService.php b/src/Google/Api/Ads/Dfp/v201211/CreativeService.php new file mode 100755 index 000000000..f46baaa42 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/CreativeService.php @@ -0,0 +1,8360 @@ + "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 v201211 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AssetCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Asset { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AssetError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ConversionEvent_TrackingUrlsMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeAsset { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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) { + $this->assetId = $assetId; + $this->assetByteArray = $assetByteArray; + $this->fileName = $fileName; + $this->fileSize = $fileSize; + } + +}} + +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 v201211 + */ +class CustomCreativeAsset { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeAssetMacroError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeSetError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FileError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class HasDestinationUrlCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ImageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalRedirectCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = "InternalRedirectCreative"; + + /** + * @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($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->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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LegacyDfpCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemCreativeAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LongCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RedirectAsset extends Asset { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RichMediaStudioChildAssetProperty { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RichMediaStudioCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StringCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("TemplateCreative", FALSE)) { +/** + * A {@code Creative} that is created by the specified creative template. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TemplateCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = "TemplateCreative"; + + /** + * @access public + * @var integer + */ + public $creativeTemplateId; + + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * @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, $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->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 v201211 + */ +class TemplateInstantiatedCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("TextAdCreative", FALSE)) { +/** + * A simple plain text-based {@code Creative}. This creative is only available to small business + * networks. + * + * Starting in version v201306 this will be returned as a {@link TemplateCreative} + * identified with a {@link TemplateCreative#creativeTemplateId} of {@code 10000440}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TextAdCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = "TextAdCreative"; + + /** + * @access public + * @var string + */ + public $hoverText; + + /** + * @access public + * @var tnsTargetWindow + */ + public $targetWindow; + + /** + * @access public + * @var string + */ + public $linkColor; + + /** + * @access public + * @var string + */ + public $linkTitle; + + /** + * @access public + * @var string + */ + public $text; + + /** + * @access public + * @var string + */ + public $textColor; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($hoverText = null, $targetWindow = null, $linkColor = null, $linkTitle = null, $text = null, $textColor = null, $destinationUrl = null) { + parent::__construct(); + $this->hoverText = $hoverText; + $this->targetWindow = $targetWindow; + $this->linkColor = $linkColor; + $this->linkTitle = $linkTitle; + $this->text = $text; + $this->textColor = $textColor; + $this->destinationUrl = $destinationUrl; + } + +}} + +if (!class_exists("ThirdPartyCreative", FALSE)) { +/** + * A {@code Creative} that is served by a 3rd-party vendor. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ThirdPartyCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TrackingUrls { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UnsupportedCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UrlCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class VastRedirectCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $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->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 v201211 + */ +class VideoRedirectAsset extends RedirectAsset { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class VpaidLinearCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $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->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 v201211 + */ +class VpaidLinearRedirectCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiFramework { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AssetErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ConversionEvent { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeAssetMacroErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeSetErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FileErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("FlashExpandableCreativeExpandDirection", FALSE)) { +/** + * The possible expand directions + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FlashExpandableCreativeExpandDirection { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = "FlashExpandableCreative.ExpandDirection"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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 v201211 + */ +class ImageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemCreativeAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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. + * 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 v201211 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RichMediaStudioChildAssetPropertyType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RichMediaStudioCreativeArtworkType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RichMediaStudioCreativeBillingAttribute { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RichMediaStudioCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RichMediaStudioCreativeFormat { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("TargetWindow", FALSE)) { +/** + * The different values for target window, corresponds to an HTML link's + * {@code target} attribute. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TargetWindow { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = "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("TemplateInstantiatedCreativeErrorReason", FALSE)) { +/** + * The reason for the error + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TemplateInstantiatedCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class VastRedirectType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateCreativeResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateCreatives { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateCreativesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetCreativeResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetCreativesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetCreativesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateCreativeResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateCreatives { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateCreativesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BaseDynamicAllocationCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AspectRatioImageCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = "AspectRatioImageCreative"; + + /** + * @access public + * @var CreativeAsset[] + */ + public $imageAssets; + + /** + * @access public + * @var string + */ + public $fallbackText; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $fallbackText = null, $destinationUrl = null) { + parent::__construct(); + $this->imageAssets = $imageAssets; + $this->fallbackText = $fallbackText; + $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 v201211 + */ +class BaseFlashCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BaseFlashRedirectCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BaseImageCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = "BaseImageCreative"; + + /** + * @access public + * @var string + */ + public $imageName; + + /** + * @access public + * @var base64Binary + */ + public $imageByteArray; + + /** + * @access public + * @var boolean + */ + public $overrideSize; + + /** + * @access public + * @var Size + */ + public $assetSize; + + /** + * @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($imageName = null, $imageByteArray = null, $overrideSize = null, $assetSize = null, $imageUrl = null, $destinationUrl = null) { + parent::__construct(); + $this->imageName = $imageName; + $this->imageByteArray = $imageByteArray; + $this->overrideSize = $overrideSize; + $this->assetSize = $assetSize; + $this->imageUrl = $imageUrl; + $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 v201211 + */ +class BaseImageRedirectCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BaseRichMediaStudioCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BaseVideoCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $destinationUrl = null) { + parent::__construct(); + $this->duration = $duration; + $this->allowDurationOverride = $allowDurationOverride; + $this->trackingUrls = $trackingUrls; + $this->companionCreativeIds = $companionCreativeIds; + $this->customParameters = $customParameters; + $this->destinationUrl = $destinationUrl; + } + +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ClickTrackingCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("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 v201211 + */ +class LegacyDfpMobileCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FlashCreative extends BaseFlashCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = "FlashCreative"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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) { + 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; + } + +}} + +if (!class_exists("FlashExpandableCreative", FALSE)) { +/** + * An expandable {@code Creative} where the collapsed size is a Flash SWF file and + * the expanded size is another Flash SWF file. If Flash isn't supported in the browser, + * the fallback image will be used. + *

      + * This creative will not work with iframe ad tags. + *

      + * This creative is only available to small business networks. + * + * Starting in version v201306 this will be returned as a {@link TemplateCreative} + * identified with a {@link TemplateCreative#creativeTemplateId} of {@code 10001160}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FlashExpandableCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = "FlashExpandableCreative"; + + /** + * @access public + * @var integer + */ + public $collapsedFlashAssetId; + + /** + * @access public + * @var base64Binary + */ + public $collapsedFlashAssetByteArray; + + /** + * @access public + * @var string + */ + public $collapsedFlashFileName; + + /** + * @access public + * @var integer + */ + public $collapsedFallbackImageAssetId; + + /** + * @access public + * @var base64Binary + */ + public $collapsedFallbackImageAssetByteArray; + + /** + * @access public + * @var string + */ + public $collapsedFallbackImageFileName; + + /** + * @access public + * @var integer + */ + public $expandedFlashAssetId; + + /** + * @access public + * @var base64Binary + */ + public $expandedFlashAssetByteArray; + + /** + * @access public + * @var string + */ + public $expandedFlashFileName; + + /** + * @access public + * @var integer + */ + public $requiredFlashVersion; + + /** + * @access public + * @var integer + */ + public $collapsedWidth; + + /** + * @access public + * @var integer + */ + public $collapsedHeight; + + /** + * @access public + * @var integer + */ + public $expandedWidth; + + /** + * @access public + * @var integer + */ + public $expandedHeight; + + /** + * @access public + * @var tnsFlashExpandableCreativeExpandDirection + */ + public $expandDirection; + + /** + * @access public + * @var boolean + */ + public $expandOnMouseOver; + + /** + * @access public + * @var string + */ + public $javascriptFunctionForExpand; + + /** + * @access public + * @var boolean + */ + public $collapseOnMouseOut; + + /** + * @access public + * @var string + */ + public $javascriptFunctionForCollapse; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($collapsedFlashAssetId = null, $collapsedFlashAssetByteArray = null, $collapsedFlashFileName = null, $collapsedFallbackImageAssetId = null, $collapsedFallbackImageAssetByteArray = null, $collapsedFallbackImageFileName = null, $expandedFlashAssetId = null, $expandedFlashAssetByteArray = null, $expandedFlashFileName = null, $requiredFlashVersion = null, $collapsedWidth = null, $collapsedHeight = null, $expandedWidth = null, $expandedHeight = null, $expandDirection = null, $expandOnMouseOver = null, $javascriptFunctionForExpand = null, $collapseOnMouseOut = null, $javascriptFunctionForCollapse = null, $destinationUrl = null) { + parent::__construct(); + $this->collapsedFlashAssetId = $collapsedFlashAssetId; + $this->collapsedFlashAssetByteArray = $collapsedFlashAssetByteArray; + $this->collapsedFlashFileName = $collapsedFlashFileName; + $this->collapsedFallbackImageAssetId = $collapsedFallbackImageAssetId; + $this->collapsedFallbackImageAssetByteArray = $collapsedFallbackImageAssetByteArray; + $this->collapsedFallbackImageFileName = $collapsedFallbackImageFileName; + $this->expandedFlashAssetId = $expandedFlashAssetId; + $this->expandedFlashAssetByteArray = $expandedFlashAssetByteArray; + $this->expandedFlashFileName = $expandedFlashFileName; + $this->requiredFlashVersion = $requiredFlashVersion; + $this->collapsedWidth = $collapsedWidth; + $this->collapsedHeight = $collapsedHeight; + $this->expandedWidth = $expandedWidth; + $this->expandedHeight = $expandedHeight; + $this->expandDirection = $expandDirection; + $this->expandOnMouseOver = $expandOnMouseOver; + $this->javascriptFunctionForExpand = $javascriptFunctionForExpand; + $this->collapseOnMouseOut = $collapseOnMouseOut; + $this->javascriptFunctionForCollapse = $javascriptFunctionForCollapse; + $this->destinationUrl = $destinationUrl; + } + +}} + +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 v201211 + */ +class FlashOverlayCreative extends BaseFlashCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $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->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("FlashPushdownCreative", FALSE)) { +/** + * {@code Creative} that pushes page content down when the creative expands. + * The collapsed size is one Flash SWF file and the expanded size is another Flash SWF file. + *

      + * This creative will not work with iframe ad tags. + *

      + * This creative is only available to small business networks. + * + * Starting in version v201306 this will be returned as a {@link TemplateCreative} + * identified with a {@link TemplateCreative#creativeTemplateId} of {@code 10001400}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FlashPushdownCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = "FlashPushdownCreative"; + + /** + * @access public + * @var integer + */ + public $collapsedFlashAssetId; + + /** + * @access public + * @var base64Binary + */ + public $collapsedFlashAssetByteArray; + + /** + * @access public + * @var string + */ + public $collapsedFlashFileName; + + /** + * @access public + * @var integer + */ + public $collapsedFallbackImageAssetId; + + /** + * @access public + * @var base64Binary + */ + public $collapsedFallbackImageAssetByteArray; + + /** + * @access public + * @var string + */ + public $collapsedFallbackImageFileName; + + /** + * @access public + * @var integer + */ + public $expandedFlashAssetId; + + /** + * @access public + * @var base64Binary + */ + public $expandedFlashAssetByteArray; + + /** + * @access public + * @var string + */ + public $expandedFlashFileName; + + /** + * @access public + * @var integer + */ + public $requiredFlashVersion; + + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $collapsedHeight; + + /** + * @access public + * @var integer + */ + public $expandedHeight; + + /** + * @access public + * @var boolean + */ + public $pushdownOnMouseOver; + + /** + * @access public + * @var string + */ + public $javascriptFunctionForPushdown; + + /** + * @access public + * @var boolean + */ + public $collapseOnMouseOut; + + /** + * @access public + * @var string + */ + public $javascriptFunctionForCollapse; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($collapsedFlashAssetId = null, $collapsedFlashAssetByteArray = null, $collapsedFlashFileName = null, $collapsedFallbackImageAssetId = null, $collapsedFallbackImageAssetByteArray = null, $collapsedFallbackImageFileName = null, $expandedFlashAssetId = null, $expandedFlashAssetByteArray = null, $expandedFlashFileName = null, $requiredFlashVersion = null, $width = null, $collapsedHeight = null, $expandedHeight = null, $pushdownOnMouseOver = null, $javascriptFunctionForPushdown = null, $collapseOnMouseOut = null, $javascriptFunctionForCollapse = null, $destinationUrl = null) { + parent::__construct(); + $this->collapsedFlashAssetId = $collapsedFlashAssetId; + $this->collapsedFlashAssetByteArray = $collapsedFlashAssetByteArray; + $this->collapsedFlashFileName = $collapsedFlashFileName; + $this->collapsedFallbackImageAssetId = $collapsedFallbackImageAssetId; + $this->collapsedFallbackImageAssetByteArray = $collapsedFallbackImageAssetByteArray; + $this->collapsedFallbackImageFileName = $collapsedFallbackImageFileName; + $this->expandedFlashAssetId = $expandedFlashAssetId; + $this->expandedFlashAssetByteArray = $expandedFlashAssetByteArray; + $this->expandedFlashFileName = $expandedFlashFileName; + $this->requiredFlashVersion = $requiredFlashVersion; + $this->width = $width; + $this->collapsedHeight = $collapsedHeight; + $this->expandedHeight = $expandedHeight; + $this->pushdownOnMouseOver = $pushdownOnMouseOver; + $this->javascriptFunctionForPushdown = $javascriptFunctionForPushdown; + $this->collapseOnMouseOut = $collapseOnMouseOut; + $this->javascriptFunctionForCollapse = $javascriptFunctionForCollapse; + $this->destinationUrl = $destinationUrl; + } + +}} + +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 v201211 + */ +class FlashRedirectCreative extends BaseFlashRedirectCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FlashRedirectOverlayCreative extends BaseFlashRedirectCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $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->flashUrl = $flashUrl; + $this->fallbackUrl = $fallbackUrl; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + } + +}} + +if (!class_exists("FloatingFlashCreative", FALSE)) { +/** + * A floating flash creative. This creative is an interstitial creative, + * and its {@link #size} must be 1x1. + *

      + * This creative will not work with iframe ad tags. + *

      + * This creative is only available to small business networks. + * + * Starting in version v201306 this will be returned as a {@link TemplateCreative} + * identified with a {@link TemplateCreative#creativeTemplateId} of {@code 10000560}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FloatingFlashCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = "FloatingFlashCreative"; + + /** + * @access public + * @var string + */ + public $flashName; + + /** + * @access public + * @var base64Binary + */ + public $flashByteArray; + + /** + * @access public + * @var integer + */ + public $flashAssetId; + + /** + * @access public + * @var string + */ + public $fallbackImageName; + + /** + * @access public + * @var base64Binary + */ + public $fallbackImageByteArray; + + /** + * @access public + * @var integer + */ + public $fallbackImageAssetId; + + /** + * @access public + * @var integer + */ + public $requiredFlashVersion; + + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var string + */ + public $topPosition; + + /** + * @access public + * @var string + */ + public $leftPosition; + + /** + * @access public + * @var integer + */ + public $displayTimeInSecond; + + /** + * @access public + * @var string + */ + public $thirdPartyImpressionTracker; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $flashAssetId = null, $fallbackImageName = null, $fallbackImageByteArray = null, $fallbackImageAssetId = null, $requiredFlashVersion = null, $width = null, $height = null, $topPosition = null, $leftPosition = null, $displayTimeInSecond = null, $thirdPartyImpressionTracker = null, $destinationUrl = null) { + parent::__construct(); + $this->flashName = $flashName; + $this->flashByteArray = $flashByteArray; + $this->flashAssetId = $flashAssetId; + $this->fallbackImageName = $fallbackImageName; + $this->fallbackImageByteArray = $fallbackImageByteArray; + $this->fallbackImageAssetId = $fallbackImageAssetId; + $this->requiredFlashVersion = $requiredFlashVersion; + $this->width = $width; + $this->height = $height; + $this->topPosition = $topPosition; + $this->leftPosition = $leftPosition; + $this->displayTimeInSecond = $displayTimeInSecond; + $this->thirdPartyImpressionTracker = $thirdPartyImpressionTracker; + $this->destinationUrl = $destinationUrl; + } + +}} + +if (!class_exists("HasHtmlSnippetDynamicAllocationCreative", FALSE)) { +/** + * Dynamic allocation creative with a backfill code snippet. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class HasHtmlSnippetDynamicAllocationCreative extends BaseDynamicAllocationCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ImageCreative extends BaseImageCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = "ImageCreative"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($imageName = null, $imageByteArray = null, $overrideSize = null, $assetSize = null, $imageUrl = null) { + parent::__construct(); + $this->imageName = $imageName; + $this->imageByteArray = $imageByteArray; + $this->overrideSize = $overrideSize; + $this->assetSize = $assetSize; + $this->imageUrl = $imageUrl; + } + +}} + +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 v201211 + */ +class ImageOverlayCreative extends BaseImageCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $imageName = null, $imageByteArray = null, $overrideSize = null, $assetSize = null, $imageUrl = null) { + parent::__construct(); + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->duration = $duration; + $this->imageName = $imageName; + $this->imageByteArray = $imageByteArray; + $this->overrideSize = $overrideSize; + $this->assetSize = $assetSize; + $this->imageUrl = $imageUrl; + } + +}} + +if (!class_exists("ImageRedirectCreative", FALSE)) { +/** + * A {@code Creative} that loads an image asset from a specified URL. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ImageRedirectCreative extends BaseImageRedirectCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = "ImageRedirectCreative"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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) { + parent::__construct(); + $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 v201211 + */ +class ImageRedirectOverlayCreative extends BaseImageRedirectCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $imageUrl = null) { + parent::__construct(); + $this->assetSize = $assetSize; + $this->duration = $duration; + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->imageUrl = $imageUrl; + } + +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RichMediaStudioCreative extends BaseRichMediaStudioCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class VideoCreative extends BaseVideoCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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) { + parent::__construct(); + $this->duration = $duration; + $this->allowDurationOverride = $allowDurationOverride; + $this->trackingUrls = $trackingUrls; + $this->companionCreativeIds = $companionCreativeIds; + $this->customParameters = $customParameters; + } + +}} + +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 v201211 + */ +class VideoRedirectCreative extends BaseVideoCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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) { + parent::__construct(); + $this->videoAssets = $videoAssets; + $this->duration = $duration; + $this->allowDurationOverride = $allowDurationOverride; + $this->trackingUrls = $trackingUrls; + $this->companionCreativeIds = $companionCreativeIds; + $this->customParameters = $customParameters; + } + +}} + +if (!class_exists("AdExchangeCreative", FALSE)) { +/** + * An Ad Exchange dynamic allocation creative. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdExchangeCreative extends HasHtmlSnippetDynamicAllocationCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AdSenseCreative extends HasHtmlSnippetDynamicAllocationCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeService extends DfpSoapClient { + + const SERVICE_NAME = "CreativeService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201211/CreativeService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/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", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "LegacyDfpMobileCreative" => "LegacyDfpMobileCreative", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "FlashCreative" => "FlashCreative", + "FlashExpandableCreative" => "FlashExpandableCreative", + "FlashOverlayCreative" => "FlashOverlayCreative", + "FlashPushdownCreative" => "FlashPushdownCreative", + "FlashRedirectCreative" => "FlashRedirectCreative", + "FlashRedirectOverlayCreative" => "FlashRedirectOverlayCreative", + "FloatingFlashCreative" => "FloatingFlashCreative", + "HasDestinationUrlCreative" => "HasDestinationUrlCreative", + "HasHtmlSnippetDynamicAllocationCreative" => "HasHtmlSnippetDynamicAllocationCreative", + "ImageCreative" => "ImageCreative", + "ImageError" => "ImageError", + "ImageOverlayCreative" => "ImageOverlayCreative", + "ImageRedirectCreative" => "ImageRedirectCreative", + "ImageRedirectOverlayCreative" => "ImageRedirectOverlayCreative", + "InternalApiError" => "InternalApiError", + "InternalRedirectCreative" => "InternalRedirectCreative", + "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", + "TemplateCreative" => "TemplateCreative", + "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", + "TextAdCreative" => "TextAdCreative", + "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", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "FlashExpandableCreative.ExpandDirection" => "FlashExpandableCreativeExpandDirection", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "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", + "TargetWindow" => "TargetWindow", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/CreativeSetService.php b/src/Google/Api/Ads/Dfp/v201211/CreativeSetService.php new file mode 100755 index 000000000..62175dd2a --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/CreativeSetService.php @@ -0,0 +1,4136 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AssetError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeAssetMacroError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeSet { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeSetError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeSetPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FileError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ImageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RichMediaStudioCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("TemplateInstantiatedCreativeError", FALSE)) { +/** + * Lists all errors associated with template instantiated creatives. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TemplateInstantiatedCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AssetErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeAssetMacroErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeSetErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FileErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ImageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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. + * 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 v201211 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RichMediaStudioCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("TemplateInstantiatedCreativeErrorReason", FALSE)) { +/** + * The reason for the error + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TemplateInstantiatedCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateCreativeSet { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateCreativeSetResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetCreativeSet { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetCreativeSetResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetCreativeSetsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetCreativeSetsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateCreativeSet { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateCreativeSetResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeSetService extends DfpSoapClient { + + const SERVICE_NAME = "CreativeSetService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201211/CreativeSetService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/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", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "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", + "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", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/CreativeTemplateService.php b/src/Google/Api/Ads/Dfp/v201211/CreativeTemplateService.php new file mode 100755 index 000000000..e77a2f893 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/CreativeTemplateService.php @@ -0,0 +1,3519 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeTemplate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeTemplateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ListStringCreativeTemplateVariableVariableChoice { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeTemplatePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AssetCreativeTemplateVariableMimeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeTemplateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeTemplateStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeTemplateType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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. + * 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 v201211 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetCreativeTemplate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetCreativeTemplateResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetCreativeTemplatesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetCreativeTemplatesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AssetCreativeTemplateVariable extends CreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LongCreativeTemplateVariable extends CreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StringCreativeTemplateVariable extends CreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UrlCreativeTemplateVariable extends CreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ListStringCreativeTemplateVariable extends StringCreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeTemplateService extends DfpSoapClient { + + const SERVICE_NAME = "CreativeTemplateService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201211/CreativeTemplateService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/CreativeWrapperService.php b/src/Google/Api/Ads/Dfp/v201211/CreativeWrapperService.php new file mode 100755 index 000000000..b9df09e25 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/CreativeWrapperService.php @@ -0,0 +1,3727 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeWrapperAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeWrapper { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeWrapperError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeWrapperPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DeactivateCreativeWrappers extends CreativeWrapperAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeWrapperHtmlSnippet { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LabelError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeWrapperErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeWrapperOrdering { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeWrapperStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LabelErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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. + * 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 v201211 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateCreativeWrapper { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateCreativeWrapperResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateCreativeWrappers { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateCreativeWrappersResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetCreativeWrapper { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetCreativeWrapperResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetCreativeWrappersByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetCreativeWrappersByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PerformCreativeWrapperAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PerformCreativeWrapperActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateCreativeWrapper { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateCreativeWrapperResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateCreativeWrappers { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateCreativeWrappersResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ActivateCreativeWrappers extends CreativeWrapperAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeWrapperService extends DfpSoapClient { + + const SERVICE_NAME = "CreativeWrapperService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201211/CreativeWrapperService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/CustomFieldService.php b/src/Google/Api/Ads/Dfp/v201211/CustomFieldService.php new file mode 100755 index 000000000..3f3457b38 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/CustomFieldService.php @@ -0,0 +1,4233 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomFieldAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomField { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomFieldError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomFieldOption { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomFieldPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DeactivateCustomFields extends CustomFieldAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DropDownCustomField extends CustomField { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomFieldDataType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomFieldEntityType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomFieldErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomFieldVisibility { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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. + * 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 v201211 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateCustomField { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateCustomFieldResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateCustomFieldOption { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateCustomFieldOptionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateCustomFieldOptions { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateCustomFieldOptionsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateCustomFields { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateCustomFieldsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetCustomField { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetCustomFieldResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetCustomFieldOption { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetCustomFieldOptionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetCustomFieldsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetCustomFieldsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PerformCustomFieldAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PerformCustomFieldActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateCustomField { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateCustomFieldResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateCustomFieldOption { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateCustomFieldOptionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateCustomFieldOptions { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateCustomFieldOptionsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateCustomFields { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateCustomFieldsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ActivateCustomFields extends CustomFieldAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomFieldService extends DfpSoapClient { + + const SERVICE_NAME = "CustomFieldService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201211/CustomFieldService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/CustomTargetingService.php b/src/Google/Api/Ads/Dfp/v201211/CustomTargetingService.php new file mode 100755 index 000000000..514458774 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/CustomTargetingService.php @@ -0,0 +1,3896 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomTargetingKeyAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomTargetingKey { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomTargetingKeyPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomTargetingValueAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomTargetingValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomTargetingValuePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DeleteCustomTargetingKeys extends CustomTargetingKeyAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DeleteCustomTargetingValues extends CustomTargetingValueAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomTargetingKeyType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomTargetingValueMatchType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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. + * 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 v201211 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateCustomTargetingKeys { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateCustomTargetingKeysResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateCustomTargetingValues { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateCustomTargetingValuesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetCustomTargetingKeysByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetCustomTargetingKeysByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetCustomTargetingValuesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetCustomTargetingValuesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PerformCustomTargetingKeyAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PerformCustomTargetingKeyActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PerformCustomTargetingValueAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PerformCustomTargetingValueActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateCustomTargetingKeys { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateCustomTargetingKeysResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateCustomTargetingValues { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateCustomTargetingValuesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomTargetingService extends DfpSoapClient { + + const SERVICE_NAME = "CustomTargetingService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201211/CustomTargetingService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/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", + "CommonError" => "CommonError", + "CustomTargetingError" => "CustomTargetingError", + "CustomTargetingKeyAction" => "CustomTargetingKeyAction", + "CustomTargetingKey" => "CustomTargetingKey", + "CustomTargetingKeyPage" => "CustomTargetingKeyPage", + "CustomTargetingValueAction" => "CustomTargetingValueAction", + "CustomTargetingValue" => "CustomTargetingValue", + "CustomTargetingValuePage" => "CustomTargetingValuePage", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/ForecastService.php b/src/Google/Api/Ads/Dfp/v201211/ForecastService.php new file mode 100755 index 000000000..7719add72 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/ForecastService.php @@ -0,0 +1,9388 @@ +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 v201211 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TechnologyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AudienceExtensionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BandwidthGroupTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BrowserLanguageTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BrowserTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ClickTrackingLineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CompanyCreditStatusError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ContentTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativePlaceholder { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomFieldValueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DateTimeRangeTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DayPart { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DayPartTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DayPartTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DeliveryData { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DeliveryIndicator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DeviceCapabilityTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DeviceCategoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DeviceManufacturerTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 overbook lower or equal + * priority line items. + *
      • Possible units -- How many units can be booked without affecting any + * higher priority line items. Booking more than this number can overbook + * higher priority line items. + *
      • Matched (forecast) units -- How many units satisfy all specified + * criteria. + *
      + * + *

      The term "can overbook" is used, because 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 v201211 + */ +class Forecast { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ForecastError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FrequencyCap { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FrequencyCapError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GenericTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GeoTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GeoTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InventoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InventoryTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InventoryUnitError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemCreativeAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemFlightDateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemOperationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemSummary { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 $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 BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * @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, $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, $customFieldValues = 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->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->customFieldValues = $customFieldValues; + $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 v201211 + */ +class DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class MetroLocation extends DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class MobileCarrierTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class MobileDeviceSubmodelTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class MobileDeviceTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Money { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class OperatingSystemTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class OperatingSystemVersionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class OrderError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PostalCodeLocation extends DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RegExError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RegionLocation extends DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ReservationDetailsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Stats { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Targeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TechnologyTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TimeOfDay { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UserDomainTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UserDomainTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("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 v201211 + */ +class VideoPositionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = "VideoPositionTargeting"; + + /** + * @access public + * @var tnsVideoPositionTargetingType[] + */ + public $targetedVideoPositions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($targetedVideoPositions = null) { + $this->targetedVideoPositions = $targetedVideoPositions; + } + +}} + +if (!class_exists("AdUnitAfcSizeErrorReason", FALSE)) { +/** + * The supplied Afc size is not valid. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdUnitAfcSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AdUnitCodeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AudienceExtensionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ClickTrackingLineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CompanionDeliveryOption { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CompanyCreditStatusErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ComputedStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CostType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeRotationType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeSizeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomCriteriaSetLogicalOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AudienceSegmentCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DateTimeRangeTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DayOfWeek { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DayPartTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DeliveryTimeZone { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DeliveryRateType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class EnvironmentType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ForecastErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FrequencyCapErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GenericTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GeoTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InventoryTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InventoryUnitErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemCreativeAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemDiscountType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemFlightDateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemOperationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemSummaryDuration { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemSummaryReservationStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class MinuteOfHour { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class OrderErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativePersistenceType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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. + * 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 v201211 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RegExErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ReservationDetailsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RoadblockingType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StartDateTimeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TargetPlatform { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TechnologyTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TimeUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UnitType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UserDomainTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("VideoPositionTargetingType", FALSE)) { +/** + * Represents the options for targetable positions within a video. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class VideoPositionTargetingType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = "VideoPositionTargetingType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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 v201211 + */ +class GetForecast { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetForecastResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetForecastById { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetForecastByIdResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AdUnitAfcSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AdUnitCodeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BandwidthGroup extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Browser extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BrowserLanguage extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CityLocation extends DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CountryLocation extends DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomCriteriaSet extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomCriteriaLeaf extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AudienceSegmentCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("DeviceCapability", FALSE)) { +/** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeviceCapability extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DeviceCategory extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DeviceManufacturer extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItem extends LineItemSummary { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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, $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, $customFieldValues = 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->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->customFieldValues = $customFieldValues; + $this->LineItemSummaryType = $LineItemSummaryType; + } + +}} + +if (!class_exists("MobileCarrier", FALSE)) { +/** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class MobileCarrier extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class MobileDevice extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class MobileDeviceSubmodel extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class OperatingSystem extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class OperatingSystemVersion extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ForecastService extends DfpSoapClient { + + const SERVICE_NAME = "ForecastService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201211/ForecastService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/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", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaSet" => "CustomCriteriaSet", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaNode" => "CustomCriteriaNode", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeRangeTargetingError" => "DateTimeRangeTargetingError", + "DateTimeValue" => "DateTimeValue", + "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", + "VideoPositionTargeting" => "VideoPositionTargeting", + "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", + "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", + "VideoPositionTargetingType" => "VideoPositionTargetingType", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/InventoryService.php b/src/Google/Api/Ads/Dfp/v201211/InventoryService.php new file mode 100755 index 000000000..a2f6533b7 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/InventoryService.php @@ -0,0 +1,5741 @@ +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 v201211 + */ +class AdSenseSettingsInheritedProperty { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AdUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $appliedLabelFrequencyCaps = null, $effectiveLabelFrequencyCaps = null, $appliedLabels = null, $effectiveAppliedLabels = null, $effectiveTeamIds = null, $appliedTeamIds = null, $lastModifiedDateTime = 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->appliedLabelFrequencyCaps = $appliedLabelFrequencyCaps; + $this->effectiveLabelFrequencyCaps = $effectiveLabelFrequencyCaps; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->effectiveTeamIds = $effectiveTeamIds; + $this->appliedTeamIds = $appliedTeamIds; + $this->lastModifiedDateTime = $lastModifiedDateTime; + } + +}} + +if (!class_exists("AdUnitPage", FALSE)) { +/** + * Captures a page of {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdUnitPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AdUnitParent { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ArchiveAdUnits extends AdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AssignAdUnitsToPlacement extends AdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeWrapperError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DeactivateAdUnits extends AdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FrequencyCap { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FrequencyCapError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InvalidColorError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InventoryUnitError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InventoryUnitPartnerAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AdUnitSize { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InventoryUnitSizesError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AdUnitTypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LabelFrequencyCap { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RegExError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Size_StringMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AdSenseAccountErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AdSenseSettingsAdType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AdSenseSettingsBorderStyle { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AdSenseSettingsFontFamily { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AdSenseSettingsFontSize { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AdUnitAfcSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AdUnitCodeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AdUnitTargetWindow { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AdUnitHierarchyErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeWrapperErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("EnvironmentType", FALSE)) { +/** + * Enum for the valid environments in which ads can be shown. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class EnvironmentType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FrequencyCapErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InvalidColorErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InventoryStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InventoryUnitErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InventoryUnitPartnerAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InventoryUnitSizesErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AdUnitTypeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class MobilePlatform { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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. + * 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 v201211 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RegExErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TargetPlatform { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TimeUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateAdUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateAdUnitResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateAdUnits { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateAdUnitsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetAdUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetAdUnitResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetAdUnitSizesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetAdUnitSizesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetAdUnitsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetAdUnitsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PerformAdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PerformAdUnitActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateAdUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateAdUnitResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateAdUnits { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateAdUnitsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ActivateAdUnits extends AdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AdSenseAccountError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AdUnitAfcSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AdUnitCodeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AdUnitHierarchyError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InventoryService extends DfpSoapClient { + + const SERVICE_NAME = "InventoryService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201211/InventoryService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/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", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "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", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "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", + "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", + "ServerError.Reason" => "ServerErrorReason", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/LabelService.php b/src/Google/Api/Ads/Dfp/v201211/LabelService.php new file mode 100755 index 000000000..091b14e62 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/LabelService.php @@ -0,0 +1,3613 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeWrapperError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("LabelAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LabelAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($LabelActionType = null) { + $this->LabelActionType = $LabelActionType; + } + +}} + +if (!class_exists("Label", FALSE)) { +/** + * A {@code Label} is additional information that can be added to an entity. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Label { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = "Label"; + + /** + * @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 tnsLabelType[] + */ + public $types; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $types = null) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->isActive = $isActive; + $this->types = $types; + } + +}} + +if (!class_exists("LabelError", FALSE)) { +/** + * Errors specific to labels. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LabelError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("LabelPage", FALSE)) { +/** + * Captures a page of {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LabelPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = "LabelPage"; + + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Label[] + */ + 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 v201211 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeWrapperErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("LabelErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LabelErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("LabelType", FALSE)) { +/** + * Represents the types of labels supported. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LabelType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = "LabelType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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 v201211 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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. + * 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 v201211 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("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 v201211 + */ +class CreateLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateLabelResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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. + * + * @param labels the labels to create + * @return the created labels with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreateLabels { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("CreateLabelsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreateLabelsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("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 v201211 + */ +class GetLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetLabelResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@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}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels. + * @return the labels that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class GetLabelsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("GetLabelsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class GetLabelsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LabelPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + +}} + +if (!class_exists("PerformLabelAction", FALSE)) { +/** + * Performs actions on {@link Label} 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 + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PerformLabelAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LabelAction + */ + public $labelAction; + + /** + * @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($labelAction = null, $filterStatement = null) { + $this->labelAction = $labelAction; + $this->filterStatement = $filterStatement; + } + +}} + +if (!class_exists("PerformLabelActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PerformLabelActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("UpdateLabel", FALSE)) { +/** + * Updates the specified {@link Label}. + * + * @param label the label to update + * @return the updated label + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UpdateLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("UpdateLabelResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UpdateLabelResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("UpdateLabels", FALSE)) { +/** + * Updates the specified {@link Label} objects. + * + * @param labels the labels to update + * @return the updated labels + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UpdateLabels { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UpdateLabelsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("ActivateLabels", FALSE)) { +/** + * The action used for activating {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ActivateLabels extends LabelAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = "ActivateLabels"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($LabelActionType = null) { + parent::__construct(); + $this->LabelActionType = $LabelActionType; + } + +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("DeactivateLabels", FALSE)) { +/** + * The action used for deactivating {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeactivateLabels extends LabelAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = "DeactivateLabels"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($LabelActionType = null) { + parent::__construct(); + $this->LabelActionType = $LabelActionType; + } + +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("LabelService", FALSE)) { +/** + * LabelService + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LabelService extends DfpSoapClient { + + const SERVICE_NAME = "LabelService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201211/LabelService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/LabelService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ActivateLabels" => "ActivateLabels", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CreativeWrapperError" => "CreativeWrapperError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DeactivateLabels" => "DeactivateLabels", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "LabelAction" => "LabelAction", + "Label" => "Label", + "LabelError" => "LabelError", + "LabelPage" => "LabelPage", + "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", + "LabelError.Reason" => "LabelErrorReason", + "LabelType" => "LabelType", + "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", + "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", + ); + + + /** + * 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=null, $options, $user) { + $options["classmap"] = self::$classmap; + 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. + * + * @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 + */ + 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 + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@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}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels. + * @return the labels that match the given filter + */ + public function getLabelsByStatement($filterStatement) { + $args = new GetLabelsByStatement($filterStatement); + $result = $this->__soapCall("getLabelsByStatement", array($args)); + return $result->rval; + } + /** + * Performs actions on {@link Label} 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 + * @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)); + return $result->rval; + } + /** + * Updates the specified {@link Label} objects. + * + * @param labels the labels to update + * @return the updated labels + */ + public function updateLabels($labels) { + $args = new UpdateLabels($labels); + $result = $this->__soapCall("updateLabels", array($args)); + return $result->rval; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/LineItemCreativeAssociationService.php b/src/Google/Api/Ads/Dfp/v201211/LineItemCreativeAssociationService.php new file mode 100755 index 000000000..d9cf603b8 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/LineItemCreativeAssociationService.php @@ -0,0 +1,5553 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AssetError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AudienceExtensionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeAssetMacroError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeSetError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FileError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ImageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemCreativeAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemCreativeAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemCreativeAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemCreativeAssociationOperationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemCreativeAssociationPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemCreativeAssociationStats { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Long_StatsMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Money { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RichMediaStudioCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Stats { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("TemplateInstantiatedCreativeError", FALSE)) { +/** + * Lists all errors associated with template instantiated creatives. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TemplateInstantiatedCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AdSenseAccountErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AssetErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AudienceExtensionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeAssetMacroErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeSetErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FileErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ImageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemCreativeAssociationStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemCreativeAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemCreativeAssociationOperationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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. + * 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 v201211 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RichMediaStudioCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StartDateTimeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("TemplateInstantiatedCreativeErrorReason", FALSE)) { +/** + * The reason for the error + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TemplateInstantiatedCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateLineItemCreativeAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateLineItemCreativeAssociationResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateLineItemCreativeAssociations { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateLineItemCreativeAssociationsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetLineItemCreativeAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetLineItemCreativeAssociationResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetLineItemCreativeAssociationsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetLineItemCreativeAssociationsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetPreviewUrl { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetPreviewUrlResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PerformLineItemCreativeAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PerformLineItemCreativeAssociationActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateLineItemCreativeAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateLineItemCreativeAssociationResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateLineItemCreativeAssociations { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateLineItemCreativeAssociationsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ActivateLineItemCreativeAssociations extends LineItemCreativeAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AdSenseAccountError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("DeactivateLineItemCreativeAssociations", FALSE)) { +/** + * The action used for deactivating {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeactivateLineItemCreativeAssociations extends LineItemCreativeAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemCreativeAssociationService extends DfpSoapClient { + + const SERVICE_NAME = "LineItemCreativeAssociationService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201211/LineItemCreativeAssociationService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/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", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DeactivateLineItemCreativeAssociations" => "DeactivateLineItemCreativeAssociations", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "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", + "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", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/LineItemService.php b/src/Google/Api/Ads/Dfp/v201211/LineItemService.php new file mode 100755 index 000000000..bc89b638a --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/LineItemService.php @@ -0,0 +1,10191 @@ +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 v201211 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TechnologyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AudienceExtensionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BandwidthGroupTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BrowserLanguageTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BrowserTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ClickTrackingLineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CompanyCreditStatusError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ContentTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativePlaceholder { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomFieldValueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DateTimeRangeTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DayPart { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DayPartTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DayPartTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DeliveryData { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DeliveryIndicator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DeviceCapabilityTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DeviceCategoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DeviceManufacturerTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ForecastError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FrequencyCap { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FrequencyCapError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GenericTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GeoTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GeoTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InventoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InventoryTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemCreativeAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemFlightDateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemOperationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemSummary { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 $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 BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * @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, $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, $customFieldValues = 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->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->customFieldValues = $customFieldValues; + $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 v201211 + */ +class DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class MetroLocation extends DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class MobileCarrierTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class MobileDeviceSubmodelTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class MobileDeviceTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Money { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class OperatingSystemTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class OperatingSystemVersionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class OrderError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PauseLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PostalCodeLocation extends DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RegionLocation extends DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ReleaseLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ReservationDetailsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ReserveLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = "ReserveLineItems"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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("ResumeLineItems", FALSE)) { +/** + * The action used for resuming {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ResumeLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = "ResumeLineItems"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Stats { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Targeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TechnologyTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TimeOfDay { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UnarchiveLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UserDomainTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UserDomainTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("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 v201211 + */ +class VideoPositionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = "VideoPositionTargeting"; + + /** + * @access public + * @var tnsVideoPositionTargetingType[] + */ + public $targetedVideoPositions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($targetedVideoPositions = null) { + $this->targetedVideoPositions = $targetedVideoPositions; + } + +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AudienceExtensionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ClickTrackingLineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CompanionDeliveryOption { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CompanyCreditStatusErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ComputedStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CostType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeRotationType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeSizeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomCriteriaSetLogicalOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AudienceSegmentCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DateTimeRangeTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DayOfWeek { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DayPartTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DeliveryTimeZone { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DeliveryRateType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class EnvironmentType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ForecastErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FrequencyCapErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GenericTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GeoTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InventoryTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemCreativeAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemDiscountType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemFlightDateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemOperationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemSummaryDuration { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemSummaryReservationStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class MinuteOfHour { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class OrderErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativePersistenceType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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. + * 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 v201211 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ReservationDetailsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RoadblockingType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StartDateTimeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TargetPlatform { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TechnologyTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TimeUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UnitType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UserDomainTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("VideoPositionTargetingType", FALSE)) { +/** + * Represents the options for targetable positions within a video. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class VideoPositionTargetingType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = "VideoPositionTargetingType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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 v201211 + */ +class CreateLineItem { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateLineItemResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateLineItems { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateLineItemsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetLineItem { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetLineItemResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 Property Object Property
      {@code costType}{@link LineItem#costType}
      {@code id}{@link LineItem#id}
      {@code lineItemType}{@link LineItem#lineItemType}
      {@code name}{@link LineItem#name}
      {@code orderId}{@link LineItem#orderId}
      {@code status}{@link LineItem#status}
      {@code unitsBought}{@link LineItem#unitsBought}
      {@code deliveryRateType}{@link LineItem#deliveryRateType}
      {@code lastModifiedDateTime}{@link LineItem#lastModifiedDateTime}
      {@code creationDateTime}{@link LineItem#creationDateTime}
      {@code isMissingCreatives}{@link LineItem#isMissingCreatives}
      + * + * @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 v201211 + */ +class GetLineItemsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetLineItemsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PerformLineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PerformLineItemActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateLineItem { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateLineItemResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateLineItems { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateLineItemsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ActivateLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ArchiveLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BandwidthGroup extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Browser extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BrowserLanguage extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CityLocation extends DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CountryLocation extends DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomCriteriaSet extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomCriteriaLeaf extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AudienceSegmentCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("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 v201211 + */ +class DeleteLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DeviceCapability extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DeviceCategory extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DeviceManufacturer extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItem extends LineItemSummary { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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, $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, $customFieldValues = 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->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->customFieldValues = $customFieldValues; + $this->LineItemSummaryType = $LineItemSummaryType; + } + +}} + +if (!class_exists("MobileCarrier", FALSE)) { +/** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class MobileCarrier extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class MobileDevice extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class MobileDeviceSubmodel extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class OperatingSystem extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class OperatingSystemVersion extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ReserveAndOverbookLineItems extends ReserveLineItems { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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() { + parent::__construct(); + } + +}} + +if (!class_exists("ResumeAndOverbookLineItems", FALSE)) { +/** + * The action used for resuming and overbooking {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ResumeAndOverbookLineItems extends ResumeLineItems { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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() { + parent::__construct(); + } + +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemService extends DfpSoapClient { + + const SERVICE_NAME = "LineItemService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201211/LineItemService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/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", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaSet" => "CustomCriteriaSet", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaNode" => "CustomCriteriaNode", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeRangeTargetingError" => "DateTimeRangeTargetingError", + "DateTimeValue" => "DateTimeValue", + "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", + "VideoPositionTargeting" => "VideoPositionTargeting", + "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", + "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", + "VideoPositionTargetingType" => "VideoPositionTargetingType", + "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=null, $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 Property Object Property
      {@code costType}{@link LineItem#costType}
      {@code id}{@link LineItem#id}
      {@code lineItemType}{@link LineItem#lineItemType}
      {@code name}{@link LineItem#name}
      {@code orderId}{@link LineItem#orderId}
      {@code status}{@link LineItem#status}
      {@code unitsBought}{@link LineItem#unitsBought}
      {@code deliveryRateType}{@link LineItem#deliveryRateType}
      {@code lastModifiedDateTime}{@link LineItem#lastModifiedDateTime}
      {@code creationDateTime}{@link LineItem#creationDateTime}
      {@code isMissingCreatives}{@link LineItem#isMissingCreatives}
      + * + * @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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/NetworkService.php b/src/Google/Api/Ads/Dfp/v201211/NetworkService.php new file mode 100755 index 000000000..df36a1100 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/NetworkService.php @@ -0,0 +1,2427 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InvalidEmailError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Network { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 $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, $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->effectiveRootAdUnitId = $effectiveRootAdUnitId; + $this->contentBrowseCustomTargetingKeyId = $contentBrowseCustomTargetingKeyId; + $this->isTest = $isTest; + } + +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InvalidEmailErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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. + * 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 v201211 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetAllNetworks { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetAllNetworksResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetCurrentNetwork { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetCurrentNetworkResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class MakeTestNetwork { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class MakeTestNetworkResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateNetwork { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateNetworkResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NetworkService extends DfpSoapClient { + + const SERVICE_NAME = "NetworkService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201211/NetworkService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/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", + "NotNullError" => "NotNullError", + "OAuth" => "DfpOAuth", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "TypeError" => "TypeError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/OrderService.php b/src/Google/Api/Ads/Dfp/v201211/OrderService.php new file mode 100755 index 000000000..1b1f798d3 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/OrderService.php @@ -0,0 +1,5468 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CompanyCreditStatusError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomFieldValueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ForecastError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InvalidEmailError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InventoryTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Money { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class OrderActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Order { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 $agencyId; + + /** + * @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, $agencyId = 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->agencyId = $agencyId; + $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 v201211 + */ +class OrderError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class OrderPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PauseOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("ResumeOrders", FALSE)) { +/** + * The action used for resuming {@link Order} objects. All {@link LineItem} + * objects within the order will resume as well. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ResumeOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = "ResumeOrders"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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("RetractOrders", FALSE)) { +/** + * The action used for retracting {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RetractOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RetractOrdersWithoutReservationChanges extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SubmitOrdersForApproval extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = "SubmitOrdersForApproval"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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("SubmitOrdersForApprovalAndOverbook", FALSE)) { +/** + * The action used for submitting and overbooking {@link Order} objects for approval. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SubmitOrdersForApprovalAndOverbook extends SubmitOrdersForApproval { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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() { + parent::__construct(); + } + +}} + +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 v201211 + */ +class SubmitOrdersForApprovalWithoutReservationChanges extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("TemplateInstantiatedCreativeError", FALSE)) { +/** + * Lists all errors associated with template instantiated creatives. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TemplateInstantiatedCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UnarchiveOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CompanyCreditStatusErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ForecastErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InvalidEmailErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InventoryTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("OrderActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class OrderActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class OrderErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class OrderStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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. + * 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 v201211 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("TemplateInstantiatedCreativeErrorReason", FALSE)) { +/** + * The reason for the error + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TemplateInstantiatedCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("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 v201211 + */ +class CreateOrder { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateOrderResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateOrders { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateOrdersResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetOrder { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetOrderResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetOrdersByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetOrdersByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PerformOrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PerformOrderActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateOrder { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateOrderResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateOrders { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateOrdersResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApproveOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = "ApproveOrders"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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("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 v201211 + */ +class ApproveOrdersWithoutReservationChanges extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ArchiveOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("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 v201211 + */ +class DeleteOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DisapproveOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DisapproveOrdersWithoutReservationChanges extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ResumeAndOverbookOrders extends ResumeOrders { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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() { + parent::__construct(); + } + +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApproveAndOverbookOrders extends ApproveOrders { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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() { + parent::__construct(); + } + +}} + +if (!class_exists("OrderService", FALSE)) { +/** + * OrderService + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class OrderService extends DfpSoapClient { + + const SERVICE_NAME = "OrderService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201211/OrderService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/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", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BooleanValue" => "BooleanValue", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DeleteOrders" => "DeleteOrders", + "DisapproveOrders" => "DisapproveOrders", + "DisapproveOrdersWithoutReservationChanges" => "DisapproveOrdersWithoutReservationChanges", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "ForecastError" => "ForecastError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargetingError" => "InventoryTargetingError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "Money" => "Money", + "NotNullError" => "NotNullError", + "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", + "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", + "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UnarchiveOrders" => "UnarchiveOrders", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "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", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/PlacementService.php b/src/Google/Api/Ads/Dfp/v201211/PlacementService.php new file mode 100755 index 000000000..41487d783 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/PlacementService.php @@ -0,0 +1,3992 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PlacementAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PlacementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PlacementPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RegExError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SiteTargetingInfo { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InventoryStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PlacementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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. + * 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 v201211 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RegExErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreatePlacement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreatePlacementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreatePlacements { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreatePlacementsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetPlacement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetPlacementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetPlacementsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetPlacementsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PerformPlacementAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PerformPlacementActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdatePlacement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdatePlacementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdatePlacements { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdatePlacementsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ActivatePlacements extends PlacementAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ArchivePlacements extends PlacementAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("DeactivatePlacements", FALSE)) { +/** + * The action used for deactivating {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeactivatePlacements extends PlacementAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Placement extends SiteTargetingInfo { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PlacementService extends DfpSoapClient { + + const SERVICE_NAME = "PlacementService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201211/PlacementService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/PublisherQueryLanguageService.php b/src/Google/Api/Ads/Dfp/v201211/PublisherQueryLanguageService.php new file mode 100755 index 000000000..cff267610 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/PublisherQueryLanguageService.php @@ -0,0 +1,4021 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ColumnType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FileError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InvalidEmailError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InventoryTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InventoryUnitError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemFlightDateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemOperationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class OrderActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class OrderError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RegExError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ReservationDetailsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ResultSet { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Row { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AdUnitAfcSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AdUnitCodeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AdUnitHierarchyErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FileErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InvalidEmailErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InventoryTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InventoryUnitErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemFlightDateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LineItemOperationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class OrderActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class OrderErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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. + * 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 v201211 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RegExErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ReservationDetailsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Select { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SelectResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AdUnitAfcSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AdUnitCodeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AdUnitHierarchyError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageService extends DfpSoapClient { + + const SERVICE_NAME = "PublisherQueryLanguageService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201211/PublisherQueryLanguageService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/ReportService.php b/src/Google/Api/Ads/Dfp/v201211/ReportService.php new file mode 100755 index 000000000..b4691b7ef --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/ReportService.php @@ -0,0 +1,3137 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ReportDownloadOptions { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ReportError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ReportJob { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ReportQuery { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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) { + $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; + } + +}} + +if (!class_exists("RequiredError", FALSE)) { +/** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ReportQueryAdUnitView { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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}. + * 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 v201211 + */ +class Column { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DateRangeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Dimension { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DimensionAttribute { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DimensionFilter { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ExportFormat { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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. + * 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 v201211 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ReportErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ReportJobStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetReportDownloadURL { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetReportDownloadURLResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetReportDownloadUrlWithOptions { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetReportDownloadUrlWithOptionsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetReportJob { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetReportJobResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RunReportJob { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RunReportJobResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ReportService extends DfpSoapClient { + + const SERVICE_NAME = "ReportService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201211/ReportService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/SuggestedAdUnitService.php b/src/Google/Api/Ads/Dfp/v201211/SuggestedAdUnitService.php new file mode 100755 index 000000000..41ad544c8 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/SuggestedAdUnitService.php @@ -0,0 +1,3218 @@ +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 v201211 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AdUnitSize { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SuggestedAdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SuggestedAdUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SuggestedAdUnitPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SuggestedAdUnitUpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AdUnitTargetWindow { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class EnvironmentType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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. + * 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 v201211 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TargetPlatform { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetSuggestedAdUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetSuggestedAdUnitResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetSuggestedAdUnitsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetSuggestedAdUnitsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PerformSuggestedAdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PerformSuggestedAdUnitActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApproveSuggestedAdUnit extends SuggestedAdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SuggestedAdUnitService extends DfpSoapClient { + + const SERVICE_NAME = "SuggestedAdUnitService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201211/SuggestedAdUnitService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/TeamService.php b/src/Google/Api/Ads/Dfp/v201211/TeamService.php new file mode 100755 index 000000000..ed8808cef --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/TeamService.php @@ -0,0 +1,3102 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Team { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TeamPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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. + * 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 v201211 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TeamAccessType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateTeam { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateTeamResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateTeams { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateTeamsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetTeam { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetTeamResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetTeamsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetTeamsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateTeam { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateTeamResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateTeams { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateTeamsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TeamService extends DfpSoapClient { + + const SERVICE_NAME = "TeamService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201211/TeamService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/ThirdPartySlotService.php b/src/Google/Api/Ads/Dfp/v201211/ThirdPartySlotService.php new file mode 100755 index 000000000..4eade4b17 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/ThirdPartySlotService.php @@ -0,0 +1,3023 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("ThirdPartySlotAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link ThirdPartySlot} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ThirdPartySlotAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = "ThirdPartySlotAction"; + + /** + * @access public + * @var string + */ + public $ThirdPartySlotActionType; + private $_parameterMap = array( + "ThirdPartySlotAction.Type" => "ThirdPartySlotActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { + $this->{$this->_parameterMap[$var]} = $value; + } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get + * @return mixed Variable value + */ + public function __get($var) { + if (!isset($this->_parameterMap[$var])) { + return null; + } + return $this->{$this->_parameterMap[$var]}; + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($ThirdPartySlotActionType = null) { + $this->ThirdPartySlotActionType = $ThirdPartySlotActionType; + } + +}} + +if (!class_exists("ThirdPartySlot", FALSE)) { +/** + * A {@code ThirdPartySlot} represents how third-party creatives are + * uniquely identified in a third-party ad network, yield manager, or + * ad exchange's system. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ThirdPartySlot { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = "ThirdPartySlot"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer[] + */ + public $creativeIds; + + /** + * @access public + * @var integer + */ + public $companyId; + + /** + * @access public + * @var string + */ + public $externalUniqueId; + + /** + * @access public + * @var string + */ + public $externalUniqueName; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsThirdPartySlotStatus + */ + 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, $creativeIds = null, $companyId = null, $externalUniqueId = null, $externalUniqueName = null, $description = null, $status = null) { + $this->id = $id; + $this->creativeIds = $creativeIds; + $this->companyId = $companyId; + $this->externalUniqueId = $externalUniqueId; + $this->externalUniqueName = $externalUniqueName; + $this->description = $description; + $this->status = $status; + } + +}} + +if (!class_exists("ThirdPartySlotPage", FALSE)) { +/** + * Captures a page of {@link ThirdPartySlot} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ThirdPartySlotPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = "ThirdPartySlotPage"; + + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var ThirdPartySlot[] + */ + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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. + * 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 v201211 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("ThirdPartySlotStatus", FALSE)) { +/** + * The status of a {@code ThirdPartySlot}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ThirdPartySlotStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = "ThirdPartySlot.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("CreateThirdPartySlot", FALSE)) { +/** + * Creates a new {@link ThirdPartySlot}. + * + * The following fields are required: + *
        + *
      • {@link ThirdPartySlot#companyId}
      • + *
      • {@link ThirdPartySlot#externalUniqueId}
      • + *
      • {@link ThirdPartySlot#externalUniqueName}
      • + *
      • {@link ThirdPartySlot#description}
      • + *
      + * + * @param thirdPartySlot the third-party slot to create + * @return the new third-party slot with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreateThirdPartySlot { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ThirdPartySlot + */ + public $thirdPartySlot; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($thirdPartySlot = null) { + $this->thirdPartySlot = $thirdPartySlot; + } + +}} + +if (!class_exists("CreateThirdPartySlotResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreateThirdPartySlotResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ThirdPartySlot + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + +}} + +if (!class_exists("GetThirdPartySlotsByStatement", FALSE)) { +/** + * Gets a {@link ThirdPartySlotPage} of {@link ThirdPartySlot} objects that + * satisfy the filter query. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of third-party slots + * @return the third-party slots that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class GetThirdPartySlotsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("GetThirdPartySlotsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class GetThirdPartySlotsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ThirdPartySlotPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + +}} + +if (!class_exists("PerformThirdPartySlotAction", FALSE)) { +/** + * Performs actions on {@link ThirdPartySlot} objects that match the given + * {@link Statement#query}. + * + * @param thirdPartySlotAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of third-party slots + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PerformThirdPartySlotAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ThirdPartySlotAction + */ + public $thirdPartySlotAction; + + /** + * @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($thirdPartySlotAction = null, $filterStatement = null) { + $this->thirdPartySlotAction = $thirdPartySlotAction; + $this->filterStatement = $filterStatement; + } + +}} + +if (!class_exists("PerformThirdPartySlotActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PerformThirdPartySlotActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("UpdateThirdPartySlot", FALSE)) { +/** + * Updates the specified {@link ThirdPartySlot}. + * + * @param thirdPartySlot the third-party slot to update + * @return the updated third-party slot + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UpdateThirdPartySlot { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ThirdPartySlot + */ + public $thirdPartySlot; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($thirdPartySlot = null) { + $this->thirdPartySlot = $thirdPartySlot; + } + +}} + +if (!class_exists("UpdateThirdPartySlotResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UpdateThirdPartySlotResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ThirdPartySlot + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + +}} + +if (!class_exists("ActivateThirdPartySlots", FALSE)) { +/** + * Action to activate {@link ThirdPartySlot} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ActivateThirdPartySlots extends ThirdPartySlotAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = "ActivateThirdPartySlots"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($ThirdPartySlotActionType = null) { + parent::__construct(); + $this->ThirdPartySlotActionType = $ThirdPartySlotActionType; + } + +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("ArchiveThirdPartySlots", FALSE)) { +/** + * Action to archive {@link ThirdPartySlot} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ArchiveThirdPartySlots extends ThirdPartySlotAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = "ArchiveThirdPartySlots"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($ThirdPartySlotActionType = null) { + parent::__construct(); + $this->ThirdPartySlotActionType = $ThirdPartySlotActionType; + } + +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("ThirdPartySlotService", FALSE)) { +/** + * ThirdPartySlotService + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ThirdPartySlotService extends DfpSoapClient { + + const SERVICE_NAME = "ThirdPartySlotService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201211/ThirdPartySlotService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/ThirdPartySlotService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ActivateThirdPartySlots" => "ActivateThirdPartySlots", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "ArchiveThirdPartySlots" => "ArchiveThirdPartySlots", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "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", + "ThirdPartySlotAction" => "ThirdPartySlotAction", + "ThirdPartySlot" => "ThirdPartySlot", + "ThirdPartySlotPage" => "ThirdPartySlotPage", + "UniqueError" => "UniqueError", + "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", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "ThirdPartySlot.Status" => "ThirdPartySlotStatus", + "createThirdPartySlot" => "CreateThirdPartySlot", + "createThirdPartySlotResponse" => "CreateThirdPartySlotResponse", + "getThirdPartySlotsByStatement" => "GetThirdPartySlotsByStatement", + "getThirdPartySlotsByStatementResponse" => "GetThirdPartySlotsByStatementResponse", + "performThirdPartySlotAction" => "PerformThirdPartySlotAction", + "performThirdPartySlotActionResponse" => "PerformThirdPartySlotActionResponse", + "updateThirdPartySlot" => "UpdateThirdPartySlot", + "updateThirdPartySlotResponse" => "UpdateThirdPartySlotResponse", + ); + + + /** + * 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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * Creates a new {@link ThirdPartySlot}. + * + * The following fields are required: + *
        + *
      • {@link ThirdPartySlot#companyId}
      • + *
      • {@link ThirdPartySlot#externalUniqueId}
      • + *
      • {@link ThirdPartySlot#externalUniqueName}
      • + *
      • {@link ThirdPartySlot#description}
      • + *
      + * + * @param thirdPartySlot the third-party slot to create + * @return the new third-party slot with its ID filled in + */ + public function createThirdPartySlot($thirdPartySlot) { + $args = new CreateThirdPartySlot($thirdPartySlot); + $result = $this->__soapCall("createThirdPartySlot", array($args)); + return $result->rval; + } + /** + * Gets a {@link ThirdPartySlotPage} of {@link ThirdPartySlot} objects that + * satisfy the filter query. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of third-party slots + * @return the third-party slots that match the given filter + */ + public function getThirdPartySlotsByStatement($filterStatement) { + $args = new GetThirdPartySlotsByStatement($filterStatement); + $result = $this->__soapCall("getThirdPartySlotsByStatement", array($args)); + return $result->rval; + } + /** + * Performs actions on {@link ThirdPartySlot} objects that match the given + * {@link Statement#query}. + * + * @param thirdPartySlotAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of third-party slots + * @return the result of the action performed + */ + public function performThirdPartySlotAction($thirdPartySlotAction, $filterStatement) { + $args = new PerformThirdPartySlotAction($thirdPartySlotAction, $filterStatement); + $result = $this->__soapCall("performThirdPartySlotAction", array($args)); + return $result->rval; + } + /** + * Updates the specified {@link ThirdPartySlot}. + * + * @param thirdPartySlot the third-party slot to update + * @return the updated third-party slot + */ + public function updateThirdPartySlot($thirdPartySlot) { + $args = new UpdateThirdPartySlot($thirdPartySlot); + $result = $this->__soapCall("updateThirdPartySlot", array($args)); + return $result->rval; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/UserService.php b/src/Google/Api/Ads/Dfp/v201211/UserService.php new file mode 100755 index 000000000..d2a63e8c5 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/UserService.php @@ -0,0 +1,3850 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomFieldValueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InvalidEmailError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Role { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UserAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UserPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UserRecord { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InvalidEmailErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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. + * 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 v201211 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("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 v201211 + */ +class CreateUser { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateUserResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateUsers { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateUsersResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetAllRoles { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetAllRolesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetCurrentUser { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetCurrentUserResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetUser { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetUserResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetUsersByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetUsersByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PerformUserAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PerformUserActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateUser { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateUserResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateUsers { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateUsersResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ActivateUsers extends UserAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("DeactivateUsers", FALSE)) { +/** + * The action used for deactivating {@link User} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeactivateUsers extends UserAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class User extends UserRecord { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const XSI_TYPE = "User"; + + /** + * @access public + * @var boolean + */ + public $isActive; + + /** + * @access public + * @var boolean + */ + public $isEmailNotificationAllowed; + + /** + * @access public + * @var string + */ + public $ordersUiLocalTimeZoneId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $ordersUiLocalTimeZoneId = null, $id = null, $name = null, $email = null, $roleId = null, $roleName = null, $preferredLocale = null, $UserRecordType = null) { + parent::__construct(); + $this->isActive = $isActive; + $this->isEmailNotificationAllowed = $isEmailNotificationAllowed; + $this->ordersUiLocalTimeZoneId = $ordersUiLocalTimeZoneId; + $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 v201211 + */ +class UserService extends DfpSoapClient { + + const SERVICE_NAME = "UserService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201211/UserService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/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", + "BooleanValue" => "BooleanValue", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CustomFieldValueError" => "CustomFieldValueError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DeactivateUsers" => "DeactivateUsers", + "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", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/UserTeamAssociationService.php b/src/Google/Api/Ads/Dfp/v201211/UserTeamAssociationService.php new file mode 100755 index 000000000..0a7b494ab --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/UserTeamAssociationService.php @@ -0,0 +1,3172 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UserRecordTeamAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UserTeamAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UserTeamAssociation extends UserRecordTeamAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UserTeamAssociationPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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. + * 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 v201211 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TeamAccessType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateUserTeamAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateUserTeamAssociationResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateUserTeamAssociations { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class CreateUserTeamAssociationsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetUserTeamAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetUserTeamAssociationResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetUserTeamAssociationsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class GetUserTeamAssociationsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PerformUserTeamAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class PerformUserTeamAssociationActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateUserTeamAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateUserTeamAssociationResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateUserTeamAssociations { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UpdateUserTeamAssociationsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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("DeleteUserTeamAssociations", FALSE)) { +/** + * Action to delete the association between a {@link User} and a {@link Team}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeleteUserTeamAssociations extends UserTeamAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + 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 v201211 + */ +class UserTeamAssociationService extends DfpSoapClient { + + const SERVICE_NAME = "UserTeamAssociationService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201211"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201211/UserTeamAssociationService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/ActivityGroupService.php b/src/Google/Api/Ads/Dfp/v201302/ActivityGroupService.php new file mode 100755 index 000000000..26cf24c15 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/ActivityGroupService.php @@ -0,0 +1,3120 @@ +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 v201302 + */ +class ActivityGroupPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ActivityErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ActivityGroupStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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. + * 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 v201302 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateActivityGroup { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateActivityGroupResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateActivityGroups { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateActivityGroupsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetActivityGroup { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetActivityGroupResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetActivityGroupsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetActivityGroupsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateActivityGroup { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateActivityGroupResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateActivityGroups { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateActivityGroupsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ActivityError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ActivityGroupService extends DfpSoapClient { + + const SERVICE_NAME = "ActivityGroupService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201302/ActivityGroupService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/ActivityService.php b/src/Google/Api/Ads/Dfp/v201302/ActivityService.php new file mode 100755 index 000000000..fad874ab5 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/ActivityService.php @@ -0,0 +1,3158 @@ +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 v201302 + */ +class Activity { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ActivityPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ActivityStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ActivityType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ActivityErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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. + * 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 v201302 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateActivities { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateActivitiesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateActivity { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateActivityResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetActivitiesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetActivitiesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetActivity { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetActivityResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateActivities { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateActivitiesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateActivity { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateActivityResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ActivityError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ActivityService extends DfpSoapClient { + + const SERVICE_NAME = "ActivityService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201302/ActivityService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/AdRuleService.php b/src/Google/Api/Ads/Dfp/v201302/AdRuleService.php new file mode 100755 index 000000000..1382b4287 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/AdRuleService.php @@ -0,0 +1,7229 @@ + "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 v201302 + */ +class AdRule { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdRulePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BaseAdRuleSlot { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StandardPoddingAdRuleSlot extends BaseAdRuleSlot { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdUnitTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TechnologyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BandwidthGroupTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BrowserLanguageTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BrowserTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ContentTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DayPart { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DayPartTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DeactivateAdRules extends AdRuleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DeleteAdRules extends AdRuleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DeviceCapabilityTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DeviceCategoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DeviceManufacturerTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GeoTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InventoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InventoryTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class MetroLocation extends DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class MobileCarrierTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class MobileDeviceSubmodelTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class MobileDeviceTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class OperatingSystemTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class OperatingSystemVersionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PoddingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PostalCodeLocation extends DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RegionLocation extends DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Targeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TimeOfDay { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UserDomainTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class VideoPosition { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class VideoPositionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("VideoPositionTarget", FALSE)) { +/** + * Represents the options for targetable positions within a video. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class VideoPositionTarget { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = "VideoPositionTarget"; + + /** + * @access public + * @var VideoPosition + */ + public $videoPosition; + + /** + * @access public + * @var tnsVideoBumperType + */ + public $videoBumperType; + + /** + * @access public + * @var tnsVideoPodPositionType + */ + public $videoPodPositionType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $videoPodPositionType = null) { + $this->videoPosition = $videoPosition; + $this->videoBumperType = $videoBumperType; + $this->videoPodPositionType = $videoPodPositionType; + } + +}} + +if (!class_exists("AdRuleDateErrorReason", FALSE)) { +/** + * Describes reasons for {@code AdRuleDateError}s. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdRuleDateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdRuleFrequencyCapErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdRulePriorityErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdRuleSlotBehavior { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdRuleSlotBumper { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdRuleSlotErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdRuleStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomCriteriaSetLogicalOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AudienceSegmentCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DayOfWeek { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DeliveryTimeZone { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FrequencyCapBehavior { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InventoryTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class MidrollFrequencyType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class MinuteOfHour { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PoddingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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. + * 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 v201302 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StartDateTimeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class VideoBumperType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("VideoPodPositionType", FALSE)) { +/** + * Represents the options for targetable pod positions, which are the positions + * within a pod (or group) of ads, within a video stream. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class VideoPodPositionType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = "VideoPodPositionType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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 v201302 + */ +class VideoPositionType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateAdRule { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateAdRuleResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateAdRules { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateAdRulesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetAdRule { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetAdRuleResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetAdRulesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetAdRulesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PerformAdRuleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PerformAdRuleActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateAdRule { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateAdRuleResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateAdRules { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateAdRulesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ActivateAdRules extends AdRuleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdRuleDateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdRuleFrequencyCapError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NoPoddingAdRuleSlot extends BaseAdRuleSlot { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class OptimizedPoddingAdRuleSlot extends BaseAdRuleSlot { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdRulePriorityError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdRuleSlotError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BandwidthGroup extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Browser extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BrowserLanguage extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CityLocation extends DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CountryLocation extends DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomCriteriaSet extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomCriteriaLeaf extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AudienceSegmentCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("DeviceCapability", FALSE)) { +/** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeviceCapability extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DeviceCategory extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DeviceManufacturer extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class MobileCarrier extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class MobileDevice extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class MobileDeviceSubmodel extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class OperatingSystem extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class OperatingSystemVersion extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdRuleService extends DfpSoapClient { + + const SERVICE_NAME = "AdRuleService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201302/AdRuleService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/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", + "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", + "UpdateResult" => "UpdateResult", + "UserDomainTargeting" => "UserDomainTargeting", + "Value" => "Value", + "VideoPosition" => "VideoPosition", + "VideoPositionTargeting" => "VideoPositionTargeting", + "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", + "VideoPodPositionType" => "VideoPodPositionType", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/AudienceSegmentService.php b/src/Google/Api/Ads/Dfp/v201302/AudienceSegmentService.php new file mode 100755 index 000000000..db844bc0e --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/AudienceSegmentService.php @@ -0,0 +1,2453 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("AudienceSegmentPage", FALSE)) { +/** + * Represents a page of {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AudienceSegmentPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("AudienceSegment", FALSE)) { +/** + * An {@link AudienceSegment} represents audience segment object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AudienceSegment { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 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, $AudienceSegmentType = null) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->size = $size; + $this->AudienceSegmentType = $AudienceSegmentType; + } + +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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. + * 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 v201302 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("AudienceSegmentStatus", FALSE)) { +/** + * Specifies the statuses for {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AudienceSegmentStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("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 v201302 + */ +class GetAudienceSegmentsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetAudienceSegmentsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("AudienceSegmentService", FALSE)) { +/** + * AudienceSegmentService + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AudienceSegmentService extends DfpSoapClient { + + const SERVICE_NAME = "AudienceSegmentService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201302/AudienceSegmentService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/AudienceSegmentService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AudienceSegmentPage" => "AudienceSegmentPage", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "OAuth" => "DfpOAuth", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "AudienceSegment" => "AudienceSegment", + "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", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "AudienceSegment.Status" => "AudienceSegmentStatus", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "getAudienceSegmentsByStatement" => "GetAudienceSegmentsByStatement", + "getAudienceSegmentsByStatementResponse" => "GetAudienceSegmentsByStatementResponse", + ); + + + /** + * 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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/CompanyService.php b/src/Google/Api/Ads/Dfp/v201302/CompanyService.php new file mode 100755 index 000000000..9bda5bd8d --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/CompanyService.php @@ -0,0 +1,3641 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CompanyCreditStatusError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Company { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CompanyError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CompanyPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InvalidEmailError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CompanyCreditStatusErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CompanyCreditStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CompanyType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CompanyErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InvalidEmailErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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. + * 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 v201302 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateCompanies { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateCompaniesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateCompany { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateCompanyResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetCompaniesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetCompaniesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetCompany { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetCompanyResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateCompanies { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateCompaniesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateCompany { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateCompanyResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CompanyService extends DfpSoapClient { + + const SERVICE_NAME = "CompanyService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201302/CompanyService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/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", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/ContactService.php b/src/Google/Api/Ads/Dfp/v201302/ContactService.php new file mode 100755 index 000000000..91f30fa98 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/ContactService.php @@ -0,0 +1,3286 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ContactError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ContactPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BaseContact { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InvalidEmailError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ContactStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ContactErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InvalidEmailErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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. + * 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 v201302 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateContact { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateContactResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateContacts { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateContactsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetContact { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetContactResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetContactsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetContactsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateContact { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateContactResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateContacts { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateContactsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Contact extends BaseContact { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ContactService extends DfpSoapClient { + + const SERVICE_NAME = "ContactService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201302/ContactService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/ContentBundleService.php b/src/Google/Api/Ads/Dfp/v201302/ContentBundleService.php new file mode 100755 index 000000000..7ed6a757c --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/ContentBundleService.php @@ -0,0 +1,3324 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ContentBundleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ContentBundle { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ContentBundlePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DeactivateContentBundles extends ContentBundleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ExcludeContentFromContentBundle extends ContentBundleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class IncludeContentInContentBundle extends ContentBundleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PlacementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ContentBundleStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PlacementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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. + * 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 v201302 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateContentBundle { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateContentBundleResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateContentBundles { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateContentBundlesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetContentBundle { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetContentBundleResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetContentBundlesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetContentBundlesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PerformContentBundleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PerformContentBundleActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateContentBundle { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateContentBundleResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateContentBundles { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateContentBundlesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ActivateContentBundles extends ContentBundleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ContentBundleService extends DfpSoapClient { + + const SERVICE_NAME = "ContentBundleService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201302/ContentBundleService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/ContentService.php b/src/Google/Api/Ads/Dfp/v201302/ContentService.php new file mode 100755 index 000000000..9b2cdbc74 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/ContentService.php @@ -0,0 +1,2956 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CmsContent { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = "CmsContent"; + + /** + * @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($displayName = null, $cmsContentId = null) { + $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 v201302 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Content { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 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, $cmsSources = null) { + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->statusDefinedBy = $statusDefinedBy; + $this->cmsSources = $cmsSources; + } + +}} + +if (!class_exists("ContentPage", FALSE)) { +/** + * Captures a page of {@code Content} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ContentPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ContentPartnerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ContentPartnerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ContentStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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. + * 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 v201302 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ContentStatusDefinedBy { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetContentByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetContentByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetContentByStatementAndCustomTargetingValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetContentByStatementAndCustomTargetingValueResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ContentService extends DfpSoapClient { + + const SERVICE_NAME = "ContentService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201302/ContentService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/CreativeService.php b/src/Google/Api/Ads/Dfp/v201302/CreativeService.php new file mode 100755 index 000000000..d8f233d28 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/CreativeService.php @@ -0,0 +1,8389 @@ + "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 v201302 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AssetCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Asset { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AssetError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ConversionEvent_TrackingUrlsMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeAsset { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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) { + $this->assetId = $assetId; + $this->assetByteArray = $assetByteArray; + $this->fileName = $fileName; + $this->fileSize = $fileSize; + $this->assetUrl = $assetUrl; + $this->size = $size; + } + +}} + +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 v201302 + */ +class CustomCreativeAsset { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeAssetMacroError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeSetError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FileError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class HasDestinationUrlCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ImageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalRedirectCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LegacyDfpCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemCreativeAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LongCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RedirectAsset extends Asset { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RichMediaStudioChildAssetProperty { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RichMediaStudioCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("TemplateCreative", FALSE)) { +/** + * A {@code Creative} that is created by the specified creative template. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TemplateCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = "TemplateCreative"; + + /** + * @access public + * @var integer + */ + public $creativeTemplateId; + + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * @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, $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->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 v201302 + */ +class TemplateInstantiatedCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("TextAdCreative", FALSE)) { +/** + * A simple plain text-based {@code Creative}. This creative is only available to small business + * networks. + * + * Starting in version v201306 this will be returned as a {@link TemplateCreative} + * identified with a {@link TemplateCreative#creativeTemplateId} of {@code 10000440}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TextAdCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = "TextAdCreative"; + + /** + * @access public + * @var string + */ + public $hoverText; + + /** + * @access public + * @var tnsTargetWindow + */ + public $targetWindow; + + /** + * @access public + * @var string + */ + public $linkColor; + + /** + * @access public + * @var string + */ + public $linkTitle; + + /** + * @access public + * @var string + */ + public $text; + + /** + * @access public + * @var string + */ + public $textColor; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($hoverText = null, $targetWindow = null, $linkColor = null, $linkTitle = null, $text = null, $textColor = null, $destinationUrl = null) { + parent::__construct(); + $this->hoverText = $hoverText; + $this->targetWindow = $targetWindow; + $this->linkColor = $linkColor; + $this->linkTitle = $linkTitle; + $this->text = $text; + $this->textColor = $textColor; + $this->destinationUrl = $destinationUrl; + } + +}} + +if (!class_exists("ThirdPartyCreative", FALSE)) { +/** + * A {@code Creative} that is served by a 3rd-party vendor. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ThirdPartyCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TrackingUrls { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UnsupportedCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UrlCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class VastRedirectCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $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->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 v201302 + */ +class VideoRedirectAsset extends RedirectAsset { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class VpaidLinearCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $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->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 v201302 + */ +class VpaidLinearRedirectCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiFramework { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AssetErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ConversionEvent { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeAssetMacroErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeSetErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FileErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("FlashExpandableCreativeExpandDirection", FALSE)) { +/** + * The possible expand directions + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FlashExpandableCreativeExpandDirection { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = "FlashExpandableCreative.ExpandDirection"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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 v201302 + */ +class ImageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemCreativeAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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. + * 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 v201302 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RichMediaStudioChildAssetPropertyType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RichMediaStudioCreativeArtworkType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RichMediaStudioCreativeBillingAttribute { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RichMediaStudioCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RichMediaStudioCreativeFormat { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("TargetWindow", FALSE)) { +/** + * The different values for target window, corresponds to an HTML link's + * {@code target} attribute. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TargetWindow { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = "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("TemplateInstantiatedCreativeErrorReason", FALSE)) { +/** + * The reason for the error + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TemplateInstantiatedCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class VastRedirectType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateCreativeResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateCreatives { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateCreativesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetCreativeResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetCreativesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetCreativesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateCreativeResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateCreatives { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateCreativesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BaseDynamicAllocationCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AspectRatioImageCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = "AspectRatioImageCreative"; + + /** + * @access public + * @var CreativeAsset[] + */ + public $imageAssets; + + /** + * @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($imageAssets = null, $altText = null, $thirdPartyImpressionUrl = null, $destinationUrl = null) { + parent::__construct(); + $this->imageAssets = $imageAssets; + $this->altText = $altText; + $this->thirdPartyImpressionUrl = $thirdPartyImpressionUrl; + $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 v201302 + */ +class BaseFlashCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BaseFlashRedirectCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BaseImageCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BaseImageRedirectCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BaseRichMediaStudioCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BaseVideoCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $destinationUrl = null) { + parent::__construct(); + $this->duration = $duration; + $this->allowDurationOverride = $allowDurationOverride; + $this->trackingUrls = $trackingUrls; + $this->companionCreativeIds = $companionCreativeIds; + $this->customParameters = $customParameters; + $this->destinationUrl = $destinationUrl; + } + +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ClickTrackingCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("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 v201302 + */ +class LegacyDfpMobileCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FlashCreative extends BaseFlashCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = "FlashCreative"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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) { + 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; + } + +}} + +if (!class_exists("FlashExpandableCreative", FALSE)) { +/** + * An expandable {@code Creative} where the collapsed size is a Flash SWF file and + * the expanded size is another Flash SWF file. If Flash isn't supported in the browser, + * the fallback image will be used. + *

      + * This creative will not work with iframe ad tags. + *

      + * This creative is only available to small business networks. + * + * Starting in version v201306 this will be returned as a {@link TemplateCreative} + * identified with a {@link TemplateCreative#creativeTemplateId} of {@code 10001160}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FlashExpandableCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = "FlashExpandableCreative"; + + /** + * @access public + * @var integer + */ + public $collapsedFlashAssetId; + + /** + * @access public + * @var base64Binary + */ + public $collapsedFlashAssetByteArray; + + /** + * @access public + * @var string + */ + public $collapsedFlashFileName; + + /** + * @access public + * @var integer + */ + public $collapsedFallbackImageAssetId; + + /** + * @access public + * @var base64Binary + */ + public $collapsedFallbackImageAssetByteArray; + + /** + * @access public + * @var string + */ + public $collapsedFallbackImageFileName; + + /** + * @access public + * @var integer + */ + public $expandedFlashAssetId; + + /** + * @access public + * @var base64Binary + */ + public $expandedFlashAssetByteArray; + + /** + * @access public + * @var string + */ + public $expandedFlashFileName; + + /** + * @access public + * @var integer + */ + public $requiredFlashVersion; + + /** + * @access public + * @var integer + */ + public $collapsedWidth; + + /** + * @access public + * @var integer + */ + public $collapsedHeight; + + /** + * @access public + * @var integer + */ + public $expandedWidth; + + /** + * @access public + * @var integer + */ + public $expandedHeight; + + /** + * @access public + * @var tnsFlashExpandableCreativeExpandDirection + */ + public $expandDirection; + + /** + * @access public + * @var boolean + */ + public $expandOnMouseOver; + + /** + * @access public + * @var string + */ + public $javascriptFunctionForExpand; + + /** + * @access public + * @var boolean + */ + public $collapseOnMouseOut; + + /** + * @access public + * @var string + */ + public $javascriptFunctionForCollapse; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($collapsedFlashAssetId = null, $collapsedFlashAssetByteArray = null, $collapsedFlashFileName = null, $collapsedFallbackImageAssetId = null, $collapsedFallbackImageAssetByteArray = null, $collapsedFallbackImageFileName = null, $expandedFlashAssetId = null, $expandedFlashAssetByteArray = null, $expandedFlashFileName = null, $requiredFlashVersion = null, $collapsedWidth = null, $collapsedHeight = null, $expandedWidth = null, $expandedHeight = null, $expandDirection = null, $expandOnMouseOver = null, $javascriptFunctionForExpand = null, $collapseOnMouseOut = null, $javascriptFunctionForCollapse = null, $destinationUrl = null) { + parent::__construct(); + $this->collapsedFlashAssetId = $collapsedFlashAssetId; + $this->collapsedFlashAssetByteArray = $collapsedFlashAssetByteArray; + $this->collapsedFlashFileName = $collapsedFlashFileName; + $this->collapsedFallbackImageAssetId = $collapsedFallbackImageAssetId; + $this->collapsedFallbackImageAssetByteArray = $collapsedFallbackImageAssetByteArray; + $this->collapsedFallbackImageFileName = $collapsedFallbackImageFileName; + $this->expandedFlashAssetId = $expandedFlashAssetId; + $this->expandedFlashAssetByteArray = $expandedFlashAssetByteArray; + $this->expandedFlashFileName = $expandedFlashFileName; + $this->requiredFlashVersion = $requiredFlashVersion; + $this->collapsedWidth = $collapsedWidth; + $this->collapsedHeight = $collapsedHeight; + $this->expandedWidth = $expandedWidth; + $this->expandedHeight = $expandedHeight; + $this->expandDirection = $expandDirection; + $this->expandOnMouseOver = $expandOnMouseOver; + $this->javascriptFunctionForExpand = $javascriptFunctionForExpand; + $this->collapseOnMouseOut = $collapseOnMouseOut; + $this->javascriptFunctionForCollapse = $javascriptFunctionForCollapse; + $this->destinationUrl = $destinationUrl; + } + +}} + +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 v201302 + */ +class FlashOverlayCreative extends BaseFlashCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $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->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("FlashPushdownCreative", FALSE)) { +/** + * {@code Creative} that pushes page content down when the creative expands. + * The collapsed size is one Flash SWF file and the expanded size is another Flash SWF file. + *

      + * This creative will not work with iframe ad tags. + *

      + * This creative is only available to small business networks. + * + * Starting in version v201306 this will be returned as a {@link TemplateCreative} + * identified with a {@link TemplateCreative#creativeTemplateId} of {@code 10001400}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FlashPushdownCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = "FlashPushdownCreative"; + + /** + * @access public + * @var integer + */ + public $collapsedFlashAssetId; + + /** + * @access public + * @var base64Binary + */ + public $collapsedFlashAssetByteArray; + + /** + * @access public + * @var string + */ + public $collapsedFlashFileName; + + /** + * @access public + * @var integer + */ + public $collapsedFallbackImageAssetId; + + /** + * @access public + * @var base64Binary + */ + public $collapsedFallbackImageAssetByteArray; + + /** + * @access public + * @var string + */ + public $collapsedFallbackImageFileName; + + /** + * @access public + * @var integer + */ + public $expandedFlashAssetId; + + /** + * @access public + * @var base64Binary + */ + public $expandedFlashAssetByteArray; + + /** + * @access public + * @var string + */ + public $expandedFlashFileName; + + /** + * @access public + * @var integer + */ + public $requiredFlashVersion; + + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $collapsedHeight; + + /** + * @access public + * @var integer + */ + public $expandedHeight; + + /** + * @access public + * @var boolean + */ + public $pushdownOnMouseOver; + + /** + * @access public + * @var string + */ + public $javascriptFunctionForPushdown; + + /** + * @access public + * @var boolean + */ + public $collapseOnMouseOut; + + /** + * @access public + * @var string + */ + public $javascriptFunctionForCollapse; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($collapsedFlashAssetId = null, $collapsedFlashAssetByteArray = null, $collapsedFlashFileName = null, $collapsedFallbackImageAssetId = null, $collapsedFallbackImageAssetByteArray = null, $collapsedFallbackImageFileName = null, $expandedFlashAssetId = null, $expandedFlashAssetByteArray = null, $expandedFlashFileName = null, $requiredFlashVersion = null, $width = null, $collapsedHeight = null, $expandedHeight = null, $pushdownOnMouseOver = null, $javascriptFunctionForPushdown = null, $collapseOnMouseOut = null, $javascriptFunctionForCollapse = null, $destinationUrl = null) { + parent::__construct(); + $this->collapsedFlashAssetId = $collapsedFlashAssetId; + $this->collapsedFlashAssetByteArray = $collapsedFlashAssetByteArray; + $this->collapsedFlashFileName = $collapsedFlashFileName; + $this->collapsedFallbackImageAssetId = $collapsedFallbackImageAssetId; + $this->collapsedFallbackImageAssetByteArray = $collapsedFallbackImageAssetByteArray; + $this->collapsedFallbackImageFileName = $collapsedFallbackImageFileName; + $this->expandedFlashAssetId = $expandedFlashAssetId; + $this->expandedFlashAssetByteArray = $expandedFlashAssetByteArray; + $this->expandedFlashFileName = $expandedFlashFileName; + $this->requiredFlashVersion = $requiredFlashVersion; + $this->width = $width; + $this->collapsedHeight = $collapsedHeight; + $this->expandedHeight = $expandedHeight; + $this->pushdownOnMouseOver = $pushdownOnMouseOver; + $this->javascriptFunctionForPushdown = $javascriptFunctionForPushdown; + $this->collapseOnMouseOut = $collapseOnMouseOut; + $this->javascriptFunctionForCollapse = $javascriptFunctionForCollapse; + $this->destinationUrl = $destinationUrl; + } + +}} + +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 v201302 + */ +class FlashRedirectCreative extends BaseFlashRedirectCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FlashRedirectOverlayCreative extends BaseFlashRedirectCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $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->flashUrl = $flashUrl; + $this->fallbackUrl = $fallbackUrl; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + } + +}} + +if (!class_exists("FloatingFlashCreative", FALSE)) { +/** + * A floating flash creative. This creative is an interstitial creative, + * and its {@link #size} must be 1x1. + *

      + * This creative will not work with iframe ad tags. + *

      + * This creative is only available to small business networks. + * + * Starting in version v201306 this will be returned as a {@link TemplateCreative} + * identified with a {@link TemplateCreative#creativeTemplateId} of {@code 10000560}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FloatingFlashCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = "FloatingFlashCreative"; + + /** + * @access public + * @var string + */ + public $flashName; + + /** + * @access public + * @var base64Binary + */ + public $flashByteArray; + + /** + * @access public + * @var integer + */ + public $flashAssetId; + + /** + * @access public + * @var string + */ + public $fallbackImageName; + + /** + * @access public + * @var base64Binary + */ + public $fallbackImageByteArray; + + /** + * @access public + * @var integer + */ + public $fallbackImageAssetId; + + /** + * @access public + * @var integer + */ + public $requiredFlashVersion; + + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var string + */ + public $topPosition; + + /** + * @access public + * @var string + */ + public $leftPosition; + + /** + * @access public + * @var integer + */ + public $displayTimeInSecond; + + /** + * @access public + * @var string + */ + public $thirdPartyImpressionTracker; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $flashAssetId = null, $fallbackImageName = null, $fallbackImageByteArray = null, $fallbackImageAssetId = null, $requiredFlashVersion = null, $width = null, $height = null, $topPosition = null, $leftPosition = null, $displayTimeInSecond = null, $thirdPartyImpressionTracker = null, $destinationUrl = null) { + parent::__construct(); + $this->flashName = $flashName; + $this->flashByteArray = $flashByteArray; + $this->flashAssetId = $flashAssetId; + $this->fallbackImageName = $fallbackImageName; + $this->fallbackImageByteArray = $fallbackImageByteArray; + $this->fallbackImageAssetId = $fallbackImageAssetId; + $this->requiredFlashVersion = $requiredFlashVersion; + $this->width = $width; + $this->height = $height; + $this->topPosition = $topPosition; + $this->leftPosition = $leftPosition; + $this->displayTimeInSecond = $displayTimeInSecond; + $this->thirdPartyImpressionTracker = $thirdPartyImpressionTracker; + $this->destinationUrl = $destinationUrl; + } + +}} + +if (!class_exists("HasHtmlSnippetDynamicAllocationCreative", FALSE)) { +/** + * Dynamic allocation creative with a backfill code snippet. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class HasHtmlSnippetDynamicAllocationCreative extends BaseDynamicAllocationCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ImageCreative extends BaseImageCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = "ImageCreative"; + + /** + * @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, $overrideSize = null, $primaryImageAsset = null) { + parent::__construct(); + $this->altText = $altText; + $this->thirdPartyImpressionUrl = $thirdPartyImpressionUrl; + $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 v201302 + */ +class ImageOverlayCreative extends BaseImageCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $overrideSize = null, $primaryImageAsset = null) { + parent::__construct(); + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->duration = $duration; + $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 v201302 + */ +class ImageRedirectCreative extends BaseImageRedirectCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ImageRedirectOverlayCreative extends BaseImageRedirectCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $imageUrl = null) { + parent::__construct(); + $this->assetSize = $assetSize; + $this->duration = $duration; + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->imageUrl = $imageUrl; + } + +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RichMediaStudioCreative extends BaseRichMediaStudioCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class VideoCreative extends BaseVideoCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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) { + parent::__construct(); + $this->duration = $duration; + $this->allowDurationOverride = $allowDurationOverride; + $this->trackingUrls = $trackingUrls; + $this->companionCreativeIds = $companionCreativeIds; + $this->customParameters = $customParameters; + } + +}} + +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 v201302 + */ +class VideoRedirectCreative extends BaseVideoCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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) { + parent::__construct(); + $this->videoAssets = $videoAssets; + $this->duration = $duration; + $this->allowDurationOverride = $allowDurationOverride; + $this->trackingUrls = $trackingUrls; + $this->companionCreativeIds = $companionCreativeIds; + $this->customParameters = $customParameters; + } + +}} + +if (!class_exists("AdExchangeCreative", FALSE)) { +/** + * An Ad Exchange dynamic allocation creative. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdExchangeCreative extends HasHtmlSnippetDynamicAllocationCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdSenseCreative extends HasHtmlSnippetDynamicAllocationCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeService extends DfpSoapClient { + + const SERVICE_NAME = "CreativeService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201302/CreativeService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/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", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "LegacyDfpMobileCreative" => "LegacyDfpMobileCreative", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "FlashCreative" => "FlashCreative", + "FlashExpandableCreative" => "FlashExpandableCreative", + "FlashOverlayCreative" => "FlashOverlayCreative", + "FlashPushdownCreative" => "FlashPushdownCreative", + "FlashRedirectCreative" => "FlashRedirectCreative", + "FlashRedirectOverlayCreative" => "FlashRedirectOverlayCreative", + "FloatingFlashCreative" => "FloatingFlashCreative", + "HasDestinationUrlCreative" => "HasDestinationUrlCreative", + "HasHtmlSnippetDynamicAllocationCreative" => "HasHtmlSnippetDynamicAllocationCreative", + "ImageCreative" => "ImageCreative", + "ImageError" => "ImageError", + "ImageOverlayCreative" => "ImageOverlayCreative", + "ImageRedirectCreative" => "ImageRedirectCreative", + "ImageRedirectOverlayCreative" => "ImageRedirectOverlayCreative", + "InternalApiError" => "InternalApiError", + "InternalRedirectCreative" => "InternalRedirectCreative", + "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", + "TemplateCreative" => "TemplateCreative", + "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", + "TextAdCreative" => "TextAdCreative", + "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", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "FlashExpandableCreative.ExpandDirection" => "FlashExpandableCreativeExpandDirection", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "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", + "TargetWindow" => "TargetWindow", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/CreativeSetService.php b/src/Google/Api/Ads/Dfp/v201302/CreativeSetService.php new file mode 100755 index 000000000..ef588e87b --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/CreativeSetService.php @@ -0,0 +1,4136 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AssetError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeAssetMacroError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeSet { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeSetError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeSetPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FileError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ImageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RichMediaStudioCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("TemplateInstantiatedCreativeError", FALSE)) { +/** + * Lists all errors associated with template instantiated creatives. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TemplateInstantiatedCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AssetErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeAssetMacroErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeSetErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FileErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ImageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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. + * 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 v201302 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RichMediaStudioCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("TemplateInstantiatedCreativeErrorReason", FALSE)) { +/** + * The reason for the error + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TemplateInstantiatedCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateCreativeSet { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateCreativeSetResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetCreativeSet { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetCreativeSetResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetCreativeSetsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetCreativeSetsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateCreativeSet { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateCreativeSetResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeSetService extends DfpSoapClient { + + const SERVICE_NAME = "CreativeSetService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201302/CreativeSetService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/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", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "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", + "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", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/CreativeTemplateService.php b/src/Google/Api/Ads/Dfp/v201302/CreativeTemplateService.php new file mode 100755 index 000000000..855fb8efd --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/CreativeTemplateService.php @@ -0,0 +1,3519 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeTemplate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeTemplateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ListStringCreativeTemplateVariableVariableChoice { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeTemplatePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AssetCreativeTemplateVariableMimeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeTemplateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeTemplateStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeTemplateType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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. + * 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 v201302 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetCreativeTemplate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetCreativeTemplateResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetCreativeTemplatesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetCreativeTemplatesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AssetCreativeTemplateVariable extends CreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LongCreativeTemplateVariable extends CreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringCreativeTemplateVariable extends CreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UrlCreativeTemplateVariable extends CreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ListStringCreativeTemplateVariable extends StringCreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeTemplateService extends DfpSoapClient { + + const SERVICE_NAME = "CreativeTemplateService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201302/CreativeTemplateService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/CreativeWrapperService.php b/src/Google/Api/Ads/Dfp/v201302/CreativeWrapperService.php new file mode 100755 index 000000000..d1233d451 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/CreativeWrapperService.php @@ -0,0 +1,3727 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeWrapperAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeWrapper { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeWrapperError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeWrapperPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DeactivateCreativeWrappers extends CreativeWrapperAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeWrapperHtmlSnippet { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LabelError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeWrapperErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeWrapperOrdering { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeWrapperStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LabelErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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. + * 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 v201302 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateCreativeWrapper { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateCreativeWrapperResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateCreativeWrappers { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateCreativeWrappersResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetCreativeWrapper { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetCreativeWrapperResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetCreativeWrappersByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetCreativeWrappersByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PerformCreativeWrapperAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PerformCreativeWrapperActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateCreativeWrapper { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateCreativeWrapperResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateCreativeWrappers { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateCreativeWrappersResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ActivateCreativeWrappers extends CreativeWrapperAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeWrapperService extends DfpSoapClient { + + const SERVICE_NAME = "CreativeWrapperService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201302/CreativeWrapperService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/CustomFieldService.php b/src/Google/Api/Ads/Dfp/v201302/CustomFieldService.php new file mode 100755 index 000000000..c20c11bcf --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/CustomFieldService.php @@ -0,0 +1,4233 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomFieldAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomField { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomFieldError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomFieldOption { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomFieldPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DeactivateCustomFields extends CustomFieldAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DropDownCustomField extends CustomField { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomFieldDataType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomFieldEntityType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomFieldErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomFieldVisibility { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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. + * 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 v201302 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateCustomField { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateCustomFieldResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateCustomFieldOption { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateCustomFieldOptionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateCustomFieldOptions { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateCustomFieldOptionsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateCustomFields { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateCustomFieldsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetCustomField { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetCustomFieldResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetCustomFieldOption { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetCustomFieldOptionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetCustomFieldsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetCustomFieldsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PerformCustomFieldAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PerformCustomFieldActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateCustomField { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateCustomFieldResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateCustomFieldOption { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateCustomFieldOptionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateCustomFieldOptions { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateCustomFieldOptionsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateCustomFields { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateCustomFieldsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ActivateCustomFields extends CustomFieldAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomFieldService extends DfpSoapClient { + + const SERVICE_NAME = "CustomFieldService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201302/CustomFieldService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/CustomTargetingService.php b/src/Google/Api/Ads/Dfp/v201302/CustomTargetingService.php new file mode 100755 index 000000000..678099cbb --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/CustomTargetingService.php @@ -0,0 +1,3896 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomTargetingKeyAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomTargetingKey { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomTargetingKeyPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomTargetingValueAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomTargetingValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomTargetingValuePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DeleteCustomTargetingKeys extends CustomTargetingKeyAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DeleteCustomTargetingValues extends CustomTargetingValueAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomTargetingKeyType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomTargetingValueMatchType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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. + * 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 v201302 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateCustomTargetingKeys { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateCustomTargetingKeysResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateCustomTargetingValues { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateCustomTargetingValuesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetCustomTargetingKeysByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetCustomTargetingKeysByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetCustomTargetingValuesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetCustomTargetingValuesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PerformCustomTargetingKeyAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PerformCustomTargetingKeyActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PerformCustomTargetingValueAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PerformCustomTargetingValueActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateCustomTargetingKeys { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateCustomTargetingKeysResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateCustomTargetingValues { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateCustomTargetingValuesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomTargetingService extends DfpSoapClient { + + const SERVICE_NAME = "CustomTargetingService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201302/CustomTargetingService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/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", + "CommonError" => "CommonError", + "CustomTargetingError" => "CustomTargetingError", + "CustomTargetingKeyAction" => "CustomTargetingKeyAction", + "CustomTargetingKey" => "CustomTargetingKey", + "CustomTargetingKeyPage" => "CustomTargetingKeyPage", + "CustomTargetingValueAction" => "CustomTargetingValueAction", + "CustomTargetingValue" => "CustomTargetingValue", + "CustomTargetingValuePage" => "CustomTargetingValuePage", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/ForecastService.php b/src/Google/Api/Ads/Dfp/v201302/ForecastService.php new file mode 100755 index 000000000..59d1aa80b --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/ForecastService.php @@ -0,0 +1,9568 @@ +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 v201302 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TechnologyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AudienceExtensionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BandwidthGroupTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BrowserLanguageTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BrowserTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ClickTrackingLineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CompanyCreditStatusError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ContentTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativePlaceholder { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomFieldValueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DateTimeRangeTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DayPart { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DayPartTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DayPartTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DeliveryData { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DeliveryIndicator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DeviceCapabilityTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DeviceCategoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DeviceManufacturerTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 overbook lower or equal + * priority line items. + *
      • Possible units -- How many units can be booked without affecting any + * higher priority line items. Booking more than this number can overbook + * higher priority line items. + *
      • Matched (forecast) units -- How many units satisfy all specified + * criteria. + *
      + * + *

      The term "can overbook" is used, because 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 v201302 + */ +class Forecast { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ForecastError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FrequencyCap { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FrequencyCapError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GenericTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GeoTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GeoTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InventoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InventoryTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InventoryUnitError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemCreativeAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemFlightDateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemOperationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemSummary { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 $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 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, $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, $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->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->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 v201302 + */ +class DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class MetroLocation extends DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class MobileCarrierTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class MobileDeviceSubmodelTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class MobileDeviceTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Money { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class OperatingSystemTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class OperatingSystemVersionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class OrderError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PostalCodeLocation extends DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RegExError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RegionLocation extends DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ReservationDetailsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Stats { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Targeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TechnologyTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TimeOfDay { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UserDomainTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UserDomainTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class VideoPosition { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class VideoPositionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("VideoPositionTarget", FALSE)) { +/** + * Represents the options for targetable positions within a video. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class VideoPositionTarget { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = "VideoPositionTarget"; + + /** + * @access public + * @var VideoPosition + */ + public $videoPosition; + + /** + * @access public + * @var tnsVideoBumperType + */ + public $videoBumperType; + + /** + * @access public + * @var tnsVideoPodPositionType + */ + public $videoPodPositionType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $videoPodPositionType = null) { + $this->videoPosition = $videoPosition; + $this->videoBumperType = $videoBumperType; + $this->videoPodPositionType = $videoPodPositionType; + } + +}} + +if (!class_exists("AdUnitAfcSizeErrorReason", FALSE)) { +/** + * The supplied Afc size is not valid. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdUnitAfcSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdUnitCodeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AudienceExtensionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ClickTrackingLineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CompanionDeliveryOption { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CompanyCreditStatusErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ComputedStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CostType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeRotationType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeSizeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomCriteriaSetLogicalOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AudienceSegmentCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DateTimeRangeTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DayOfWeek { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DayPartTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DeliveryTimeZone { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DeliveryRateType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class EnvironmentType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ForecastErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FrequencyCapErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GenericTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GeoTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InventoryTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InventoryUnitErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemCreativeAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemDiscountType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemFlightDateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemOperationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemSummaryDuration { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemSummaryReservationStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class MinuteOfHour { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class OrderErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativePersistenceType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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. + * 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 v201302 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RegExErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ReservationDetailsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RoadblockingType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StartDateTimeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TargetPlatform { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TechnologyTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TimeUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UnitType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UserDomainTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class VideoBumperType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("VideoPodPositionType", FALSE)) { +/** + * Represents the options for targetable pod positions, which are the positions + * within a pod (or group) of ads, within a video stream. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class VideoPodPositionType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = "VideoPodPositionType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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 v201302 + */ +class VideoPositionType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetForecast { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetForecastResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetForecastById { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetForecastByIdResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdUnitAfcSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdUnitCodeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BandwidthGroup extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Browser extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BrowserLanguage extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CityLocation extends DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CountryLocation extends DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomCriteriaSet extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomCriteriaLeaf extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AudienceSegmentCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("DeviceCapability", FALSE)) { +/** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeviceCapability extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DeviceCategory extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DeviceManufacturer extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItem extends LineItemSummary { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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, $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, $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->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->LineItemSummaryType = $LineItemSummaryType; + } + +}} + +if (!class_exists("MobileCarrier", FALSE)) { +/** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class MobileCarrier extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class MobileDevice extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class MobileDeviceSubmodel extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class OperatingSystem extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class OperatingSystemVersion extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ForecastService extends DfpSoapClient { + + const SERVICE_NAME = "ForecastService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201302/ForecastService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/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", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaSet" => "CustomCriteriaSet", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaNode" => "CustomCriteriaNode", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeRangeTargetingError" => "DateTimeRangeTargetingError", + "DateTimeValue" => "DateTimeValue", + "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", + "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", + "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", + "VideoPodPositionType" => "VideoPodPositionType", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/InventoryService.php b/src/Google/Api/Ads/Dfp/v201302/InventoryService.php new file mode 100755 index 000000000..4dc987ffb --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/InventoryService.php @@ -0,0 +1,5791 @@ +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 v201302 + */ +class AdSenseSettingsInheritedProperty { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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) { + $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; + } + +}} + +if (!class_exists("AdUnitPage", FALSE)) { +/** + * Captures a page of {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdUnitPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdUnitParent { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ArchiveAdUnits extends AdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AssignAdUnitsToPlacement extends AdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeWrapperError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DeactivateAdUnits extends AdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FrequencyCap { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FrequencyCapError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InvalidColorError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InventoryUnitError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InventoryUnitPartnerAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdUnitSize { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InventoryUnitSizesError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdUnitTypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LabelFrequencyCap { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RegExError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RemoveAdUnitsFromPlacement extends AdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Size_StringMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdSenseAccountErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdSenseSettingsAdType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdSenseSettingsBorderStyle { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdSenseSettingsFontFamily { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdSenseSettingsFontSize { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdUnitAfcSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdUnitCodeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdUnitTargetWindow { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdUnitHierarchyErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeWrapperErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("EnvironmentType", FALSE)) { +/** + * Enum for the valid environments in which ads can be shown. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class EnvironmentType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FrequencyCapErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InvalidColorErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InventoryStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InventoryUnitErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InventoryUnitPartnerAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InventoryUnitSizesErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdUnitTypeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class MobilePlatform { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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. + * 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 v201302 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RegExErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TargetPlatform { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TimeUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateAdUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateAdUnitResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateAdUnits { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateAdUnitsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetAdUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetAdUnitResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetAdUnitSizesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetAdUnitSizesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetAdUnitsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetAdUnitsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PerformAdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PerformAdUnitActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateAdUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateAdUnitResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateAdUnits { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateAdUnitsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ActivateAdUnits extends AdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdSenseAccountError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdUnitAfcSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdUnitCodeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdUnitHierarchyError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InventoryService extends DfpSoapClient { + + const SERVICE_NAME = "InventoryService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201302/InventoryService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/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", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "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", + "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", + "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", + "ServerError.Reason" => "ServerErrorReason", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/LabelService.php b/src/Google/Api/Ads/Dfp/v201302/LabelService.php new file mode 100755 index 000000000..ed2be08ee --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/LabelService.php @@ -0,0 +1,3613 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeWrapperError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("LabelAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LabelAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($LabelActionType = null) { + $this->LabelActionType = $LabelActionType; + } + +}} + +if (!class_exists("Label", FALSE)) { +/** + * A {@code Label} is additional information that can be added to an entity. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Label { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = "Label"; + + /** + * @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 tnsLabelType[] + */ + public $types; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $types = null) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->isActive = $isActive; + $this->types = $types; + } + +}} + +if (!class_exists("LabelError", FALSE)) { +/** + * Errors specific to labels. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LabelError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("LabelPage", FALSE)) { +/** + * Captures a page of {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LabelPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = "LabelPage"; + + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Label[] + */ + 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 v201302 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeWrapperErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("LabelErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LabelErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("LabelType", FALSE)) { +/** + * Represents the types of labels supported. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LabelType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = "LabelType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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 v201302 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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. + * 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 v201302 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("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 v201302 + */ +class CreateLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateLabelResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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. + * + * @param labels the labels to create + * @return the created labels with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreateLabels { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("CreateLabelsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreateLabelsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("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 v201302 + */ +class GetLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetLabelResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@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}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels. + * @return the labels that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class GetLabelsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("GetLabelsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class GetLabelsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LabelPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + +}} + +if (!class_exists("PerformLabelAction", FALSE)) { +/** + * Performs actions on {@link Label} 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 + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PerformLabelAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LabelAction + */ + public $labelAction; + + /** + * @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($labelAction = null, $filterStatement = null) { + $this->labelAction = $labelAction; + $this->filterStatement = $filterStatement; + } + +}} + +if (!class_exists("PerformLabelActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PerformLabelActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("UpdateLabel", FALSE)) { +/** + * Updates the specified {@link Label}. + * + * @param label the label to update + * @return the updated label + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UpdateLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("UpdateLabelResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UpdateLabelResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("UpdateLabels", FALSE)) { +/** + * Updates the specified {@link Label} objects. + * + * @param labels the labels to update + * @return the updated labels + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UpdateLabels { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UpdateLabelsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("ActivateLabels", FALSE)) { +/** + * The action used for activating {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ActivateLabels extends LabelAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = "ActivateLabels"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($LabelActionType = null) { + parent::__construct(); + $this->LabelActionType = $LabelActionType; + } + +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("DeactivateLabels", FALSE)) { +/** + * The action used for deactivating {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeactivateLabels extends LabelAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = "DeactivateLabels"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($LabelActionType = null) { + parent::__construct(); + $this->LabelActionType = $LabelActionType; + } + +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("LabelService", FALSE)) { +/** + * LabelService + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LabelService extends DfpSoapClient { + + const SERVICE_NAME = "LabelService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201302/LabelService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/LabelService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ActivateLabels" => "ActivateLabels", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CreativeWrapperError" => "CreativeWrapperError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DeactivateLabels" => "DeactivateLabels", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "LabelAction" => "LabelAction", + "Label" => "Label", + "LabelError" => "LabelError", + "LabelPage" => "LabelPage", + "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", + "LabelError.Reason" => "LabelErrorReason", + "LabelType" => "LabelType", + "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", + "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", + ); + + + /** + * 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=null, $options, $user) { + $options["classmap"] = self::$classmap; + 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. + * + * @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 + */ + 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 + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@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}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels. + * @return the labels that match the given filter + */ + public function getLabelsByStatement($filterStatement) { + $args = new GetLabelsByStatement($filterStatement); + $result = $this->__soapCall("getLabelsByStatement", array($args)); + return $result->rval; + } + /** + * Performs actions on {@link Label} 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 + * @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)); + return $result->rval; + } + /** + * Updates the specified {@link Label} objects. + * + * @param labels the labels to update + * @return the updated labels + */ + public function updateLabels($labels) { + $args = new UpdateLabels($labels); + $result = $this->__soapCall("updateLabels", array($args)); + return $result->rval; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/LineItemCreativeAssociationService.php b/src/Google/Api/Ads/Dfp/v201302/LineItemCreativeAssociationService.php new file mode 100755 index 000000000..a3bf95458 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/LineItemCreativeAssociationService.php @@ -0,0 +1,5553 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AssetError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AudienceExtensionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeAssetMacroError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeSetError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FileError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ImageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemCreativeAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemCreativeAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemCreativeAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemCreativeAssociationOperationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemCreativeAssociationPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemCreativeAssociationStats { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Long_StatsMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Money { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RichMediaStudioCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Stats { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("TemplateInstantiatedCreativeError", FALSE)) { +/** + * Lists all errors associated with template instantiated creatives. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TemplateInstantiatedCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdSenseAccountErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AssetErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AudienceExtensionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeAssetMacroErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeSetErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FileErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ImageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemCreativeAssociationStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemCreativeAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemCreativeAssociationOperationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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. + * 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 v201302 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RichMediaStudioCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StartDateTimeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("TemplateInstantiatedCreativeErrorReason", FALSE)) { +/** + * The reason for the error + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TemplateInstantiatedCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateLineItemCreativeAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateLineItemCreativeAssociationResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateLineItemCreativeAssociations { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateLineItemCreativeAssociationsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetLineItemCreativeAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetLineItemCreativeAssociationResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetLineItemCreativeAssociationsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetLineItemCreativeAssociationsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetPreviewUrl { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetPreviewUrlResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PerformLineItemCreativeAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PerformLineItemCreativeAssociationActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateLineItemCreativeAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateLineItemCreativeAssociationResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateLineItemCreativeAssociations { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateLineItemCreativeAssociationsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ActivateLineItemCreativeAssociations extends LineItemCreativeAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdSenseAccountError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("DeactivateLineItemCreativeAssociations", FALSE)) { +/** + * The action used for deactivating {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeactivateLineItemCreativeAssociations extends LineItemCreativeAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemCreativeAssociationService extends DfpSoapClient { + + const SERVICE_NAME = "LineItemCreativeAssociationService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201302/LineItemCreativeAssociationService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/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", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DeactivateLineItemCreativeAssociations" => "DeactivateLineItemCreativeAssociations", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "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", + "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", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/LineItemService.php b/src/Google/Api/Ads/Dfp/v201302/LineItemService.php new file mode 100755 index 000000000..ebe850804 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/LineItemService.php @@ -0,0 +1,10371 @@ +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 v201302 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TechnologyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AudienceExtensionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BandwidthGroupTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BrowserLanguageTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BrowserTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ClickTrackingLineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CompanyCreditStatusError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ContentTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativePlaceholder { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomFieldValueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DateTimeRangeTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DayPart { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DayPartTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DayPartTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DeliveryData { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DeliveryIndicator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DeviceCapabilityTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DeviceCategoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DeviceManufacturerTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ForecastError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FrequencyCap { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FrequencyCapError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GenericTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GeoTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GeoTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InventoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InventoryTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemCreativeAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemFlightDateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemOperationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemSummary { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 $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 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, $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, $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->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->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 v201302 + */ +class DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class MetroLocation extends DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class MobileCarrierTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class MobileDeviceSubmodelTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class MobileDeviceTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Money { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class OperatingSystemTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class OperatingSystemVersionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class OrderError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PauseLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PostalCodeLocation extends DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RegionLocation extends DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ReleaseLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ReservationDetailsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ReserveLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = "ReserveLineItems"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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("ResumeLineItems", FALSE)) { +/** + * The action used for resuming {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ResumeLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = "ResumeLineItems"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Stats { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Targeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TechnologyTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TimeOfDay { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UnarchiveLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UserDomainTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UserDomainTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class VideoPosition { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class VideoPositionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("VideoPositionTarget", FALSE)) { +/** + * Represents the options for targetable positions within a video. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class VideoPositionTarget { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = "VideoPositionTarget"; + + /** + * @access public + * @var VideoPosition + */ + public $videoPosition; + + /** + * @access public + * @var tnsVideoBumperType + */ + public $videoBumperType; + + /** + * @access public + * @var tnsVideoPodPositionType + */ + public $videoPodPositionType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $videoPodPositionType = null) { + $this->videoPosition = $videoPosition; + $this->videoBumperType = $videoBumperType; + $this->videoPodPositionType = $videoPodPositionType; + } + +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AudienceExtensionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ClickTrackingLineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CompanionDeliveryOption { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CompanyCreditStatusErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ComputedStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CostType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeRotationType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeSizeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomCriteriaSetLogicalOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AudienceSegmentCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DateTimeRangeTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DayOfWeek { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DayPartTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DeliveryTimeZone { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DeliveryRateType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class EnvironmentType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ForecastErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FrequencyCapErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GenericTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GeoTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InventoryTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemCreativeAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemDiscountType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemFlightDateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemOperationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemSummaryDuration { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemSummaryReservationStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class MinuteOfHour { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class OrderErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativePersistenceType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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. + * 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 v201302 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ReservationDetailsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RoadblockingType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StartDateTimeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TargetPlatform { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TechnologyTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TimeUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UnitType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UserDomainTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class VideoBumperType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("VideoPodPositionType", FALSE)) { +/** + * Represents the options for targetable pod positions, which are the positions + * within a pod (or group) of ads, within a video stream. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class VideoPodPositionType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = "VideoPodPositionType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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 v201302 + */ +class VideoPositionType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateLineItem { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateLineItemResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateLineItems { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateLineItemsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetLineItem { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetLineItemResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 Property Object Property
      {@code costType}{@link LineItem#costType}
      {@code id}{@link LineItem#id}
      {@code lineItemType}{@link LineItem#lineItemType}
      {@code name}{@link LineItem#name}
      {@code orderId}{@link LineItem#orderId}
      {@code status}{@link LineItem#status}
      {@code unitsBought}{@link LineItem#unitsBought}
      {@code deliveryRateType}{@link LineItem#deliveryRateType}
      {@code lastModifiedDateTime}{@link LineItem#lastModifiedDateTime}
      {@code creationDateTime}{@link LineItem#creationDateTime}
      {@code isMissingCreatives}{@link LineItem#isMissingCreatives}
      + * + * @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 v201302 + */ +class GetLineItemsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetLineItemsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PerformLineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PerformLineItemActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateLineItem { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateLineItemResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateLineItems { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateLineItemsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ActivateLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ArchiveLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BandwidthGroup extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Browser extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BrowserLanguage extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CityLocation extends DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CountryLocation extends DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomCriteriaSet extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomCriteriaLeaf extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AudienceSegmentCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("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 v201302 + */ +class DeleteLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DeviceCapability extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DeviceCategory extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DeviceManufacturer extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItem extends LineItemSummary { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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, $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, $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->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->LineItemSummaryType = $LineItemSummaryType; + } + +}} + +if (!class_exists("MobileCarrier", FALSE)) { +/** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class MobileCarrier extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class MobileDevice extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class MobileDeviceSubmodel extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class OperatingSystem extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class OperatingSystemVersion extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ReserveAndOverbookLineItems extends ReserveLineItems { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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() { + parent::__construct(); + } + +}} + +if (!class_exists("ResumeAndOverbookLineItems", FALSE)) { +/** + * The action used for resuming and overbooking {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ResumeAndOverbookLineItems extends ResumeLineItems { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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() { + parent::__construct(); + } + +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemService extends DfpSoapClient { + + const SERVICE_NAME = "LineItemService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201302/LineItemService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/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", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaSet" => "CustomCriteriaSet", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaNode" => "CustomCriteriaNode", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeRangeTargetingError" => "DateTimeRangeTargetingError", + "DateTimeValue" => "DateTimeValue", + "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", + "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", + "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", + "VideoPodPositionType" => "VideoPodPositionType", + "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=null, $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 Property Object Property
      {@code costType}{@link LineItem#costType}
      {@code id}{@link LineItem#id}
      {@code lineItemType}{@link LineItem#lineItemType}
      {@code name}{@link LineItem#name}
      {@code orderId}{@link LineItem#orderId}
      {@code status}{@link LineItem#status}
      {@code unitsBought}{@link LineItem#unitsBought}
      {@code deliveryRateType}{@link LineItem#deliveryRateType}
      {@code lastModifiedDateTime}{@link LineItem#lastModifiedDateTime}
      {@code creationDateTime}{@link LineItem#creationDateTime}
      {@code isMissingCreatives}{@link LineItem#isMissingCreatives}
      + * + * @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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/NetworkService.php b/src/Google/Api/Ads/Dfp/v201302/NetworkService.php new file mode 100755 index 000000000..79a308fa2 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/NetworkService.php @@ -0,0 +1,2427 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InvalidEmailError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Network { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 $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, $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->effectiveRootAdUnitId = $effectiveRootAdUnitId; + $this->contentBrowseCustomTargetingKeyId = $contentBrowseCustomTargetingKeyId; + $this->isTest = $isTest; + } + +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InvalidEmailErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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. + * 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 v201302 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetAllNetworks { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetAllNetworksResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetCurrentNetwork { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetCurrentNetworkResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class MakeTestNetwork { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class MakeTestNetworkResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateNetwork { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateNetworkResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NetworkService extends DfpSoapClient { + + const SERVICE_NAME = "NetworkService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201302/NetworkService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/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", + "NotNullError" => "NotNullError", + "OAuth" => "DfpOAuth", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "TypeError" => "TypeError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/OrderService.php b/src/Google/Api/Ads/Dfp/v201302/OrderService.php new file mode 100755 index 000000000..b20d95543 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/OrderService.php @@ -0,0 +1,5482 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CompanyCreditStatusError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomFieldValueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ForecastError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InvalidEmailError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InventoryTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Money { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class OrderActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Order { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class OrderError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class OrderPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PauseOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("ResumeOrders", FALSE)) { +/** + * The action used for resuming {@link Order} objects. All {@link LineItem} + * objects within the order will resume as well. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ResumeOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = "ResumeOrders"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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("RetractOrders", FALSE)) { +/** + * The action used for retracting {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RetractOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RetractOrdersWithoutReservationChanges extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SubmitOrdersForApproval extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = "SubmitOrdersForApproval"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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("SubmitOrdersForApprovalAndOverbook", FALSE)) { +/** + * The action used for submitting and overbooking {@link Order} objects for approval. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SubmitOrdersForApprovalAndOverbook extends SubmitOrdersForApproval { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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() { + parent::__construct(); + } + +}} + +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 v201302 + */ +class SubmitOrdersForApprovalWithoutReservationChanges extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("TemplateInstantiatedCreativeError", FALSE)) { +/** + * Lists all errors associated with template instantiated creatives. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TemplateInstantiatedCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UnarchiveOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CompanyCreditStatusErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ForecastErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InvalidEmailErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InventoryTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("OrderActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class OrderActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class OrderErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class OrderStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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. + * 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 v201302 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("TemplateInstantiatedCreativeErrorReason", FALSE)) { +/** + * The reason for the error + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TemplateInstantiatedCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("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 v201302 + */ +class CreateOrder { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateOrderResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateOrders { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateOrdersResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetOrder { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetOrderResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetOrdersByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetOrdersByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PerformOrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PerformOrderActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateOrder { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateOrderResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateOrders { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateOrdersResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApproveOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = "ApproveOrders"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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("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 v201302 + */ +class ApproveOrdersWithoutReservationChanges extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ArchiveOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("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 v201302 + */ +class DeleteOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DisapproveOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DisapproveOrdersWithoutReservationChanges extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ResumeAndOverbookOrders extends ResumeOrders { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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() { + parent::__construct(); + } + +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApproveAndOverbookOrders extends ApproveOrders { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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() { + parent::__construct(); + } + +}} + +if (!class_exists("OrderService", FALSE)) { +/** + * OrderService + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class OrderService extends DfpSoapClient { + + const SERVICE_NAME = "OrderService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201302/OrderService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/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", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BooleanValue" => "BooleanValue", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DeleteOrders" => "DeleteOrders", + "DisapproveOrders" => "DisapproveOrders", + "DisapproveOrdersWithoutReservationChanges" => "DisapproveOrdersWithoutReservationChanges", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "ForecastError" => "ForecastError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargetingError" => "InventoryTargetingError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "Money" => "Money", + "NotNullError" => "NotNullError", + "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", + "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", + "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UnarchiveOrders" => "UnarchiveOrders", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "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", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/PlacementService.php b/src/Google/Api/Ads/Dfp/v201302/PlacementService.php new file mode 100755 index 000000000..2a3627f60 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/PlacementService.php @@ -0,0 +1,3992 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PlacementAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PlacementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PlacementPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RegExError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SiteTargetingInfo { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InventoryStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PlacementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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. + * 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 v201302 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RegExErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreatePlacement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreatePlacementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreatePlacements { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreatePlacementsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetPlacement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetPlacementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetPlacementsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetPlacementsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PerformPlacementAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PerformPlacementActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdatePlacement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdatePlacementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdatePlacements { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdatePlacementsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ActivatePlacements extends PlacementAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ArchivePlacements extends PlacementAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("DeactivatePlacements", FALSE)) { +/** + * The action used for deactivating {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeactivatePlacements extends PlacementAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Placement extends SiteTargetingInfo { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PlacementService extends DfpSoapClient { + + const SERVICE_NAME = "PlacementService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201302/PlacementService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/PublisherQueryLanguageService.php b/src/Google/Api/Ads/Dfp/v201302/PublisherQueryLanguageService.php new file mode 100755 index 000000000..02affc868 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/PublisherQueryLanguageService.php @@ -0,0 +1,4021 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ColumnType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FileError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InvalidEmailError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InventoryTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InventoryUnitError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemFlightDateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemOperationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class OrderActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class OrderError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RegExError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ReservationDetailsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ResultSet { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Row { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdUnitAfcSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdUnitCodeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdUnitHierarchyErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FileErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InvalidEmailErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InventoryTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InventoryUnitErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemFlightDateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LineItemOperationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class OrderActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class OrderErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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. + * 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 v201302 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RegExErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ReservationDetailsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Select { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SelectResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdUnitAfcSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdUnitCodeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdUnitHierarchyError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageService extends DfpSoapClient { + + const SERVICE_NAME = "PublisherQueryLanguageService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201302/PublisherQueryLanguageService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/ReportService.php b/src/Google/Api/Ads/Dfp/v201302/ReportService.php new file mode 100755 index 000000000..7d3242740 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/ReportService.php @@ -0,0 +1,3137 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ReportDownloadOptions { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ReportError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ReportJob { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ReportQuery { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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) { + $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; + } + +}} + +if (!class_exists("RequiredError", FALSE)) { +/** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ReportQueryAdUnitView { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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}. + * 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 v201302 + */ +class Column { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DateRangeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Dimension { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DimensionAttribute { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DimensionFilter { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ExportFormat { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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. + * 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 v201302 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ReportErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ReportJobStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetReportDownloadURL { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetReportDownloadURLResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetReportDownloadUrlWithOptions { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetReportDownloadUrlWithOptionsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetReportJob { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetReportJobResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RunReportJob { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RunReportJobResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ReportService extends DfpSoapClient { + + const SERVICE_NAME = "ReportService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201302/ReportService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/SuggestedAdUnitService.php b/src/Google/Api/Ads/Dfp/v201302/SuggestedAdUnitService.php new file mode 100755 index 000000000..da435f3d1 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/SuggestedAdUnitService.php @@ -0,0 +1,3218 @@ +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 v201302 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdUnitSize { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SuggestedAdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SuggestedAdUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SuggestedAdUnitPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SuggestedAdUnitUpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AdUnitTargetWindow { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class EnvironmentType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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. + * 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 v201302 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TargetPlatform { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetSuggestedAdUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetSuggestedAdUnitResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetSuggestedAdUnitsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetSuggestedAdUnitsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PerformSuggestedAdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PerformSuggestedAdUnitActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApproveSuggestedAdUnit extends SuggestedAdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SuggestedAdUnitService extends DfpSoapClient { + + const SERVICE_NAME = "SuggestedAdUnitService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201302/SuggestedAdUnitService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/TeamService.php b/src/Google/Api/Ads/Dfp/v201302/TeamService.php new file mode 100755 index 000000000..4e64e1212 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/TeamService.php @@ -0,0 +1,3102 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Team { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TeamPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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. + * 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 v201302 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TeamAccessType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateTeam { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateTeamResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateTeams { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateTeamsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetTeam { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetTeamResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetTeamsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetTeamsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateTeam { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateTeamResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateTeams { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateTeamsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TeamService extends DfpSoapClient { + + const SERVICE_NAME = "TeamService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201302/TeamService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/ThirdPartySlotService.php b/src/Google/Api/Ads/Dfp/v201302/ThirdPartySlotService.php new file mode 100755 index 000000000..60ec3dae5 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/ThirdPartySlotService.php @@ -0,0 +1,3023 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("ThirdPartySlotAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link ThirdPartySlot} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ThirdPartySlotAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = "ThirdPartySlotAction"; + + /** + * @access public + * @var string + */ + public $ThirdPartySlotActionType; + private $_parameterMap = array( + "ThirdPartySlotAction.Type" => "ThirdPartySlotActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { + $this->{$this->_parameterMap[$var]} = $value; + } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get + * @return mixed Variable value + */ + public function __get($var) { + if (!isset($this->_parameterMap[$var])) { + return null; + } + return $this->{$this->_parameterMap[$var]}; + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($ThirdPartySlotActionType = null) { + $this->ThirdPartySlotActionType = $ThirdPartySlotActionType; + } + +}} + +if (!class_exists("ThirdPartySlot", FALSE)) { +/** + * A {@code ThirdPartySlot} represents how third-party creatives are + * uniquely identified in a third-party ad network, yield manager, or + * ad exchange's system. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ThirdPartySlot { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = "ThirdPartySlot"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer[] + */ + public $creativeIds; + + /** + * @access public + * @var integer + */ + public $companyId; + + /** + * @access public + * @var string + */ + public $externalUniqueId; + + /** + * @access public + * @var string + */ + public $externalUniqueName; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsThirdPartySlotStatus + */ + 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, $creativeIds = null, $companyId = null, $externalUniqueId = null, $externalUniqueName = null, $description = null, $status = null) { + $this->id = $id; + $this->creativeIds = $creativeIds; + $this->companyId = $companyId; + $this->externalUniqueId = $externalUniqueId; + $this->externalUniqueName = $externalUniqueName; + $this->description = $description; + $this->status = $status; + } + +}} + +if (!class_exists("ThirdPartySlotPage", FALSE)) { +/** + * Captures a page of {@link ThirdPartySlot} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ThirdPartySlotPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = "ThirdPartySlotPage"; + + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var ThirdPartySlot[] + */ + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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. + * 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 v201302 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("ThirdPartySlotStatus", FALSE)) { +/** + * The status of a {@code ThirdPartySlot}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ThirdPartySlotStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = "ThirdPartySlot.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("CreateThirdPartySlot", FALSE)) { +/** + * Creates a new {@link ThirdPartySlot}. + * + * The following fields are required: + *
        + *
      • {@link ThirdPartySlot#companyId}
      • + *
      • {@link ThirdPartySlot#externalUniqueId}
      • + *
      • {@link ThirdPartySlot#externalUniqueName}
      • + *
      • {@link ThirdPartySlot#description}
      • + *
      + * + * @param thirdPartySlot the third-party slot to create + * @return the new third-party slot with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreateThirdPartySlot { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ThirdPartySlot + */ + public $thirdPartySlot; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($thirdPartySlot = null) { + $this->thirdPartySlot = $thirdPartySlot; + } + +}} + +if (!class_exists("CreateThirdPartySlotResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreateThirdPartySlotResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ThirdPartySlot + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + +}} + +if (!class_exists("GetThirdPartySlotsByStatement", FALSE)) { +/** + * Gets a {@link ThirdPartySlotPage} of {@link ThirdPartySlot} objects that + * satisfy the filter query. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of third-party slots + * @return the third-party slots that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class GetThirdPartySlotsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("GetThirdPartySlotsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class GetThirdPartySlotsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ThirdPartySlotPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + +}} + +if (!class_exists("PerformThirdPartySlotAction", FALSE)) { +/** + * Performs actions on {@link ThirdPartySlot} objects that match the given + * {@link Statement#query}. + * + * @param thirdPartySlotAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of third-party slots + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PerformThirdPartySlotAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ThirdPartySlotAction + */ + public $thirdPartySlotAction; + + /** + * @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($thirdPartySlotAction = null, $filterStatement = null) { + $this->thirdPartySlotAction = $thirdPartySlotAction; + $this->filterStatement = $filterStatement; + } + +}} + +if (!class_exists("PerformThirdPartySlotActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PerformThirdPartySlotActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("UpdateThirdPartySlot", FALSE)) { +/** + * Updates the specified {@link ThirdPartySlot}. + * + * @param thirdPartySlot the third-party slot to update + * @return the updated third-party slot + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UpdateThirdPartySlot { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ThirdPartySlot + */ + public $thirdPartySlot; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($thirdPartySlot = null) { + $this->thirdPartySlot = $thirdPartySlot; + } + +}} + +if (!class_exists("UpdateThirdPartySlotResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UpdateThirdPartySlotResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ThirdPartySlot + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + +}} + +if (!class_exists("ActivateThirdPartySlots", FALSE)) { +/** + * Action to activate {@link ThirdPartySlot} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ActivateThirdPartySlots extends ThirdPartySlotAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = "ActivateThirdPartySlots"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($ThirdPartySlotActionType = null) { + parent::__construct(); + $this->ThirdPartySlotActionType = $ThirdPartySlotActionType; + } + +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("ArchiveThirdPartySlots", FALSE)) { +/** + * Action to archive {@link ThirdPartySlot} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ArchiveThirdPartySlots extends ThirdPartySlotAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = "ArchiveThirdPartySlots"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($ThirdPartySlotActionType = null) { + parent::__construct(); + $this->ThirdPartySlotActionType = $ThirdPartySlotActionType; + } + +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("ThirdPartySlotService", FALSE)) { +/** + * ThirdPartySlotService + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ThirdPartySlotService extends DfpSoapClient { + + const SERVICE_NAME = "ThirdPartySlotService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201302/ThirdPartySlotService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/ThirdPartySlotService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ActivateThirdPartySlots" => "ActivateThirdPartySlots", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "ArchiveThirdPartySlots" => "ArchiveThirdPartySlots", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "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", + "ThirdPartySlotAction" => "ThirdPartySlotAction", + "ThirdPartySlot" => "ThirdPartySlot", + "ThirdPartySlotPage" => "ThirdPartySlotPage", + "UniqueError" => "UniqueError", + "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", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "ThirdPartySlot.Status" => "ThirdPartySlotStatus", + "createThirdPartySlot" => "CreateThirdPartySlot", + "createThirdPartySlotResponse" => "CreateThirdPartySlotResponse", + "getThirdPartySlotsByStatement" => "GetThirdPartySlotsByStatement", + "getThirdPartySlotsByStatementResponse" => "GetThirdPartySlotsByStatementResponse", + "performThirdPartySlotAction" => "PerformThirdPartySlotAction", + "performThirdPartySlotActionResponse" => "PerformThirdPartySlotActionResponse", + "updateThirdPartySlot" => "UpdateThirdPartySlot", + "updateThirdPartySlotResponse" => "UpdateThirdPartySlotResponse", + ); + + + /** + * 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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * Creates a new {@link ThirdPartySlot}. + * + * The following fields are required: + *
        + *
      • {@link ThirdPartySlot#companyId}
      • + *
      • {@link ThirdPartySlot#externalUniqueId}
      • + *
      • {@link ThirdPartySlot#externalUniqueName}
      • + *
      • {@link ThirdPartySlot#description}
      • + *
      + * + * @param thirdPartySlot the third-party slot to create + * @return the new third-party slot with its ID filled in + */ + public function createThirdPartySlot($thirdPartySlot) { + $args = new CreateThirdPartySlot($thirdPartySlot); + $result = $this->__soapCall("createThirdPartySlot", array($args)); + return $result->rval; + } + /** + * Gets a {@link ThirdPartySlotPage} of {@link ThirdPartySlot} objects that + * satisfy the filter query. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of third-party slots + * @return the third-party slots that match the given filter + */ + public function getThirdPartySlotsByStatement($filterStatement) { + $args = new GetThirdPartySlotsByStatement($filterStatement); + $result = $this->__soapCall("getThirdPartySlotsByStatement", array($args)); + return $result->rval; + } + /** + * Performs actions on {@link ThirdPartySlot} objects that match the given + * {@link Statement#query}. + * + * @param thirdPartySlotAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of third-party slots + * @return the result of the action performed + */ + public function performThirdPartySlotAction($thirdPartySlotAction, $filterStatement) { + $args = new PerformThirdPartySlotAction($thirdPartySlotAction, $filterStatement); + $result = $this->__soapCall("performThirdPartySlotAction", array($args)); + return $result->rval; + } + /** + * Updates the specified {@link ThirdPartySlot}. + * + * @param thirdPartySlot the third-party slot to update + * @return the updated third-party slot + */ + public function updateThirdPartySlot($thirdPartySlot) { + $args = new UpdateThirdPartySlot($thirdPartySlot); + $result = $this->__soapCall("updateThirdPartySlot", array($args)); + return $result->rval; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/UserService.php b/src/Google/Api/Ads/Dfp/v201302/UserService.php new file mode 100755 index 000000000..94c41819f --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/UserService.php @@ -0,0 +1,4024 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomFieldValueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InvalidEmailError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Role { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UserAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UserPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UserRecord { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InvalidEmailErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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. + * 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 v201302 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("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 v201302 + */ +class CreateUser { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateUserResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateUsers { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateUsersResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetAllRoles { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetAllRolesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetCurrentUser { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetCurrentUserResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetUser { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetUserResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetUsersByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetUsersByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PerformUserAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PerformUserActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateUser { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateUserResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateUsers { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateUsersResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ActivateUsers extends UserAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("DeactivateUsers", FALSE)) { +/** + * The action used for deactivating {@link User} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeactivateUsers extends UserAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class User extends UserRecord { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const XSI_TYPE = "User"; + + /** + * @access public + * @var boolean + */ + public $isActive; + + /** + * @access public + * @var boolean + */ + public $isEmailNotificationAllowed; + + /** + * @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, $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->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 v201302 + */ +class UserService extends DfpSoapClient { + + const SERVICE_NAME = "UserService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201302/UserService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/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", + "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", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/UserTeamAssociationService.php b/src/Google/Api/Ads/Dfp/v201302/UserTeamAssociationService.php new file mode 100755 index 000000000..0092395ba --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/UserTeamAssociationService.php @@ -0,0 +1,3172 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ClientLogin extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UserRecordTeamAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UserTeamAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UserTeamAssociation extends UserRecordTeamAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UserTeamAssociationPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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. + * 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 v201302 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TeamAccessType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateUserTeamAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateUserTeamAssociationResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateUserTeamAssociations { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class CreateUserTeamAssociationsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetUserTeamAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetUserTeamAssociationResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetUserTeamAssociationsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class GetUserTeamAssociationsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PerformUserTeamAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class PerformUserTeamAssociationActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateUserTeamAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateUserTeamAssociationResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateUserTeamAssociations { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UpdateUserTeamAssociationsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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("DeleteUserTeamAssociations", FALSE)) { +/** + * Action to delete the association between a {@link User} and a {@link Team}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeleteUserTeamAssociations extends UserTeamAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + 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 v201302 + */ +class UserTeamAssociationService extends DfpSoapClient { + + const SERVICE_NAME = "UserTeamAssociationService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201302"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201302/UserTeamAssociationService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/ActivityGroupService.php b/src/Google/Api/Ads/Dfp/v201306/ActivityGroupService.php new file mode 100755 index 000000000..d162790b8 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/ActivityGroupService.php @@ -0,0 +1,3162 @@ +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 v201306 + */ +class ActivityGroupPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("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("ActivityGroupStatus", FALSE)) { +/** + * The activity group status. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ActivityGroupStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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. + * 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("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. + * + * @param activityGroups the activity groups to be created. + * @return the created activity groups with their IDs filled in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreateActivityGroups { + + 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("CreateActivityGroupsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreateActivityGroupsResponse { + + 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("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 + * {@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 v201306 + */ +class GetActivityGroupsByStatement { + + 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("GetActivityGroupsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GetActivityGroupsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class UpdateActivityGroup { + + 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("UpdateActivityGroupResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateActivityGroupResponse { + + 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("UpdateActivityGroups", 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)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateActivityGroupsResponse { + + 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("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("ActivityGroupService", FALSE)) { +/** + * ActivityGroupService + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ActivityGroupService extends DfpSoapClient { + + const SERVICE_NAME = "ActivityGroupService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201306/ActivityGroupService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/ActivityService.php b/src/Google/Api/Ads/Dfp/v201306/ActivityService.php new file mode 100755 index 000000000..4786a46e1 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/ActivityService.php @@ -0,0 +1,3200 @@ +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. + * 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://www.google.com/apis/ads/publisher/v201306/ActivityService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/AdRuleService.php b/src/Google/Api/Ads/Dfp/v201306/AdRuleService.php new file mode 100755 index 000000000..0f0e6bc4c --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/AdRuleService.php @@ -0,0 +1,7326 @@ + "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 v201306 + */ +class AdRule { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class AdRulePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class BaseAdRuleSlot { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class StandardPoddingAdRuleSlot extends BaseAdRuleSlot { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class AdUnitTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("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("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("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("DeactivateAdRules", FALSE)) { +/** + * The action used for pausing {@link AdRule} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeactivateAdRules extends AdRuleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class DeleteAdRules extends AdRuleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("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("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("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("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("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("PoddingError", FALSE)) { +/** + * Errors related to podding fields in ad rule slots. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PoddingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("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("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("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("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("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("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)) { +/** + * The {@link BaseAdRuleSlot} subtype returned if the actual type is not exposed by the + * requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UnknownAdRuleSlot extends BaseAdRuleSlot { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("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("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)) { +/** + * Types of bumper ads on an ad rule slot. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdRuleSlotBumper { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class AdRuleSlotErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class AdRuleStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("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("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("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("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("FrequencyCapBehavior", FALSE)) { +/** + * Types of behavior for frequency caps within ad rules. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FrequencyCapBehavior { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("MidrollFrequencyType", FALSE)) { +/** + * Frequency types for mid-roll {@link BaseAdRuleSlot ad rule slots}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MidrollFrequencyType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("PoddingErrorReason", FALSE)) { +/** + * Describes reason for {@code PoddingError}s. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PoddingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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. + * 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("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("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("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("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 v201306 + */ +class CreateAdRule { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class CreateAdRuleResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class CreateAdRules { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class CreateAdRulesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class GetAdRule { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class GetAdRuleResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class GetAdRulesByStatement { + + 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("GetAdRulesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GetAdRulesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class PerformAdRuleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class PerformAdRuleActionResponse { + + 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("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 v201306 + */ +class UpdateAdRule { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class UpdateAdRuleResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class UpdateAdRules { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class UpdateAdRulesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class ActivateAdRules extends AdRuleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class AdRuleDateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class AdRuleFrequencyCapError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class NoPoddingAdRuleSlot extends BaseAdRuleSlot { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class OptimizedPoddingAdRuleSlot extends BaseAdRuleSlot { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class AdRulePriorityError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class AdRuleSlotError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("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("AdRuleService", FALSE)) { +/** + * AdRuleService + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdRuleService extends DfpSoapClient { + + const SERVICE_NAME = "AdRuleService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201306/AdRuleService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/AudienceSegmentService.php b/src/Google/Api/Ads/Dfp/v201306/AudienceSegmentService.php new file mode 100755 index 000000000..df0219c00 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/AudienceSegmentService.php @@ -0,0 +1,2495 @@ +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("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; + } + +}} + +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("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("AudienceSegment", FALSE)) { +/** + * An {@link AudienceSegment} represents audience segment object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AudienceSegment { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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, $AudienceSegmentType = null) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->size = $size; + $this->AudienceSegmentType = $AudienceSegmentType; + } + +}} + +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("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. + * 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("AudienceSegmentStatus", FALSE)) { +/** + * Specifies the statuses for {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AudienceSegmentStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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("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("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 v201306 + */ +class GetAudienceSegmentsByStatement { + + 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("GetAudienceSegmentsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GetAudienceSegmentsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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("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("AudienceSegmentService", FALSE)) { +/** + * AudienceSegmentService + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AudienceSegmentService extends DfpSoapClient { + + const SERVICE_NAME = "AudienceSegmentService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201306/AudienceSegmentService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/AudienceSegmentService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AudienceSegmentPage" => "AudienceSegmentPage", + "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", + "RequiredError" => "RequiredError", + "AudienceSegment" => "AudienceSegment", + "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", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "AudienceSegment.Status" => "AudienceSegmentStatus", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "getAudienceSegmentsByStatement" => "GetAudienceSegmentsByStatement", + "getAudienceSegmentsByStatementResponse" => "GetAudienceSegmentsByStatementResponse", + ); + + + /** + * 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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/BaseRateService.php b/src/Google/Api/Ads/Dfp/v201306/BaseRateService.php new file mode 100755 index 000000000..63c71488d --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/BaseRateService.php @@ -0,0 +1,3666 @@ +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 string + */ + 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. + * 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://www.google.com/apis/ads/publisher/v201306/BaseRateService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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 status}{@link BaseRate#status}
      {@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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/CompanyService.php b/src/Google/Api/Ads/Dfp/v201306/CompanyService.php new file mode 100755 index 000000000..cf0a6ab73 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/CompanyService.php @@ -0,0 +1,3683 @@ +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("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("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. + * 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 status}{@link BaseRate#status}
      {@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://www.google.com/apis/ads/publisher/v201306/CompanyService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/ContactService.php b/src/Google/Api/Ads/Dfp/v201306/ContactService.php new file mode 100755 index 000000000..77cce5232 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/ContactService.php @@ -0,0 +1,3328 @@ +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. + * 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://www.google.com/apis/ads/publisher/v201306/ContactService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/ContentBundleService.php b/src/Google/Api/Ads/Dfp/v201306/ContentBundleService.php new file mode 100755 index 000000000..6ea24e59b --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/ContentBundleService.php @@ -0,0 +1,3366 @@ +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. + * 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://www.google.com/apis/ads/publisher/v201306/ContentBundleService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/ContentService.php b/src/Google/Api/Ads/Dfp/v201306/ContentService.php new file mode 100755 index 000000000..e4554252e --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/ContentService.php @@ -0,0 +1,3019 @@ +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. + * 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://www.google.com/apis/ads/publisher/v201306/ContentService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/CreativeService.php b/src/Google/Api/Ads/Dfp/v201306/CreativeService.php new file mode 100755 index 000000000..3ef81a9f2 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/CreativeService.php @@ -0,0 +1,8101 @@ + "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("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("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), {@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("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("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. + * 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://www.google.com/apis/ads/publisher/v201306/CreativeService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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", + "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", + "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", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "Html5Feature" => "Html5Feature", + "ImageDensity" => "ImageDensity", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/CreativeSetService.php b/src/Google/Api/Ads/Dfp/v201306/CreativeSetService.php new file mode 100755 index 000000000..d349e4c86 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/CreativeSetService.php @@ -0,0 +1,4256 @@ +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("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("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("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("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("CreativeSet", FALSE)) { +/** + * A creative set is comprised of a master creative and its companion creatives. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeSet { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("CreativeSetPage", FALSE)) { +/** + * Captures a page of {@link CreativeSet} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeSetPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("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("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("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("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("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("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("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("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("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("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("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("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("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("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("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("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("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. + * 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("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("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("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 + */ +class CreateCreativeSet { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class CreateCreativeSetResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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 v201306 + */ +class GetCreativeSetResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class GetCreativeSetsByStatement { + + 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("GetCreativeSetsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GetCreativeSetsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class UpdateCreativeSet { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class UpdateCreativeSetResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("CreativeSetService", FALSE)) { +/** + * CreativeSetService + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeSetService extends DfpSoapClient { + + const SERVICE_NAME = "CreativeSetService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201306/CreativeSetService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/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", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "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", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/CreativeTemplateService.php b/src/Google/Api/Ads/Dfp/v201306/CreativeTemplateService.php new file mode 100755 index 000000000..44bd77a6d --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/CreativeTemplateService.php @@ -0,0 +1,3561 @@ +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("CreativeTemplate", FALSE)) { +/** + * A template upon which a creative can be created. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeTemplate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class CreativeTemplateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class ListStringCreativeTemplateVariableVariableChoice { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class CreativeTemplatePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class CreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("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("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("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("AssetCreativeTemplateVariableMimeType", FALSE)) { +/** + * Different mime type that the asset variable supports. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AssetCreativeTemplateVariableMimeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class CreativeTemplateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class CreativeTemplateStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class CreativeTemplateType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("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. + * 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("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("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 + * 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 v201306 + */ +class GetCreativeTemplatesByStatement { + + 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("GetCreativeTemplatesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GetCreativeTemplatesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("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 v201306 + */ +class AssetCreativeTemplateVariable extends CreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class LongCreativeTemplateVariable extends CreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class StringCreativeTemplateVariable extends CreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class UrlCreativeTemplateVariable extends CreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("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 v201306 + */ +class ListStringCreativeTemplateVariable extends StringCreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class CreativeTemplateService extends DfpSoapClient { + + const SERVICE_NAME = "CreativeTemplateService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201306/CreativeTemplateService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/CreativeWrapperService.php b/src/Google/Api/Ads/Dfp/v201306/CreativeWrapperService.php new file mode 100755 index 000000000..20c26d2d0 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/CreativeWrapperService.php @@ -0,0 +1,3769 @@ +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. + * 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://www.google.com/apis/ads/publisher/v201306/CreativeWrapperService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/CustomFieldService.php b/src/Google/Api/Ads/Dfp/v201306/CustomFieldService.php new file mode 100755 index 000000000..55c2d4467 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/CustomFieldService.php @@ -0,0 +1,4275 @@ +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("CustomFieldAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class CustomField { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class CustomFieldError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class CustomFieldOption { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class CustomFieldPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("DeactivateCustomFields", FALSE)) { +/** + * The action used for deactivating {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeactivateCustomFields extends CustomFieldAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class DropDownCustomField extends CustomField { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("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("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("CustomFieldDataType", FALSE)) { +/** + * The data types allowed for {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldDataType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class CustomFieldEntityType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class CustomFieldErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class CustomFieldVisibility { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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. + * 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("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 v201306 + */ +class CreateCustomField { + + 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("CreateCustomFieldResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreateCustomFieldResponse { + + 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("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 v201306 + */ +class CreateCustomFieldOption { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class CreateCustomFieldOptionResponse { + + 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("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 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. + * + * @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 + */ +class GetCustomFieldOption { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class GetCustomFieldOptionResponse { + + 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("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 v201306 + */ +class GetCustomFieldsByStatement { + + 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("GetCustomFieldsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GetCustomFieldsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class PerformCustomFieldAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class PerformCustomFieldActionResponse { + + 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("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)) { +/** + * Updates the specified {@link CustomFieldOption}. + * + * @param customFieldOption the custom field option to update + * @return the updated customFieldOption + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateCustomFieldOption { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class UpdateCustomFieldOptionResponse { + + 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("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 v201306 + */ +class UpdateCustomFieldOptions { + + 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("UpdateCustomFieldOptionsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateCustomFieldOptionsResponse { + + 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("UpdateCustomFields", 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)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateCustomFieldsResponse { + + 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("ActivateCustomFields", FALSE)) { +/** + * The action used for activating {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ActivateCustomFields extends CustomFieldAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("CustomFieldService", FALSE)) { +/** + * CustomFieldService + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldService extends DfpSoapClient { + + const SERVICE_NAME = "CustomFieldService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201306/CustomFieldService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/CustomTargetingService.php b/src/Google/Api/Ads/Dfp/v201306/CustomTargetingService.php new file mode 100755 index 000000000..5b255f94c --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/CustomTargetingService.php @@ -0,0 +1,3938 @@ +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("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("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. + * 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://www.google.com/apis/ads/publisher/v201306/CustomTargetingService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/ForecastService.php b/src/Google/Api/Ads/Dfp/v201306/ForecastService.php new file mode 100755 index 000000000..6d11db1d9 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/ForecastService.php @@ -0,0 +1,9634 @@ +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("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 overbook lower or equal + * priority line items. + *
      • Possible units -- How many units can be booked without affecting any + * higher priority line items. Booking more than this number can overbook + * higher priority line items. + *
      • Matched (forecast) units -- How many units satisfy all specified + * criteria. + *
      + * + *

      The term "can overbook" is used, because 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), {@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("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. + * 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://www.google.com/apis/ads/publisher/v201306/ForecastService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/InventoryService.php b/src/Google/Api/Ads/Dfp/v201306/InventoryService.php new file mode 100755 index 000000000..fa06d5319 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/InventoryService.php @@ -0,0 +1,5873 @@ +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 v201306 + */ +class AdSenseSettingsInheritedProperty { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class AdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class AdUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class AdUnitPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class AdUnitParent { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("ArchiveAdUnits", FALSE)) { +/** + * The action used for archiving {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ArchiveAdUnits extends AdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class AssignAdUnitsToPlacement extends AdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("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("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("DeactivateAdUnits", FALSE)) { +/** + * The action used for deactivating {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeactivateAdUnits extends AdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("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("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("InvalidColorError", FALSE)) { +/** + * A list of all errors associated with a color attribute. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidColorError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("InventoryUnitPartnerAssociationError", FALSE)) { +/** + * Errors relating to the association of partner companies with inventory units. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryUnitPartnerAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class AdUnitSize { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class InventoryUnitSizesError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class AdUnitTypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class LabelFrequencyCap { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("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("RemoveAdUnitsFromPlacement", FALSE)) { +/** + * The action used for removing a group of {@link AdUnit} objects + * from a {@link Placement}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RemoveAdUnitsFromPlacement extends AdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@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("Size_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Size + * and value of type String. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Size_StringMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("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 v201306 + */ +class AdSenseAccountErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class AdSenseSettingsAdType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class AdSenseSettingsBorderStyle { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class AdSenseSettingsFontFamily { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class AdSenseSettingsFontSize { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("AdUnitTargetWindow", FALSE)) { +/** + * Corresponds to an HTML link's {@code target} attribute. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdUnitTargetWindow { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("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("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("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("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("InvalidColorErrorReason", FALSE)) { +/** + * The provided value is not a valid hexadecimal color. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidColorErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("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("InventoryUnitPartnerAssociationErrorReason", FALSE)) { +/** + * Partner association error reason types. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryUnitPartnerAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class InventoryUnitSizesErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class AdUnitTypeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class MobilePlatform { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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. + * 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("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("SmartSizeMode", FALSE)) { +/** + * Represents smart size modes. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SmartSizeMode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("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("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. + * + * @param adUnits the ad units to create + * @return the created ad units, with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreateAdUnits { + + 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("CreateAdUnitsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreateAdUnitsResponse { + + 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("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 + * {@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 v201306 + */ +class GetAdUnitSizesByStatement { + + 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("GetAdUnitSizesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GetAdUnitSizesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class GetAdUnitsByStatement { + + 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("GetAdUnitsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GetAdUnitsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class PerformAdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class PerformAdUnitActionResponse { + + 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("UpdateAdUnit", FALSE)) { +/** + * Updates the specified {@link AdUnit}. + * + * @param adUnit the ad unit to update + * @return the updated ad unit + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateAdUnit { + + 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("UpdateAdUnitResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateAdUnitResponse { + + 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("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)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateAdUnitsResponse { + + 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("ActivateAdUnits", FALSE)) { +/** + * The action used for activating {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ActivateAdUnits extends AdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class AdSenseAccountError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("InventoryService", FALSE)) { +/** + * InventoryService + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryService extends DfpSoapClient { + + const SERVICE_NAME = "InventoryService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201306/InventoryService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/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", + "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", + "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", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/LabelService.php b/src/Google/Api/Ads/Dfp/v201306/LabelService.php new file mode 100755 index 000000000..9fa4acd41 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/LabelService.php @@ -0,0 +1,3655 @@ +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("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("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("LabelAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LabelAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($LabelActionType = null) { + $this->LabelActionType = $LabelActionType; + } + +}} + +if (!class_exists("Label", FALSE)) { +/** + * A {@code Label} is additional information that can be added to an entity. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Label { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const XSI_TYPE = "Label"; + + /** + * @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 tnsLabelType[] + */ + public $types; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $types = null) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->isActive = $isActive; + $this->types = $types; + } + +}} + +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("LabelPage", FALSE)) { +/** + * Captures a page of {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LabelPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const XSI_TYPE = "LabelPage"; + + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Label[] + */ + 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("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("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("LabelType", FALSE)) { +/** + * Represents the types of labels supported. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LabelType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const XSI_TYPE = "LabelType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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. + * 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("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 v201306 + */ +class CreateLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class CreateLabelResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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. + * + * @param labels the labels to create + * @return the created labels with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreateLabels { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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("CreateLabelsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreateLabelsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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("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 v201306 + */ +class GetLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class GetLabelResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@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}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels. + * @return the labels that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GetLabelsByStatement { + + 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("GetLabelsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GetLabelsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LabelPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + +}} + +if (!class_exists("PerformLabelAction", FALSE)) { +/** + * Performs actions on {@link Label} 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 + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PerformLabelAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LabelAction + */ + public $labelAction; + + /** + * @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($labelAction = null, $filterStatement = null) { + $this->labelAction = $labelAction; + $this->filterStatement = $filterStatement; + } + +}} + +if (!class_exists("PerformLabelActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PerformLabelActionResponse { + + 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("UpdateLabel", FALSE)) { +/** + * Updates the specified {@link Label}. + * + * @param label the label to update + * @return the updated label + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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("UpdateLabelResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateLabelResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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("UpdateLabels", FALSE)) { +/** + * Updates the specified {@link Label} objects. + * + * @param labels the labels to update + * @return the updated labels + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateLabels { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateLabelsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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("ActivateLabels", FALSE)) { +/** + * The action used for activating {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ActivateLabels extends LabelAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const XSI_TYPE = "ActivateLabels"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($LabelActionType = null) { + parent::__construct(); + $this->LabelActionType = $LabelActionType; + } + +}} + +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("DeactivateLabels", FALSE)) { +/** + * The action used for deactivating {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeactivateLabels extends LabelAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const XSI_TYPE = "DeactivateLabels"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($LabelActionType = null) { + parent::__construct(); + $this->LabelActionType = $LabelActionType; + } + +}} + +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("LabelService", FALSE)) { +/** + * LabelService + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LabelService extends DfpSoapClient { + + const SERVICE_NAME = "LabelService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201306/LabelService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/LabelService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ActivateLabels" => "ActivateLabels", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "ClientLogin" => "ClientLogin", + "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", + "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", + "LabelError.Reason" => "LabelErrorReason", + "LabelType" => "LabelType", + "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", + "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", + ); + + + /** + * 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=null, $options, $user) { + $options["classmap"] = self::$classmap; + 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. + * + * @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 + */ + 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 + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@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}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels. + * @return the labels that match the given filter + */ + public function getLabelsByStatement($filterStatement) { + $args = new GetLabelsByStatement($filterStatement); + $result = $this->__soapCall("getLabelsByStatement", array($args)); + return $result->rval; + } + /** + * Performs actions on {@link Label} 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 + * @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)); + return $result->rval; + } + /** + * Updates the specified {@link Label} objects. + * + * @param labels the labels to update + * @return the updated labels + */ + public function updateLabels($labels) { + $args = new UpdateLabels($labels); + $result = $this->__soapCall("updateLabels", array($args)); + return $result->rval; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/LineItemCreativeAssociationService.php b/src/Google/Api/Ads/Dfp/v201306/LineItemCreativeAssociationService.php new file mode 100755 index 000000000..5c011e940 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/LineItemCreativeAssociationService.php @@ -0,0 +1,5673 @@ +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("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("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("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("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("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("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("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("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("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("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("LineItemCreativeAssociationAction", FALSE)) { +/** + * Represents the actions that can be performed on + * {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemCreativeAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class LineItemCreativeAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("LineItemCreativeAssociationOperationError", FALSE)) { +/** + * Lists all errors for executing operations on + * line item-to-creative associations + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemCreativeAssociationOperationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class LineItemCreativeAssociationPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class LineItemCreativeAssociationStats { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("Long_StatsMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Long + * and value of type Stats. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Long_StatsMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("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("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), {@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("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("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("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("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 v201306 + */ +class AdSenseAccountErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("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("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("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("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("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("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("LineItemCreativeAssociationStatus", FALSE)) { +/** + * Describes the status of the association. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemCreativeAssociationStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("LineItemCreativeAssociationOperationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemCreativeAssociationOperationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("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. + * 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("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("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("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("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)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreateLineItemCreativeAssociationResponse { + + 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("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 v201306 + */ +class CreateLineItemCreativeAssociations { + + 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("CreateLineItemCreativeAssociationsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreateLineItemCreativeAssociationsResponse { + + 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("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 + * {@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 v201306 + */ +class GetLineItemCreativeAssociationsByStatement { + + 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("GetLineItemCreativeAssociationsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GetLineItemCreativeAssociationsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class GetPreviewUrl { + + 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; + + /** + * @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 v201306 + */ +class GetPreviewUrlResponse { + + 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("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 v201306 + */ +class PerformLineItemCreativeAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class PerformLineItemCreativeAssociationActionResponse { + + 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("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 v201306 + */ +class UpdateLineItemCreativeAssociation { + + 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("UpdateLineItemCreativeAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateLineItemCreativeAssociationResponse { + + 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("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)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateLineItemCreativeAssociationsResponse { + + 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("ActivateLineItemCreativeAssociations", FALSE)) { +/** + * The action used for activating {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ActivateLineItemCreativeAssociations extends LineItemCreativeAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class AdSenseAccountError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("DeactivateLineItemCreativeAssociations", FALSE)) { +/** + * The action used for deactivating {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeactivateLineItemCreativeAssociations extends LineItemCreativeAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("LineItemCreativeAssociationService", FALSE)) { +/** + * LineItemCreativeAssociationService + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemCreativeAssociationService extends DfpSoapClient { + + const SERVICE_NAME = "LineItemCreativeAssociationService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201306/LineItemCreativeAssociationService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/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", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateLineItemCreativeAssociations" => "DeactivateLineItemCreativeAssociations", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "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", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/LineItemService.php b/src/Google/Api/Ads/Dfp/v201306/LineItemService.php new file mode 100755 index 000000000..c65263fa6 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/LineItemService.php @@ -0,0 +1,10453 @@ +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("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), {@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("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. + * 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 Property Object Property
      {@code costType}{@link LineItem#costType}
      {@code id}{@link LineItem#id}
      {@code lineItemType}{@link LineItem#lineItemType}
      {@code name}{@link LineItem#name}
      {@code orderId}{@link LineItem#orderId}
      {@code status}{@link LineItem#status}
      {@code unitsBought}{@link LineItem#unitsBought}
      {@code deliveryRateType}{@link LineItem#deliveryRateType}
      {@code lastModifiedDateTime}{@link LineItem#lastModifiedDateTime}
      {@code creationDateTime}{@link LineItem#creationDateTime}
      {@code isMissingCreatives}{@link LineItem#isMissingCreatives}
      + * + * @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://www.google.com/apis/ads/publisher/v201306/LineItemService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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", + "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", + "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=null, $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 Property Object Property
      {@code costType}{@link LineItem#costType}
      {@code id}{@link LineItem#id}
      {@code lineItemType}{@link LineItem#lineItemType}
      {@code name}{@link LineItem#name}
      {@code orderId}{@link LineItem#orderId}
      {@code status}{@link LineItem#status}
      {@code unitsBought}{@link LineItem#unitsBought}
      {@code deliveryRateType}{@link LineItem#deliveryRateType}
      {@code lastModifiedDateTime}{@link LineItem#lastModifiedDateTime}
      {@code creationDateTime}{@link LineItem#creationDateTime}
      {@code isMissingCreatives}{@link LineItem#isMissingCreatives}
      + * + * @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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/LineItemTemplateService.php b/src/Google/Api/Ads/Dfp/v201306/LineItemTemplateService.php new file mode 100755 index 000000000..d1fb9896e --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/LineItemTemplateService.php @@ -0,0 +1,5118 @@ +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("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("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. + * 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://www.google.com/apis/ads/publisher/v201306/LineItemTemplateService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/NetworkService.php b/src/Google/Api/Ads/Dfp/v201306/NetworkService.php new file mode 100755 index 000000000..97bffc3a4 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/NetworkService.php @@ -0,0 +1,2512 @@ +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("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("Network", FALSE)) { +/** + * {@code Network} represents a network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Network { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class NetworkError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("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("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("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("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("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("NetworkErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NetworkErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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. + * 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("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("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 v201306 + */ +class GetAllNetworks { + + 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("GetAllNetworksResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GetAllNetworksResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class GetCurrentNetwork { + + 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("GetCurrentNetworkResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GetCurrentNetworkResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class MakeTestNetwork { + + 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("MakeTestNetworkResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MakeTestNetworkResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class UpdateNetwork { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class UpdateNetworkResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("NetworkService", FALSE)) { +/** + * NetworkService + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NetworkService extends DfpSoapClient { + + const SERVICE_NAME = "NetworkService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201306/NetworkService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/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", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "TypeError" => "TypeError", + "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", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/OrderService.php b/src/Google/Api/Ads/Dfp/v201306/OrderService.php new file mode 100755 index 000000000..9be5ef483 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/OrderService.php @@ -0,0 +1,5548 @@ +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("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("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("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("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("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("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("ResumeOrders", FALSE)) { +/** + * The action used for resuming {@link Order} objects. All {@link LineItem} + * objects within the order 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("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("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("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("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("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("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. + * 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("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("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://www.google.com/apis/ads/publisher/v201306/OrderService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BooleanValue" => "BooleanValue", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeleteOrders" => "DeleteOrders", + "DisapproveOrders" => "DisapproveOrders", + "DisapproveOrdersWithoutReservationChanges" => "DisapproveOrdersWithoutReservationChanges", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "ForecastError" => "ForecastError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargetingError" => "InventoryTargetingError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "Money" => "Money", + "NotNullError" => "NotNullError", + "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", + "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", + "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UnarchiveOrders" => "UnarchiveOrders", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "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", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/PlacementService.php b/src/Google/Api/Ads/Dfp/v201306/PlacementService.php new file mode 100755 index 000000000..262acb729 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/PlacementService.php @@ -0,0 +1,4034 @@ +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. + * 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://www.google.com/apis/ads/publisher/v201306/PlacementService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/ProductService.php b/src/Google/Api/Ads/Dfp/v201306/ProductService.php new file mode 100755 index 000000000..017e458d1 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/ProductService.php @@ -0,0 +1,6033 @@ +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 string + */ + 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), {@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. + * 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("GetProduct", FALSE)) { +/** + * Returns the {@link Product} uniquely identified by the given ID. + * + * @param productId the ID of the product, which must already exist + * @return the {@code Product} uniquely identified by ID + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GetProduct { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const XSI_TYPE = ""; + + /** + * @access public + * @var string + */ + public $productId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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) { + $this->productId = $productId; + } + +}} + +if (!class_exists("GetProductResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GetProductResponse { + + 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("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}YesNo
      {@code lastModifiedDateTime}{@link Product#lastModifiedDateTime}NoYes
      + * + * @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://www.google.com/apis/ads/publisher/v201306/ProductService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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", + "getProduct" => "GetProduct", + "getProductResponse" => "GetProductResponse", + "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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * Returns the {@link Product} uniquely identified by the given ID. + * + * @param productId the ID of the product, which must already exist + * @return the {@code Product} uniquely identified by ID + */ + public function getProduct($productId) { + $args = new GetProduct($productId); + $result = $this->__soapCall("getProduct", array($args)); + return $result->rval; + } + /** + * 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}YesNo
      {@code lastModifiedDateTime}{@link Product#lastModifiedDateTime}NoYes
      + * + * @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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/ProductTemplateService.php b/src/Google/Api/Ads/Dfp/v201306/ProductTemplateService.php new file mode 100755 index 000000000..d087de740 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/ProductTemplateService.php @@ -0,0 +1,6826 @@ +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("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("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("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("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("PlacementTargeting", FALSE)) { +/** + * Specifies what {@link Placement placements} are targeted. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PlacementTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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 + */ +class ProductTemplateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class ProductTemplateActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class ProductTemplate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class ProductTemplateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class ProductTemplatePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class ProductSegmentation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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), {@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("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("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("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("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("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("ProductTemplateActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProductTemplateActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class ProductTemplateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class ProductTemplateStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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. + * 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("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)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreateProductTemplateResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class CreateProductTemplates { + + 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("CreateProductTemplatesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreateProductTemplatesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class GetProductTemplate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class GetProductTemplateResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class GetProductTemplatesByStatement { + + 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("GetProductTemplatesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GetProductTemplatesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class PerformProductTemplateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class PerformProductTemplateActionResponse { + + 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("UpdateProductTemplate", FALSE)) { +/** + * Updates the specified {@link ProductTemplate}. + * + * @param productTemplate the product template to update + * @return the updated product template + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateProductTemplate { + + 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("UpdateProductTemplateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateProductTemplateResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateProductTemplatesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class ActivateProductTemplates extends ProductTemplateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("ArchiveProducTemplates", FALSE)) { +/** + * The action used for archiving product template. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ArchiveProducTemplates extends ProductTemplateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("DeactivateProductTemplates", FALSE)) { +/** + * The action used for deactivating product templates. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeactivateProductTemplates extends ProductTemplateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("ProductTemplateService", FALSE)) { +/** + * ProductTemplateService + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProductTemplateService extends DfpSoapClient { + + const SERVICE_NAME = "ProductTemplateService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201306/ProductTemplateService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/ProposalLineItemService.php b/src/Google/Api/Ads/Dfp/v201306/ProposalLineItemService.php new file mode 100755 index 000000000..0c00f83fb --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/ProposalLineItemService.php @@ -0,0 +1,8937 @@ +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 string + */ + 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 triggered {@link RateCardCustomization} premiums. + * @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), {@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. + * 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://www.google.com/apis/ads/publisher/v201306/ProposalLineItemService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/ProposalService.php b/src/Google/Api/Ads/Dfp/v201306/ProposalService.php new file mode 100755 index 000000000..92fcd873c --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/ProposalService.php @@ -0,0 +1,5525 @@ +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. + * 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://www.google.com/apis/ads/publisher/v201306/ProposalService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/PublisherQueryLanguageService.php b/src/Google/Api/Ads/Dfp/v201306/PublisherQueryLanguageService.php new file mode 100755 index 000000000..1192c7591 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/PublisherQueryLanguageService.php @@ -0,0 +1,4063 @@ +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. + * 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://www.google.com/apis/ads/publisher/v201306/PublisherQueryLanguageService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/RateCardCustomizationService.php b/src/Google/Api/Ads/Dfp/v201306/RateCardCustomizationService.php new file mode 100755 index 000000000..0d24094fb --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/RateCardCustomizationService.php @@ -0,0 +1,3964 @@ +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. + * @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. + * 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}
      {@code status}{@link RateCardCustomization#status}
      + * + * @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://www.google.com/apis/ads/publisher/v201306/RateCardCustomizationService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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}
      {@code status}{@link RateCardCustomization#status}
      + * + * @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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/RateCardService.php b/src/Google/Api/Ads/Dfp/v201306/RateCardService.php new file mode 100755 index 000000000..885651ec5 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/RateCardService.php @@ -0,0 +1,4096 @@ +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. + * 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://www.google.com/apis/ads/publisher/v201306/RateCardService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/ReconciliationOrderReportService.php b/src/Google/Api/Ads/Dfp/v201306/ReconciliationOrderReportService.php new file mode 100755 index 000000000..d0d9bf7ee --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/ReconciliationOrderReportService.php @@ -0,0 +1,3097 @@ +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. + * 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 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 reconciliationReportId}{@link ReconciliationOrderReport#reconciliationReportId}
      + * + * The {@code reconciliationReportId} field and {@code orderId} are required and can only be + * combined with an {@code AND}. Furthermore, the results may only belong to one + * {@link ReconciliationReport}. + * 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://www.google.com/apis/ads/publisher/v201306/ReconciliationOrderReportService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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 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 reconciliationReportId}{@link ReconciliationOrderReport#reconciliationReportId}
      + * + * The {@code reconciliationReportId} field and {@code orderId} are required and can only be + * combined with an {@code AND}. Furthermore, the results may only belong to one + * {@link ReconciliationReport}. + * 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/ReconciliationReportRowService.php b/src/Google/Api/Ads/Dfp/v201306/ReconciliationReportRowService.php new file mode 100755 index 000000000..96ea7cef7 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/ReconciliationReportRowService.php @@ -0,0 +1,3170 @@ +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("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("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("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 v201306 + */ +class ReconciliationReportRow { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class ReconciliationReportRowPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("BillFrom", FALSE)) { +/** + * Values for which to bill from. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BillFrom { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("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("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. + * 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("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("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 v201306 + */ +class GetReconciliationReportRowsByStatement { + + 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("GetReconciliationReportRowsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GetReconciliationReportRowsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class UpdateReconciliationReportRows { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class UpdateReconciliationReportRowsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("ReconciliationReportRowService", FALSE)) { +/** + * ReconciliationReportRowService + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReconciliationReportRowService extends DfpSoapClient { + + const SERVICE_NAME = "ReconciliationReportRowService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201306/ReconciliationReportRowService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/ReconciliationReportService.php b/src/Google/Api/Ads/Dfp/v201306/ReconciliationReportService.php new file mode 100755 index 000000000..d6367e217 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/ReconciliationReportService.php @@ -0,0 +1,2987 @@ +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. + * 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://www.google.com/apis/ads/publisher/v201306/ReconciliationReportService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/ReportService.php b/src/Google/Api/Ads/Dfp/v201306/ReportService.php new file mode 100755 index 000000000..dd2ce1499 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/ReportService.php @@ -0,0 +1,3186 @@ +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}. + * 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. + * 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://www.google.com/apis/ads/publisher/v201306/ReportService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/SuggestedAdUnitService.php b/src/Google/Api/Ads/Dfp/v201306/SuggestedAdUnitService.php new file mode 100755 index 000000000..00d2cc1a0 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/SuggestedAdUnitService.php @@ -0,0 +1,3260 @@ +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 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("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 v201306 + */ +class AdUnitSize { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@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("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("SuggestedAdUnitAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link SuggestedAdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SuggestedAdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class SuggestedAdUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class SuggestedAdUnitPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class SuggestedAdUnitUpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("AdUnitTargetWindow", FALSE)) { +/** + * Corresponds to an HTML link's {@code target} attribute. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdUnitTargetWindow { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("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("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("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. + * 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("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("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 + * 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 v201306 + */ +class GetSuggestedAdUnitsByStatement { + + 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("GetSuggestedAdUnitsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GetSuggestedAdUnitsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class PerformSuggestedAdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 v201306 + */ +class PerformSuggestedAdUnitActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("ApproveSuggestedAdUnit", FALSE)) { +/** + * Action to approve {@link SuggestedAdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApproveSuggestedAdUnit extends SuggestedAdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + 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 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("SuggestedAdUnitService", FALSE)) { +/** + * SuggestedAdUnitService + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SuggestedAdUnitService extends DfpSoapClient { + + const SERVICE_NAME = "SuggestedAdUnitService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201306/SuggestedAdUnitService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/TeamService.php b/src/Google/Api/Ads/Dfp/v201306/TeamService.php new file mode 100755 index 000000000..ceb1d588f --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/TeamService.php @@ -0,0 +1,3144 @@ +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. + * 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://www.google.com/apis/ads/publisher/v201306/TeamService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/UserService.php b/src/Google/Api/Ads/Dfp/v201306/UserService.php new file mode 100755 index 000000000..93c8c76ef --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/UserService.php @@ -0,0 +1,4073 @@ +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("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. + * 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("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://www.google.com/apis/ads/publisher/v201306/UserService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/UserTeamAssociationService.php b/src/Google/Api/Ads/Dfp/v201306/UserTeamAssociationService.php new file mode 100755 index 000000000..5b41dbff9 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/UserTeamAssociationService.php @@ -0,0 +1,3214 @@ +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. + * 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://www.google.com/apis/ads/publisher/v201306/UserTeamAssociationService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/WorkflowActionService.php b/src/Google/Api/Ads/Dfp/v201306/WorkflowActionService.php new file mode 100755 index 000000000..f2fe7cbf0 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/WorkflowActionService.php @@ -0,0 +1,2402 @@ +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 integer[] + */ + public $userIds; + + /** + * @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, $userIds = null, $type = null) { + $this->id = $id; + $this->name = $name; + $this->userIds = $userIds; + $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("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. + * 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("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://www.google.com/apis/ads/publisher/v201306/WorkflowActionService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/ActivityGroupService.php b/src/Google/Api/Ads/Dfp/v201308/ActivityGroupService.php new file mode 100755 index 000000000..82a8a2280 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/ActivityGroupService.php @@ -0,0 +1,3162 @@ +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. + * 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://www.google.com/apis/ads/publisher/v201308/ActivityGroupService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/ActivityService.php b/src/Google/Api/Ads/Dfp/v201308/ActivityService.php new file mode 100755 index 000000000..6baf58f50 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/ActivityService.php @@ -0,0 +1,3200 @@ +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 v201308 + */ +class Activity { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class ActivityPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("ActivityStatus", FALSE)) { +/** + * The activity status. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ActivityStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class ActivityType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("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. + * 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("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 v201308 + */ +class CreateActivities { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class CreateActivitiesResponse { + + 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("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 + * {@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 v201308 + */ +class GetActivitiesByStatement { + + 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("GetActivitiesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GetActivitiesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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. + * + * @param activities to be updated. + * @return the updated activities. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateActivities { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class UpdateActivitiesResponse { + + 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("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)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateActivityResponse { + + 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("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("ActivityService", FALSE)) { +/** + * ActivityService + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ActivityService extends DfpSoapClient { + + const SERVICE_NAME = "ActivityService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201308/ActivityService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/AdRuleService.php b/src/Google/Api/Ads/Dfp/v201308/AdRuleService.php new file mode 100755 index 000000000..9749fb832 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/AdRuleService.php @@ -0,0 +1,7326 @@ + "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. + * 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://www.google.com/apis/ads/publisher/v201308/AdRuleService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/AudienceSegmentService.php b/src/Google/Api/Ads/Dfp/v201308/AudienceSegmentService.php new file mode 100755 index 000000000..3c2581f09 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/AudienceSegmentService.php @@ -0,0 +1,4135 @@ +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("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 v201308 + */ +class AudienceSegmentDataProvider { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class AudienceSegmentPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("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("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("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("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("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("FirstPartyAudienceSegmentRule", FALSE)) { +/** + * Rule of a {@link FirstPartyAudienceSegment} that defines user's eligibility criteria to be part + * of a segment. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FirstPartyAudienceSegmentRule { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("AudienceSegmentAction", FALSE)) { +/** + * Action that can be performed on {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AudienceSegmentAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class AudienceSegment { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class AudienceSegmentError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("SharedAudienceSegment", FALSE)) { +/** + * A {@link SharedAudienceSegment} is an {@link AudienceSegment} owned by another entity and shared + * with the publisher network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SharedAudienceSegment extends AudienceSegment { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("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("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("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("ThirdPartyAudienceSegmentAudienceSegmentApprovalStatus", FALSE)) { +/** + * Approval status values for {@link ThirdPartyAudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ThirdPartyAudienceSegmentAudienceSegmentApprovalStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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. + * 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("AudienceSegmentAudienceSegmentType", FALSE)) { +/** + * Specifies types for {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AudienceSegmentAudienceSegmentType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class AudienceSegmentStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class AudienceSegmentErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("CreateAudienceSegments", FALSE)) { +/** + * Creates new {@link RuleBasedFirstPartyAudienceSegment} objects. + * + * @param segments first-party audience segments to create + * @return created first-party audience segments + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreateAudienceSegments { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class CreateAudienceSegmentsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class GetAudienceSegmentsByStatement { + + 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("GetAudienceSegmentsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GetAudienceSegmentsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class PerformAudienceSegmentAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class PerformAudienceSegmentActionResponse { + + 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("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 v201308 + */ +class UpdateAudienceSegments { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class UpdateAudienceSegmentsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class ActivateAudienceSegments extends AudienceSegmentAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("ApproveAudienceSegments", FALSE)) { +/** + * Action that can be performed on {@link ThirdPartyAudienceSegment} objects to approve them. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApproveAudienceSegments extends AudienceSegmentAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class FirstPartyAudienceSegment extends AudienceSegment { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("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("DeactivateAudienceSegments", FALSE)) { +/** + * Action that can be performed on {@link FirstPartyAudienceSegment} objects to deactivate them. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeactivateAudienceSegments extends AudienceSegmentAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class ThirdPartyAudienceSegment extends AudienceSegment { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class NonRuleBasedFirstPartyAudienceSegment extends FirstPartyAudienceSegment { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("PopulateAudienceSegments", FALSE)) { +/** + * Action that can be performed on {@link FirstPartyAudienceSegment} objects to populate them based + * on last 30 days of traffic. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PopulateAudienceSegments extends AudienceSegmentAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class RejectAudienceSegments extends AudienceSegmentAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class RuleBasedFirstPartyAudienceSegmentSummary extends FirstPartyAudienceSegment { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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("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("RuleBasedFirstPartyAudienceSegment", FALSE)) { +/** + * A {@link RuleBasedFirstPartyAudienceSegment} is a {@link FirstPartyAudienceSegment} owned by the + * publisher network. It contains a rule. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RuleBasedFirstPartyAudienceSegment extends RuleBasedFirstPartyAudienceSegmentSummary { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class AudienceSegmentService extends DfpSoapClient { + + const SERVICE_NAME = "AudienceSegmentService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201308/AudienceSegmentService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/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", + "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", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/BaseRateService.php b/src/Google/Api/Ads/Dfp/v201308/BaseRateService.php new file mode 100755 index 000000000..1b2234194 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/BaseRateService.php @@ -0,0 +1,3666 @@ +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("BaseRateAction", FALSE)) { +/** + * Represents the action that can be performed on {@link BaseRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseRateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class BaseRateActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class BaseRate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("BaseRatePage", FALSE)) { +/** + * Captures a page of {@link BaseRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseRatePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("DeactivateBaseRates", FALSE)) { +/** + * The action used to deactivate {@link BaseRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeactivateBaseRates extends BaseRateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("ProductBaseRate", FALSE)) { +/** + * A base rate applied to a {@link Product}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProductBaseRate extends BaseRate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const XSI_TYPE = "ProductBaseRate"; + + /** + * @access public + * @var string + */ + 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 v201308 + */ +class ProductTemplateBaseRate extends BaseRate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("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("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("BaseRateActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseRateActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("BaseRateStatus", FALSE)) { +/** + * The status of {@link BaseRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseRateStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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. + * 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("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. + * + * @param baseRates the base rates to be created + * @return the base rates with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreateBaseRates { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class CreateBaseRatesResponse { + + 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("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 + * {@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 v201308 + */ +class GetBaseRatesByStatement { + + 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("GetBaseRatesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GetBaseRatesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class PerformBaseRateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class PerformBaseRateActionResponse { + + 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("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. + * + * @param baseRates the base rates to be updated + * @return the updated base rates + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateBaseRates { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class UpdateBaseRatesResponse { + + 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("ActivateBaseRates", FALSE)) { +/** + * The action used to activate {@link BaseRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ActivateBaseRates extends BaseRateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("BaseRateService", FALSE)) { +/** + * BaseRateService + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseRateService extends DfpSoapClient { + + const SERVICE_NAME = "BaseRateService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201308/BaseRateService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/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=null, $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 status}{@link BaseRate#status}
      {@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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/CompanyService.php b/src/Google/Api/Ads/Dfp/v201308/CompanyService.php new file mode 100755 index 000000000..28413be8d --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/CompanyService.php @@ -0,0 +1,3683 @@ +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("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("Company", FALSE)) { +/** + * A {@code Company} represents an agency, a single advertiser or an entire + * advertising network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Company { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class CompanyError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class CompanyPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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("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("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("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("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("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("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("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 v201308 + */ +class CompanyCreditStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class CompanyType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class CompanyErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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("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("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. + * 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("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("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 v201308 + */ +class CreateCompanies { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class CreateCompaniesResponse { + + 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("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 + * 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 status}{@link BaseRate#status}
      {@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 v201308 + */ +class GetCompaniesByStatement { + + 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("GetCompaniesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GetCompaniesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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. + * + * @param companies the companies to update + * @return the updated companies + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateCompanies { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class UpdateCompaniesResponse { + + 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("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)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateCompanyResponse { + + 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("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("CompanyService", FALSE)) { +/** + * CompanyService + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CompanyService extends DfpSoapClient { + + const SERVICE_NAME = "CompanyService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201308/CompanyService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/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", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/ContactService.php b/src/Google/Api/Ads/Dfp/v201308/ContactService.php new file mode 100755 index 000000000..39681d909 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/ContactService.php @@ -0,0 +1,3328 @@ +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("ContactError", FALSE)) { +/** + * Errors associated with {@code Contact}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ContactError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class ContactPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class BaseContact { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("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("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("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("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("ContactStatus", FALSE)) { +/** + * Describes the contact statuses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ContactStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class ContactErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("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. + * 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("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("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. + * + * @param contacts the contacts to create + * @return the created contacts with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreateContacts { + + 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("CreateContactsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreateContactsResponse { + + 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("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 + * {@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 v201308 + */ +class GetContactsByStatement { + + 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("GetContactsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GetContactsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class UpdateContact { + + 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("UpdateContactResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateContactResponse { + + 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("UpdateContacts", 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)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateContactsResponse { + + 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("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("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 v201308 + */ +class Contact extends BaseContact { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("ContactService", FALSE)) { +/** + * ContactService + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ContactService extends DfpSoapClient { + + const SERVICE_NAME = "ContactService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201308/ContactService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/ContentBundleService.php b/src/Google/Api/Ads/Dfp/v201308/ContentBundleService.php new file mode 100755 index 000000000..40dd65099 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/ContentBundleService.php @@ -0,0 +1,3366 @@ +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("ContentBundleAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link ContentBundle} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ContentBundleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class ContentBundle { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class ContentBundlePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("DeactivateContentBundles", FALSE)) { +/** + * The action used for deactivating {@link ContentBundle} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeactivateContentBundles extends ContentBundleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class ExcludeContentFromContentBundle extends ContentBundleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("IncludeContentInContentBundle", FALSE)) { +/** + * The action used for explicitly including specific content in a {@link ContentBundle} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class IncludeContentInContentBundle extends ContentBundleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("PlacementError", FALSE)) { +/** + * Class defining all validation errors for a placement. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PlacementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("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("ContentBundleStatus", FALSE)) { +/** + * Status for {@code ContentBundle} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ContentBundleStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("PlacementErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PlacementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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. + * 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("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. + * + * @param contentBundles the content bundles to create + * @return the created content bundles with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreateContentBundles { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class CreateContentBundlesResponse { + + 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("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 + * 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 v201308 + */ +class GetContentBundlesByStatement { + + 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("GetContentBundlesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GetContentBundlesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class PerformContentBundleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class PerformContentBundleActionResponse { + + 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("UpdateContentBundle", FALSE)) { +/** + * Updates the specified {@link ContentBundle}. + * + * @param contentBundle the content bundle to update + * @return the updated content bundle + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateContentBundle { + + 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("UpdateContentBundleResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateContentBundleResponse { + + 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("UpdateContentBundles", FALSE)) { +/** + * Updates the specified {@link ContentBundle} objects. + * + * @param contentBundles the content bundles to update + * @return the updated content bundles + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateContentBundles { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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; + } + +}} + +if (!class_exists("ActivateContentBundles", FALSE)) { +/** + * The action used for activating {@link ContentBundle} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ActivateContentBundles extends ContentBundleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("ContentBundleService", FALSE)) { +/** + * ContentBundleService + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ContentBundleService extends DfpSoapClient { + + const SERVICE_NAME = "ContentBundleService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201308/ContentBundleService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/ContentService.php b/src/Google/Api/Ads/Dfp/v201308/ContentService.php new file mode 100755 index 000000000..90ae5f220 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/ContentService.php @@ -0,0 +1,3019 @@ +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("CmsContent", FALSE)) { +/** + * Contains information about {@link Content} from the CMS it was ingested from. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CmsContent { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("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 v201308 + */ +class Content { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class ContentPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class ContentPartnerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("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("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("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("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("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("ContentPartnerErrorReason", FALSE)) { +/** + * Describes reason for {@code ContentPartnerError}s. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ContentPartnerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class ContentStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("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. + * 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("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("ContentStatusDefinedBy", FALSE)) { +/** + * Describes who defined the effective status of the {@code Content}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ContentStatusDefinedBy { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("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 v201308 + */ +class GetContentByStatement { + + 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("GetContentByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GetContentByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class GetContentByStatementAndCustomTargetingValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class GetContentByStatementAndCustomTargetingValueResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("ContentService", FALSE)) { +/** + * ContentService + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ContentService extends DfpSoapClient { + + const SERVICE_NAME = "ContentService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201308/ContentService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/CreativeService.php b/src/Google/Api/Ads/Dfp/v201308/CreativeService.php new file mode 100755 index 000000000..f686cff5e --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/CreativeService.php @@ -0,0 +1,8108 @@ + "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("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("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), {@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("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("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. + * 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://www.google.com/apis/ads/publisher/v201308/CreativeService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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", + "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", + "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", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "Html5Feature" => "Html5Feature", + "ImageDensity" => "ImageDensity", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/CreativeSetService.php b/src/Google/Api/Ads/Dfp/v201308/CreativeSetService.php new file mode 100755 index 000000000..db42b5793 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/CreativeSetService.php @@ -0,0 +1,4256 @@ +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("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("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("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("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. + * 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://www.google.com/apis/ads/publisher/v201308/CreativeSetService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "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", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/CreativeTemplateService.php b/src/Google/Api/Ads/Dfp/v201308/CreativeTemplateService.php new file mode 100755 index 000000000..0dad7c973 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/CreativeTemplateService.php @@ -0,0 +1,3561 @@ +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. + * 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://www.google.com/apis/ads/publisher/v201308/CreativeTemplateService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/CreativeWrapperService.php b/src/Google/Api/Ads/Dfp/v201308/CreativeWrapperService.php new file mode 100755 index 000000000..82e5d7252 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/CreativeWrapperService.php @@ -0,0 +1,3769 @@ +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("CreativeWrapperAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link CreativeWrapper} + * objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeWrapperAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class CreativeWrapper { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("CreativeWrapperPage", FALSE)) { +/** + * Captures a page of {@link CreativeWrapper} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeWrapperPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("DeactivateCreativeWrappers", FALSE)) { +/** + * The action used for deactivating {@link CreativeWrapper} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeactivateCreativeWrappers extends CreativeWrapperAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("CreativeWrapperHtmlSnippet", FALSE)) { +/** + * The {@code CreativeWrapperHtmlSnippet} contains the HTML snippet that is + * delivered as the header or footer. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeWrapperHtmlSnippet { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("LabelError", FALSE)) { +/** + * Errors specific to labels. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("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("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("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("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("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 v201308 + */ +class CreativeWrapperOrdering { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class CreativeWrapperStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class LabelErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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. + * 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("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("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. + * + * 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 v201308 + */ +class CreateCreativeWrappers { + + 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("CreateCreativeWrappersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreateCreativeWrappersResponse { + + 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("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} + * 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 v201308 + */ +class GetCreativeWrappersByStatement { + + 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("GetCreativeWrappersByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GetCreativeWrappersByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class PerformCreativeWrapperAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class PerformCreativeWrapperActionResponse { + + 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("UpdateCreativeWrapper", FALSE)) { +/** + * Updates the specified {@code CreativeWrapper}. + * + * @param creativeWrapper the creative wrapper to update + * @return the updated creative wrapper + * @throws ApiException + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateCreativeWrapper { + + 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("UpdateCreativeWrapperResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateCreativeWrapperResponse { + + 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("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 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)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateCreativeWrappersResponse { + + 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("ActivateCreativeWrappers", FALSE)) { +/** + * The action used for activating {@link CreativeWrapper} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ActivateCreativeWrappers extends CreativeWrapperAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("CreativeWrapperService", FALSE)) { +/** + * CreativeWrapperService + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeWrapperService extends DfpSoapClient { + + const SERVICE_NAME = "CreativeWrapperService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201308/CreativeWrapperService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/CustomFieldService.php b/src/Google/Api/Ads/Dfp/v201308/CustomFieldService.php new file mode 100755 index 000000000..e392029c0 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/CustomFieldService.php @@ -0,0 +1,4275 @@ +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. + * 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://www.google.com/apis/ads/publisher/v201308/CustomFieldService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/CustomTargetingService.php b/src/Google/Api/Ads/Dfp/v201308/CustomTargetingService.php new file mode 100755 index 000000000..4f2ba22a2 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/CustomTargetingService.php @@ -0,0 +1,3938 @@ +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("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("CustomTargetingKeyAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link CustomTargetingKey} + * objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomTargetingKeyAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class CustomTargetingKey { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class CustomTargetingKeyPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class CustomTargetingValueAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class CustomTargetingValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class CustomTargetingValuePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("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 v201308 + */ +class DeleteCustomTargetingKeys extends CustomTargetingKeyAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class DeleteCustomTargetingValues extends CustomTargetingValueAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("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("CustomTargetingKeyType", FALSE)) { +/** + * Specifies the types for {@code CustomTargetingKey} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomTargetingKeyType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class CustomTargetingValueMatchType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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. + * 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("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 v201308 + */ +class CreateCustomTargetingKeys { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class CreateCustomTargetingKeysResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class CreateCustomTargetingValues { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class CreateCustomTargetingValuesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class GetCustomTargetingKeysByStatement { + + 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("GetCustomTargetingKeysByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GetCustomTargetingKeysByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class GetCustomTargetingValuesByStatement { + + 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("GetCustomTargetingValuesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GetCustomTargetingValuesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class PerformCustomTargetingKeyAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class PerformCustomTargetingKeyActionResponse { + + 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("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 v201308 + */ +class PerformCustomTargetingValueAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class PerformCustomTargetingValueActionResponse { + + 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("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 v201308 + */ +class UpdateCustomTargetingKeys { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class UpdateCustomTargetingKeysResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class UpdateCustomTargetingValues { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class UpdateCustomTargetingValuesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("CustomTargetingService", FALSE)) { +/** + * CustomTargetingService + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomTargetingService extends DfpSoapClient { + + const SERVICE_NAME = "CustomTargetingService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201308/CustomTargetingService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/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", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/ForecastService.php b/src/Google/Api/Ads/Dfp/v201308/ForecastService.php new file mode 100755 index 000000000..806345755 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/ForecastService.php @@ -0,0 +1,9702 @@ +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("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 overbook lower or equal + * priority line items. + *
      • Possible units -- How many units can be booked without affecting any + * higher priority line items. Booking more than this number can overbook + * higher priority line items. + *
      • Matched (forecast) units -- How many units satisfy all specified + * criteria. + *
      + * + *

      The term "can overbook" is used, because 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), {@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("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. + * 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://www.google.com/apis/ads/publisher/v201308/ForecastService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/InventoryService.php b/src/Google/Api/Ads/Dfp/v201308/InventoryService.php new file mode 100755 index 000000000..ad097d73c --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/InventoryService.php @@ -0,0 +1,5873 @@ +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("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("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), {@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("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. + * 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("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://www.google.com/apis/ads/publisher/v201308/InventoryService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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", + "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", + "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", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/LabelService.php b/src/Google/Api/Ads/Dfp/v201308/LabelService.php new file mode 100755 index 000000000..8cce21d6a --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/LabelService.php @@ -0,0 +1,3655 @@ +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("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("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("LabelAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($LabelActionType = null) { + $this->LabelActionType = $LabelActionType; + } + +}} + +if (!class_exists("Label", FALSE)) { +/** + * A {@code Label} is additional information that can be added to an entity. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Label { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const XSI_TYPE = "Label"; + + /** + * @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 tnsLabelType[] + */ + public $types; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $types = null) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->isActive = $isActive; + $this->types = $types; + } + +}} + +if (!class_exists("LabelError", FALSE)) { +/** + * Errors specific to labels. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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("LabelPage", FALSE)) { +/** + * Captures a page of {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const XSI_TYPE = "LabelPage"; + + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Label[] + */ + 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("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("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("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("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("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("LabelErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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("LabelType", FALSE)) { +/** + * Represents the types of labels supported. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const XSI_TYPE = "LabelType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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. + * 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("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("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. + * + * @param labels the labels to create + * @return the created labels with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreateLabels { + + 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("CreateLabelsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreateLabelsResponse { + + 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("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 + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@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}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels. + * @return the labels that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GetLabelsByStatement { + + 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("GetLabelsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GetLabelsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LabelPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + +}} + +if (!class_exists("PerformLabelAction", FALSE)) { +/** + * Performs actions on {@link Label} 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 + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PerformLabelAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LabelAction + */ + public $labelAction; + + /** + * @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($labelAction = null, $filterStatement = null) { + $this->labelAction = $labelAction; + $this->filterStatement = $filterStatement; + } + +}} + +if (!class_exists("PerformLabelActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PerformLabelActionResponse { + + 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("UpdateLabel", FALSE)) { +/** + * Updates the specified {@link Label}. + * + * @param label the label to update + * @return the updated label + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateLabel { + + 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("UpdateLabelResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateLabelResponse { + + 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("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)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateLabelsResponse { + + 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("ActivateLabels", FALSE)) { +/** + * The action used for activating {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ActivateLabels extends LabelAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const XSI_TYPE = "ActivateLabels"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($LabelActionType = null) { + parent::__construct(); + $this->LabelActionType = $LabelActionType; + } + +}} + +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("DeactivateLabels", FALSE)) { +/** + * The action used for deactivating {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeactivateLabels extends LabelAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const XSI_TYPE = "DeactivateLabels"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($LabelActionType = null) { + parent::__construct(); + $this->LabelActionType = $LabelActionType; + } + +}} + +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("LabelService", FALSE)) { +/** + * LabelService + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelService extends DfpSoapClient { + + const SERVICE_NAME = "LabelService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201308/LabelService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/LabelService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ActivateLabels" => "ActivateLabels", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "ClientLogin" => "ClientLogin", + "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", + "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", + "LabelError.Reason" => "LabelErrorReason", + "LabelType" => "LabelType", + "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", + "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", + ); + + + /** + * 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=null, $options, $user) { + $options["classmap"] = self::$classmap; + 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. + * + * @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 + */ + 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 + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@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}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels. + * @return the labels that match the given filter + */ + public function getLabelsByStatement($filterStatement) { + $args = new GetLabelsByStatement($filterStatement); + $result = $this->__soapCall("getLabelsByStatement", array($args)); + return $result->rval; + } + /** + * Performs actions on {@link Label} 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 + * @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)); + return $result->rval; + } + /** + * Updates the specified {@link Label} objects. + * + * @param labels the labels to update + * @return the updated labels + */ + public function updateLabels($labels) { + $args = new UpdateLabels($labels); + $result = $this->__soapCall("updateLabels", array($args)); + return $result->rval; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/LineItemCreativeAssociationService.php b/src/Google/Api/Ads/Dfp/v201308/LineItemCreativeAssociationService.php new file mode 100755 index 000000000..6a6283bc2 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/LineItemCreativeAssociationService.php @@ -0,0 +1,5687 @@ +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("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("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), {@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("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("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. + * 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://www.google.com/apis/ads/publisher/v201308/LineItemCreativeAssociationService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateLineItemCreativeAssociations" => "DeactivateLineItemCreativeAssociations", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "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", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/LineItemService.php b/src/Google/Api/Ads/Dfp/v201308/LineItemService.php new file mode 100755 index 000000000..a5d2e04c8 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/LineItemService.php @@ -0,0 +1,10467 @@ +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("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), {@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("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. + * 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 Property Object Property
      {@code costType}{@link LineItem#costType}
      {@code id}{@link LineItem#id}
      {@code lineItemType}{@link LineItem#lineItemType}
      {@code name}{@link LineItem#name}
      {@code orderId}{@link LineItem#orderId}
      {@code status}{@link LineItem#status}
      {@code unitsBought}{@link LineItem#unitsBought}
      {@code deliveryRateType}{@link LineItem#deliveryRateType}
      {@code lastModifiedDateTime}{@link LineItem#lastModifiedDateTime}
      {@code creationDateTime}{@link LineItem#creationDateTime}
      {@code isMissingCreatives}{@link LineItem#isMissingCreatives}
      + * + * @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://www.google.com/apis/ads/publisher/v201308/LineItemService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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", + "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", + "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=null, $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 Property Object Property
      {@code costType}{@link LineItem#costType}
      {@code id}{@link LineItem#id}
      {@code lineItemType}{@link LineItem#lineItemType}
      {@code name}{@link LineItem#name}
      {@code orderId}{@link LineItem#orderId}
      {@code status}{@link LineItem#status}
      {@code unitsBought}{@link LineItem#unitsBought}
      {@code deliveryRateType}{@link LineItem#deliveryRateType}
      {@code lastModifiedDateTime}{@link LineItem#lastModifiedDateTime}
      {@code creationDateTime}{@link LineItem#creationDateTime}
      {@code isMissingCreatives}{@link LineItem#isMissingCreatives}
      + * + * @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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/LineItemTemplateService.php b/src/Google/Api/Ads/Dfp/v201308/LineItemTemplateService.php new file mode 100755 index 000000000..98a6ef900 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/LineItemTemplateService.php @@ -0,0 +1,5118 @@ +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("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("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. + * 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://www.google.com/apis/ads/publisher/v201308/LineItemTemplateService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/NetworkService.php b/src/Google/Api/Ads/Dfp/v201308/NetworkService.php new file mode 100755 index 000000000..050055960 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/NetworkService.php @@ -0,0 +1,2512 @@ +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("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("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("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("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. + * 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("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://www.google.com/apis/ads/publisher/v201308/NetworkService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "TypeError" => "TypeError", + "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", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/OrderService.php b/src/Google/Api/Ads/Dfp/v201308/OrderService.php new file mode 100755 index 000000000..10e154c4d --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/OrderService.php @@ -0,0 +1,5548 @@ +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("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("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("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("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("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("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("ResumeOrders", FALSE)) { +/** + * The action used for resuming {@link Order} objects. All {@link LineItem} + * objects within the order 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("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("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("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("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("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("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("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. + * 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("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("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://www.google.com/apis/ads/publisher/v201308/OrderService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BooleanValue" => "BooleanValue", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeleteOrders" => "DeleteOrders", + "DisapproveOrders" => "DisapproveOrders", + "DisapproveOrdersWithoutReservationChanges" => "DisapproveOrdersWithoutReservationChanges", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "ForecastError" => "ForecastError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargetingError" => "InventoryTargetingError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "Money" => "Money", + "NotNullError" => "NotNullError", + "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", + "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", + "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UnarchiveOrders" => "UnarchiveOrders", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "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", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/PlacementService.php b/src/Google/Api/Ads/Dfp/v201308/PlacementService.php new file mode 100755 index 000000000..4ae8e4abe --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/PlacementService.php @@ -0,0 +1,4034 @@ +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("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("PlacementAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PlacementAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class PlacementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class PlacementPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("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("SiteTargetingInfo", FALSE)) { +/** + * Contains information required for AdWords advertisers to place their ads. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SiteTargetingInfo { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("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("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("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("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("PlacementErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PlacementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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. + * 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("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("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. + * + * @param placements the placements to create + * @return the new placements, with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreatePlacements { + + 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("CreatePlacementsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreatePlacementsResponse { + + 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("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 + * 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 v201308 + */ +class GetPlacementsByStatement { + + 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("GetPlacementsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GetPlacementsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class PerformPlacementAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class PerformPlacementActionResponse { + + 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("UpdatePlacement", FALSE)) { +/** + * Updates the specified {@link Placement}. + * + * @param placement the placement to update + * @return the updated placement + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdatePlacement { + + 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("UpdatePlacementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdatePlacementResponse { + + 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("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)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdatePlacementsResponse { + + 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("ActivatePlacements", FALSE)) { +/** + * The action used for activating {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ActivatePlacements extends PlacementAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("ArchivePlacements", FALSE)) { +/** + * The action used for archiving {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ArchivePlacements extends PlacementAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("DeactivatePlacements", FALSE)) { +/** + * The action used for deactivating {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeactivatePlacements extends PlacementAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("Placement", FALSE)) { +/** + * A {@code Placement} groups related {@code AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Placement extends SiteTargetingInfo { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("PlacementService", FALSE)) { +/** + * PlacementService + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PlacementService extends DfpSoapClient { + + const SERVICE_NAME = "PlacementService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201308/PlacementService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/ProductService.php b/src/Google/Api/Ads/Dfp/v201308/ProductService.php new file mode 100755 index 000000000..fe88bcf31 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/ProductService.php @@ -0,0 +1,6033 @@ +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("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("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("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("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("ProductAction", FALSE)) { +/** + * Represents the actions that can be performed on products. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProductAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class ProductActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class Product { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 string + */ + 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 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("ProductPage", FALSE)) { +/** + * Captures a page of {@link ProductDto} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProductPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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), {@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("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("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("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("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("ProductActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProductActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("ProductStatus", FALSE)) { +/** + * Describes the different statuses for {@link Product}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProductStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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. + * 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("GetProduct", FALSE)) { +/** + * Returns the {@link Product} uniquely identified by the given ID. + * + * @param productId the ID of the product, which must already exist + * @return the {@code Product} uniquely identified by ID + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GetProduct { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const XSI_TYPE = ""; + + /** + * @access public + * @var string + */ + public $productId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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) { + $this->productId = $productId; + } + +}} + +if (!class_exists("GetProductResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GetProductResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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("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}YesNo
      {@code lastModifiedDateTime}{@link Product#lastModifiedDateTime}NoYes
      + * + * @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 v201308 + */ +class GetProductsByStatement { + + 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("GetProductsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GetProductsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class PerformProductAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class PerformProductActionResponse { + + 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("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 v201308 + */ +class UpdateProduct { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class UpdateProductResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateProductsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class ActivateProducts extends ProductAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("ArchiveProducts", FALSE)) { +/** + * The action used to archive products. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ArchiveProducts extends ProductAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("DeactivateProducts", FALSE)) { +/** + * The action used to deactivate products. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeactivateProducts extends ProductAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("ProductService", FALSE)) { +/** + * ProductService + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProductService extends DfpSoapClient { + + const SERVICE_NAME = "ProductService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201308/ProductService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/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", + "getProduct" => "GetProduct", + "getProductResponse" => "GetProductResponse", + "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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * Returns the {@link Product} uniquely identified by the given ID. + * + * @param productId the ID of the product, which must already exist + * @return the {@code Product} uniquely identified by ID + */ + public function getProduct($productId) { + $args = new GetProduct($productId); + $result = $this->__soapCall("getProduct", array($args)); + return $result->rval; + } + /** + * 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}YesNo
      {@code lastModifiedDateTime}{@link Product#lastModifiedDateTime}NoYes
      + * + * @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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/ProductTemplateService.php b/src/Google/Api/Ads/Dfp/v201308/ProductTemplateService.php new file mode 100755 index 000000000..6ad9a151e --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/ProductTemplateService.php @@ -0,0 +1,6826 @@ +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), {@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. + * 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://www.google.com/apis/ads/publisher/v201308/ProductTemplateService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/ProposalLineItemService.php b/src/Google/Api/Ads/Dfp/v201308/ProposalLineItemService.php new file mode 100755 index 000000000..439ac777d --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/ProposalLineItemService.php @@ -0,0 +1,8913 @@ +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 string + */ + 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 triggered {@link RateCardCustomization} premiums. + * @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), {@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. + * 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}
      + * + * @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://www.google.com/apis/ads/publisher/v201308/ProposalLineItemService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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}
      + * + * @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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/ProposalService.php b/src/Google/Api/Ads/Dfp/v201308/ProposalService.php new file mode 100755 index 000000000..b71e0feb8 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/ProposalService.php @@ -0,0 +1,5509 @@ +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. + * 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}
      + * + * @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://www.google.com/apis/ads/publisher/v201308/ProposalService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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}
      + * + * @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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/PublisherQueryLanguageService.php b/src/Google/Api/Ads/Dfp/v201308/PublisherQueryLanguageService.php new file mode 100755 index 000000000..cf80ec084 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/PublisherQueryLanguageService.php @@ -0,0 +1,4063 @@ +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. + * 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://www.google.com/apis/ads/publisher/v201308/PublisherQueryLanguageService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/RateCardCustomizationService.php b/src/Google/Api/Ads/Dfp/v201308/RateCardCustomizationService.php new file mode 100755 index 000000000..48c1c02fd --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/RateCardCustomizationService.php @@ -0,0 +1,3964 @@ +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. + * @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. + * 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}
      {@code status}{@link RateCardCustomization#status}
      + * + * @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://www.google.com/apis/ads/publisher/v201308/RateCardCustomizationService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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}
      {@code status}{@link RateCardCustomization#status}
      + * + * @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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/RateCardService.php b/src/Google/Api/Ads/Dfp/v201308/RateCardService.php new file mode 100755 index 000000000..c15fa9935 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/RateCardService.php @@ -0,0 +1,4096 @@ +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("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("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("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("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("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("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("RateCardAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link RateCard} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RateCardAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class RateCardActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class RateCard { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class RateCardPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("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("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("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("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("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 + */ +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. + * 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("RateCardActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RateCardActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("RateCardStatus", FALSE)) { +/** + * Describes the status of {@link RateCard} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RateCardStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("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 + * 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 v201308 + */ +class CreateRateCards { + + 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("CreateRateCardsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreateRateCardsResponse { + + 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("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 + * {@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 v201308 + */ +class GetRateCardsByStatement { + + 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("GetRateCardsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GetRateCardsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class PerformRateCardAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class PerformRateCardActionResponse { + + 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("UpdateRateCard", FALSE)) { +/** + * Updates the specified {@link RateCard}. + * + * @param rateCard the rate card to be updated + * @return the updated rate card + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateRateCard { + + 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("UpdateRateCardResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateRateCardResponse { + + 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("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)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateRateCardsResponse { + + 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("ActivateRateCards", FALSE)) { +/** + * The action used to activate {@link RateCard} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ActivateRateCards extends RateCardAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("DeactivateRateCards", FALSE)) { +/** + * The action used to deactivate {@link RateCard} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeactivateRateCards extends RateCardAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("RateCardService", FALSE)) { +/** + * RateCardService + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RateCardService extends DfpSoapClient { + + const SERVICE_NAME = "RateCardService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201308/RateCardService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/ReconciliationOrderReportService.php b/src/Google/Api/Ads/Dfp/v201308/ReconciliationOrderReportService.php new file mode 100755 index 000000000..014995d3e --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/ReconciliationOrderReportService.php @@ -0,0 +1,3097 @@ +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("ReconciliationOrderReportAction", FALSE)) { +/** + * Represents the actions that can be performed on the {@link ReconciliationOrderReport} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReconciliationOrderReportAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class ReconciliationOrderReport { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class ReconciliationOrderReportPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("SubmitReconciliationOrderReports", FALSE)) { +/** + * The action used for submit the reconciliation on the {@link ReconciliationOrderReport}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SubmitReconciliationOrderReports extends ReconciliationOrderReportAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("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("RevertReconciliationOrderReports", FALSE)) { +/** + * The action used to revert the reconciliation on the {@link ReconciliationOrderReport}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RevertReconciliationOrderReports extends ReconciliationOrderReportAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("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("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. + * 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("ReconciliationOrderReportStatus", FALSE)) { +/** + * The status of the reconciliation order report. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReconciliationOrderReportStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("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 + * 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 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 v201308 + */ +class GetReconciliationOrderReportsByStatement { + + 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("GetReconciliationOrderReportsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GetReconciliationOrderReportsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 reconciliationReportId}{@link ReconciliationOrderReport#reconciliationReportId}
      + * + * The {@code reconciliationReportId} field and {@code orderId} are required and can only be + * combined with an {@code AND}. Furthermore, the results may only belong to one + * {@link ReconciliationReport}. + * 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 v201308 + */ +class PerformReconciliationOrderReportAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class PerformReconciliationOrderReportActionResponse { + + 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("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("ReconciliationOrderReportService", FALSE)) { +/** + * ReconciliationOrderReportService + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReconciliationOrderReportService extends DfpSoapClient { + + const SERVICE_NAME = "ReconciliationOrderReportService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201308/ReconciliationOrderReportService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/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=null, $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 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 reconciliationReportId}{@link ReconciliationOrderReport#reconciliationReportId}
      + * + * The {@code reconciliationReportId} field and {@code orderId} are required and can only be + * combined with an {@code AND}. Furthermore, the results may only belong to one + * {@link ReconciliationReport}. + * 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/ReconciliationReportRowService.php b/src/Google/Api/Ads/Dfp/v201308/ReconciliationReportRowService.php new file mode 100755 index 000000000..ed94db191 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/ReconciliationReportRowService.php @@ -0,0 +1,3170 @@ +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. + * 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://www.google.com/apis/ads/publisher/v201308/ReconciliationReportRowService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/ReconciliationReportService.php b/src/Google/Api/Ads/Dfp/v201308/ReconciliationReportService.php new file mode 100755 index 000000000..167a9c8dc --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/ReconciliationReportService.php @@ -0,0 +1,2987 @@ +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("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("ReconciliationReport", FALSE)) { +/** + * A {@code ReconciliationReport} represents a report that can be reconciled. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReconciliationReport { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class ReconciliationReportPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("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. + * 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("ReconciliationReportStatus", FALSE)) { +/** + * A {@code ReconciliationReportStatus} represents the status of a {@link ReconciliationReport}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReconciliationReportStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("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 + * 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 v201308 + */ +class GetReconciliationReportsByStatement { + + 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("GetReconciliationReportsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GetReconciliationReportsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class UpdateReconciliationReport { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class UpdateReconciliationReportResponse { + + 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("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)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateReconciliationReportsResponse { + + 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("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("ReconciliationReportService", FALSE)) { +/** + * ReconciliationReportService + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReconciliationReportService extends DfpSoapClient { + + const SERVICE_NAME = "ReconciliationReportService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201308/ReconciliationReportService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/ReportService.php b/src/Google/Api/Ads/Dfp/v201308/ReportService.php new file mode 100755 index 000000000..47471c055 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/ReportService.php @@ -0,0 +1,3186 @@ +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("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("ReportDownloadOptions", FALSE)) { +/** + * Represents the options for an API report download request. + * See {@link ReportService#getReportDownloadUrlWithOptions}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReportDownloadOptions { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class ReportError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class ReportJob { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class ReportQuery { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("ReportQueryAdUnitView", FALSE)) { +/** + * A view for an ad unit report. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReportQueryAdUnitView { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("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}. + * 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 + */ +class Column { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("DateRangeType", FALSE)) { +/** + * Represents a period of time. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateRangeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class Dimension { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class DimensionAttribute { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class DimensionFilter { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class ExportFormat { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("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. + * 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("ReportErrorReason", FALSE)) { +/** + * Default {@code ReportError} when the reason is not among any already + * defined. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReportErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class ReportJobStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("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 v201308 + */ +class GetReportDownloadURL { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class GetReportDownloadURLResponse { + + 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("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 v201308 + */ +class GetReportDownloadUrlWithOptions { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class GetReportDownloadUrlWithOptionsResponse { + + 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("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 v201308 + */ +class GetReportJob { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class GetReportJobResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class RunReportJob { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class RunReportJobResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("ReportService", FALSE)) { +/** + * ReportService + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReportService extends DfpSoapClient { + + const SERVICE_NAME = "ReportService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201308/ReportService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/SuggestedAdUnitService.php b/src/Google/Api/Ads/Dfp/v201308/SuggestedAdUnitService.php new file mode 100755 index 000000000..33b06282f --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/SuggestedAdUnitService.php @@ -0,0 +1,3260 @@ +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), {@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. + * 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://www.google.com/apis/ads/publisher/v201308/SuggestedAdUnitService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/TeamService.php b/src/Google/Api/Ads/Dfp/v201308/TeamService.php new file mode 100755 index 000000000..de685b3dc --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/TeamService.php @@ -0,0 +1,3144 @@ +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("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("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 v201308 + */ +class Team { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("TeamPage", FALSE)) { +/** + * Captures a page of {@link Team} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TeamPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("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. + * 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("TeamAccessType", FALSE)) { +/** + * Represents the types of team access supported for orders. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TeamAccessType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("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. + * + * 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 v201308 + */ +class CreateTeams { + + 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("CreateTeamsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreateTeamsResponse { + + 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("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 + * 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 v201308 + */ +class GetTeamsByStatement { + + 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("GetTeamsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GetTeamsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class UpdateTeam { + + 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("UpdateTeamResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateTeamResponse { + + 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("UpdateTeams", 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)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateTeamsResponse { + + 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("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("TeamService", FALSE)) { +/** + * TeamService + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TeamService extends DfpSoapClient { + + const SERVICE_NAME = "TeamService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201308/TeamService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/UserService.php b/src/Google/Api/Ads/Dfp/v201308/UserService.php new file mode 100755 index 000000000..3514fa3db --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/UserService.php @@ -0,0 +1,4073 @@ +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("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("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("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("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("Role", FALSE)) { +/** + * Each {@code Role} provides a user with permissions to perform specific + * operations in the system. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Role { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("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("UserAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link User} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UserAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class UserPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class UserRecord { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("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("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("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. + * 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("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("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)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreateUserResponse { + + 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("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 v201308 + */ +class CreateUsers { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class CreateUsersResponse { + + 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("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 v201308 + */ +class GetAllRoles { + + 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("GetAllRolesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GetAllRolesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class GetCurrentUser { + + 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("GetCurrentUserResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +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 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 v201308 + */ +class GetUsersByStatement { + + 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("GetUsersByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GetUsersByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class PerformUserAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class PerformUserActionResponse { + + 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("UpdateUser", FALSE)) { +/** + * Updates the specified {@link User}. + * + * @param user the user to update + * @return the updated user + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateUser { + + 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("UpdateUserResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateUserResponse { + + 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("UpdateUsers", FALSE)) { +/** + * Updates the specified {@link User} objects. + * + * @param users the users to update + * @return the updated users + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateUsers { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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; + } + +}} + +if (!class_exists("ActivateUsers", FALSE)) { +/** + * The action used for activating {@link User} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ActivateUsers extends UserAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("DeactivateUsers", FALSE)) { +/** + * The action used for deactivating {@link User} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeactivateUsers extends UserAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("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 v201308 + */ +class User extends UserRecord { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class UserService extends DfpSoapClient { + + const SERVICE_NAME = "UserService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201308/UserService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/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", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/UserTeamAssociationService.php b/src/Google/Api/Ads/Dfp/v201308/UserTeamAssociationService.php new file mode 100755 index 000000000..c34c37acf --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/UserTeamAssociationService.php @@ -0,0 +1,3214 @@ +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("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("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("UserRecordTeamAssociation", FALSE)) { +/** + * {@code UserRecordTeamAssociation} represents the association between a + * {@link UserRecord} and a {@link Team}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UserRecordTeamAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class UserTeamAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class UserTeamAssociation extends UserRecordTeamAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class UserTeamAssociationPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("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. + * 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("TeamAccessType", FALSE)) { +/** + * Represents the types of team access supported for orders. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TeamAccessType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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. + * + * @param userTeamAssociations the user team associations to create + * @return the created user team associations with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreateUserTeamAssociations { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class CreateUserTeamAssociationsResponse { + + 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("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} + * 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 v201308 + */ +class GetUserTeamAssociationsByStatement { + + 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("GetUserTeamAssociationsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GetUserTeamAssociationsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class PerformUserTeamAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 v201308 + */ +class PerformUserTeamAssociationActionResponse { + + 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("UpdateUserTeamAssociation", FALSE)) { +/** + * Updates the specified {@link UserTeamAssociation}. + * + * @param userTeamAssociation the user team association to update + * @return the updated user team association + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateUserTeamAssociation { + + 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("UpdateUserTeamAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateUserTeamAssociationResponse { + + 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("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 v201308 + */ +class UpdateUserTeamAssociations { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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; + } + +}} + +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("DeleteUserTeamAssociations", FALSE)) { +/** + * Action to delete the association between a {@link User} and a {@link Team}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeleteUserTeamAssociations extends UserTeamAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + 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 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("UserTeamAssociationService", FALSE)) { +/** + * UserTeamAssociationService + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UserTeamAssociationService extends DfpSoapClient { + + const SERVICE_NAME = "UserTeamAssociationService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201308/UserTeamAssociationService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/WorkflowActionService.php b/src/Google/Api/Ads/Dfp/v201308/WorkflowActionService.php new file mode 100755 index 000000000..91c37bc0a --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/WorkflowActionService.php @@ -0,0 +1,2402 @@ +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 integer[] + */ + public $userIds; + + /** + * @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, $userIds = null, $type = null) { + $this->id = $id; + $this->name = $name; + $this->userIds = $userIds; + $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("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. + * 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("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://www.google.com/apis/ads/publisher/v201308/WorkflowActionService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/ActivityGroupService.php b/src/Google/Api/Ads/Dfp/v201311/ActivityGroupService.php new file mode 100755 index 000000000..445f445ff --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/ActivityGroupService.php @@ -0,0 +1,3204 @@ +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. + * 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://www.google.com/apis/ads/publisher/v201311/ActivityGroupService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/ActivityService.php b/src/Google/Api/Ads/Dfp/v201311/ActivityService.php new file mode 100755 index 000000000..0a1be0a96 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/ActivityService.php @@ -0,0 +1,3242 @@ +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 v201311 + */ +class Activity { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class ActivityPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("ActivityStatus", FALSE)) { +/** + * The activity status. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ActivityStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class ActivityType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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. + * 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("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 v201311 + */ +class CreateActivities { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class CreateActivitiesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class CreateActivity { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class CreateActivityResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class GetActivitiesByStatement { + + 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("GetActivitiesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GetActivitiesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class GetActivity { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class GetActivityResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class UpdateActivities { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class UpdateActivitiesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class UpdateActivity { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class UpdateActivityResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("ActivityService", FALSE)) { +/** + * ActivityService + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ActivityService extends DfpSoapClient { + + const SERVICE_NAME = "ActivityService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201311/ActivityService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/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", + "SetValue" => "SetValue", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/AdRuleService.php b/src/Google/Api/Ads/Dfp/v201311/AdRuleService.php new file mode 100755 index 000000000..f586e5684 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/AdRuleService.php @@ -0,0 +1,7269 @@ + "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 v201311 + */ +class AdRule { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class AdRulePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class BaseAdRuleSlot { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class StandardPoddingAdRuleSlot extends BaseAdRuleSlot { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class AdUnitTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("TechnologyTargeting", FALSE)) { +/** + * Provides {@link LineItem} objects the ability to target or exclude + * technologies. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TechnologyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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("ContentMetadataKeyHierarchyTargeting", FALSE)) { +/** + * Represents one or more {@link CustomTargetingValue custom targeting values} from different + * {@link CustomTargetingKey custom targeting keys} ANDed together. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentMetadataKeyHierarchyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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("ContentMetadataTargetingError", FALSE)) { +/** + * Lists all errors related to {@link ContentMetadataTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentMetadataTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = "ContentMetadataTargetingError"; + + /** + * @access public + * @var tnsContentMetadataTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $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 v201311 + */ +class ContentTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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; + } + +}} + +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("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("DayPart", FALSE)) { +/** + * {@code DayPart} represents a time-period within a day of the week which is + * targeted by a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DayPart { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DayPartTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DeactivateAdRules extends AdRuleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DeleteAdRules extends AdRuleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DeviceCapabilityTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DeviceCategoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DeviceManufacturerTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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("MobileCarrierTargeting", FALSE)) { +/** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MobileCarrierTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class MobileDeviceSubmodelTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class MobileDeviceTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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"; + + /** + * @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 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("PoddingError", FALSE)) { +/** + * Errors related to podding fields in ad rule slots. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PoddingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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("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("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("Targeting", FALSE)) { +/** + * Contains targeting criteria for {@link LineItem} objects. See + * {@link LineItem#targeting}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +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; + + /** + * @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 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("TimeOfDay", FALSE)) { +/** + * Represents a specific time in a day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TimeOfDay { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("UnknownAdRuleSlot", FALSE)) { +/** + * The {@link BaseAdRuleSlot} subtype returned if the actual type is not exposed by the + * requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UnknownAdRuleSlot extends BaseAdRuleSlot { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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 v201311 + */ +class VideoPosition { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class VideoPositionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class VideoPositionWithinPod { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +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; + + /** + * @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 v201311 + */ +class AdRuleDateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class AdRuleFrequencyCapErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class AdRulePriorityErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class AdRuleSlotBehavior { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class AdRuleSlotBumper { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class AdRuleSlotErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class AdRuleStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("ContentMetadataTargetingErrorReason", FALSE)) { +/** + * The reasons for the metadata targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentMetadataTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = "ContentMetadataTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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("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("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("DayOfWeek", FALSE)) { +/** + * Days of the week. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DayOfWeek { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DeliveryTimeZone { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("FrequencyCapBehavior", FALSE)) { +/** + * Types of behavior for frequency caps within ad rules. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FrequencyCapBehavior { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("MidrollFrequencyType", FALSE)) { +/** + * Frequency types for mid-roll {@link BaseAdRuleSlot ad rule slots}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MidrollFrequencyType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class MinuteOfHour { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("PoddingErrorReason", FALSE)) { +/** + * Describes reason for {@code PoddingError}s. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PoddingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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. + * 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("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("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("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 v201311 + */ +class VideoBumperType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class VideoPositionType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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. + * + * @param adRules the ad rules to create + * @return the created ad rules with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreateAdRules { + + 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("CreateAdRulesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreateAdRulesResponse { + + 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("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 + * {@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 v201311 + */ +class GetAdRulesByStatement { + + 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("GetAdRulesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GetAdRulesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class PerformAdRuleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class PerformAdRuleActionResponse { + + 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("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 v201311 + */ +class UpdateAdRule { + + 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("UpdateAdRuleResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateAdRuleResponse { + + 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("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)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateAdRulesResponse { + + 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("ActivateAdRules", FALSE)) { +/** + * The action used for resuming {@link AdRule} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ActivateAdRules extends AdRuleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class AdRuleDateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class AdRuleFrequencyCapError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class NoPoddingAdRuleSlot extends BaseAdRuleSlot { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class OptimizedPoddingAdRuleSlot extends BaseAdRuleSlot { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class AdRulePriorityError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class AdRuleSlotError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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("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("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("AdRuleService", FALSE)) { +/** + * AdRuleService + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdRuleService extends DfpSoapClient { + + const SERVICE_NAME = "AdRuleService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201311/AdRuleService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/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", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", + "ContentMetadataTargetingError" => "ContentMetadataTargetingError", + "ContentTargeting" => "ContentTargeting", + "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", + "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", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "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", + "ContentMetadataTargetingError.Reason" => "ContentMetadataTargetingErrorReason", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/AudienceSegmentService.php b/src/Google/Api/Ads/Dfp/v201311/AudienceSegmentService.php new file mode 100755 index 000000000..1f2f2c0e6 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/AudienceSegmentService.php @@ -0,0 +1,4177 @@ +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("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("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. + * 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://www.google.com/apis/ads/publisher/v201311/AudienceSegmentService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/BaseRateService.php b/src/Google/Api/Ads/Dfp/v201311/BaseRateService.php new file mode 100755 index 000000000..e852ee1ed --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/BaseRateService.php @@ -0,0 +1,3708 @@ +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("BaseRateAction", FALSE)) { +/** + * Represents the action that can be performed on {@link BaseRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseRateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class BaseRateActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class BaseRate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("BaseRatePage", FALSE)) { +/** + * Captures a page of {@link BaseRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseRatePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $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("ProductBaseRate", FALSE)) { +/** + * A base rate applied to a {@link Product}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProductBaseRate extends BaseRate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = "ProductBaseRate"; + + /** + * @access public + * @var string + */ + 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 v201311 + */ +class ProductTemplateBaseRate extends BaseRate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("BaseRateActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseRateActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("BaseRateStatus", FALSE)) { +/** + * The status of {@link BaseRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseRateStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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. + * 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("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 v201311 + */ +class CreateBaseRate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class CreateBaseRateResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class CreateBaseRates { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class CreateBaseRatesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class GetBaseRate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class GetBaseRateResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class GetBaseRatesByStatement { + + 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("GetBaseRatesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GetBaseRatesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class PerformBaseRateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class PerformBaseRateActionResponse { + + 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("UpdateBaseRate", FALSE)) { +/** + * Updates the specified {@link BaseRate} object. + * + * @param baseRate the base rate to be updated + * @return the updated base rate + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateBaseRate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class UpdateBaseRateResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class UpdateBaseRates { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class UpdateBaseRatesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class ActivateBaseRates extends BaseRateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("BaseRateService", FALSE)) { +/** + * BaseRateService + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseRateService extends DfpSoapClient { + + const SERVICE_NAME = "BaseRateService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201311/BaseRateService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/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", + "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", + "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=null, $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 status}{@link BaseRate#status}
      {@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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/CompanyService.php b/src/Google/Api/Ads/Dfp/v201311/CompanyService.php new file mode 100755 index 000000000..daa15e418 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/CompanyService.php @@ -0,0 +1,3725 @@ +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("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("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. + * 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 PropertyObject Property
      {@code rateCardId}{@link BaseRate#rateCardId}
      {@code id}{@link BaseRate#id}
      {@code status}{@link BaseRate#status}
      {@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 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://www.google.com/apis/ads/publisher/v201311/CompanyService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/ContactService.php b/src/Google/Api/Ads/Dfp/v201311/ContactService.php new file mode 100755 index 000000000..3f9b5b3ef --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/ContactService.php @@ -0,0 +1,3370 @@ +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. + * 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://www.google.com/apis/ads/publisher/v201311/ContactService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/ContentBundleService.php b/src/Google/Api/Ads/Dfp/v201311/ContentBundleService.php new file mode 100755 index 000000000..40dc5e661 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/ContentBundleService.php @@ -0,0 +1,3408 @@ +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. + * 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://www.google.com/apis/ads/publisher/v201311/ContentBundleService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/ContentMetadataKeyHierarchyService.php b/src/Google/Api/Ads/Dfp/v201311/ContentMetadataKeyHierarchyService.php new file mode 100755 index 000000000..926ae194b --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/ContentMetadataKeyHierarchyService.php @@ -0,0 +1,2800 @@ +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("ContentMetadataKeyHierarchy", FALSE)) { +/** + * A {@code ContentMetadataKeyHierarchy} defines a hierarchical relationship between content + * metadata keys. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentMetadataKeyHierarchy { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = "ContentMetadataKeyHierarchy"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var ContentMetadataKeyHierarchyLevel[] + */ + public $hierarchyLevels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $hierarchyLevels = null) { + $this->id = $id; + $this->name = $name; + $this->hierarchyLevels = $hierarchyLevels; + } + +}} + +if (!class_exists("ContentMetadataKeyHierarchyError", FALSE)) { +/** + * Lists all errors associated with content hierarchies. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentMetadataKeyHierarchyError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = "ContentMetadataKeyHierarchyError"; + + /** + * @access public + * @var tnsContentMetadataKeyHierarchyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + +}} + +if (!class_exists("ContentMetadataKeyHierarchyLevel", FALSE)) { +/** + * A {@code ContentMetadataKeyHierarchyLevel} represents one level in a + * {@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 + */ +class ContentMetadataKeyHierarchyLevel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = "ContentMetadataKeyHierarchyLevel"; + + /** + * @access public + * @var integer + */ + public $customTargetingKeyId; + + /** + * @access public + * @var integer + */ + public $hierarchyLevel; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $hierarchyLevel = null) { + $this->customTargetingKeyId = $customTargetingKeyId; + $this->hierarchyLevel = $hierarchyLevel; + } + +}} + +if (!class_exists("ContentMetadataKeyHierarchyPage", FALSE)) { +/** + * Captures a page of {@link ContentMetadataKeyHierarchy} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentMetadataKeyHierarchyPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = "ContentMetadataKeyHierarchyPage"; + + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var ContentMetadataKeyHierarchy[] + */ + 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("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("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("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("ContentMetadataKeyHierarchyErrorReason", FALSE)) { +/** + * The reasons for the {@link ContentMetadataKeyHierarchyError}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentMetadataKeyHierarchyErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = "ContentMetadataKeyHierarchyError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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. + * 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("GetContentMetadataKeyHierarchiesByStatement", FALSE)) { +/** + * Gets a {@link ContentMetadataKeyHierarchyPage} of {@link ContentMetadataKeyHierarchy} + * objects that satisfy the given {@link Statement#query}. The following fields are supported + * for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ContentMetadataKeyHierarchy#id}
      {@code name}{@link ContentMetadataKeyHierarchy#name}
      {@code status}{@link ContentMetadataKeyHierarchy#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter a set of + * content metadata key hierarchies + * @return the content metadata key hierarchies 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 v201311 + */ +class GetContentMetadataKeyHierarchiesByStatement { + + 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("GetContentMetadataKeyHierarchiesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GetContentMetadataKeyHierarchiesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ContentMetadataKeyHierarchyPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the 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("ContentMetadataKeyHierarchyService", FALSE)) { +/** + * ContentMetadataKeyHierarchyService + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentMetadataKeyHierarchyService extends DfpSoapClient { + + const SERVICE_NAME = "ContentMetadataKeyHierarchyService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201311/ContentMetadataKeyHierarchyService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/ContentMetadataKeyHierarchyService"; + /** + * 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", + "ContentMetadataKeyHierarchy" => "ContentMetadataKeyHierarchy", + "ContentMetadataKeyHierarchyError" => "ContentMetadataKeyHierarchyError", + "ContentMetadataKeyHierarchyLevel" => "ContentMetadataKeyHierarchyLevel", + "ContentMetadataKeyHierarchyPage" => "ContentMetadataKeyHierarchyPage", + "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", + "RequiredCollectionError" => "RequiredCollectionError", + "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", + "ContentMetadataKeyHierarchyError.Reason" => "ContentMetadataKeyHierarchyErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "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", + "getContentMetadataKeyHierarchiesByStatement" => "GetContentMetadataKeyHierarchiesByStatement", + "getContentMetadataKeyHierarchiesByStatementResponse" => "GetContentMetadataKeyHierarchiesByStatementResponse", + ); + + + /** + * 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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * Gets a {@link ContentMetadataKeyHierarchyPage} of {@link ContentMetadataKeyHierarchy} + * objects that satisfy the given {@link Statement#query}. The following fields are supported + * for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ContentMetadataKeyHierarchy#id}
      {@code name}{@link ContentMetadataKeyHierarchy#name}
      {@code status}{@link ContentMetadataKeyHierarchy#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter a set of + * content metadata key hierarchies + * @return the content metadata key hierarchies 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 getContentMetadataKeyHierarchiesByStatement($filterStatement) { + $args = new GetContentMetadataKeyHierarchiesByStatement($filterStatement); + $result = $this->__soapCall("getContentMetadataKeyHierarchiesByStatement", array($args)); + return $result->rval; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/ContentService.php b/src/Google/Api/Ads/Dfp/v201311/ContentService.php new file mode 100755 index 000000000..a510df5ea --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/ContentService.php @@ -0,0 +1,3068 @@ +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. + * 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://www.google.com/apis/ads/publisher/v201311/ContentService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/CreativeService.php b/src/Google/Api/Ads/Dfp/v201311/CreativeService.php new file mode 100755 index 000000000..6311ac75f --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/CreativeService.php @@ -0,0 +1,8198 @@ + "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 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("AssetCreativeTemplateVariableValue", FALSE)) { +/** + * Stores values of {@link CreativeTemplateVariable} of {@link VariableType#ASSET}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AssetCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class Asset { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("ConversionEvent_TrackingUrlsMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type ConversionEvent + * and value of type TrackingUrls. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ConversionEvent_TrackingUrlsMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class CreativeAsset { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class CustomCreativeAsset { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("Creative", FALSE)) { +/** + * A {@code Creative} represents the media for the ad being served. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("CreativePage", FALSE)) { +/** + * Captures a page of {@link Creative} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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("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("HasDestinationUrlCreative", FALSE)) { +/** + * A {@code Creative} that has a destination url + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class HasDestinationUrlCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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 v201311 + */ +class InternalRedirectCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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("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("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 v201311 + */ +class LegacyDfpCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("LongCreativeTemplateVariableValue", FALSE)) { +/** + * Stores values of {@link CreativeTemplateVariable} of {@link VariableType#LONG}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LongCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("RedirectAsset", FALSE)) { +/** + * An externally hosted asset. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RedirectAsset extends Asset { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("RichMediaStudioChildAssetProperty", FALSE)) { +/** + * Represents a child asset in {@code RichMediaStudioCreative}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RichMediaStudioChildAssetProperty { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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), {@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("StringCreativeTemplateVariableValue", FALSE)) { +/** + * Stores values of {@link CreativeTemplateVariable} of + * {@link VariableType#STRING} and {@link VariableType#LIST}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("SwiffyFallbackAsset", FALSE)) { +/** + * A fallback swiffy asset used for flash creatives. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SwiffyFallbackAsset { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class TemplateCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("ThirdPartyCreative", FALSE)) { +/** + * A {@code Creative} that is served by a 3rd-party vendor. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ThirdPartyCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class TrackingUrls { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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 v201311 + */ +class UnsupportedCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class UrlCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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 v201311 + */ +class VastRedirectCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class VideoRedirectAsset extends RedirectAsset { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class VpaidLinearCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class VpaidLinearRedirectCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class ApiFramework { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("ConversionEvent", FALSE)) { +/** + * All possible tracking event types. Not all events are supported by every + * kind of creative. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ConversionEvent { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("Html5Feature", FALSE)) { +/** + * An HTML5 features required by HTML5 assets. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Html5Feature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class ImageDensity { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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("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. + * 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("RichMediaStudioChildAssetPropertyType", FALSE)) { +/** + * Type of {@code RichMediaStudioChildAssetProperty} + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RichMediaStudioChildAssetPropertyType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class RichMediaStudioCreativeArtworkType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class RichMediaStudioCreativeBillingAttribute { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("RichMediaStudioCreativeFormat", FALSE)) { +/** + * Different creative format supported by Rich Media Studio creative. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RichMediaStudioCreativeFormat { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("VastRedirectType", FALSE)) { +/** + * The types of VAST ads that a {@link VastRedirectCreative} can point to. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class VastRedirectType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class CreateCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class CreateCreativeResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class CreateCreatives { + + 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("CreateCreativesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreateCreativesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class GetCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class GetCreativeResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class GetCreativesByStatement { + + 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("GetCreativesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GetCreativesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class UpdateCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class UpdateCreativeResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateCreativesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class BaseDynamicAllocationCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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("AdMobBackfillCreative", FALSE)) { +/** + * An AdMob backfill creative. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdMobBackfillCreative extends BaseDynamicAllocationCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = "AdMobBackfillCreative"; + + /** + * @access public + * @var string + */ + public $additionalParameters; + + /** + * @access public + * @var string + */ + public $publisherId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($additionalParameters = null, $publisherId = null) { + parent::__construct(); + $this->additionalParameters = $additionalParameters; + $this->publisherId = $publisherId; + } + +}} + +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("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 v201311 + */ +class AspectRatioImageCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class BaseFlashCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class BaseFlashRedirectCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class BaseImageCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class BaseImageRedirectCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class BaseRichMediaStudioCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class BaseVideoCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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 v201311 + */ +class ClickTrackingCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class CustomCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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 v201311 + */ +class LegacyDfpMobileCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class FlashCreative extends BaseFlashCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class FlashOverlayCreative extends BaseFlashCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class FlashRedirectCreative extends BaseFlashRedirectCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class FlashRedirectOverlayCreative extends BaseFlashRedirectCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class HasHtmlSnippetDynamicAllocationCreative extends BaseDynamicAllocationCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class ImageCreative extends BaseImageCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class ImageOverlayCreative extends BaseImageCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class ImageRedirectCreative extends BaseImageRedirectCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class ImageRedirectOverlayCreative extends BaseImageRedirectCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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 v201311 + */ +class RichMediaStudioCreative extends BaseRichMediaStudioCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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("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("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 v201311 + */ +class VideoCreative extends BaseVideoCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class VideoRedirectCreative extends BaseVideoCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class AdExchangeCreative extends HasHtmlSnippetDynamicAllocationCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class AdSenseCreative extends HasHtmlSnippetDynamicAllocationCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class CreativeService extends DfpSoapClient { + + const SERVICE_NAME = "CreativeService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201311/CreativeService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/CreativeService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "BaseDynamicAllocationCreative" => "BaseDynamicAllocationCreative", + "BaseCreativeTemplateVariableValue" => "BaseCreativeTemplateVariableValue", + "AdExchangeCreative" => "AdExchangeCreative", + "AdMobBackfillCreative" => "AdMobBackfillCreative", + "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", + "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", + "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", + "SetValue" => "SetValue", + "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", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "Html5Feature" => "Html5Feature", + "ImageDensity" => "ImageDensity", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/CreativeSetService.php b/src/Google/Api/Ads/Dfp/v201311/CreativeSetService.php new file mode 100755 index 000000000..b4fc23068 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/CreativeSetService.php @@ -0,0 +1,4298 @@ +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("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("CreativeSet", FALSE)) { +/** + * A creative set is comprised of a master creative and its companion creatives. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeSet { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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"; + + /** + * @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 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("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("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("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("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("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("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("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("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("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("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("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. + * 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("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("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 v201311 + */ +class CreateCreativeSet { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class CreateCreativeSetResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class GetCreativeSet { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class GetCreativeSetResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class GetCreativeSetsByStatement { + + 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("GetCreativeSetsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GetCreativeSetsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class UpdateCreativeSet { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class UpdateCreativeSetResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("CreativeSetService", FALSE)) { +/** + * CreativeSetService + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeSetService extends DfpSoapClient { + + const SERVICE_NAME = "CreativeSetService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201311/CreativeSetService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/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", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "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", + "SetValue" => "SetValue", + "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", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/CreativeTemplateService.php b/src/Google/Api/Ads/Dfp/v201311/CreativeTemplateService.php new file mode 100755 index 000000000..e339edf51 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/CreativeTemplateService.php @@ -0,0 +1,3610 @@ +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. + * 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://www.google.com/apis/ads/publisher/v201311/CreativeTemplateService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/CreativeWrapperService.php b/src/Google/Api/Ads/Dfp/v201311/CreativeWrapperService.php new file mode 100755 index 000000000..d151b8719 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/CreativeWrapperService.php @@ -0,0 +1,3811 @@ +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. + * 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://www.google.com/apis/ads/publisher/v201311/CreativeWrapperService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/CustomFieldService.php b/src/Google/Api/Ads/Dfp/v201311/CustomFieldService.php new file mode 100755 index 000000000..c765dc468 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/CustomFieldService.php @@ -0,0 +1,4317 @@ +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. + * 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://www.google.com/apis/ads/publisher/v201311/CustomFieldService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/CustomTargetingService.php b/src/Google/Api/Ads/Dfp/v201311/CustomTargetingService.php new file mode 100755 index 000000000..db3ba1086 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/CustomTargetingService.php @@ -0,0 +1,3980 @@ +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("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("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. + * 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://www.google.com/apis/ads/publisher/v201311/CustomTargetingService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/ExchangeRateService.php b/src/Google/Api/Ads/Dfp/v201311/ExchangeRateService.php new file mode 100755 index 000000000..6764d1b99 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/ExchangeRateService.php @@ -0,0 +1,3212 @@ +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("ExchangeRateAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link ExchangeRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ExchangeRateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($ExchangeRateActionType = null) { + $this->ExchangeRateActionType = $ExchangeRateActionType; + } + +}} + +if (!class_exists("ExchangeRate", FALSE)) { +/** + * An {@code ExchangeRate} represents a currency which is one of the + * {@link Network#secondaryCurrencyCodes}, and the latest exchange rate between this currency and + * {@link Network#currencyCode}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ExchangeRate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = "ExchangeRate"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var tnsExchangeRateRefreshRate + */ + public $refreshRate; + + /** + * @access public + * @var tnsExchangeRateDirection + */ + public $direction; + + /** + * @access public + * @var integer + */ + public $exchangeRate; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $currencyCode = null, $refreshRate = null, $direction = null, $exchangeRate = null) { + $this->id = $id; + $this->currencyCode = $currencyCode; + $this->refreshRate = $refreshRate; + $this->direction = $direction; + $this->exchangeRate = $exchangeRate; + } + +}} + +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("ExchangeRatePage", FALSE)) { +/** + * Captures a page of {@link ExchangeRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ExchangeRatePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = "ExchangeRatePage"; + + /** + * @access public + * @var ExchangeRate[] + */ + 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("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("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("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("ExchangeRateDirection", FALSE)) { +/** + * Determines which direction (from which currency to which currency) the exchange rate is in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ExchangeRateDirection { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = "ExchangeRateDirection"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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("ExchangeRateRefreshRate", FALSE)) { +/** + * Determines at which rate the exchange rate is refreshed. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ExchangeRateRefreshRate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = "ExchangeRateRefreshRate"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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. + * 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("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("CreateExchangeRates", FALSE)) { +/** + * Creates new {@link ExchangeRate} objects. + * + * For each exchange rate, the following fields are required: + *
        + *
      • {@link ExchangeRate#currencyCode}
      • + *
      • {@link ExchangeRate#exchangeRate} when {@link ExchangeRate#refreshRate} is + * {@link ExchangeRateRefreshRate#FIXED}
      • + *
      + * + * @param exchangeRates the exchange rates to create + * @return the created exchange rates with their exchange rate values filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreateExchangeRates { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ExchangeRate[] + */ + public $exchangeRates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($exchangeRates = null) { + $this->exchangeRates = $exchangeRates; + } + +}} + +if (!class_exists("CreateExchangeRatesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreateExchangeRatesResponse { + + 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("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 + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ExchangeRate#id}
      {@code currencyCode}{@link ExchangeRate#currencyCode}
      {@code refreshRate}{@link ExchangeRate#refreshRate}
      {@code direction}{@link ExchangeRate#direction}
      {@code exchangeRate}{@link ExchangeRate#exchangeRate}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of exchange rates + * @return the exchange rates that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GetExchangeRatesByStatement { + + 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("GetExchangeRatesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GetExchangeRatesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ExchangeRatePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + +}} + +if (!class_exists("PerformExchangeRateAction", FALSE)) { +/** + * Performs an action on {@link ExchangeRate} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ExchangeRate#id}
      {@code currencyCode}{@link ExchangeRate#currencyCode}
      {@code refreshRate}{@link ExchangeRate#refreshRate}
      {@code direction}{@link ExchangeRate#direction}
      {@code exchangeRate}{@link ExchangeRate#exchangeRate}
      + * + * @param exchangeRateAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of exchange rates + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PerformExchangeRateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ExchangeRateAction + */ + public $exchangeRateAction; + + /** + * @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($exchangeRateAction = null, $filterStatement = null) { + $this->exchangeRateAction = $exchangeRateAction; + $this->filterStatement = $filterStatement; + } + +}} + +if (!class_exists("PerformExchangeRateActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PerformExchangeRateActionResponse { + + 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("UpdateExchangeRates", FALSE)) { +/** + * Updates the specified {@link ExchangeRate} objects. + * + * @param exchangeRates the exchange rates to update + * @return the updated exchange rates + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateExchangeRates { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ExchangeRate[] + */ + public $exchangeRates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($exchangeRates = null) { + $this->exchangeRates = $exchangeRates; + } + +}} + +if (!class_exists("UpdateExchangeRatesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateExchangeRatesResponse { + + 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("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("DeleteExchangeRates", FALSE)) { +/** + * The action used to delete {@link ExchangeRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeleteExchangeRates extends ExchangeRateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = "DeleteExchangeRates"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($ExchangeRateActionType = null) { + parent::__construct(); + $this->ExchangeRateActionType = $ExchangeRateActionType; + } + +}} + +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("ExchangeRateService", FALSE)) { +/** + * ExchangeRateService + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ExchangeRateService extends DfpSoapClient { + + const SERVICE_NAME = "ExchangeRateService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201311/ExchangeRateService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/ExchangeRateService"; + /** + * 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", + "DeleteExchangeRates" => "DeleteExchangeRates", + "ExchangeRateAction" => "ExchangeRateAction", + "ExchangeRate" => "ExchangeRate", + "ExchangeRateError" => "ExchangeRateError", + "ExchangeRatePage" => "ExchangeRatePage", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "OAuth" => "DfpOAuth", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredNumberError" => "RequiredNumberError", + "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", + "ExchangeRateDirection" => "ExchangeRateDirection", + "ExchangeRateError.Reason" => "ExchangeRateErrorReason", + "ExchangeRateRefreshRate" => "ExchangeRateRefreshRate", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "createExchangeRates" => "CreateExchangeRates", + "createExchangeRatesResponse" => "CreateExchangeRatesResponse", + "getExchangeRate" => "GetExchangeRate", + "getExchangeRateResponse" => "GetExchangeRateResponse", + "getExchangeRatesByStatement" => "GetExchangeRatesByStatement", + "getExchangeRatesByStatementResponse" => "GetExchangeRatesByStatementResponse", + "performExchangeRateAction" => "PerformExchangeRateAction", + "performExchangeRateActionResponse" => "PerformExchangeRateActionResponse", + "updateExchangeRates" => "UpdateExchangeRates", + "updateExchangeRatesResponse" => "UpdateExchangeRatesResponse", + ); + + + /** + * 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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * Creates new {@link ExchangeRate} objects. + * + * For each exchange rate, the following fields are required: + *
        + *
      • {@link ExchangeRate#currencyCode}
      • + *
      • {@link ExchangeRate#exchangeRate} when {@link ExchangeRate#refreshRate} is + * {@link ExchangeRateRefreshRate#FIXED}
      • + *
      + * + * @param exchangeRates the exchange rates to create + * @return the created exchange rates with their exchange rate values filled in + */ + public function createExchangeRates($exchangeRates) { + $args = new 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: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ExchangeRate#id}
      {@code currencyCode}{@link ExchangeRate#currencyCode}
      {@code refreshRate}{@link ExchangeRate#refreshRate}
      {@code direction}{@link ExchangeRate#direction}
      {@code exchangeRate}{@link ExchangeRate#exchangeRate}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of exchange rates + * @return the exchange rates that match the given filter + */ + public function getExchangeRatesByStatement($filterStatement) { + $args = new GetExchangeRatesByStatement($filterStatement); + $result = $this->__soapCall("getExchangeRatesByStatement", array($args)); + return $result->rval; + } + /** + * Performs an action on {@link ExchangeRate} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ExchangeRate#id}
      {@code currencyCode}{@link ExchangeRate#currencyCode}
      {@code refreshRate}{@link ExchangeRate#refreshRate}
      {@code direction}{@link ExchangeRate#direction}
      {@code exchangeRate}{@link ExchangeRate#exchangeRate}
      + * + * @param exchangeRateAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of exchange rates + * @return the result of the action performed + */ + public function performExchangeRateAction($exchangeRateAction, $filterStatement) { + $args = new PerformExchangeRateAction($exchangeRateAction, $filterStatement); + $result = $this->__soapCall("performExchangeRateAction", array($args)); + return $result->rval; + } + /** + * Updates the specified {@link ExchangeRate} objects. + * + * @param exchangeRates the exchange rates to update + * @return the updated exchange rates + */ + public function updateExchangeRates($exchangeRates) { + $args = new UpdateExchangeRates($exchangeRates); + $result = $this->__soapCall("updateExchangeRates", array($args)); + return $result->rval; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/ForecastService.php b/src/Google/Api/Ads/Dfp/v201311/ForecastService.php new file mode 100755 index 000000000..8eae3eb8d --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/ForecastService.php @@ -0,0 +1,9661 @@ +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("TechnologyTargeting", FALSE)) { +/** + * Provides {@link LineItem} objects the ability to target or exclude + * technologies. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TechnologyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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("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("ClickTrackingLineItemError", FALSE)) { +/** + * Click tracking is a special line item type with a number of unique errors as + * described below. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClickTrackingLineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("ContendingLineItem", FALSE)) { +/** + * Describes contending line items for a {@link Forecast}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContendingLineItem { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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("ContentMetadataKeyHierarchyTargeting", FALSE)) { +/** + * Represents one or more {@link CustomTargetingValue custom targeting values} from different + * {@link CustomTargetingKey custom targeting keys} ANDed together. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentMetadataKeyHierarchyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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("ContentMetadataTargetingError", FALSE)) { +/** + * Lists all errors related to {@link ContentMetadataTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentMetadataTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = "ContentMetadataTargetingError"; + + /** + * @access public + * @var tnsContentMetadataTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $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 v201311 + */ +class ContentTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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; + } + +}} + +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("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("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("DateTimeRangeTargetingError", FALSE)) { +/** + * Lists all date time range errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeRangeTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DayPart { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DayPartTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DayPartTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DeliveryData { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DeliveryIndicator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DeviceCapabilityTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DeviceCategoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DeviceManufacturerTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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 overbook lower or equal + * priority line items. + *
      • Possible units -- How many units can be booked without affecting any + * higher priority line items. Booking more than this number can overbook + * higher priority line items. + *
      • Matched (forecast) units -- How many units satisfy all specified + * criteria. + *
      + * + *

      The term "can overbook" is used, because 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 v201311 + */ +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; + + /** + * @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 v201311 + */ +class ForecastError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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("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("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("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("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("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("LineItemSummary", FALSE)) { +/** + * The {@code LineItemSummary} represents the base class from which a {@code + * LineItem} is derived. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemSummary { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 boolean + */ + public $isPrioritizedPreferredDealsEnabled; + + /** + * @access public + * @var integer + */ + public $adExchangeAuctionOpeningPriority; + + /** + * @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, $isPrioritizedPreferredDealsEnabled = null, $adExchangeAuctionOpeningPriority = 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->isPrioritizedPreferredDealsEnabled = $isPrioritizedPreferredDealsEnabled; + $this->adExchangeAuctionOpeningPriority = $adExchangeAuctionOpeningPriority; + $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 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("MobileCarrierTargeting", FALSE)) { +/** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MobileCarrierTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class MobileDeviceSubmodelTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class MobileDeviceTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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)) { +/** + * 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"; + + /** + * @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 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("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), {@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("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("Targeting", FALSE)) { +/** + * Contains targeting criteria for {@link LineItem} objects. See + * {@link LineItem#targeting}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +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; + + /** + * @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 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("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("TechnologyTargetingError", FALSE)) { +/** + * Technology targeting validation errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TechnologyTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class TimeOfDay { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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 v201311 + */ +class VideoPosition { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class VideoPositionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class VideoPositionWithinPod { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +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; + + /** + * @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 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("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("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("ClickTrackingLineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClickTrackingLineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("CompanionDeliveryOption", FALSE)) { +/** + * The delivery option for companions. Used for line items whose environmentType is + * {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CompanionDeliveryOption { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("ComputedStatus", FALSE)) { +/** + * Describes the computed {@link LineItem} status that is derived from the + * current state of the line item. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ComputedStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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("ContentMetadataTargetingErrorReason", FALSE)) { +/** + * The reasons for the metadata targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentMetadataTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = "ContentMetadataTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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("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("CreativeRotationType", FALSE)) { +/** + * The strategy to use for displaying multiple {@link Creative} objects that are + * associated with a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeRotationType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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("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("DateTimeRangeTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for date time range targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeRangeTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DayOfWeek { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DayPartTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DeliveryTimeZone { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DeliveryRateType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("ForecastErrorReason", FALSE)) { +/** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ForecastErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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("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("LineItemDiscountType", FALSE)) { +/** + * Describes the possible discount types on the cost of booking a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemDiscountType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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 v201311 + */ +class LineItemSummaryDuration { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class LineItemSummaryReservationStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("MinuteOfHour", FALSE)) { +/** + * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This + * field is required. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MinuteOfHour { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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 v201311 + */ +class CreativePersistenceType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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. + * 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("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("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("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("TechnologyTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TechnologyTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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 v201311 + */ +class UnitType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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 v201311 + */ +class VideoBumperType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class VideoPositionType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class GetForecast { + + 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("GetForecastResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GetForecastResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class GetForecastById { + + 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("GetForecastByIdResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GetForecastByIdResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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("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("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("LineItem", FALSE)) { +/** + * {@code LineItem} is an advertiser's commitment to purchase a specific number + * of ad impressions, clicks, or time. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItem extends LineItemSummary { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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, $isPrioritizedPreferredDealsEnabled = null, $adExchangeAuctionOpeningPriority = 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->isPrioritizedPreferredDealsEnabled = $isPrioritizedPreferredDealsEnabled; + $this->adExchangeAuctionOpeningPriority = $adExchangeAuctionOpeningPriority; + $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 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("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("ForecastService", FALSE)) { +/** + * ForecastService + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ForecastService extends DfpSoapClient { + + const SERVICE_NAME = "ForecastService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201311/ForecastService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/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", + "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "ContendingLineItem" => "ContendingLineItem", + "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", + "ContentMetadataTargetingError" => "ContentMetadataTargetingError", + "ContentTargeting" => "ContentTargeting", + "CreativeError" => "CreativeError", + "CreativePlaceholder" => "CreativePlaceholder", + "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", + "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", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RegExError" => "RegExError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "ReservationDetailsError" => "ReservationDetailsError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "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", + "ContentMetadataTargetingError.Reason" => "ContentMetadataTargetingErrorReason", + "CostType" => "CostType", + "CreativeError.Reason" => "CreativeErrorReason", + "CreativeRotationType" => "CreativeRotationType", + "CreativeSizeType" => "CreativeSizeType", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/InventoryService.php b/src/Google/Api/Ads/Dfp/v201311/InventoryService.php new file mode 100755 index 000000000..2890a13da --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/InventoryService.php @@ -0,0 +1,5922 @@ +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("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("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), {@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("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. + * 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("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://www.google.com/apis/ads/publisher/v201311/InventoryService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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", + "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", + "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", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/LabelService.php b/src/Google/Api/Ads/Dfp/v201311/LabelService.php new file mode 100755 index 000000000..efdcbdade --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/LabelService.php @@ -0,0 +1,3697 @@ +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("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("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("LabelAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LabelAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($LabelActionType = null) { + $this->LabelActionType = $LabelActionType; + } + +}} + +if (!class_exists("Label", FALSE)) { +/** + * A {@code Label} is additional information that can be added to an entity. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Label { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = "Label"; + + /** + * @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 tnsLabelType[] + */ + public $types; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $types = null) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->isActive = $isActive; + $this->types = $types; + } + +}} + +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("LabelPage", FALSE)) { +/** + * Captures a page of {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +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; + + /** + * @access public + * @var Label[] + */ + 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 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("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("LabelType", FALSE)) { +/** + * Represents the types of labels supported. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LabelType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = "LabelType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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. + * 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("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 v201311 + */ +class CreateLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class CreateLabelResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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. + * + * @param labels the labels to create + * @return the created labels with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreateLabels { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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("CreateLabelsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreateLabelsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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("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 v201311 + */ +class GetLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class GetLabelResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@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}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels. + * @return the labels that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GetLabelsByStatement { + + 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("GetLabelsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GetLabelsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LabelPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + +}} + +if (!class_exists("PerformLabelAction", FALSE)) { +/** + * Performs actions on {@link Label} 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 + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PerformLabelAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LabelAction + */ + public $labelAction; + + /** + * @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($labelAction = null, $filterStatement = null) { + $this->labelAction = $labelAction; + $this->filterStatement = $filterStatement; + } + +}} + +if (!class_exists("PerformLabelActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PerformLabelActionResponse { + + 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("UpdateLabel", FALSE)) { +/** + * Updates the specified {@link Label}. + * + * @param label the label to update + * @return the updated label + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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("UpdateLabelResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateLabelResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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("UpdateLabels", FALSE)) { +/** + * Updates the specified {@link Label} objects. + * + * @param labels the labels to update + * @return the updated labels + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateLabels { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateLabelsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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("ActivateLabels", FALSE)) { +/** + * The action used for activating {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ActivateLabels extends LabelAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = "ActivateLabels"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($LabelActionType = null) { + parent::__construct(); + $this->LabelActionType = $LabelActionType; + } + +}} + +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("DeactivateLabels", FALSE)) { +/** + * The action used for deactivating {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeactivateLabels extends LabelAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = "DeactivateLabels"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($LabelActionType = null) { + parent::__construct(); + $this->LabelActionType = $LabelActionType; + } + +}} + +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("LabelService", FALSE)) { +/** + * LabelService + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LabelService extends DfpSoapClient { + + const SERVICE_NAME = "LabelService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201311/LabelService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/LabelService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ActivateLabels" => "ActivateLabels", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "ClientLogin" => "ClientLogin", + "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", + "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", + "LabelError.Reason" => "LabelErrorReason", + "LabelType" => "LabelType", + "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", + "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", + ); + + + /** + * 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=null, $options, $user) { + $options["classmap"] = self::$classmap; + 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. + * + * @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 + */ + 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 + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@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}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels. + * @return the labels that match the given filter + */ + public function getLabelsByStatement($filterStatement) { + $args = new GetLabelsByStatement($filterStatement); + $result = $this->__soapCall("getLabelsByStatement", array($args)); + return $result->rval; + } + /** + * Performs actions on {@link Label} 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 + * @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)); + return $result->rval; + } + /** + * Updates the specified {@link Label} objects. + * + * @param labels the labels to update + * @return the updated labels + */ + public function updateLabels($labels) { + $args = new UpdateLabels($labels); + $result = $this->__soapCall("updateLabels", array($args)); + return $result->rval; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/LineItemCreativeAssociationService.php b/src/Google/Api/Ads/Dfp/v201311/LineItemCreativeAssociationService.php new file mode 100755 index 000000000..1689a52e4 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/LineItemCreativeAssociationService.php @@ -0,0 +1,5729 @@ +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("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("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), {@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("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("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. + * 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://www.google.com/apis/ads/publisher/v201311/LineItemCreativeAssociationService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateLineItemCreativeAssociations" => "DeactivateLineItemCreativeAssociations", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "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", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/LineItemService.php b/src/Google/Api/Ads/Dfp/v201311/LineItemService.php new file mode 100755 index 000000000..717349cb7 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/LineItemService.php @@ -0,0 +1,10426 @@ +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("TechnologyTargeting", FALSE)) { +/** + * Provides {@link LineItem} objects the ability to target or exclude + * technologies. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TechnologyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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("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("ClickTrackingLineItemError", FALSE)) { +/** + * Click tracking is a special line item type with a number of unique errors as + * described below. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClickTrackingLineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("ContentMetadataKeyHierarchyTargeting", FALSE)) { +/** + * Represents one or more {@link CustomTargetingValue custom targeting values} from different + * {@link CustomTargetingKey custom targeting keys} ANDed together. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentMetadataKeyHierarchyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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("ContentMetadataTargetingError", FALSE)) { +/** + * Lists all errors related to {@link ContentMetadataTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentMetadataTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = "ContentMetadataTargetingError"; + + /** + * @access public + * @var tnsContentMetadataTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $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 v201311 + */ +class ContentTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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; + } + +}} + +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("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("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("DateTimeRangeTargetingError", FALSE)) { +/** + * Lists all date time range errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeRangeTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DayPart { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DayPartTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DayPartTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DeliveryData { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DeliveryIndicator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DeviceCapabilityTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DeviceCategoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DeviceManufacturerTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("ForecastError", FALSE)) { +/** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ForecastError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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("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("LineItemAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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("LineItemPage", FALSE)) { +/** + * Captures a page of {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class LineItemSummary { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 boolean + */ + public $isPrioritizedPreferredDealsEnabled; + + /** + * @access public + * @var integer + */ + public $adExchangeAuctionOpeningPriority; + + /** + * @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, $isPrioritizedPreferredDealsEnabled = null, $adExchangeAuctionOpeningPriority = 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->isPrioritizedPreferredDealsEnabled = $isPrioritizedPreferredDealsEnabled; + $this->adExchangeAuctionOpeningPriority = $adExchangeAuctionOpeningPriority; + $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 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("MobileCarrierTargeting", FALSE)) { +/** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MobileCarrierTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class MobileDeviceSubmodelTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class MobileDeviceTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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)) { +/** + * 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"; + + /** + * @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 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("PauseLineItems", FALSE)) { +/** + * The action used for pausing {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PauseLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("ReleaseLineItems", FALSE)) { +/** + * The action used for releasing {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReleaseLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("ReserveLineItems", FALSE)) { +/** + * The action used for reserving {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReserveLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class ResumeLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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), {@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("Targeting", FALSE)) { +/** + * Contains targeting criteria for {@link LineItem} objects. See + * {@link LineItem#targeting}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +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; + + /** + * @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 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("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("TechnologyTargetingError", FALSE)) { +/** + * Technology targeting validation errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TechnologyTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class TimeOfDay { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("UnarchiveLineItems", FALSE)) { +/** + * The action used for unarchiving {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UnarchiveLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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 v201311 + */ +class VideoPosition { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class VideoPositionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class VideoPositionWithinPod { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +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; + + /** + * @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 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("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("ClickTrackingLineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClickTrackingLineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("CompanionDeliveryOption", FALSE)) { +/** + * The delivery option for companions. Used for line items whose environmentType is + * {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CompanionDeliveryOption { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("ComputedStatus", FALSE)) { +/** + * Describes the computed {@link LineItem} status that is derived from the + * current state of the line item. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ComputedStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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("ContentMetadataTargetingErrorReason", FALSE)) { +/** + * The reasons for the metadata targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentMetadataTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = "ContentMetadataTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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("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("CreativeRotationType", FALSE)) { +/** + * The strategy to use for displaying multiple {@link Creative} objects that are + * associated with a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeRotationType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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("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("DateTimeRangeTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for date time range targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeRangeTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DayOfWeek { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DayPartTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DeliveryTimeZone { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DeliveryRateType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("ForecastErrorReason", FALSE)) { +/** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ForecastErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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("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("LineItemDiscountType", FALSE)) { +/** + * Describes the possible discount types on the cost of booking a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemDiscountType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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 v201311 + */ +class LineItemSummaryDuration { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class LineItemSummaryReservationStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("MinuteOfHour", FALSE)) { +/** + * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This + * field is required. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MinuteOfHour { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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 v201311 + */ +class CreativePersistenceType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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. + * 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("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("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("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("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("TechnologyTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TechnologyTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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 v201311 + */ +class UnitType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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 v201311 + */ +class VideoBumperType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class VideoPositionType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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. + * + * @param lineItems the line items to create + * @return the created line items with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreateLineItems { + + 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("CreateLineItemsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreateLineItemsResponse { + + 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("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 + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code costType}{@link LineItem#costType}
      {@code id}{@link LineItem#id}
      {@code lineItemType}{@link LineItem#lineItemType}
      {@code name}{@link LineItem#name}
      {@code orderId}{@link LineItem#orderId}
      {@code status}{@link LineItem#status}
      {@code unitsBought}{@link LineItem#unitsBought}
      {@code deliveryRateType}{@link LineItem#deliveryRateType}
      {@code lastModifiedDateTime}{@link LineItem#lastModifiedDateTime}
      {@code creationDateTime}{@link LineItem#creationDateTime}
      {@code isMissingCreatives}{@link LineItem#isMissingCreatives}
      + * + * @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 + */ +class GetLineItemsByStatement { + + 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("GetLineItemsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GetLineItemsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class PerformLineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class PerformLineItemActionResponse { + + 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("UpdateLineItem", FALSE)) { +/** + * Updates the specified {@link LineItem}. + * + * @param lineItem the line item to update + * @return the updated line item + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateLineItem { + + 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("UpdateLineItemResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateLineItemResponse { + + 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("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)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateLineItemsResponse { + + 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("ActivateLineItems", FALSE)) { +/** + * The action used for activating {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ActivateLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("ArchiveLineItems", FALSE)) { +/** + * The action used for archiving {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ArchiveLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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 v201311 + */ +class DeleteLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("LineItem", FALSE)) { +/** + * {@code LineItem} is an advertiser's commitment to purchase a specific number + * of ad impressions, clicks, or time. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItem extends LineItemSummary { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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, $isPrioritizedPreferredDealsEnabled = null, $adExchangeAuctionOpeningPriority = 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->isPrioritizedPreferredDealsEnabled = $isPrioritizedPreferredDealsEnabled; + $this->adExchangeAuctionOpeningPriority = $adExchangeAuctionOpeningPriority; + $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 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("ReserveAndOverbookLineItems", FALSE)) { +/** + * The action used for reserving and overbooking {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReserveAndOverbookLineItems extends ReserveLineItems { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class ResumeAndOverbookLineItems extends ResumeLineItems { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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("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("LineItemService", FALSE)) { +/** + * LineItemService + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemService extends DfpSoapClient { + + const SERVICE_NAME = "LineItemService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201311/LineItemService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/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", + "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", + "ContentMetadataTargetingError" => "ContentMetadataTargetingError", + "ContentTargeting" => "ContentTargeting", + "CreativeError" => "CreativeError", + "CreativePlaceholder" => "CreativePlaceholder", + "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", + "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", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "ReleaseLineItems" => "ReleaseLineItems", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "ReservationDetailsError" => "ReservationDetailsError", + "ReserveAndOverbookLineItems" => "ReserveAndOverbookLineItems", + "ReserveLineItems" => "ReserveLineItems", + "ResumeAndOverbookLineItems" => "ResumeAndOverbookLineItems", + "ResumeLineItems" => "ResumeLineItems", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "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", + "ContentMetadataTargetingError.Reason" => "ContentMetadataTargetingErrorReason", + "CostType" => "CostType", + "CreativeError.Reason" => "CreativeErrorReason", + "CreativeRotationType" => "CreativeRotationType", + "CreativeSizeType" => "CreativeSizeType", + "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=null, $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 Property Object Property
      {@code costType}{@link LineItem#costType}
      {@code id}{@link LineItem#id}
      {@code lineItemType}{@link LineItem#lineItemType}
      {@code name}{@link LineItem#name}
      {@code orderId}{@link LineItem#orderId}
      {@code status}{@link LineItem#status}
      {@code unitsBought}{@link LineItem#unitsBought}
      {@code deliveryRateType}{@link LineItem#deliveryRateType}
      {@code lastModifiedDateTime}{@link LineItem#lastModifiedDateTime}
      {@code creationDateTime}{@link LineItem#creationDateTime}
      {@code isMissingCreatives}{@link LineItem#isMissingCreatives}
      + * + * @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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/LineItemTemplateService.php b/src/Google/Api/Ads/Dfp/v201311/LineItemTemplateService.php new file mode 100755 index 000000000..587b6a0ee --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/LineItemTemplateService.php @@ -0,0 +1,5238 @@ +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("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("ClickTrackingLineItemError", FALSE)) { +/** + * Click tracking is a special line item type with a number of unique errors as + * described below. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClickTrackingLineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("ContentMetadataTargetingError", FALSE)) { +/** + * Lists all errors related to {@link ContentMetadataTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentMetadataTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = "ContentMetadataTargetingError"; + + /** + * @access public + * @var tnsContentMetadataTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $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("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("DateTimeRangeTargetingError", FALSE)) { +/** + * Lists all date time range errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeRangeTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DayPartTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("ForecastError", FALSE)) { +/** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ForecastError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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("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("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("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("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("LineItemTemplate", FALSE)) { +/** + * Represents the template that populates the fields of a new line item being + * created. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemTemplate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class LineItemTemplatePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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("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("TechnologyTargetingError", FALSE)) { +/** + * Technology targeting validation errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TechnologyTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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("ClickTrackingLineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClickTrackingLineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("ContentMetadataTargetingErrorReason", FALSE)) { +/** + * The reasons for the metadata targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentMetadataTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = "ContentMetadataTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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("CreativeRotationType", FALSE)) { +/** + * The strategy to use for displaying multiple {@link Creative} objects that are + * associated with a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeRotationType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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("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("DateTimeRangeTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for date time range targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeRangeTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DayPartTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DeliveryRateType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("ForecastErrorReason", FALSE)) { +/** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ForecastErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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("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("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("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("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("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. + * 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("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("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("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("TechnologyTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TechnologyTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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 v201311 + */ +class GetLineItemTemplatesByStatement { + + 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("GetLineItemTemplatesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GetLineItemTemplatesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("LineItemTemplateService", FALSE)) { +/** + * LineItemTemplateService + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemTemplateService extends DfpSoapClient { + + const SERVICE_NAME = "LineItemTemplateService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201311/LineItemTemplateService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/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", + "ContentMetadataTargetingError" => "ContentMetadataTargetingError", + "CreativeError" => "CreativeError", + "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", + "SetValue" => "SetValue", + "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", + "ContentMetadataTargetingError.Reason" => "ContentMetadataTargetingErrorReason", + "CreativeError.Reason" => "CreativeErrorReason", + "CreativeRotationType" => "CreativeRotationType", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/NetworkService.php b/src/Google/Api/Ads/Dfp/v201311/NetworkService.php new file mode 100755 index 000000000..d6d766780 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/NetworkService.php @@ -0,0 +1,2590 @@ +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("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("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("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("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. + * 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("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://www.google.com/apis/ads/publisher/v201311/NetworkService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "TypeError" => "TypeError", + "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", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/OrderService.php b/src/Google/Api/Ads/Dfp/v201311/OrderService.php new file mode 100755 index 000000000..21ff767ca --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/OrderService.php @@ -0,0 +1,5590 @@ +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("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("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("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("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("ForecastError", FALSE)) { +/** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ForecastError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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("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; + } + +}} + +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("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 v201311 + */ +class Order { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("OrderPage", FALSE)) { +/** + * Captures a page of {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OrderPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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 v201311 + */ +class PauseOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("ResumeOrders", FALSE)) { +/** + * The action used for resuming {@link Order} objects. All {@link LineItem} + * objects within the order will resume as well. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ResumeOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class RetractOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class RetractOrdersWithoutReservationChanges extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("SubmitOrdersForApproval", FALSE)) { +/** + * The action used for submitting {@link Order} objects for approval. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SubmitOrdersForApproval extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class SubmitOrdersForApprovalAndOverbook extends SubmitOrdersForApproval { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class SubmitOrdersForApprovalWithoutReservationChanges extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("UnarchiveOrders", FALSE)) { +/** + * The action used for unarchiving {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UnarchiveOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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("ForecastErrorReason", FALSE)) { +/** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ForecastErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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("OrderStatus", FALSE)) { +/** + * Describes the order statuses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OrderStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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. + * 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("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("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("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 v201311 + */ +class CreateOrder { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class CreateOrderResponse { + + 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("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 v201311 + */ +class CreateOrders { + + 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("CreateOrdersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreateOrdersResponse { + + 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("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 + * {@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 v201311 + */ +class GetOrdersByStatement { + + 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("GetOrdersByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GetOrdersByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class PerformOrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class PerformOrderActionResponse { + + 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("UpdateOrder", FALSE)) { +/** + * Updates the specified {@link Order}. + * + * @param order the order to update + * @return the updated order + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateOrder { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class UpdateOrderResponse { + + 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("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)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateOrdersResponse { + + 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("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("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 v201311 + */ +class ApproveOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class ApproveOrdersWithoutReservationChanges extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class ArchiveOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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 v201311 + */ +class DeleteOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DisapproveOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DisapproveOrdersWithoutReservationChanges extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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 v201311 + */ +class ResumeAndOverbookOrders extends ResumeOrders { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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("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("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 v201311 + */ +class ApproveAndOverbookOrders extends ApproveOrders { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class OrderService extends DfpSoapClient { + + const SERVICE_NAME = "OrderService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201311/OrderService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/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", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BooleanValue" => "BooleanValue", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeleteOrders" => "DeleteOrders", + "DisapproveOrders" => "DisapproveOrders", + "DisapproveOrdersWithoutReservationChanges" => "DisapproveOrdersWithoutReservationChanges", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "ForecastError" => "ForecastError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargetingError" => "InventoryTargetingError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "Money" => "Money", + "NotNullError" => "NotNullError", + "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", + "ResumeAndOverbookOrders" => "ResumeAndOverbookOrders", + "ResumeOrders" => "ResumeOrders", + "RetractOrders" => "RetractOrders", + "RetractOrdersWithoutReservationChanges" => "RetractOrdersWithoutReservationChanges", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "SubmitOrdersForApproval" => "SubmitOrdersForApproval", + "SubmitOrdersForApprovalAndOverbook" => "SubmitOrdersForApprovalAndOverbook", + "SubmitOrdersForApprovalWithoutReservationChanges" => "SubmitOrdersForApprovalWithoutReservationChanges", + "TeamError" => "TeamError", + "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UnarchiveOrders" => "UnarchiveOrders", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "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", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/PlacementService.php b/src/Google/Api/Ads/Dfp/v201311/PlacementService.php new file mode 100755 index 000000000..8b0e63adf --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/PlacementService.php @@ -0,0 +1,4076 @@ +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. + * 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://www.google.com/apis/ads/publisher/v201311/PlacementService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/ProductService.php b/src/Google/Api/Ads/Dfp/v201311/ProductService.php new file mode 100755 index 000000000..bedf9558a --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/ProductService.php @@ -0,0 +1,5829 @@ +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 string + */ + 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), {@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. + * 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("GetProduct", FALSE)) { +/** + * Returns the {@link Product} uniquely identified by the given ID. + * + * @param productId the ID of the product, which must already exist + * @return the {@code Product} uniquely identified by ID + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GetProduct { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = ""; + + /** + * @access public + * @var string + */ + public $productId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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) { + $this->productId = $productId; + } + +}} + +if (!class_exists("GetProductResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GetProductResponse { + + 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("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}YesNo
      {@code lastModifiedDateTime}{@link Product#lastModifiedDateTime}NoYes
      + * + * @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://www.google.com/apis/ads/publisher/v201311/ProductService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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", + "getProduct" => "GetProduct", + "getProductResponse" => "GetProductResponse", + "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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * Returns the {@link Product} uniquely identified by the given ID. + * + * @param productId the ID of the product, which must already exist + * @return the {@code Product} uniquely identified by ID + */ + public function getProduct($productId) { + $args = new GetProduct($productId); + $result = $this->__soapCall("getProduct", array($args)); + return $result->rval; + } + /** + * 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}YesNo
      {@code lastModifiedDateTime}{@link Product#lastModifiedDateTime}NoYes
      + * + * @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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/ProductTemplateService.php b/src/Google/Api/Ads/Dfp/v201311/ProductTemplateService.php new file mode 100755 index 000000000..be0371327 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/ProductTemplateService.php @@ -0,0 +1,6622 @@ +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), {@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. + * 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://www.google.com/apis/ads/publisher/v201311/ProductTemplateService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/ProposalLineItemService.php b/src/Google/Api/Ads/Dfp/v201311/ProposalLineItemService.php new file mode 100755 index 000000000..440b982c3 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/ProposalLineItemService.php @@ -0,0 +1,8817 @@ +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("TechnologyTargeting", FALSE)) { +/** + * Provides {@link LineItem} objects the ability to target or exclude + * technologies. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TechnologyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("BillingError", FALSE)) { +/** + * Lists all errors associated with the billing settings of a proposal or proposal line item. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BillingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("ContentMetadataKeyHierarchyTargeting", FALSE)) { +/** + * Represents one or more {@link CustomTargetingValue custom targeting values} from different + * {@link CustomTargetingKey custom targeting keys} ANDed together. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentMetadataKeyHierarchyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class ContentTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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; + } + +}} + +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("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("DayPart", FALSE)) { +/** + * {@code DayPart} represents a time-period within a day of the week which is + * targeted by a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DayPart { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DayPartTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DayPartTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DeliveryData { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DeliveryIndicator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DeviceCapabilityTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DeviceCategoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DeviceManufacturerTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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("MobileCarrierTargeting", FALSE)) { +/** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MobileCarrierTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class MobileDeviceSubmodelTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class MobileDeviceTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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)) { +/** + * 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"; + + /** + * @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 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("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("ProposalError", FALSE)) { +/** + * Lists all errors associated with proposals. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProposalError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class ProposalLineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class ProposalLineItemActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class ProposalLineItem { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 string + */ + 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 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 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; + + /** + * @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, $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; + } + +}} + +if (!class_exists("ProposalLineItemError", FALSE)) { +/** + * Lists all errors associated with proposal line items. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProposalLineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class ProposalLineItemPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 triggered {@link RateCardCustomization} premiums. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProposalLineItemPremium { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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), {@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("Targeting", FALSE)) { +/** + * Contains targeting criteria for {@link LineItem} objects. See + * {@link LineItem#targeting}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +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; + + /** + * @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 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("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("TechnologyTargetingError", FALSE)) { +/** + * Technology targeting validation errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TechnologyTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class TimeOfDay { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class UnarchiveProposalLineItems extends ProposalLineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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 v201311 + */ +class VideoPosition { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class VideoPositionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class VideoPositionWithinPod { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +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; + + /** + * @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 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("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 + */ +class BillingCap { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class BillingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class BillingSchedule { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class BillingSource { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("CompanionDeliveryOption", FALSE)) { +/** + * The delivery option for companions. Used for line items whose environmentType is + * {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CompanionDeliveryOption { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class ComputedStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class CostAdjustment { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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("CreativeRotationType", FALSE)) { +/** + * The strategy to use for displaying multiple {@link Creative} objects that are + * associated with a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeRotationType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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("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("DayOfWeek", FALSE)) { +/** + * Days of the week. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DayOfWeek { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DayPartTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DeliveryTimeZone { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class DeliveryRateType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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("MinuteOfHour", FALSE)) { +/** + * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This + * field is required. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MinuteOfHour { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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("ProposalErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProposalErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class ProposalLineItemActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class ProposalLineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class ProposalLineItemPremiumStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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. + * 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("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("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("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("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("TechnologyTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TechnologyTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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 v201311 + */ +class VideoBumperType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class VideoPositionType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class CreateProposalLineItem { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class CreateProposalLineItemResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class CreateProposalLineItems { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class CreateProposalLineItemsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class GetProposalLineItem { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class GetProposalLineItemResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class GetProposalLineItemsByStatement { + + 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("GetProposalLineItemsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GetProposalLineItemsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class PerformProposalLineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class PerformProposalLineItemActionResponse { + + 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("UpdateProposalLineItem", FALSE)) { +/** + * Updates the specified {@link ProposalLineItem}. + * + * @param proposalLineItem the proposal line item to update + * @return the updated proposal line item + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateProposalLineItem { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class UpdateProposalLineItemResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class UpdateProposalLineItems { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class UpdateProposalLineItemsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("ArchiveProposalLineItems", FALSE)) { +/** + * The action used for archiving {@link ProposalLineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ArchiveProposalLineItems extends ProposalLineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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("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("ProposalLineItemService", FALSE)) { +/** + * ProposalLineItemService + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProposalLineItemService extends DfpSoapClient { + + const SERVICE_NAME = "ProposalLineItemService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201311/ProposalLineItemService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/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", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "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", + "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", + "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", + "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", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ReservationDetailsError" => "ReservationDetailsError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "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", + "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", + "RateType" => "RateType", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/ProposalService.php b/src/Google/Api/Ads/Dfp/v201311/ProposalService.php new file mode 100755 index 000000000..5637de71d --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/ProposalService.php @@ -0,0 +1,5530 @@ +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("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("BillingError", FALSE)) { +/** + * Lists all errors associated with the billing settings of a proposal or proposal line item. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BillingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("ForecastError", FALSE)) { +/** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ForecastError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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("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("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("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("ProposalAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProposalAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class ProposalActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class ProposalCompanyAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class Proposal { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = "Proposal"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $dfpOrderId; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsPricingModel + */ + public $pricingModel; + + /** + * @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 string + */ + public $currencyCode; + + /** + * @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 tnsProposalApprovalStatus + */ + public $approvalStatus; + + /** + * @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, $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) { + $this->id = $id; + $this->dfpOrderId = $dfpOrderId; + $this->name = $name; + $this->pricingModel = $pricingModel; + $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->currencyCode = $currencyCode; + $this->exchangeRate = $exchangeRate; + $this->refreshExchangeRate = $refreshExchangeRate; + $this->agencyCommission = $agencyCommission; + $this->valueAddedTax = $valueAddedTax; + $this->approvalStatus = $approvalStatus; + $this->lastModifiedDateTime = $lastModifiedDateTime; + } + +}} + +if (!class_exists("ProposalError", FALSE)) { +/** + * Lists all errors associated with proposals. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProposalError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class ProposalLineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class ProposalPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("RetractProposals", FALSE)) { +/** + * The action used for retracting {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RetractProposals extends ProposalAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class SalespersonSplit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("SubmitProposalsForApproval", FALSE)) { +/** + * The action used for submitting {@link Proposal} objects for approval. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SubmitProposalsForApproval extends ProposalAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("UnarchiveProposals", FALSE)) { +/** + * The action used for unarchiving {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UnarchiveProposals extends ProposalAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("WorkflowActionError", FALSE)) { +/** + * Lists all errors associated with performing actions within {@link WorkflowAction}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class WorkflowActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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 + */ +class BillingCap { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class BillingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class BillingSchedule { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class BillingSource { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("ForecastErrorReason", FALSE)) { +/** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ForecastErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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("ProposalApprovalStatus", FALSE)) { +/** + * Describes the {@link Proposal} status in terms of pending approvals of active user. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProposalApprovalStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("PricingModel", FALSE)) { +/** + * The option to specify whether the proposal uses the Net or Gross pricing model. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PricingModel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = "PricingModel"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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("ProposalActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProposalActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class ProposalCompanyAssociationType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class ProposalErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class ProposalLineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class ProposalStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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. + * 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("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("WorkflowActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class WorkflowActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class CreateProposal { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class CreateProposalResponse { + + 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("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 v201311 + */ +class CreateProposals { + + 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("CreateProposalsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreateProposalsResponse { + + 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("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 + * {@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 v201311 + */ +class GetProposalsByStatement { + + 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("GetProposalsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GetProposalsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class PerformProposalAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class PerformProposalActionResponse { + + 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("UpdateProposal", FALSE)) { +/** + * Updates the specified {@link Proposal}. + * + * @param proposal the proposal to update + * @return the updated proposal + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateProposal { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class UpdateProposalResponse { + + 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("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)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateProposalsResponse { + + 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("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("ArchiveProposals", FALSE)) { +/** + * The action used for archiving {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ArchiveProposals extends ProposalAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("ProposalService", FALSE)) { +/** + * ProposalService + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProposalService extends DfpSoapClient { + + const SERVICE_NAME = "ProposalService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201311/ProposalService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/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", + "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", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RetractProposals" => "RetractProposals", + "SalespersonSplit" => "SalespersonSplit", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "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", + "PricingModel" => "PricingModel", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/PublisherQueryLanguageService.php b/src/Google/Api/Ads/Dfp/v201311/PublisherQueryLanguageService.php new file mode 100755 index 000000000..131796ec8 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/PublisherQueryLanguageService.php @@ -0,0 +1,4183 @@ +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. + * 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://www.google.com/apis/ads/publisher/v201311/PublisherQueryLanguageService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/RateCardCustomizationService.php b/src/Google/Api/Ads/Dfp/v201311/RateCardCustomizationService.php new file mode 100755 index 000000000..d15893a97 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/RateCardCustomizationService.php @@ -0,0 +1,3998 @@ +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. + * @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. + * 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 id}{@link RateCardCustomization#id}
      {@code status}{@link RateCardCustomization#status}
      + * + * @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://www.google.com/apis/ads/publisher/v201311/RateCardCustomizationService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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 id}{@link RateCardCustomization#id}
      {@code status}{@link RateCardCustomization#status}
      + * + * @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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/RateCardService.php b/src/Google/Api/Ads/Dfp/v201311/RateCardService.php new file mode 100755 index 000000000..186e2e4b9 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/RateCardService.php @@ -0,0 +1,4152 @@ +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. + * 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://www.google.com/apis/ads/publisher/v201311/RateCardService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/ReconciliationOrderReportService.php b/src/Google/Api/Ads/Dfp/v201311/ReconciliationOrderReportService.php new file mode 100755 index 000000000..f08c45987 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/ReconciliationOrderReportService.php @@ -0,0 +1,3139 @@ +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. + * 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 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 reconciliationReportId}{@link ReconciliationOrderReport#reconciliationReportId}
      + * + * The {@code reconciliationReportId} field and {@code orderId} are required and can only be + * combined with an {@code AND}. Furthermore, the results may only belong to one + * {@link ReconciliationReport}. + * 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://www.google.com/apis/ads/publisher/v201311/ReconciliationOrderReportService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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 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 reconciliationReportId}{@link ReconciliationOrderReport#reconciliationReportId}
      + * + * The {@code reconciliationReportId} field and {@code orderId} are required and can only be + * combined with an {@code AND}. Furthermore, the results may only belong to one + * {@link ReconciliationReport}. + * 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/ReconciliationReportRowService.php b/src/Google/Api/Ads/Dfp/v201311/ReconciliationReportRowService.php new file mode 100755 index 000000000..c654c691b --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/ReconciliationReportRowService.php @@ -0,0 +1,3212 @@ +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. + * 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://www.google.com/apis/ads/publisher/v201311/ReconciliationReportRowService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/ReconciliationReportService.php b/src/Google/Api/Ads/Dfp/v201311/ReconciliationReportService.php new file mode 100755 index 000000000..1dcbdf30c --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/ReconciliationReportService.php @@ -0,0 +1,3029 @@ +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. + * 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://www.google.com/apis/ads/publisher/v201311/ReconciliationReportService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/ReportService.php b/src/Google/Api/Ads/Dfp/v201311/ReportService.php new file mode 100755 index 000000000..b0dcfe937 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/ReportService.php @@ -0,0 +1,3228 @@ +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}. + * 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. + * 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://www.google.com/apis/ads/publisher/v201311/ReportService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/SuggestedAdUnitService.php b/src/Google/Api/Ads/Dfp/v201311/SuggestedAdUnitService.php new file mode 100755 index 000000000..90ca65fa5 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/SuggestedAdUnitService.php @@ -0,0 +1,3309 @@ +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), {@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. + * 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://www.google.com/apis/ads/publisher/v201311/SuggestedAdUnitService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/TeamService.php b/src/Google/Api/Ads/Dfp/v201311/TeamService.php new file mode 100755 index 000000000..b7b883371 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/TeamService.php @@ -0,0 +1,3186 @@ +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("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("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 v201311 + */ +class Team { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("TeamPage", FALSE)) { +/** + * Captures a page of {@link Team} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TeamPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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. + * 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("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("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("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 v201311 + */ +class CreateTeam { + + 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("CreateTeamResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreateTeamResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class CreateTeams { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class CreateTeamsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class GetTeam { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class GetTeamResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class GetTeamsByStatement { + + 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("GetTeamsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GetTeamsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateTeamResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class UpdateTeams { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 v201311 + */ +class UpdateTeamsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("TeamService", FALSE)) { +/** + * TeamService + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TeamService extends DfpSoapClient { + + const SERVICE_NAME = "TeamService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201311/TeamService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/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", + "SetValue" => "SetValue", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/UserService.php b/src/Google/Api/Ads/Dfp/v201311/UserService.php new file mode 100755 index 000000000..d0d609ad6 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/UserService.php @@ -0,0 +1,4115 @@ +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("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. + * 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("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://www.google.com/apis/ads/publisher/v201311/UserService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/UserTeamAssociationService.php b/src/Google/Api/Ads/Dfp/v201311/UserTeamAssociationService.php new file mode 100755 index 000000000..6378a620e --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/UserTeamAssociationService.php @@ -0,0 +1,3256 @@ +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. + * 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://www.google.com/apis/ads/publisher/v201311/UserTeamAssociationService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/WorkflowRequestService.php b/src/Google/Api/Ads/Dfp/v201311/WorkflowRequestService.php new file mode 100755 index 000000000..e06052462 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/WorkflowRequestService.php @@ -0,0 +1,2935 @@ +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("WorkflowRequest", FALSE)) { +/** + * A {@code WorkflowRequest} represents a workflow action unit that requires external or manual + * interference. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class WorkflowRequest { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = "WorkflowRequest"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $workflowRuleName; + + /** + * @access public + * @var integer + */ + public $entityId; + + /** + * @access public + * @var tnsWorkflowEntityType + */ + public $entityType; + + /** + * @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 + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $workflowRuleName = null, $entityId = null, $entityType = null, $WorkflowRequestType = null) { + $this->id = $id; + $this->workflowRuleName = $workflowRuleName; + $this->entityId = $entityId; + $this->entityType = $entityType; + $this->WorkflowRequestType = $WorkflowRequestType; + } + +}} + +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("ForecastError", FALSE)) { +/** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ForecastError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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("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("WorkflowApprovalRequest", FALSE)) { +/** + * A {@code WorkflowApprovalRequest} represents a workflow action unit that requires user approval. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class WorkflowApprovalRequest extends WorkflowRequest { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = "WorkflowApprovalRequest"; + + /** + * @access public + * @var tnsWorkflowApprovalRequestStatus + */ + 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($status = null, $id = null, $workflowRuleName = null, $entityId = null, $entityType = null, $WorkflowRequestType = null) { + parent::__construct(); + $this->status = $status; + $this->id = $id; + $this->workflowRuleName = $workflowRuleName; + $this->entityId = $entityId; + $this->entityType = $entityType; + $this->WorkflowRequestType = $WorkflowRequestType; + } + +}} + +if (!class_exists("WorkflowRequestAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link WorkflowRequest} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class WorkflowRequestAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = "WorkflowRequestAction"; + + /** + * @access public + * @var string + */ + public $WorkflowRequestActionType; + private $_parameterMap = array( + "WorkflowRequestAction.Type" => "WorkflowRequestActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { + $this->{$this->_parameterMap[$var]} = $value; + } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get + * @return mixed Variable value + */ + public function __get($var) { + if (!isset($this->_parameterMap[$var])) { + return null; + } + return $this->{$this->_parameterMap[$var]}; + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($WorkflowRequestActionType = null) { + $this->WorkflowRequestActionType = $WorkflowRequestActionType; + } + +}} + +if (!class_exists("WorkflowRequestPage", FALSE)) { +/** + * Captures a page of {@link WorkflowRequest} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class WorkflowRequestPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = "WorkflowRequestPage"; + + /** + * @access public + * @var WorkflowRequest[] + */ + 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("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("WorkflowApprovalRequestStatus", FALSE)) { +/** + * The status of the workflow approval request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class WorkflowApprovalRequestStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = "WorkflowApprovalRequestStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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("ForecastErrorReason", FALSE)) { +/** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ForecastErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + 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 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("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("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. + * 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("WorkflowEntityType", FALSE)) { +/** + * The entity types that workflows can be applied to. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class WorkflowEntityType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = "WorkflowEntityType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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}. + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link WorkflowRequest#id}
      {@code workflowRuleName}{@link WorkflowRequest#workflowRuleName}
      {@code status}{@link WorkflowApprovalRequest#status}
      {@code entityType}{@link WorkflowRequest#entityType}
      {@code entityId}{@link WorkflowRequest#entityId}
      + * + * @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 + */ +class GetWorkflowRequestsByStatement { + + 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("GetWorkflowRequestsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GetWorkflowRequestsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = ""; + + /** + * @access public + * @var WorkflowRequestPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + +}} + +if (!class_exists("PerformWorkflowRequestAction", FALSE)) { +/** + * Perform actions on {@link WorkflowRequest} objects that match the given + * {@link Statement#query}. + * + * @param action the action to perform + * @param filterStatement a Publisher Query Language statement used to filter a set of workflow + * requests + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PerformWorkflowRequestAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = ""; + + /** + * @access public + * @var WorkflowRequestAction + */ + 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("PerformWorkflowRequestActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PerformWorkflowRequestActionResponse { + + 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("ApproveWorkflowApprovalRequests", FALSE)) { +/** + * The action used to approve {@link WorkflowApprovalRequest workflow approval requests}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApproveWorkflowApprovalRequests extends WorkflowRequestAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = "ApproveWorkflowApprovalRequests"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($WorkflowRequestActionType = null) { + parent::__construct(); + $this->WorkflowRequestActionType = $WorkflowRequestActionType; + } + +}} + +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("RejectWorkflowApprovalRequests", FALSE)) { +/** + * The action used to reject {@link WorkflowApprovalRequest workflow approval requests}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RejectWorkflowApprovalRequests extends WorkflowRequestAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const XSI_TYPE = "RejectWorkflowApprovalRequests"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($WorkflowRequestActionType = null) { + parent::__construct(); + $this->WorkflowRequestActionType = $WorkflowRequestActionType; + } + +}} + +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("WorkflowRequestService", FALSE)) { +/** + * WorkflowRequestService + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class WorkflowRequestService extends DfpSoapClient { + + const SERVICE_NAME = "WorkflowRequestService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201311/WorkflowRequestService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/WorkflowRequestService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "ApproveWorkflowApprovalRequests" => "ApproveWorkflowApprovalRequests", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "WorkflowRequest" => "WorkflowRequest", + "BooleanValue" => "BooleanValue", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "ForecastError" => "ForecastError", + "InternalApiError" => "InternalApiError", + "LineItemOperationError" => "LineItemOperationError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "OAuth" => "DfpOAuth", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RejectWorkflowApprovalRequests" => "RejectWorkflowApprovalRequests", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UpdateResult" => "UpdateResult", + "Value" => "Value", + "WorkflowApprovalRequest" => "WorkflowApprovalRequest", + "WorkflowRequestAction" => "WorkflowRequestAction", + "WorkflowRequestPage" => "WorkflowRequestPage", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "WorkflowApprovalRequestStatus" => "WorkflowApprovalRequestStatus", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "LineItemOperationError.Reason" => "LineItemOperationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "WorkflowEntityType" => "WorkflowEntityType", + "getWorkflowRequestsByStatement" => "GetWorkflowRequestsByStatement", + "getWorkflowRequestsByStatementResponse" => "GetWorkflowRequestsByStatementResponse", + "performWorkflowRequestAction" => "PerformWorkflowRequestAction", + "performWorkflowRequestActionResponse" => "PerformWorkflowRequestActionResponse", + ); + + + /** + * 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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * Gets a list of {@link WorkflowRequest} objects that satisfy the given {@link Statement#query}. + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link WorkflowRequest#id}
      {@code workflowRuleName}{@link WorkflowRequest#workflowRuleName}
      {@code status}{@link WorkflowApprovalRequest#status}
      {@code entityType}{@link WorkflowRequest#entityType}
      {@code entityId}{@link WorkflowRequest#entityId}
      + * + * @param filterStatement a Publisher Query Language statement used to filter a set of proposals + * @return the workflow requests that match the given filter + */ + public function getWorkflowRequestsByStatement($filterStatement) { + $args = new GetWorkflowRequestsByStatement($filterStatement); + $result = $this->__soapCall("getWorkflowRequestsByStatement", array($args)); + return $result->rval; + } + /** + * Perform actions on {@link WorkflowRequest} objects that match the given + * {@link Statement#query}. + * + * @param action the action to perform + * @param filterStatement a Publisher Query Language statement used to filter a set of workflow + * requests + * @return the result of the action performed + */ + public function performWorkflowRequestAction($action, $filterStatement) { + $args = new PerformWorkflowRequestAction($action, $filterStatement); + $result = $this->__soapCall("performWorkflowRequestAction", array($args)); + return $result->rval; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/ActivityGroupService.php b/src/Google/Api/Ads/Dfp/v201403/ActivityGroupService.php new file mode 100755 index 000000000..cd37b0485 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/ActivityGroupService.php @@ -0,0 +1,2878 @@ +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 v201403 + */ +class ActivityGroupPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ActivityErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ActivityGroupStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class CreateActivityGroups { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreateActivityGroupsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetActivityGroupsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetActivityGroupsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("UpdateActivityGroups", FALSE)) { +/** + * Updates the specified {@link ActivityGroup} objects. + * + * @param activityGroups the activity groups to update. + * @return the updated activity groups. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class UpdateActivityGroups { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateActivityGroupsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ActivityError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ActivityGroupService extends DfpSoapClient { + + const SERVICE_NAME = "ActivityGroupService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/ActivityGroupService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "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", + "createActivityGroups" => "CreateActivityGroups", + "createActivityGroupsResponse" => "CreateActivityGroupsResponse", + "getActivityGroupsByStatement" => "GetActivityGroupsByStatement", + "getActivityGroupsByStatementResponse" => "GetActivityGroupsByStatementResponse", + "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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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; + } + /** + * 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} 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/ActivityService.php b/src/Google/Api/Ads/Dfp/v201403/ActivityService.php new file mode 100755 index 000000000..fdcda0529 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/ActivityService.php @@ -0,0 +1,2916 @@ +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 v201403 + */ +class Activity { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ActivityPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ActivityStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ActivityType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ActivityErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreateActivities { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreateActivitiesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetActivitiesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetActivitiesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("UpdateActivities", FALSE)) { +/** + * Updates the specified {@link Activity} objects. + * + * @param activities to be updated. + * @return the updated activities. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class UpdateActivities { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateActivitiesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ActivityError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ActivityService extends DfpSoapClient { + + const SERVICE_NAME = "ActivityService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/ActivityService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "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", + "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", + "getActivitiesByStatement" => "GetActivitiesByStatement", + "getActivitiesByStatementResponse" => "GetActivitiesByStatementResponse", + "updateActivities" => "UpdateActivities", + "updateActivitiesResponse" => "UpdateActivitiesResponse", + ); + + + /** + * 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=null, $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; + } + /** + * 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; + } + /** + * 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/AdRuleService.php b/src/Google/Api/Ads/Dfp/v201403/AdRuleService.php new file mode 100755 index 000000000..fa1164596 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/AdRuleService.php @@ -0,0 +1,6909 @@ + "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 v201403 + */ +class AdRule { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdRulePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BaseAdRuleSlot { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StandardPoddingAdRuleSlot extends BaseAdRuleSlot { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdUnitTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TechnologyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BandwidthGroupTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BrowserLanguageTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BrowserTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("ContentMetadataKeyHierarchyTargeting", FALSE)) { +/** + * Represents one or more {@link CustomTargetingValue custom targeting values} from different + * {@link CustomTargetingKey custom targeting keys} ANDed together. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ContentMetadataKeyHierarchyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("ContentMetadataTargetingError", FALSE)) { +/** + * Lists all errors related to {@link ContentMetadataTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ContentMetadataTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "ContentMetadataTargetingError"; + + /** + * @access public + * @var tnsContentMetadataTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $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 v201403 + */ +class ContentTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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; + } + +}} + +if (!class_exists("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CustomTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DayPart { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DayPartTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeactivateAdRules extends AdRuleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeleteAdRules extends AdRuleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeviceCapabilityTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeviceCategoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeviceManufacturerTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GeoTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InventoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InventoryTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("MobileCarrierTargeting", FALSE)) { +/** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class MobileCarrierTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class MobileDeviceSubmodelTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class MobileDeviceTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OperatingSystemTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OperatingSystemVersionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PoddingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Targeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TimeOfDay { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UnknownAdRuleSlot extends BaseAdRuleSlot { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UserDomainTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class VideoPosition { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class VideoPositionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class VideoPositionWithinPod { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class VideoPositionTarget { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdRuleDateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdRuleFrequencyCapErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdRulePriorityErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdRuleSlotBehavior { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdRuleSlotBumper { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdRuleSlotErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdRuleStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("ContentMetadataTargetingErrorReason", FALSE)) { +/** + * The reasons for the metadata targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ContentMetadataTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "ContentMetadataTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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 v201403 + */ +class CustomCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCriteriaSetLogicalOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AudienceSegmentCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DayOfWeek { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeliveryTimeZone { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FrequencyCapBehavior { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InventoryTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class MidrollFrequencyType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class MinuteOfHour { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PoddingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StartDateTimeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class VideoBumperType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class VideoPositionType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class CreateAdRules { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreateAdRulesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetAdRulesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetAdRulesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformAdRuleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformAdRuleActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class UpdateAdRules { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateAdRulesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ActivateAdRules extends AdRuleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdRuleDateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdRuleFrequencyCapError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NoPoddingAdRuleSlot extends BaseAdRuleSlot { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OptimizedPoddingAdRuleSlot extends BaseAdRuleSlot { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdRulePriorityError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdRuleSlotError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BandwidthGroup extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Browser extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BrowserLanguage extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class CustomCriteriaSet extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCriteriaLeaf extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AudienceSegmentCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeviceCapability extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeviceCategory extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeviceManufacturer extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class MobileCarrier extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class MobileDevice extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class MobileDeviceSubmodel extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OperatingSystem extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OperatingSystemVersion extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdRuleService extends DfpSoapClient { + + const SERVICE_NAME = "AdRuleService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/AdRuleService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "CommonError" => "CommonError", + "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", + "ContentMetadataTargetingError" => "ContentMetadataTargetingError", + "ContentTargeting" => "ContentTargeting", + "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", + "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", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "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", + "ContentMetadataTargetingError.Reason" => "ContentMetadataTargetingErrorReason", + "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", + "createAdRules" => "CreateAdRules", + "createAdRulesResponse" => "CreateAdRulesResponse", + "getAdRulesByStatement" => "GetAdRulesByStatement", + "getAdRulesByStatementResponse" => "GetAdRulesByStatementResponse", + "performAdRuleAction" => "PerformAdRuleAction", + "performAdRuleActionResponse" => "PerformAdRuleActionResponse", + "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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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; + } + /** + * 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 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/AudienceSegmentService.php b/src/Google/Api/Ads/Dfp/v201403/AudienceSegmentService.php new file mode 100755 index 000000000..e4da987fa --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/AudienceSegmentService.php @@ -0,0 +1,4133 @@ +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 v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AudienceSegmentDataProvider { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AudienceSegmentPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InventoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Money { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FirstPartyAudienceSegmentRule { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AudienceSegmentAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AudienceSegment { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 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. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SharedAudienceSegment extends AudienceSegment { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCriteriaSetLogicalOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AudienceSegmentCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ThirdPartyAudienceSegmentAudienceSegmentApprovalStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AudienceSegmentAudienceSegmentType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AudienceSegmentStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 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 + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreateAudienceSegments { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreateAudienceSegmentsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetAudienceSegmentsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetAudienceSegmentsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformAudienceSegmentAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformAudienceSegmentActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateAudienceSegments { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateAudienceSegmentsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ActivateAudienceSegments extends AudienceSegmentAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApproveAudienceSegments extends AudienceSegmentAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FirstPartyAudienceSegment extends AudienceSegment { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCriteriaSet extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCriteriaLeaf extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AudienceSegmentCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeactivateAudienceSegments extends AudienceSegmentAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ThirdPartyAudienceSegment extends AudienceSegment { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NonRuleBasedFirstPartyAudienceSegment extends FirstPartyAudienceSegment { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PopulateAudienceSegments extends AudienceSegmentAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RejectAudienceSegments extends AudienceSegmentAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RuleBasedFirstPartyAudienceSegmentSummary extends FirstPartyAudienceSegment { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RuleBasedFirstPartyAudienceSegment extends RuleBasedFirstPartyAudienceSegmentSummary { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AudienceSegmentService extends DfpSoapClient { + + const SERVICE_NAME = "AudienceSegmentService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/AudienceSegmentService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "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", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/BaseRateService.php b/src/Google/Api/Ads/Dfp/v201403/BaseRateService.php new file mode 100755 index 000000000..d7e32a103 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/BaseRateService.php @@ -0,0 +1,3423 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BaseRateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BaseRateActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BaseRate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BaseRateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BaseRatePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeactivateBaseRates extends BaseRateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Money { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProductBaseRate extends BaseRate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "ProductBaseRate"; + + /** + * @access public + * @var string + */ + 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 v201403 + */ +class ProductTemplateBaseRate extends BaseRate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("UnknownBaseRate", FALSE)) { +/** + * The {@link BaseRate} returned if the actual base rate type is not exposed by + * the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class UnknownBaseRate extends BaseRate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "UnknownBaseRate"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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) { + parent::__construct(); + $this->rateCardId = $rateCardId; + $this->id = $id; + $this->status = $status; + $this->BaseRateType = $BaseRateType; + } + +}} + +if (!class_exists("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BaseRateActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BaseRateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BaseRateStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class CreateBaseRates { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreateBaseRatesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetBaseRatesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetBaseRatesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformBaseRateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformBaseRateActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("UpdateBaseRates", FALSE)) { +/** + * Updates the specified {@link BaseRate} objects. + * + * @param baseRates the base rates to be updated + * @return the updated base rates + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class UpdateBaseRates { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateBaseRatesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ActivateBaseRates extends BaseRateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BaseRateService extends DfpSoapClient { + + const SERVICE_NAME = "BaseRateService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/BaseRateService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "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", + "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", + "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", + "createBaseRates" => "CreateBaseRates", + "createBaseRatesResponse" => "CreateBaseRatesResponse", + "getBaseRatesByStatement" => "GetBaseRatesByStatement", + "getBaseRatesByStatementResponse" => "GetBaseRatesByStatementResponse", + "performBaseRateAction" => "PerformBaseRateAction", + "performBaseRateActionResponse" => "PerformBaseRateActionResponse", + "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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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; + } + /** + * 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 status}{@link BaseRate#status}
      {@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} 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/CompanyService.php b/src/Google/Api/Ads/Dfp/v201403/CompanyService.php new file mode 100755 index 000000000..575814bb9 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/CompanyService.php @@ -0,0 +1,3387 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CompanyCreditStatusError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Company { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CompanyError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CompanyPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InvalidEmailError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CompanyCreditStatusErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CompanyCreditStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CompanyType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CompanyErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InvalidEmailErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreateCompanies { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreateCompaniesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 status}{@link BaseRate#status}
      {@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 v201403 + */ +class GetCompaniesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetCompaniesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("UpdateCompanies", FALSE)) { +/** + * Updates the specified {@link Company} objects. + * + * @param companies the companies to update + * @return the updated companies + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class UpdateCompanies { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateCompaniesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CompanyService extends DfpSoapClient { + + const SERVICE_NAME = "CompanyService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/CompanyService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "Company" => "Company", + "CompanyError" => "CompanyError", + "CompanyPage" => "CompanyPage", + "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", + "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", + "getCompaniesByStatement" => "GetCompaniesByStatement", + "getCompaniesByStatementResponse" => "GetCompaniesByStatementResponse", + "updateCompanies" => "UpdateCompanies", + "updateCompaniesResponse" => "UpdateCompaniesResponse", + ); + + + /** + * 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=null, $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; + } + /** + * 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; + } + /** + * 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/ContactService.php b/src/Google/Api/Ads/Dfp/v201403/ContactService.php new file mode 100755 index 000000000..457c30825 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/ContactService.php @@ -0,0 +1,3032 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ContactError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ContactPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BaseContact { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InvalidEmailError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ContactStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ContactErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InvalidEmailErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class CreateContacts { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreateContactsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetContactsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetContactsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("UpdateContacts", FALSE)) { +/** + * Updates the specified {@link Contact} objects. + * + * @param contacts the contacts to update + * @return the updated contacts + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class UpdateContacts { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateContactsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Contact extends BaseContact { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ContactService extends DfpSoapClient { + + const SERVICE_NAME = "ContactService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/ContactService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "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", + "createContacts" => "CreateContacts", + "createContactsResponse" => "CreateContactsResponse", + "getContactsByStatement" => "GetContactsByStatement", + "getContactsByStatementResponse" => "GetContactsByStatementResponse", + "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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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; + } + /** + * 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} 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/ContentBundleService.php b/src/Google/Api/Ads/Dfp/v201403/ContentBundleService.php new file mode 100755 index 000000000..059b28bf8 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/ContentBundleService.php @@ -0,0 +1,3068 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ContentBundleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ContentBundle { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ContentBundlePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeactivateContentBundles extends ContentBundleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ExcludeContentFromContentBundle extends ContentBundleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class IncludeContentInContentBundle extends ContentBundleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PlacementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ContentBundleStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PlacementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class CreateContentBundles { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreateContentBundlesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetContentBundlesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetContentBundlesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformContentBundleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformContentBundleActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("UpdateContentBundles", FALSE)) { +/** + * Updates the specified {@link ContentBundle} objects. + * + * @param contentBundles the content bundles to update + * @return the updated content bundles + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class UpdateContentBundles { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateContentBundlesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ActivateContentBundles extends ContentBundleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ContentBundleService extends DfpSoapClient { + + const SERVICE_NAME = "ContentBundleService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/ContentBundleService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "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", + "createContentBundles" => "CreateContentBundles", + "createContentBundlesResponse" => "CreateContentBundlesResponse", + "getContentBundlesByStatement" => "GetContentBundlesByStatement", + "getContentBundlesByStatementResponse" => "GetContentBundlesByStatementResponse", + "performContentBundleAction" => "PerformContentBundleAction", + "performContentBundleActionResponse" => "PerformContentBundleActionResponse", + "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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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; + } + /** + * 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} 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/ContentMetadataKeyHierarchyService.php b/src/Google/Api/Ads/Dfp/v201403/ContentMetadataKeyHierarchyService.php new file mode 100755 index 000000000..bfdd86324 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/ContentMetadataKeyHierarchyService.php @@ -0,0 +1,3289 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("ContentMetadataKeyHierarchyAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link ContentMetadataKeyHierarchy} objects. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ContentMetadataKeyHierarchyAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "ContentMetadataKeyHierarchyAction"; + + /** + * @access public + * @var string + */ + public $ContentMetadataKeyHierarchyActionType; + private $_parameterMap = array( + "ContentMetadataKeyHierarchyAction.Type" => "ContentMetadataKeyHierarchyActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { + $this->{$this->_parameterMap[$var]} = $value; + } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get + * @return mixed Variable value + */ + public function __get($var) { + if (!isset($this->_parameterMap[$var])) { + return null; + } + return $this->{$this->_parameterMap[$var]}; + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($ContentMetadataKeyHierarchyActionType = null) { + $this->ContentMetadataKeyHierarchyActionType = $ContentMetadataKeyHierarchyActionType; + } + +}} + +if (!class_exists("ContentMetadataKeyHierarchy", FALSE)) { +/** + * A {@code ContentMetadataKeyHierarchy} defines a hierarchical relationship between content + * metadata keys. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ContentMetadataKeyHierarchy { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "ContentMetadataKeyHierarchy"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var ContentMetadataKeyHierarchyLevel[] + */ + public $hierarchyLevels; + + /** + * @access public + * @var tnsContentMetadataKeyHierarchyStatus + */ + 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, $hierarchyLevels = null, $status = null) { + $this->id = $id; + $this->name = $name; + $this->hierarchyLevels = $hierarchyLevels; + $this->status = $status; + } + +}} + +if (!class_exists("ContentMetadataKeyHierarchyError", FALSE)) { +/** + * Lists all errors associated with content hierarchies. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ContentMetadataKeyHierarchyError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "ContentMetadataKeyHierarchyError"; + + /** + * @access public + * @var tnsContentMetadataKeyHierarchyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + +}} + +if (!class_exists("ContentMetadataKeyHierarchyLevel", FALSE)) { +/** + * A {@code ContentMetadataKeyHierarchyLevel} represents one level in a + * {@link ContentMetadataKeyHierarchy}. The level consists of a {@link CustomTargetingKey} + * and an integer that represents the level's position in the hierarchy. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ContentMetadataKeyHierarchyLevel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "ContentMetadataKeyHierarchyLevel"; + + /** + * @access public + * @var integer + */ + public $customTargetingKeyId; + + /** + * @access public + * @var integer + */ + public $hierarchyLevel; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $hierarchyLevel = null) { + $this->customTargetingKeyId = $customTargetingKeyId; + $this->hierarchyLevel = $hierarchyLevel; + } + +}} + +if (!class_exists("ContentMetadataKeyHierarchyPage", FALSE)) { +/** + * Captures a page of {@link ContentMetadataKeyHierarchy} objects. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ContentMetadataKeyHierarchyPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "ContentMetadataKeyHierarchyPage"; + + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var ContentMetadataKeyHierarchy[] + */ + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("DeleteContentMetadataKeyHierarchies", FALSE)) { +/** + * The action used for deleting {@link ContentMetadataKeyHierarchy} objects. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class DeleteContentMetadataKeyHierarchies extends ContentMetadataKeyHierarchyAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "DeleteContentMetadataKeyHierarchies"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($ContentMetadataKeyHierarchyActionType = null) { + parent::__construct(); + $this->ContentMetadataKeyHierarchyActionType = $ContentMetadataKeyHierarchyActionType; + } + +}} + +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 v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("ContentMetadataKeyHierarchyErrorReason", FALSE)) { +/** + * The reasons for the {@link ContentMetadataKeyHierarchyError}. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ContentMetadataKeyHierarchyErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "ContentMetadataKeyHierarchyError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + +}} + +if (!class_exists("ContentMetadataKeyHierarchyStatus", FALSE)) { +/** + * Represents the status of a {@link ContentMetadataKeyHierarchy}. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ContentMetadataKeyHierarchyStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class CreateContentMetadataKeyHierarchies { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreateContentMetadataKeyHierarchiesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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} + * objects that satisfy the given {@link Statement#query}. The following fields are supported + * for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ContentMetadataKeyHierarchy#id}
      {@code name}{@link ContentMetadataKeyHierarchy#name}
      {@code status}{@link ContentMetadataKeyHierarchy#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter a set of + * content metadata key hierarchies + * @return the content metadata key hierarchies 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 v201403 + */ +class GetContentMetadataKeyHierarchiesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("GetContentMetadataKeyHierarchiesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class GetContentMetadataKeyHierarchiesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ContentMetadataKeyHierarchyPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + +}} + +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 v201403 + */ +class PerformContentMetadataKeyHierarchyAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformContentMetadataKeyHierarchyActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateContentMetadataKeyHierarchies { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateContentMetadataKeyHierarchiesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("ActivateContentMetadataKeyHierarchies", FALSE)) { +/** + * The action used for activating {@link ContentMetadataKeyHierarchy} objects. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ActivateContentMetadataKeyHierarchies extends ContentMetadataKeyHierarchyAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "ActivateContentMetadataKeyHierarchies"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($ContentMetadataKeyHierarchyActionType = null) { + parent::__construct(); + $this->ContentMetadataKeyHierarchyActionType = $ContentMetadataKeyHierarchyActionType; + } + +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("ContentMetadataKeyHierarchyService", FALSE)) { +/** + * ContentMetadataKeyHierarchyService + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ContentMetadataKeyHierarchyService extends DfpSoapClient { + + const SERVICE_NAME = "ContentMetadataKeyHierarchyService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/ContentMetadataKeyHierarchyService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/ContentMetadataKeyHierarchyService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ActivateContentMetadataKeyHierarchies" => "ActivateContentMetadataKeyHierarchies", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "CommonError" => "CommonError", + "ContentMetadataKeyHierarchyAction" => "ContentMetadataKeyHierarchyAction", + "ContentMetadataKeyHierarchy" => "ContentMetadataKeyHierarchy", + "ContentMetadataKeyHierarchyError" => "ContentMetadataKeyHierarchyError", + "ContentMetadataKeyHierarchyLevel" => "ContentMetadataKeyHierarchyLevel", + "ContentMetadataKeyHierarchyPage" => "ContentMetadataKeyHierarchyPage", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeleteContentMetadataKeyHierarchies" => "DeleteContentMetadataKeyHierarchies", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "OAuth" => "DfpOAuth", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredCollectionError" => "RequiredCollectionError", + "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", + "UpdateResult" => "UpdateResult", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "ContentMetadataKeyHierarchyError.Reason" => "ContentMetadataKeyHierarchyErrorReason", + "ContentMetadataKeyHierarchyStatus" => "ContentMetadataKeyHierarchyStatus", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "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", + "createContentMetadataKeyHierarchies" => "CreateContentMetadataKeyHierarchies", + "createContentMetadataKeyHierarchiesResponse" => "CreateContentMetadataKeyHierarchiesResponse", + "getContentMetadataKeyHierarchiesByStatement" => "GetContentMetadataKeyHierarchiesByStatement", + "getContentMetadataKeyHierarchiesByStatementResponse" => "GetContentMetadataKeyHierarchiesByStatementResponse", + "performContentMetadataKeyHierarchyAction" => "PerformContentMetadataKeyHierarchyAction", + "performContentMetadataKeyHierarchyActionResponse" => "PerformContentMetadataKeyHierarchyActionResponse", + "updateContentMetadataKeyHierarchies" => "UpdateContentMetadataKeyHierarchies", + "updateContentMetadataKeyHierarchiesResponse" => "UpdateContentMetadataKeyHierarchiesResponse", + ); + + + /** + * 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=null, $options, $user) { + $options["classmap"] = self::$classmap; + 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 + * for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ContentMetadataKeyHierarchy#id}
      {@code name}{@link ContentMetadataKeyHierarchy#name}
      {@code status}{@link ContentMetadataKeyHierarchy#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter a set of + * content metadata key hierarchies + * @return the content metadata key hierarchies 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 getContentMetadataKeyHierarchiesByStatement($filterStatement) { + $args = new 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/ContentService.php b/src/Google/Api/Ads/Dfp/v201403/ContentService.php new file mode 100755 index 000000000..49c0dc4f4 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/ContentService.php @@ -0,0 +1,3024 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CmsContent", FALSE)) { +/** + * Contains information about {@link Content} from the CMS it was ingested from. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CmsContent { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Content { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ContentPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ContentPartnerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ContentPartnerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ContentStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ContentStatusDefinedBy { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetContentByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetContentByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetContentByStatementAndCustomTargetingValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetContentByStatementAndCustomTargetingValueResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ContentService extends DfpSoapClient { + + const SERVICE_NAME = "ContentService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/ContentService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/CreativeService.php b/src/Google/Api/Ads/Dfp/v201403/CreativeService.php new file mode 100755 index 000000000..93c4792ed --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/CreativeService.php @@ -0,0 +1,7856 @@ + "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 v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AssetCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Asset { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AssetError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ConversionEvent_TrackingUrlsMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeAsset { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCreativeAsset { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeAssetMacroError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeSetError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 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 + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FileError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class HasDestinationUrlCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 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 + * are generally not the result of an invalid request or message sent by the + * client. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalRedirectCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LegacyDfpCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemCreativeAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LongCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RedirectAsset extends Asset { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RichMediaStudioChildAssetProperty { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RichMediaStudioCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SwiffyConversionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SwiffyFallbackAsset { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TemplateCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TemplateInstantiatedCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ThirdPartyCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TrackingUrls { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UnsupportedCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UrlCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class VastRedirectCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class VideoRedirectAsset extends RedirectAsset { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class VpaidLinearCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class VpaidLinearRedirectCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiFramework { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AssetErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ConversionEvent { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeAssetMacroErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeSetErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FileErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Html5Feature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ImageDensity { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 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. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemCreativeAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RichMediaStudioChildAssetPropertyType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RichMediaStudioCreativeArtworkType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RichMediaStudioCreativeBillingAttribute { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RichMediaStudioCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RichMediaStudioCreativeFormat { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SwiffyConversionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TemplateInstantiatedCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class VastRedirectType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class CreateCreatives { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreateCreativesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetCreativesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetCreativesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("UpdateCreatives", FALSE)) { +/** + * Updates the specified {@link Creative} objects. + * + * @param creatives the creatives to update + * @return the updated creatives + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class UpdateCreatives { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateCreativesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BaseDynamicAllocationCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("AdMobBackfillCreative", FALSE)) { +/** + * An AdMob backfill creative. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class AdMobBackfillCreative extends BaseDynamicAllocationCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "AdMobBackfillCreative"; + + /** + * @access public + * @var string + */ + public $additionalParameters; + + /** + * @access public + * @var string + */ + public $publisherId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($additionalParameters = null, $publisherId = null) { + parent::__construct(); + $this->additionalParameters = $additionalParameters; + $this->publisherId = $publisherId; + } + +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AspectRatioImageCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BaseFlashCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BaseFlashRedirectCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BaseImageCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BaseImageRedirectCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BaseRichMediaStudioCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BaseVideoCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ClickTrackingCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LegacyDfpMobileCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FlashCreative extends BaseFlashCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FlashOverlayCreative extends BaseFlashCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FlashRedirectCreative extends BaseFlashRedirectCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FlashRedirectOverlayCreative extends BaseFlashRedirectCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class HasHtmlSnippetDynamicAllocationCreative extends BaseDynamicAllocationCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ImageCreative extends BaseImageCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ImageOverlayCreative extends BaseImageCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ImageRedirectCreative extends BaseImageRedirectCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ImageRedirectOverlayCreative extends BaseImageRedirectCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RichMediaStudioCreative extends BaseRichMediaStudioCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class VideoCreative extends BaseVideoCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class VideoRedirectCreative extends BaseVideoCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdExchangeCreative extends HasHtmlSnippetDynamicAllocationCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdSenseCreative extends HasHtmlSnippetDynamicAllocationCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeService extends DfpSoapClient { + + const SERVICE_NAME = "CreativeService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/CreativeService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/CreativeService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "BaseDynamicAllocationCreative" => "BaseDynamicAllocationCreative", + "BaseCreativeTemplateVariableValue" => "BaseCreativeTemplateVariableValue", + "AdExchangeCreative" => "AdExchangeCreative", + "AdMobBackfillCreative" => "AdMobBackfillCreative", + "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", + "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", + "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", + "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", + "SetValue" => "SetValue", + "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", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "Html5Feature" => "Html5Feature", + "ImageDensity" => "ImageDensity", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "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", + "createCreatives" => "CreateCreatives", + "createCreativesResponse" => "CreateCreativesResponse", + "getCreativesByStatement" => "GetCreativesByStatement", + "getCreativesByStatementResponse" => "GetCreativesByStatementResponse", + "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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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; + } + /** + * 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} 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/CreativeSetService.php b/src/Google/Api/Ads/Dfp/v201403/CreativeSetService.php new file mode 100755 index 000000000..f6e24c5d9 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/CreativeSetService.php @@ -0,0 +1,4160 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AssetError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeAssetMacroError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeSet { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeSetError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeSetPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 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 + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FileError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 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 + * are generally not the result of an invalid request or message sent by the + * client. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RichMediaStudioCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SwiffyConversionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TemplateInstantiatedCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AssetErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeAssetMacroErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeSetErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FileErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 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. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RichMediaStudioCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SwiffyConversionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TemplateInstantiatedCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreateCreativeSet { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreateCreativeSetResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetCreativeSetsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetCreativeSetsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateCreativeSet { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateCreativeSetResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeSetService extends DfpSoapClient { + + const SERVICE_NAME = "CreativeSetService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/CreativeSetService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "CommonError" => "CommonError", + "CreativeAssetMacroError" => "CreativeAssetMacroError", + "CreativeError" => "CreativeError", + "CreativeSet" => "CreativeSet", + "CreativeSetError" => "CreativeSetError", + "CreativeSetPage" => "CreativeSetPage", + "CustomCreativeError" => "CustomCreativeError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "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", + "SetValue" => "SetValue", + "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", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "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", + "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=null, $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; + } + /** + * 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/CreativeTemplateService.php b/src/Google/Api/Ads/Dfp/v201403/CreativeTemplateService.php new file mode 100755 index 000000000..c52c33bc7 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/CreativeTemplateService.php @@ -0,0 +1,3479 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeTemplate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 string + */ + public $snippet; + + /** + * @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, $snippet = null, $status = null, $type = null, $isInterstitial = 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; + } + +}} + +if (!class_exists("CreativeTemplateError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with CreativeTemplate. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CreativeTemplateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ListStringCreativeTemplateVariableVariableChoice { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeTemplatePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AssetCreativeTemplateVariableMimeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeTemplateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeTemplateStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeTemplateType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class GetCreativeTemplatesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetCreativeTemplatesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AssetCreativeTemplateVariable extends CreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LongCreativeTemplateVariable extends CreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringCreativeTemplateVariable extends CreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UrlCreativeTemplateVariable extends CreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ListStringCreativeTemplateVariable extends StringCreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeTemplateService extends DfpSoapClient { + + const SERVICE_NAME = "CreativeTemplateService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/CreativeTemplateService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "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", + "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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/CreativeWrapperService.php b/src/Google/Api/Ads/Dfp/v201403/CreativeWrapperService.php new file mode 100755 index 000000000..6a16f47d1 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/CreativeWrapperService.php @@ -0,0 +1,3459 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeWrapperAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeWrapper { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeWrapperError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeWrapperPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeactivateCreativeWrappers extends CreativeWrapperAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeWrapperHtmlSnippet { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LabelError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeWrapperErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeWrapperOrdering { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeWrapperStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LabelErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class CreateCreativeWrappers { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreateCreativeWrappersResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetCreativeWrappersByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetCreativeWrappersByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformCreativeWrapperAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformCreativeWrapperActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class UpdateCreativeWrappers { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateCreativeWrappersResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ActivateCreativeWrappers extends CreativeWrapperAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeWrapperService extends DfpSoapClient { + + const SERVICE_NAME = "CreativeWrapperService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/CreativeWrapperService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "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", + "createCreativeWrappers" => "CreateCreativeWrappers", + "createCreativeWrappersResponse" => "CreateCreativeWrappersResponse", + "getCreativeWrappersByStatement" => "GetCreativeWrappersByStatement", + "getCreativeWrappersByStatementResponse" => "GetCreativeWrappersByStatementResponse", + "performCreativeWrapperAction" => "PerformCreativeWrapperAction", + "performCreativeWrapperActionResponse" => "PerformCreativeWrapperActionResponse", + "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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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; + } + /** + * 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} 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/CustomFieldService.php b/src/Google/Api/Ads/Dfp/v201403/CustomFieldService.php new file mode 100755 index 000000000..933dfa5f5 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/CustomFieldService.php @@ -0,0 +1,3775 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomFieldAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomField { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomFieldError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomFieldOption { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomFieldPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeactivateCustomFields extends CustomFieldAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DropDownCustomField extends CustomField { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 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 + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomFieldDataType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomFieldEntityType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomFieldErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomFieldVisibility { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class CreateCustomFieldOptions { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreateCustomFieldOptionsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreateCustomFields { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreateCustomFieldsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetCustomFieldOption { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetCustomFieldOptionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetCustomFieldsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetCustomFieldsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformCustomFieldAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformCustomFieldActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class UpdateCustomFieldOptions { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateCustomFieldOptionsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateCustomFields { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateCustomFieldsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ActivateCustomFields extends CustomFieldAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomFieldService extends DfpSoapClient { + + const SERVICE_NAME = "CustomFieldService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/CustomFieldService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "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", + "createCustomFieldOptions" => "CreateCustomFieldOptions", + "createCustomFieldOptionsResponse" => "CreateCustomFieldOptionsResponse", + "createCustomFields" => "CreateCustomFields", + "createCustomFieldsResponse" => "CreateCustomFieldsResponse", + "getCustomFieldOption" => "GetCustomFieldOption", + "getCustomFieldOptionResponse" => "GetCustomFieldOptionResponse", + "getCustomFieldsByStatement" => "GetCustomFieldsByStatement", + "getCustomFieldsByStatementResponse" => "GetCustomFieldsByStatementResponse", + "performCustomFieldAction" => "PerformCustomFieldAction", + "performCustomFieldActionResponse" => "PerformCustomFieldActionResponse", + "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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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 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 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/CustomTargetingService.php b/src/Google/Api/Ads/Dfp/v201403/CustomTargetingService.php new file mode 100755 index 000000000..725fa9d2b --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/CustomTargetingService.php @@ -0,0 +1,3936 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomTargetingKeyAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomTargetingKey { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomTargetingKeyPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomTargetingValueAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomTargetingValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomTargetingValuePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeleteCustomTargetingKeys extends CustomTargetingKeyAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeleteCustomTargetingValues extends CustomTargetingValueAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomTargetingKeyType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomTargetingValueMatchType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreateCustomTargetingKeys { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreateCustomTargetingKeysResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreateCustomTargetingValues { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreateCustomTargetingValuesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetCustomTargetingKeysByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetCustomTargetingKeysByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetCustomTargetingValuesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetCustomTargetingValuesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformCustomTargetingKeyAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformCustomTargetingKeyActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformCustomTargetingValueAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformCustomTargetingValueActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateCustomTargetingKeys { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateCustomTargetingKeysResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateCustomTargetingValues { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateCustomTargetingValuesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomTargetingService extends DfpSoapClient { + + const SERVICE_NAME = "CustomTargetingService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/CustomTargetingService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/ExchangeRateService.php b/src/Google/Api/Ads/Dfp/v201403/ExchangeRateService.php new file mode 100755 index 000000000..a124ed374 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/ExchangeRateService.php @@ -0,0 +1,3072 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("ExchangeRateAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link ExchangeRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ExchangeRateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($ExchangeRateActionType = null) { + $this->ExchangeRateActionType = $ExchangeRateActionType; + } + +}} + +if (!class_exists("ExchangeRate", FALSE)) { +/** + * An {@code ExchangeRate} represents a currency which is one of the + * {@link Network#secondaryCurrencyCodes}, and the latest exchange rate between this currency and + * {@link Network#currencyCode}. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ExchangeRate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "ExchangeRate"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var tnsExchangeRateRefreshRate + */ + public $refreshRate; + + /** + * @access public + * @var tnsExchangeRateDirection + */ + public $direction; + + /** + * @access public + * @var integer + */ + public $exchangeRate; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $currencyCode = null, $refreshRate = null, $direction = null, $exchangeRate = null) { + $this->id = $id; + $this->currencyCode = $currencyCode; + $this->refreshRate = $refreshRate; + $this->direction = $direction; + $this->exchangeRate = $exchangeRate; + } + +}} + +if (!class_exists("ExchangeRateError", FALSE)) { +/** + * Lists all errors associated with {@link ExchangeRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ExchangeRateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("ExchangeRatePage", FALSE)) { +/** + * Captures a page of {@link ExchangeRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ExchangeRatePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "ExchangeRatePage"; + + /** + * @access public + * @var ExchangeRate[] + */ + 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("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 v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("ExchangeRateDirection", FALSE)) { +/** + * Determines which direction (from which currency to which currency) the exchange rate is in. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ExchangeRateDirection { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "ExchangeRateDirection"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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 v201403 + */ +class ExchangeRateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("ExchangeRateRefreshRate", FALSE)) { +/** + * Determines at which rate the exchange rate is refreshed. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ExchangeRateRefreshRate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "ExchangeRateRefreshRate"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CreateExchangeRates", FALSE)) { +/** + * Creates new {@link ExchangeRate} objects. + * + * For each exchange rate, the following fields are required: + *
        + *
      • {@link ExchangeRate#currencyCode}
      • + *
      • {@link ExchangeRate#exchangeRate} when {@link ExchangeRate#refreshRate} is + * {@link ExchangeRateRefreshRate#FIXED}
      • + *
      + * + * @param exchangeRates the exchange rates to create + * @return the created exchange rates with their exchange rate values filled in + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CreateExchangeRates { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ExchangeRate[] + */ + public $exchangeRates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($exchangeRates = null) { + $this->exchangeRates = $exchangeRates; + } + +}} + +if (!class_exists("CreateExchangeRatesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CreateExchangeRatesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ExchangeRate#id}
      {@code currencyCode}{@link ExchangeRate#currencyCode}
      {@code refreshRate}{@link ExchangeRate#refreshRate}
      {@code direction}{@link ExchangeRate#direction}
      {@code exchangeRate}{@link ExchangeRate#exchangeRate}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of exchange rates + * @return the exchange rates that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class GetExchangeRatesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("GetExchangeRatesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class GetExchangeRatesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ExchangeRatePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + +}} + +if (!class_exists("PerformExchangeRateAction", FALSE)) { +/** + * Performs an action on {@link ExchangeRate} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ExchangeRate#id}
      {@code currencyCode}{@link ExchangeRate#currencyCode}
      {@code refreshRate}{@link ExchangeRate#refreshRate}
      {@code direction}{@link ExchangeRate#direction}
      {@code exchangeRate}{@link ExchangeRate#exchangeRate}
      + * + * @param exchangeRateAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of exchange rates + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class PerformExchangeRateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ExchangeRateAction + */ + public $exchangeRateAction; + + /** + * @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($exchangeRateAction = null, $filterStatement = null) { + $this->exchangeRateAction = $exchangeRateAction; + $this->filterStatement = $filterStatement; + } + +}} + +if (!class_exists("PerformExchangeRateActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class PerformExchangeRateActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("UpdateExchangeRates", FALSE)) { +/** + * Updates the specified {@link ExchangeRate} objects. + * + * @param exchangeRates the exchange rates to update + * @return the updated exchange rates + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class UpdateExchangeRates { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ExchangeRate[] + */ + public $exchangeRates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($exchangeRates = null) { + $this->exchangeRates = $exchangeRates; + } + +}} + +if (!class_exists("UpdateExchangeRatesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class UpdateExchangeRatesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("DeleteExchangeRates", FALSE)) { +/** + * The action used to delete {@link ExchangeRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class DeleteExchangeRates extends ExchangeRateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "DeleteExchangeRates"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($ExchangeRateActionType = null) { + parent::__construct(); + $this->ExchangeRateActionType = $ExchangeRateActionType; + } + +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("ExchangeRateService", FALSE)) { +/** + * ExchangeRateService + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ExchangeRateService extends DfpSoapClient { + + const SERVICE_NAME = "ExchangeRateService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/ExchangeRateService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/ExchangeRateService"; + /** + * 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", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeleteExchangeRates" => "DeleteExchangeRates", + "ExchangeRateAction" => "ExchangeRateAction", + "ExchangeRate" => "ExchangeRate", + "ExchangeRateError" => "ExchangeRateError", + "ExchangeRatePage" => "ExchangeRatePage", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "OAuth" => "DfpOAuth", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredNumberError" => "RequiredNumberError", + "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", + "ExchangeRateDirection" => "ExchangeRateDirection", + "ExchangeRateError.Reason" => "ExchangeRateErrorReason", + "ExchangeRateRefreshRate" => "ExchangeRateRefreshRate", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "createExchangeRates" => "CreateExchangeRates", + "createExchangeRatesResponse" => "CreateExchangeRatesResponse", + "getExchangeRatesByStatement" => "GetExchangeRatesByStatement", + "getExchangeRatesByStatementResponse" => "GetExchangeRatesByStatementResponse", + "performExchangeRateAction" => "PerformExchangeRateAction", + "performExchangeRateActionResponse" => "PerformExchangeRateActionResponse", + "updateExchangeRates" => "UpdateExchangeRates", + "updateExchangeRatesResponse" => "UpdateExchangeRatesResponse", + ); + + + /** + * 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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * Creates new {@link ExchangeRate} objects. + * + * For each exchange rate, the following fields are required: + *
        + *
      • {@link ExchangeRate#currencyCode}
      • + *
      • {@link ExchangeRate#exchangeRate} when {@link ExchangeRate#refreshRate} is + * {@link ExchangeRateRefreshRate#FIXED}
      • + *
      + * + * @param exchangeRates the exchange rates to create + * @return the created exchange rates with their exchange rate values filled in + */ + public function createExchangeRates($exchangeRates) { + $args = new CreateExchangeRates($exchangeRates); + $result = $this->__soapCall("createExchangeRates", 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: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ExchangeRate#id}
      {@code currencyCode}{@link ExchangeRate#currencyCode}
      {@code refreshRate}{@link ExchangeRate#refreshRate}
      {@code direction}{@link ExchangeRate#direction}
      {@code exchangeRate}{@link ExchangeRate#exchangeRate}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of exchange rates + * @return the exchange rates that match the given filter + */ + public function getExchangeRatesByStatement($filterStatement) { + $args = new GetExchangeRatesByStatement($filterStatement); + $result = $this->__soapCall("getExchangeRatesByStatement", array($args)); + return $result->rval; + } + /** + * Performs an action on {@link ExchangeRate} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ExchangeRate#id}
      {@code currencyCode}{@link ExchangeRate#currencyCode}
      {@code refreshRate}{@link ExchangeRate#refreshRate}
      {@code direction}{@link ExchangeRate#direction}
      {@code exchangeRate}{@link ExchangeRate#exchangeRate}
      + * + * @param exchangeRateAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of exchange rates + * @return the result of the action performed + */ + public function performExchangeRateAction($exchangeRateAction, $filterStatement) { + $args = new PerformExchangeRateAction($exchangeRateAction, $filterStatement); + $result = $this->__soapCall("performExchangeRateAction", array($args)); + return $result->rval; + } + /** + * Updates the specified {@link ExchangeRate} objects. + * + * @param exchangeRates the exchange rates to update + * @return the updated exchange rates + */ + public function updateExchangeRates($exchangeRates) { + $args = new UpdateExchangeRates($exchangeRates); + $result = $this->__soapCall("updateExchangeRates", array($args)); + return $result->rval; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/ForecastService.php b/src/Google/Api/Ads/Dfp/v201403/ForecastService.php new file mode 100755 index 000000000..7fa84e07b --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/ForecastService.php @@ -0,0 +1,9617 @@ +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 v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TechnologyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AudienceExtensionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BandwidthGroupTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BrowserLanguageTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BrowserTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ClickTrackingLineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CompanyCreditStatusError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ContendingLineItem { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("ContentMetadataKeyHierarchyTargeting", FALSE)) { +/** + * Represents one or more {@link CustomTargetingValue custom targeting values} from different + * {@link CustomTargetingKey custom targeting keys} ANDed together. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ContentMetadataKeyHierarchyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("ContentMetadataTargetingError", FALSE)) { +/** + * Lists all errors related to {@link ContentMetadataTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ContentMetadataTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "ContentMetadataTargetingError"; + + /** + * @access public + * @var tnsContentMetadataTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $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 v201403 + */ +class ContentTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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; + } + +}} + +if (!class_exists("CreativeError", FALSE)) { +/** + * Lists all errors associated with creatives. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativePlaceholder { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomFieldValueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeRangeTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DayPart { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DayPartTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DayPartTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeliveryData { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeliveryIndicator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeviceCapabilityTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeviceCategoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeviceManufacturerTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 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 + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 overbook lower or equal + * priority line items. + *
      • Possible units -- How many units can be booked without affecting any + * higher priority line items. Booking more than this number can overbook + * higher priority line items. + *
      • Matched (forecast) units -- How many units satisfy all specified + * criteria. + *
      + * + *

      The term "can overbook" is used, because 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 v201403 + */ +class Forecast { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ForecastError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FrequencyCap { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FrequencyCapError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GenericTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GeoTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GeoTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InventoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InventoryTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InventoryUnitError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemCreativeAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemFlightDateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemOperationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemSummary { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 boolean + */ + public $isPrioritizedPreferredDealsEnabled; + + /** + * @access public + * @var integer + */ + public $adExchangeAuctionOpeningPriority; + + /** + * @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, $isPrioritizedPreferredDealsEnabled = null, $adExchangeAuctionOpeningPriority = 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->isPrioritizedPreferredDealsEnabled = $isPrioritizedPreferredDealsEnabled; + $this->adExchangeAuctionOpeningPriority = $adExchangeAuctionOpeningPriority; + $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 v201403 + */ +class DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("MobileCarrierTargeting", FALSE)) { +/** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class MobileCarrierTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class MobileDeviceSubmodelTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class MobileDeviceTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Money { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OperatingSystemTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OperatingSystemVersionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OrderError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RegExError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReservationDetailsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Stats { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Targeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TechnologyTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TimeOfDay { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UserDomainTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UserDomainTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class VideoPosition { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class VideoPositionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class VideoPositionWithinPod { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class VideoPositionTarget { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdUnitAfcSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdUnitCodeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AudienceExtensionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ClickTrackingLineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CompanionDeliveryOption { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CompanyCreditStatusErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ComputedStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("ContentMetadataTargetingErrorReason", FALSE)) { +/** + * The reasons for the metadata targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ContentMetadataTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "ContentMetadataTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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 v201403 + */ +class CostType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeRotationType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeSizeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCriteriaSetLogicalOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AudienceSegmentCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeRangeTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DayOfWeek { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DayPartTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeliveryTimeZone { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeliveryRateType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class EnvironmentType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ForecastErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FrequencyCapErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GenericTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GeoTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InventoryTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InventoryUnitErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemCreativeAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemDiscountType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemFlightDateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemOperationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemSummaryDuration { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemSummaryReservationStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class MinuteOfHour { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OrderErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativePersistenceType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RegExErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReservationDetailsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RoadblockingType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StartDateTimeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TargetPlatform { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TechnologyTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TimeUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UnitType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UserDomainTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class VideoBumperType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class VideoPositionType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetForecast { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetForecastResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetForecastById { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetForecastByIdResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdUnitAfcSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdUnitCodeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BandwidthGroup extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Browser extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BrowserLanguage extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class CustomCriteriaSet extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCriteriaLeaf extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AudienceSegmentCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeviceCapability extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeviceCategory extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeviceManufacturer extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItem extends LineItemSummary { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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, $isPrioritizedPreferredDealsEnabled = null, $adExchangeAuctionOpeningPriority = 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->isPrioritizedPreferredDealsEnabled = $isPrioritizedPreferredDealsEnabled; + $this->adExchangeAuctionOpeningPriority = $adExchangeAuctionOpeningPriority; + $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 v201403 + */ +class MobileCarrier extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class MobileDevice extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class MobileDeviceSubmodel extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OperatingSystem extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OperatingSystemVersion extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ForecastService extends DfpSoapClient { + + const SERVICE_NAME = "ForecastService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/ForecastService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "ContendingLineItem" => "ContendingLineItem", + "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", + "ContentMetadataTargetingError" => "ContentMetadataTargetingError", + "ContentTargeting" => "ContentTargeting", + "CreativeError" => "CreativeError", + "CreativePlaceholder" => "CreativePlaceholder", + "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", + "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", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RegExError" => "RegExError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "ReservationDetailsError" => "ReservationDetailsError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "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", + "ContentMetadataTargetingError.Reason" => "ContentMetadataTargetingErrorReason", + "CostType" => "CostType", + "CreativeError.Reason" => "CreativeErrorReason", + "CreativeRotationType" => "CreativeRotationType", + "CreativeSizeType" => "CreativeSizeType", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/InventoryService.php b/src/Google/Api/Ads/Dfp/v201403/InventoryService.php new file mode 100755 index 000000000..7107710a4 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/InventoryService.php @@ -0,0 +1,5584 @@ +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 v201403 + */ +class AdSenseSettingsInheritedProperty { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdUnitPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdUnitParent { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ArchiveAdUnits extends AdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AssignAdUnitsToPlacement extends AdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeWrapperError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeactivateAdUnits extends AdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 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 + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FrequencyCap { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FrequencyCapError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InvalidColorError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InventoryUnitError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InventoryUnitPartnerAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdUnitSize { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 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("AdUnitTypeError", FALSE)) { +/** + * Lists the errors associated with the type of {@link AdUnit} object. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class AdUnitTypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LabelFrequencyCap { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RegExError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RemoveAdUnitsFromPlacement extends AdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Size_StringMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdSenseAccountErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdSenseSettingsAdType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdSenseSettingsBorderStyle { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdSenseSettingsFontFamily { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdSenseSettingsFontSize { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdUnitAfcSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdUnitCodeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdUnitTargetWindow { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdUnitHierarchyErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeWrapperErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("EnvironmentType", FALSE)) { +/** + * Enum for the valid environments in which ads can be shown. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class EnvironmentType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FrequencyCapErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InvalidColorErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InventoryStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InventoryUnitErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InventoryUnitPartnerAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 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("AdUnitTypeErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class AdUnitTypeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class MobilePlatform { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RegExErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SmartSizeMode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TargetPlatform { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TimeUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class CreateAdUnits { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreateAdUnitsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetAdUnitSizesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetAdUnitSizesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetAdUnitsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetAdUnitsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformAdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformAdUnitActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("UpdateAdUnits", FALSE)) { +/** + * Updates the specified {@link AdUnit} objects. + * + * @param adUnits the ad units to update + * @return the updated ad units + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class UpdateAdUnits { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateAdUnitsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ActivateAdUnits extends AdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdSenseAccountError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdUnitAfcSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdUnitCodeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdUnitHierarchyError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InventoryService extends DfpSoapClient { + + const SERVICE_NAME = "InventoryService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/InventoryService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "CommonError" => "CommonError", + "CreativeWrapperError" => "CreativeWrapperError", + "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", + "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", + "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", + "ServerError.Reason" => "ServerErrorReason", + "SmartSizeMode" => "SmartSizeMode", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetPlatform" => "TargetPlatform", + "TeamError.Reason" => "TeamErrorReason", + "TimeUnit" => "TimeUnit", + "createAdUnits" => "CreateAdUnits", + "createAdUnitsResponse" => "CreateAdUnitsResponse", + "getAdUnitSizesByStatement" => "GetAdUnitSizesByStatement", + "getAdUnitSizesByStatementResponse" => "GetAdUnitSizesByStatementResponse", + "getAdUnitsByStatement" => "GetAdUnitsByStatement", + "getAdUnitsByStatementResponse" => "GetAdUnitsByStatementResponse", + "performAdUnitAction" => "PerformAdUnitAction", + "performAdUnitActionResponse" => "PerformAdUnitActionResponse", + "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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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; + } + /** + * 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} 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/LabelService.php b/src/Google/Api/Ads/Dfp/v201403/LabelService.php new file mode 100755 index 000000000..242050d8c --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/LabelService.php @@ -0,0 +1,3359 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeWrapperError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("LabelAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class LabelAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($LabelActionType = null) { + $this->LabelActionType = $LabelActionType; + } + +}} + +if (!class_exists("Label", FALSE)) { +/** + * A {@code Label} is additional information that can be added to an entity. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class Label { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "Label"; + + /** + * @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 tnsLabelType[] + */ + public $types; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $types = null) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->isActive = $isActive; + $this->types = $types; + } + +}} + +if (!class_exists("LabelError", FALSE)) { +/** + * Errors specific to labels. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class LabelError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("LabelPage", FALSE)) { +/** + * Captures a page of {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class LabelPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "LabelPage"; + + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Label[] + */ + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeWrapperErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("LabelErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class LabelErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("LabelType", FALSE)) { +/** + * Represents the types of labels supported. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class LabelType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "LabelType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CreateLabels", FALSE)) { +/** + * Creates new {@link Label} objects. + * + * @param labels the labels to create + * @return the created labels with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CreateLabels { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CreateLabelsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CreateLabelsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@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}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels. + * @return the labels that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class GetLabelsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("GetLabelsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class GetLabelsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LabelPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + +}} + +if (!class_exists("PerformLabelAction", FALSE)) { +/** + * Performs actions on {@link Label} 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 + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class PerformLabelAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LabelAction + */ + public $labelAction; + + /** + * @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($labelAction = null, $filterStatement = null) { + $this->labelAction = $labelAction; + $this->filterStatement = $filterStatement; + } + +}} + +if (!class_exists("PerformLabelActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class PerformLabelActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("UpdateLabels", FALSE)) { +/** + * Updates the specified {@link Label} objects. + * + * @param labels the labels to update + * @return the updated labels + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class UpdateLabels { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class UpdateLabelsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("ActivateLabels", FALSE)) { +/** + * The action used for activating {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ActivateLabels extends LabelAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "ActivateLabels"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($LabelActionType = null) { + parent::__construct(); + $this->LabelActionType = $LabelActionType; + } + +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("DeactivateLabels", FALSE)) { +/** + * The action used for deactivating {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class DeactivateLabels extends LabelAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "DeactivateLabels"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($LabelActionType = null) { + parent::__construct(); + $this->LabelActionType = $LabelActionType; + } + +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("LabelService", FALSE)) { +/** + * LabelService + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class LabelService extends DfpSoapClient { + + const SERVICE_NAME = "LabelService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/LabelService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/LabelService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ActivateLabels" => "ActivateLabels", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "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", + "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", + "LabelError.Reason" => "LabelErrorReason", + "LabelType" => "LabelType", + "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", + "createLabels" => "CreateLabels", + "createLabelsResponse" => "CreateLabelsResponse", + "getLabelsByStatement" => "GetLabelsByStatement", + "getLabelsByStatementResponse" => "GetLabelsByStatementResponse", + "performLabelAction" => "PerformLabelAction", + "performLabelActionResponse" => "PerformLabelActionResponse", + "updateLabels" => "UpdateLabels", + "updateLabelsResponse" => "UpdateLabelsResponse", + ); + + + /** + * 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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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; + } + /** + * Gets a {@link LabelPage} of {@link Label} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@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}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels. + * @return the labels that match the given filter + */ + public function getLabelsByStatement($filterStatement) { + $args = new GetLabelsByStatement($filterStatement); + $result = $this->__soapCall("getLabelsByStatement", array($args)); + return $result->rval; + } + /** + * Performs actions on {@link Label} 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 + * @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} objects. + * + * @param labels the labels to update + * @return the updated labels + */ + public function updateLabels($labels) { + $args = new UpdateLabels($labels); + $result = $this->__soapCall("updateLabels", array($args)); + return $result->rval; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/LineItemCreativeAssociationService.php b/src/Google/Api/Ads/Dfp/v201403/LineItemCreativeAssociationService.php new file mode 100755 index 000000000..fc3cd4df0 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/LineItemCreativeAssociationService.php @@ -0,0 +1,5374 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AssetError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AudienceExtensionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeAssetMacroError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeSetError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 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 + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FileError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 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 + * are generally not the result of an invalid request or message sent by the + * client. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemCreativeAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemCreativeAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemCreativeAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemCreativeAssociationOperationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemCreativeAssociationPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemCreativeAssociationStats { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Long_StatsMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Money { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RichMediaStudioCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Stats { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SwiffyConversionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TemplateInstantiatedCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdSenseAccountErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AssetErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AudienceExtensionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeAssetMacroErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeSetErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FileErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 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. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemCreativeAssociationStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemCreativeAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemCreativeAssociationOperationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RichMediaStudioCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StartDateTimeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SwiffyConversionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TemplateInstantiatedCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class CreateLineItemCreativeAssociations { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreateLineItemCreativeAssociationsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetLineItemCreativeAssociationsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetLineItemCreativeAssociationsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetPreviewUrl { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetPreviewUrlResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformLineItemCreativeAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformLineItemCreativeAssociationActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class UpdateLineItemCreativeAssociations { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateLineItemCreativeAssociationsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ActivateLineItemCreativeAssociations extends LineItemCreativeAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdSenseAccountError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeactivateLineItemCreativeAssociations extends LineItemCreativeAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemCreativeAssociationService extends DfpSoapClient { + + const SERVICE_NAME = "LineItemCreativeAssociationService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/LineItemCreativeAssociationService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "CommonError" => "CommonError", + "CreativeAssetMacroError" => "CreativeAssetMacroError", + "CreativeError" => "CreativeError", + "CreativeSetError" => "CreativeSetError", + "CustomCreativeError" => "CustomCreativeError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateLineItemCreativeAssociations" => "DeactivateLineItemCreativeAssociations", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "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", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "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", + "createLineItemCreativeAssociations" => "CreateLineItemCreativeAssociations", + "createLineItemCreativeAssociationsResponse" => "CreateLineItemCreativeAssociationsResponse", + "getLineItemCreativeAssociationsByStatement" => "GetLineItemCreativeAssociationsByStatement", + "getLineItemCreativeAssociationsByStatementResponse" => "GetLineItemCreativeAssociationsByStatementResponse", + "getPreviewUrl" => "GetPreviewUrl", + "getPreviewUrlResponse" => "GetPreviewUrlResponse", + "performLineItemCreativeAssociationAction" => "PerformLineItemCreativeAssociationAction", + "performLineItemCreativeAssociationActionResponse" => "PerformLineItemCreativeAssociationActionResponse", + "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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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; + } + /** + * 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} 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/LineItemService.php b/src/Google/Api/Ads/Dfp/v201403/LineItemService.php new file mode 100755 index 000000000..4f1043c92 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/LineItemService.php @@ -0,0 +1,10072 @@ +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 v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TechnologyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AudienceExtensionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BandwidthGroupTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BrowserLanguageTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BrowserTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ClickTrackingLineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CompanyCreditStatusError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("ContentMetadataKeyHierarchyTargeting", FALSE)) { +/** + * Represents one or more {@link CustomTargetingValue custom targeting values} from different + * {@link CustomTargetingKey custom targeting keys} ANDed together. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ContentMetadataKeyHierarchyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("ContentMetadataTargetingError", FALSE)) { +/** + * Lists all errors related to {@link ContentMetadataTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ContentMetadataTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "ContentMetadataTargetingError"; + + /** + * @access public + * @var tnsContentMetadataTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $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 v201403 + */ +class ContentTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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; + } + +}} + +if (!class_exists("CreativeError", FALSE)) { +/** + * Lists all errors associated with creatives. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativePlaceholder { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomFieldValueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeRangeTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DayPart { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DayPartTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DayPartTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeliveryData { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeliveryIndicator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeviceCapabilityTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeviceCategoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeviceManufacturerTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 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 + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ForecastError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FrequencyCap { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FrequencyCapError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GenericTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GeoTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GeoTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InventoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InventoryTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemCreativeAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemFlightDateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemOperationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemSummary { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 boolean + */ + public $isPrioritizedPreferredDealsEnabled; + + /** + * @access public + * @var integer + */ + public $adExchangeAuctionOpeningPriority; + + /** + * @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, $isPrioritizedPreferredDealsEnabled = null, $adExchangeAuctionOpeningPriority = 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->isPrioritizedPreferredDealsEnabled = $isPrioritizedPreferredDealsEnabled; + $this->adExchangeAuctionOpeningPriority = $adExchangeAuctionOpeningPriority; + $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 v201403 + */ +class DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("MobileCarrierTargeting", FALSE)) { +/** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class MobileCarrierTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class MobileDeviceSubmodelTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class MobileDeviceTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Money { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OperatingSystemTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OperatingSystemVersionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OrderError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PauseLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("ReleaseLineItems", FALSE)) { +/** + * The action used for releasing {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ReleaseLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReservationDetailsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReserveLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ResumeLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Stats { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Targeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TechnologyTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TimeOfDay { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UnarchiveLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UserDomainTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UserDomainTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class VideoPosition { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class VideoPositionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class VideoPositionWithinPod { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class VideoPositionTarget { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AudienceExtensionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ClickTrackingLineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CompanionDeliveryOption { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CompanyCreditStatusErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ComputedStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("ContentMetadataTargetingErrorReason", FALSE)) { +/** + * The reasons for the metadata targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ContentMetadataTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "ContentMetadataTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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 v201403 + */ +class CostType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeRotationType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeSizeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCriteriaSetLogicalOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AudienceSegmentCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeRangeTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DayOfWeek { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DayPartTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeliveryTimeZone { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeliveryRateType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class EnvironmentType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ForecastErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FrequencyCapErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GenericTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GeoTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InventoryTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemCreativeAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemDiscountType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemFlightDateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemOperationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemSummaryDuration { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemSummaryReservationStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class MinuteOfHour { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OrderErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativePersistenceType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReservationDetailsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RoadblockingType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StartDateTimeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TargetPlatform { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TechnologyTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TimeUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UnitType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UserDomainTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class VideoBumperType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class VideoPositionType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class CreateLineItems { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreateLineItemsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 Property Object Property
      {@code costType}{@link LineItem#costType}
      {@code id}{@link LineItem#id}
      {@code lineItemType}{@link LineItem#lineItemType}
      {@code name}{@link LineItem#name}
      {@code orderId}{@link LineItem#orderId}
      {@code status}{@link LineItem#status}
      {@code unitsBought}{@link LineItem#unitsBought}
      {@code deliveryRateType}{@link LineItem#deliveryRateType}
      {@code lastModifiedDateTime}{@link LineItem#lastModifiedDateTime}
      {@code creationDateTime}{@link LineItem#creationDateTime}
      {@code isMissingCreatives}{@link LineItem#isMissingCreatives}
      + * + * @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 v201403 + */ +class GetLineItemsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetLineItemsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformLineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformLineItemActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("UpdateLineItems", FALSE)) { +/** + * Updates the specified {@link LineItem} objects. + * + * @param lineItems the line items to update + * @return the updated line items + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class UpdateLineItems { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateLineItemsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ActivateLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ArchiveLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BandwidthGroup extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Browser extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BrowserLanguage extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class CustomCriteriaSet extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCriteriaLeaf extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AudienceSegmentCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeleteLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeviceCapability extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeviceCategory extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeviceManufacturer extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItem extends LineItemSummary { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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, $isPrioritizedPreferredDealsEnabled = null, $adExchangeAuctionOpeningPriority = 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->isPrioritizedPreferredDealsEnabled = $isPrioritizedPreferredDealsEnabled; + $this->adExchangeAuctionOpeningPriority = $adExchangeAuctionOpeningPriority; + $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 v201403 + */ +class MobileCarrier extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class MobileDevice extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class MobileDeviceSubmodel extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OperatingSystem extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OperatingSystemVersion extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReserveAndOverbookLineItems extends ReserveLineItems { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ResumeAndOverbookLineItems extends ResumeLineItems { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemService extends DfpSoapClient { + + const SERVICE_NAME = "LineItemService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/LineItemService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", + "ContentMetadataTargetingError" => "ContentMetadataTargetingError", + "ContentTargeting" => "ContentTargeting", + "CreativeError" => "CreativeError", + "CreativePlaceholder" => "CreativePlaceholder", + "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", + "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", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "ReleaseLineItems" => "ReleaseLineItems", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "ReservationDetailsError" => "ReservationDetailsError", + "ReserveAndOverbookLineItems" => "ReserveAndOverbookLineItems", + "ReserveLineItems" => "ReserveLineItems", + "ResumeAndOverbookLineItems" => "ResumeAndOverbookLineItems", + "ResumeLineItems" => "ResumeLineItems", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "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", + "ContentMetadataTargetingError.Reason" => "ContentMetadataTargetingErrorReason", + "CostType" => "CostType", + "CreativeError.Reason" => "CreativeErrorReason", + "CreativeRotationType" => "CreativeRotationType", + "CreativeSizeType" => "CreativeSizeType", + "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", + "createLineItems" => "CreateLineItems", + "createLineItemsResponse" => "CreateLineItemsResponse", + "getLineItemsByStatement" => "GetLineItemsByStatement", + "getLineItemsByStatementResponse" => "GetLineItemsByStatementResponse", + "performLineItemAction" => "PerformLineItemAction", + "performLineItemActionResponse" => "PerformLineItemActionResponse", + "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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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; + } + /** + * Gets a {@link LineItemPage} of {@link LineItem} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code costType}{@link LineItem#costType}
      {@code id}{@link LineItem#id}
      {@code lineItemType}{@link LineItem#lineItemType}
      {@code name}{@link LineItem#name}
      {@code orderId}{@link LineItem#orderId}
      {@code status}{@link LineItem#status}
      {@code unitsBought}{@link LineItem#unitsBought}
      {@code deliveryRateType}{@link LineItem#deliveryRateType}
      {@code lastModifiedDateTime}{@link LineItem#lastModifiedDateTime}
      {@code creationDateTime}{@link LineItem#creationDateTime}
      {@code isMissingCreatives}{@link LineItem#isMissingCreatives}
      + * + * @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} 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/LineItemTemplateService.php b/src/Google/Api/Ads/Dfp/v201403/LineItemTemplateService.php new file mode 100755 index 000000000..a6eee77b1 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/LineItemTemplateService.php @@ -0,0 +1,5194 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AudienceExtensionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ClickTrackingLineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CompanyCreditStatusError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("ContentMetadataTargetingError", FALSE)) { +/** + * Lists all errors related to {@link ContentMetadataTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ContentMetadataTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "ContentMetadataTargetingError"; + + /** + * @access public + * @var tnsContentMetadataTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $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 v201403 + */ +class CreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CustomFieldValueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeRangeTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DayPartTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 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 + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ForecastError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FrequencyCapError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GenericTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GeoTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InventoryTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemCreativeAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemFlightDateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemOperationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemTemplate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemTemplatePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OrderError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReservationDetailsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TechnologyTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UserDomainTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AudienceExtensionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ClickTrackingLineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CompanyCreditStatusErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("ContentMetadataTargetingErrorReason", FALSE)) { +/** + * The reasons for the metadata targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ContentMetadataTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "ContentMetadataTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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 v201403 + */ +class CreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeRotationType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeRangeTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DayPartTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeliveryRateType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ForecastErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FrequencyCapErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GenericTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GeoTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InventoryTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemCreativeAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemFlightDateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemOperationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OrderErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReservationDetailsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RoadblockingType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TargetPlatform { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TechnologyTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UserDomainTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetLineItemTemplatesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetLineItemTemplatesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemTemplateService extends DfpSoapClient { + + const SERVICE_NAME = "LineItemTemplateService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/LineItemTemplateService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "ContentMetadataTargetingError" => "ContentMetadataTargetingError", + "CreativeError" => "CreativeError", + "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", + "SetValue" => "SetValue", + "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", + "ContentMetadataTargetingError.Reason" => "ContentMetadataTargetingErrorReason", + "CreativeError.Reason" => "CreativeErrorReason", + "CreativeRotationType" => "CreativeRotationType", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/LiveStreamEventService.php b/src/Google/Api/Ads/Dfp/v201403/LiveStreamEventService.php new file mode 100755 index 000000000..5bc6a8729 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/LiveStreamEventService.php @@ -0,0 +1,3192 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("LiveStreamEventAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link LiveStreamEvent} + * objects. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class LiveStreamEventAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "LiveStreamEventAction"; + + /** + * @access public + * @var string + */ + public $LiveStreamEventActionType; + private $_parameterMap = array( + "LiveStreamEventAction.Type" => "LiveStreamEventActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { + $this->{$this->_parameterMap[$var]} = $value; + } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get + * @return mixed Variable value + */ + public function __get($var) { + if (!isset($this->_parameterMap[$var])) { + return null; + } + return $this->{$this->_parameterMap[$var]}; + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($LiveStreamEventActionType = null) { + $this->LiveStreamEventActionType = $LiveStreamEventActionType; + } + +}} + +if (!class_exists("LiveStreamEventDateTimeError", FALSE)) { +/** + * Lists all errors associated with live stream event start and end date times. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class LiveStreamEventDateTimeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "LiveStreamEventDateTimeError"; + + /** + * @access public + * @var tnsLiveStreamEventDateTimeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + +}} + +if (!class_exists("LiveStreamEvent", FALSE)) { +/** + * A {@code LiveStreamEvent} represents schedule, content and ad stitching + * information of a live stream event. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class LiveStreamEvent { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "LiveStreamEvent"; + + /** + * @access public + * @var integer + */ + 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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $creationDateTime = null, $lastModifiedDateTime = null, $startDateTime = null, $endDateTime = null, $totalEstimatedConcurrentUsers = null, $contentUrls = null, $adTags = 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; + } + +}} + +if (!class_exists("LiveStreamEventPage", FALSE)) { +/** + * Captures a page of {@link LiveStreamEvent} objects. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class LiveStreamEventPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "LiveStreamEventPage"; + + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var LiveStreamEvent[] + */ + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("PauseLiveStreamEvents", FALSE)) { +/** + * The action used for pausing {@link LiveStreamEvent} objects. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class PauseLiveStreamEvents extends LiveStreamEventAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "PauseLiveStreamEvents"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($LiveStreamEventActionType = null) { + parent::__construct(); + $this->LiveStreamEventActionType = $LiveStreamEventActionType; + } + +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("LiveStreamEventDateTimeErrorReason", FALSE)) { +/** + * Describes reasons for {@code LiveStreamEventDateTimeError}s. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class LiveStreamEventDateTimeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "LiveStreamEventDateTimeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + +}} + +if (!class_exists("LiveStreamEventStatus", FALSE)) { +/** + * Describes the status of a {@link LiveStreamEvent} object. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class LiveStreamEventStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "LiveStreamEventStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CreateLiveStreamEvents", FALSE)) { +/** + * 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 liveStreamEvents the live stream events to create + * @return the created live stream events with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CreateLiveStreamEvents { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LiveStreamEvent[] + */ + public $liveStreamEvents; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($liveStreamEvents = null) { + $this->liveStreamEvents = $liveStreamEvents; + } + +}} + +if (!class_exists("CreateLiveStreamEventsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CreateLiveStreamEventsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LiveStreamEvent[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + +}} + +if (!class_exists("GetLiveStreamEventsByStatement", FALSE)) { +/** + * Gets a {@link LiveStreamEventPage} of {@link LiveStreamEvent} objects that + * satisfy the given {@link Statement#query}. The following fields are + * supported for filtering: + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link LiveStreamEvent#id}
      + * + * @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 v201403 + */ +class GetLiveStreamEventsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("GetLiveStreamEventsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class GetLiveStreamEventsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LiveStreamEventPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + +}} + +if (!class_exists("PerformLiveStreamEventAction", FALSE)) { +/** + * Performs actions on {@link LiveStreamEvent} objects that match the given + * {@link Statement#query}. + * + * @param liveStreamEventAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of live stream events + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class PerformLiveStreamEventAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LiveStreamEventAction + */ + public $liveStreamEventAction; + + /** + * @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($liveStreamEventAction = null, $filterStatement = null) { + $this->liveStreamEventAction = $liveStreamEventAction; + $this->filterStatement = $filterStatement; + } + +}} + +if (!class_exists("PerformLiveStreamEventActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class PerformLiveStreamEventActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("UpdateLiveStreamEvents", FALSE)) { +/** + * Updates the specified {@link LiveStreamEvent} objects. + * + * @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 v201403 + */ +class UpdateLiveStreamEvents { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LiveStreamEvent[] + */ + public $liveStreamEvents; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($liveStreamEvents = null) { + $this->liveStreamEvents = $liveStreamEvents; + } + +}} + +if (!class_exists("UpdateLiveStreamEventsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class UpdateLiveStreamEventsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LiveStreamEvent[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + +}} + +if (!class_exists("ActivateLiveStreamEvents", FALSE)) { +/** + * The action used for activating {@link LiveStreamEvent} objects. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ActivateLiveStreamEvents extends LiveStreamEventAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "ActivateLiveStreamEvents"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($LiveStreamEventActionType = null) { + parent::__construct(); + $this->LiveStreamEventActionType = $LiveStreamEventActionType; + } + +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("ArchiveLiveStreamEvents", FALSE)) { +/** + * The action used for archiving {@link LiveStreamEvent} objects. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ArchiveLiveStreamEvents extends LiveStreamEventAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "ArchiveLiveStreamEvents"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($LiveStreamEventActionType = null) { + parent::__construct(); + $this->LiveStreamEventActionType = $LiveStreamEventActionType; + } + +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("LiveStreamEventService", FALSE)) { +/** + * LiveStreamEventService + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class LiveStreamEventService extends DfpSoapClient { + + const SERVICE_NAME = "LiveStreamEventService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/LiveStreamEventService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/LiveStreamEventService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ActivateLiveStreamEvents" => "ActivateLiveStreamEvents", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "ArchiveLiveStreamEvents" => "ArchiveLiveStreamEvents", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "LiveStreamEventAction" => "LiveStreamEventAction", + "LiveStreamEventDateTimeError" => "LiveStreamEventDateTimeError", + "LiveStreamEvent" => "LiveStreamEvent", + "LiveStreamEventPage" => "LiveStreamEventPage", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "OAuth" => "DfpOAuth", + "PauseLiveStreamEvents" => "PauseLiveStreamEvents", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "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", + "LiveStreamEventDateTimeError.Reason" => "LiveStreamEventDateTimeErrorReason", + "LiveStreamEventStatus" => "LiveStreamEventStatus", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "createLiveStreamEvents" => "CreateLiveStreamEvents", + "createLiveStreamEventsResponse" => "CreateLiveStreamEventsResponse", + "getLiveStreamEventsByStatement" => "GetLiveStreamEventsByStatement", + "getLiveStreamEventsByStatementResponse" => "GetLiveStreamEventsByStatementResponse", + "performLiveStreamEventAction" => "PerformLiveStreamEventAction", + "performLiveStreamEventActionResponse" => "PerformLiveStreamEventActionResponse", + "updateLiveStreamEvents" => "UpdateLiveStreamEvents", + "updateLiveStreamEventsResponse" => "UpdateLiveStreamEventsResponse", + ); + + + /** + * 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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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 liveStreamEvents the live stream events to create + * @return the created live stream events with their IDs filled in + */ + public function createLiveStreamEvents($liveStreamEvents) { + $args = new CreateLiveStreamEvents($liveStreamEvents); + $result = $this->__soapCall("createLiveStreamEvents", array($args)); + return $result->rval; + } + /** + * Gets a {@link LiveStreamEventPage} of {@link LiveStreamEvent} objects that + * satisfy the given {@link Statement#query}. The following fields are + * supported for filtering: + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link LiveStreamEvent#id}
      + * + * @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 getLiveStreamEventsByStatement($filterStatement) { + $args = new GetLiveStreamEventsByStatement($filterStatement); + $result = $this->__soapCall("getLiveStreamEventsByStatement", array($args)); + return $result->rval; + } + /** + * Performs actions on {@link LiveStreamEvent} objects that match the given + * {@link Statement#query}. + * + * @param liveStreamEventAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of live stream events + * @return the result of the action performed + */ + public function performLiveStreamEventAction($liveStreamEventAction, $filterStatement) { + $args = new PerformLiveStreamEventAction($liveStreamEventAction, $filterStatement); + $result = $this->__soapCall("performLiveStreamEventAction", array($args)); + return $result->rval; + } + /** + * Updates the specified {@link LiveStreamEvent} objects. + * + * @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 updateLiveStreamEvents($liveStreamEvents) { + $args = new UpdateLiveStreamEvents($liveStreamEvents); + $result = $this->__soapCall("updateLiveStreamEvents", array($args)); + return $result->rval; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/NetworkService.php b/src/Google/Api/Ads/Dfp/v201403/NetworkService.php new file mode 100755 index 000000000..1eb633c20 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/NetworkService.php @@ -0,0 +1,2546 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ExchangeRateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InvalidEmailError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Network { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NetworkError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ExchangeRateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InvalidEmailErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NetworkErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetAllNetworks { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetAllNetworksResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetCurrentNetwork { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetCurrentNetworkResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class MakeTestNetwork { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class MakeTestNetworkResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateNetwork { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateNetworkResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NetworkService extends DfpSoapClient { + + const SERVICE_NAME = "NetworkService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/NetworkService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "CommonError" => "CommonError", + "ExchangeRateError" => "ExchangeRateError", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "Network" => "Network", + "NetworkError" => "NetworkError", + "NotNullError" => "NotNullError", + "OAuth" => "DfpOAuth", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "TypeError" => "TypeError", + "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", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/OrderService.php b/src/Google/Api/Ads/Dfp/v201403/OrderService.php new file mode 100755 index 000000000..6ff06772c --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/OrderService.php @@ -0,0 +1,5250 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CompanyCreditStatusError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomFieldValueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 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 + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ForecastError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InvalidEmailError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InventoryTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class Money { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OrderActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Order { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OrderError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OrderPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PauseOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("ResumeOrders", FALSE)) { +/** + * The action used for resuming {@link Order} objects. All {@link LineItem} + * objects within the order will resume as well. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ResumeOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RetractOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RetractOrdersWithoutReservationChanges extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SubmitOrdersForApproval extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SubmitOrdersForApprovalAndOverbook extends SubmitOrdersForApproval { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SubmitOrdersForApprovalWithoutReservationChanges extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("TemplateInstantiatedCreativeError", FALSE)) { +/** + * Lists all errors associated with template instantiated creatives. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class TemplateInstantiatedCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UnarchiveOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CompanyCreditStatusErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ForecastErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InvalidEmailErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InventoryTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("OrderActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class OrderActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OrderErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OrderStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("TemplateInstantiatedCreativeErrorReason", FALSE)) { +/** + * The reason for the error + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class TemplateInstantiatedCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class CreateOrders { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreateOrdersResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetOrdersByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetOrdersByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformOrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformOrderActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("UpdateOrders", FALSE)) { +/** + * Updates the specified {@link Order} objects. + * + * @param orders the orders to update + * @return the updated orders + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class UpdateOrders { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateOrdersResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApproveOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApproveOrdersWithoutReservationChanges extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ArchiveOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeleteOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DisapproveOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DisapproveOrdersWithoutReservationChanges extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ResumeAndOverbookOrders extends ResumeOrders { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApproveAndOverbookOrders extends ApproveOrders { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OrderService extends DfpSoapClient { + + const SERVICE_NAME = "OrderService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/OrderService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BooleanValue" => "BooleanValue", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeleteOrders" => "DeleteOrders", + "DisapproveOrders" => "DisapproveOrders", + "DisapproveOrdersWithoutReservationChanges" => "DisapproveOrdersWithoutReservationChanges", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "ForecastError" => "ForecastError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargetingError" => "InventoryTargetingError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "Money" => "Money", + "NotNullError" => "NotNullError", + "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", + "ResumeAndOverbookOrders" => "ResumeAndOverbookOrders", + "ResumeOrders" => "ResumeOrders", + "RetractOrders" => "RetractOrders", + "RetractOrdersWithoutReservationChanges" => "RetractOrdersWithoutReservationChanges", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "SubmitOrdersForApproval" => "SubmitOrdersForApproval", + "SubmitOrdersForApprovalAndOverbook" => "SubmitOrdersForApprovalAndOverbook", + "SubmitOrdersForApprovalWithoutReservationChanges" => "SubmitOrdersForApprovalWithoutReservationChanges", + "TeamError" => "TeamError", + "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UnarchiveOrders" => "UnarchiveOrders", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "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", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", + "createOrders" => "CreateOrders", + "createOrdersResponse" => "CreateOrdersResponse", + "getOrdersByStatement" => "GetOrdersByStatement", + "getOrdersByStatementResponse" => "GetOrdersByStatementResponse", + "performOrderAction" => "PerformOrderAction", + "performOrderActionResponse" => "PerformOrderActionResponse", + "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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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; + } + /** + * 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} 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/PlacementService.php b/src/Google/Api/Ads/Dfp/v201403/PlacementService.php new file mode 100755 index 000000000..2f5cca320 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/PlacementService.php @@ -0,0 +1,3731 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 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 + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PlacementAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PlacementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PlacementPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RegExError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SiteTargetingInfo { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InventoryStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PlacementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RegExErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class CreatePlacements { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreatePlacementsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetPlacementsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetPlacementsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformPlacementAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformPlacementActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("UpdatePlacements", FALSE)) { +/** + * Updates the specified {@link Placement} objects. + * + * @param placements the placements to update + * @return the updated placements + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class UpdatePlacements { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdatePlacementsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ActivatePlacements extends PlacementAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ArchivePlacements extends PlacementAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeactivatePlacements extends PlacementAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Placement extends SiteTargetingInfo { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 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, $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->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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PlacementService extends DfpSoapClient { + + const SERVICE_NAME = "PlacementService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/PlacementService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "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", + "createPlacements" => "CreatePlacements", + "createPlacementsResponse" => "CreatePlacementsResponse", + "getPlacementsByStatement" => "GetPlacementsByStatement", + "getPlacementsByStatementResponse" => "GetPlacementsByStatementResponse", + "performPlacementAction" => "PerformPlacementAction", + "performPlacementActionResponse" => "PerformPlacementActionResponse", + "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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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; + } + /** + * 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} 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/ProductService.php b/src/Google/Api/Ads/Dfp/v201403/ProductService.php new file mode 100755 index 000000000..fc19e40ef --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/ProductService.php @@ -0,0 +1,5970 @@ +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 v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BandwidthGroupTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BaseRateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BrowserLanguageTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BrowserTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativePlaceholder { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomFieldValueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FrequencyCap { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GeoTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InventoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OperatingSystemTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProductAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProductActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Product { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 string + */ + 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 v201403 + */ +class ProductError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProductPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProductTemplateTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 CustomCriteriaSet + */ + public $customTargeting; + + /** + * @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, $customTargeting = 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->customTargeting = $customTargeting; + $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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UserDomainTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BaseRateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeSizeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCriteriaSetLogicalOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AudienceSegmentCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProductActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProductErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProductStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProductType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RateType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RoadblockingType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TimeUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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}YesNo
      {@code lastModifiedDateTime}{@link Product#lastModifiedDateTime}NoYes
      + * + * @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 v201403 + */ +class GetProductsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetProductsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformProductAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformProductActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class UpdateProducts { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateProductsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ActivateProducts extends ProductAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ArchiveProducts extends ProductAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BandwidthGroup extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Browser extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BrowserLanguage extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class CustomCriteriaSet extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCriteriaLeaf extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AudienceSegmentCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeactivateProducts extends ProductAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeviceCapability extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeviceCategory extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeviceManufacturer extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class MobileCarrier extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class MobileDevice extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class MobileDeviceSubmodel extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OperatingSystem extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OperatingSystemVersion extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("ProductService", FALSE)) { +/** + * ProductService + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ProductService extends DfpSoapClient { + + const SERVICE_NAME = "ProductService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/ProductService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "CommonError" => "CommonError", + "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", + "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", + "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", + "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", + "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", + "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=null, $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}YesNo
      {@code lastModifiedDateTime}{@link Product#lastModifiedDateTime}NoYes
      + * + * @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} 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/ProductTemplateService.php b/src/Google/Api/Ads/Dfp/v201403/ProductTemplateService.php new file mode 100755 index 000000000..9c6d39fde --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/ProductTemplateService.php @@ -0,0 +1,6646 @@ +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 v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BandwidthGroupTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BaseRateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BrowserLanguageTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BrowserTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativePlaceholder { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomFieldValueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FrequencyCap { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FrequencyCapError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GenericTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GeoTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GeoTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InventoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InventoryTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OperatingSystemTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PlacementTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProductTemplateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProductTemplateActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProductTemplate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProductTemplateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProductTemplatePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProductSegmentation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 CustomCriteria[] + */ + public $customTargetingSegment; + + /** + * @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, $customTargetingSegment = null, $userDomainSegment = null, $bandwidthSegment = null, $browserSegment = null, $browserLanguageSegment = null, $operatingSystemSegment = 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; + } + +}} + +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 v201403 + */ +class ProductTemplateTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 CustomCriteriaSet + */ + public $customTargeting; + + /** + * @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, $customTargeting = 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->customTargeting = $customTargeting; + $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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UserDomainTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UserDomainTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BaseRateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeSizeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCriteriaSetLogicalOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AudienceSegmentCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FrequencyCapErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GenericTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GeoTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InventoryTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProductTemplateActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProductTemplateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProductTemplateStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProductType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RateType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RoadblockingType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TimeUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UserDomainTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class CreateProductTemplates { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreateProductTemplatesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetProductTemplatesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetProductTemplatesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformProductTemplateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformProductTemplateActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("UpdateProductTemplates", FALSE)) { +/** + * Updates the specified {@link ProductTemplate} objects. + * + * @param productTemplates the product templates to update + * @return the updated product templates + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class UpdateProductTemplates { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateProductTemplatesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ActivateProductTemplates extends ProductTemplateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ArchiveProducTemplates extends ProductTemplateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BandwidthGroup extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Browser extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BrowserLanguage extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class CustomCriteriaSet extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCriteriaLeaf extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AudienceSegmentCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeactivateProductTemplates extends ProductTemplateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeviceCapability extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeviceCategory extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeviceManufacturer extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class MobileCarrier extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class MobileDevice extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class MobileDeviceSubmodel extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OperatingSystem extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OperatingSystemVersion extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("ProductTemplateService", FALSE)) { +/** + * ProductTemplateService + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ProductTemplateService extends DfpSoapClient { + + const SERVICE_NAME = "ProductTemplateService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/ProductTemplateService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "CommonError" => "CommonError", + "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", + "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", + "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", + "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", + "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", + "createProductTemplates" => "CreateProductTemplates", + "createProductTemplatesResponse" => "CreateProductTemplatesResponse", + "getProductTemplatesByStatement" => "GetProductTemplatesByStatement", + "getProductTemplatesByStatementResponse" => "GetProductTemplatesByStatementResponse", + "performProductTemplateAction" => "PerformProductTemplateAction", + "performProductTemplateActionResponse" => "PerformProductTemplateActionResponse", + "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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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; + } + /** + * 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} 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/ProposalLineItemService.php b/src/Google/Api/Ads/Dfp/v201403/ProposalLineItemService.php new file mode 100755 index 000000000..1047799d5 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/ProposalLineItemService.php @@ -0,0 +1,8447 @@ +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 v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TechnologyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BandwidthGroupTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BillingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BrowserLanguageTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BrowserTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("ContentMetadataKeyHierarchyTargeting", FALSE)) { +/** + * Represents one or more {@link CustomTargetingValue custom targeting values} from different + * {@link CustomTargetingKey custom targeting keys} ANDed together. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ContentMetadataKeyHierarchyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ContentTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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; + } + +}} + +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 v201403 + */ +class CreativePlaceholder { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomFieldValueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DayPart { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DayPartTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DayPartTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeliveryData { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeliveryIndicator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeviceCapabilityTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeviceCategoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeviceManufacturerTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FrequencyCap { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FrequencyCapError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GenericTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GeoTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GeoTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InventoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InventoryTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("MobileCarrierTargeting", FALSE)) { +/** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class MobileCarrierTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class MobileDeviceSubmodelTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class MobileDeviceTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Money { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OperatingSystemTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OperatingSystemVersionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PrecisionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProductError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProposalError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProposalLineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProposalLineItemActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProposalLineItem { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 string + */ + 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 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 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; + + /** + * @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, $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; + } + +}} + +if (!class_exists("ProposalLineItemError", FALSE)) { +/** + * Lists all errors associated with proposal line items. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ProposalLineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProposalLineItemPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 triggered {@link RateCardCustomization} premiums. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ProposalLineItemPremium { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReservationDetailsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Targeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TechnologyTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TimeOfDay { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UnarchiveProposalLineItems extends ProposalLineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UserDomainTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UserDomainTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class VideoPosition { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class VideoPositionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class VideoPositionWithinPod { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class VideoPositionTarget { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BillingCap { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BillingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BillingSchedule { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BillingSource { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CompanionDeliveryOption { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ComputedStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CostAdjustment { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CreativeRotationType", FALSE)) { +/** + * The strategy to use for displaying multiple {@link Creative} objects that are + * associated with a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CreativeRotationType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeSizeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCriteriaSetLogicalOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AudienceSegmentCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DayOfWeek { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DayPartTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeliveryTimeZone { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeliveryRateType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FrequencyCapErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GenericTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GeoTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InventoryTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class MinuteOfHour { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PrecisionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProductErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProposalErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProposalLineItemActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProposalLineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProposalLineItemPremiumStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RateType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReservationDetailsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RoadblockingType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TechnologyTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TimeUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UserDomainTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class VideoBumperType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class VideoPositionType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class CreateProposalLineItems { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreateProposalLineItemsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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}
      + * + * @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 v201403 + */ +class GetProposalLineItemsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetProposalLineItemsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformProposalLineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformProposalLineItemActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class UpdateProposalLineItems { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateProposalLineItemsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ArchiveProposalLineItems extends ProposalLineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BandwidthGroup extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Browser extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BrowserLanguage extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class CustomCriteriaSet extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCriteriaLeaf extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AudienceSegmentCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeviceCapability extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeviceCategory extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeviceManufacturer extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class MobileCarrier extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class MobileDevice extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class MobileDeviceSubmodel extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OperatingSystem extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OperatingSystemVersion extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProposalLineItemService extends DfpSoapClient { + + const SERVICE_NAME = "ProposalLineItemService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/ProposalLineItemService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "CommonError" => "CommonError", + "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", + "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", + "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", + "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", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ReservationDetailsError" => "ReservationDetailsError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "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", + "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", + "RateType" => "RateType", + "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", + "createProposalLineItems" => "CreateProposalLineItems", + "createProposalLineItemsResponse" => "CreateProposalLineItemsResponse", + "getProposalLineItemsByStatement" => "GetProposalLineItemsByStatement", + "getProposalLineItemsByStatementResponse" => "GetProposalLineItemsByStatementResponse", + "performProposalLineItemAction" => "PerformProposalLineItemAction", + "performProposalLineItemActionResponse" => "PerformProposalLineItemActionResponse", + "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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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; + } + /** + * 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}
      + * + * @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} 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/ProposalService.php b/src/Google/Api/Ads/Dfp/v201403/ProposalService.php new file mode 100755 index 000000000..bf3080bd4 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/ProposalService.php @@ -0,0 +1,5215 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BillingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomFieldValueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ForecastError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemOperationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Money { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PrecisionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProductError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProposalAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProposalActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProposalCompanyAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Proposal { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "Proposal"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $dfpOrderId; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsPricingModel + */ + public $pricingModel; + + /** + * @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 string + */ + public $currencyCode; + + /** + * @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 boolean + */ + public $isSold; + + /** + * @access public + * @var tnsProposalApprovalStatus + */ + public $approvalStatus; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @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, $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, $isSold = null, $approvalStatus = null, $lastModifiedDateTime = null, $thirdPartyAdServerId = null, $customThirdPartyAdServerName = null) { + $this->id = $id; + $this->dfpOrderId = $dfpOrderId; + $this->name = $name; + $this->pricingModel = $pricingModel; + $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->currencyCode = $currencyCode; + $this->exchangeRate = $exchangeRate; + $this->refreshExchangeRate = $refreshExchangeRate; + $this->agencyCommission = $agencyCommission; + $this->valueAddedTax = $valueAddedTax; + $this->isSold = $isSold; + $this->approvalStatus = $approvalStatus; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->thirdPartyAdServerId = $thirdPartyAdServerId; + $this->customThirdPartyAdServerName = $customThirdPartyAdServerName; + } + +}} + +if (!class_exists("ProposalError", FALSE)) { +/** + * Lists all errors associated with proposals. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ProposalError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProposalLineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProposalPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RetractProposals extends ProposalAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SalespersonSplit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SubmitProposalsForApproval extends ProposalAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UnarchiveProposals extends ProposalAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class WorkflowActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BillingCap { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BillingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BillingSchedule { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BillingSource { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ForecastErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemOperationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProposalApprovalStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PrecisionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("PricingModel", FALSE)) { +/** + * The option to specify whether the proposal uses the Net or Gross pricing model. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class PricingModel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "PricingModel"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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 v201403 + */ +class ProductErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProposalActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProposalCompanyAssociationType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProposalErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProposalLineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProposalStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class WorkflowActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class CreateProposals { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreateProposalsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetProposalsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetProposalsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformProposalAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformProposalActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("UpdateProposals", FALSE)) { +/** + * Updates the specified {@link Proposal} objects. + * + * @param proposals the proposals to update + * @return the updated proposals + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class UpdateProposals { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateProposalsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("ArchiveProposals", FALSE)) { +/** + * The action used for archiving {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ArchiveProposals extends ProposalAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ProposalService extends DfpSoapClient { + + const SERVICE_NAME = "ProposalService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/ProposalService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "ArchiveProposals" => "ArchiveProposals", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BillingError" => "BillingError", + "BooleanValue" => "BooleanValue", + "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", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RetractProposals" => "RetractProposals", + "SalespersonSplit" => "SalespersonSplit", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "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", + "PricingModel" => "PricingModel", + "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", + "createProposals" => "CreateProposals", + "createProposalsResponse" => "CreateProposalsResponse", + "getProposalsByStatement" => "GetProposalsByStatement", + "getProposalsByStatementResponse" => "GetProposalsByStatementResponse", + "performProposalAction" => "PerformProposalAction", + "performProposalActionResponse" => "PerformProposalActionResponse", + "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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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; + } + /** + * 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} 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/PublisherQueryLanguageService.php b/src/Google/Api/Ads/Dfp/v201403/PublisherQueryLanguageService.php new file mode 100755 index 000000000..f83cd5e81 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/PublisherQueryLanguageService.php @@ -0,0 +1,4139 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("ColumnType", FALSE)) { +/** + * Contains information about a column in a {@link ResultSet}. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ColumnType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ExchangeRateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FileError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InvalidEmailError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InventoryTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InventoryUnitError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemFlightDateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemOperationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OrderActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OrderError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RegExError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReservationDetailsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ResultSet { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Row { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdUnitAfcSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdUnitCodeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdUnitHierarchyErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ExchangeRateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FileErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InvalidEmailErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InventoryTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InventoryUnitErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemFlightDateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LineItemOperationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OrderActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OrderErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RegExErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReservationDetailsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Select { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SelectResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdUnitAfcSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdUnitCodeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdUnitHierarchyError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageService extends DfpSoapClient { + + const SERVICE_NAME = "PublisherQueryLanguageService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/PublisherQueryLanguageService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/RateCardCustomizationGroupService.php b/src/Google/Api/Ads/Dfp/v201403/RateCardCustomizationGroupService.php new file mode 100755 index 000000000..35a9d9c16 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/RateCardCustomizationGroupService.php @@ -0,0 +1,3130 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("RateCardCustomizationGroup", FALSE)) { +/** + * The group of rate card customiations. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class RateCardCustomizationGroup { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "RateCardCustomizationGroup"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $rateCardId; + + /** + * @access public + * @var tnsPricingMethod + */ + public $pricingMethod; + + /** + * @access public + * @var RateCardFeature + */ + public $rateCardFeature; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $rateCardId = null, $pricingMethod = null, $rateCardFeature = null) { + $this->id = $id; + $this->rateCardId = $rateCardId; + $this->pricingMethod = $pricingMethod; + $this->rateCardFeature = $rateCardFeature; + } + +}} + +if (!class_exists("RateCardCustomizationGroupError", FALSE)) { +/** + * An error having to do with {@link RateCardCustomizationGroup}. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class RateCardCustomizationGroupError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "RateCardCustomizationGroupError"; + + /** + * @access public + * @var tnsRateCardCustomizationGroupErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + +}} + +if (!class_exists("RateCardCustomizationGroupPage", FALSE)) { +/** + * Captures a page of {@link RateCardCustomizationGroup} objects. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class RateCardCustomizationGroupPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "RateCardCustomizationGroupPage"; + + /** + * @access public + * @var RateCardCustomizationGroup[] + */ + 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 v201403 + */ +class RateCardFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UnknownRateCardFeature extends RateCardFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("UserDomainRateCardFeature", FALSE)) { +/** + * A rate customization applied to user domain targeting. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class UserDomainRateCardFeature extends RateCardFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("PricingMethod", FALSE)) { +/** + * Describes which {@link RateCardCustomization} objects from the + * {@link RateCardCustomizationGroup} to apply to a {@link ProposalLineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class PricingMethod { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "PricingMethod"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("RateCardCustomizationGroupErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class RateCardCustomizationGroupErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "RateCardCustomizationGroupError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CreateRateCardCustomizationGroups", FALSE)) { +/** + * Creates a list of new {@link RateCardCustomizationGroup} objects. + * + * @param rateCardCustomizationGroups the rate card customization groups to be created + * @return the rate card customization groups with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CreateRateCardCustomizationGroups { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = ""; + + /** + * @access public + * @var RateCardCustomizationGroup[] + */ + public $rateCardCustomizationGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rateCardCustomizationGroups = null) { + $this->rateCardCustomizationGroups = $rateCardCustomizationGroups; + } + +}} + +if (!class_exists("CreateRateCardCustomizationGroupsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CreateRateCardCustomizationGroupsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = ""; + + /** + * @access public + * @var RateCardCustomizationGroup[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + +}} + +if (!class_exists("GetRateCardCustomizationGroupsByStatement", FALSE)) { +/** + * Gets a {@link RateCardCustomizationGroupPage} of + * {@link RateCardCustomizationGroup} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link RateCardCustomizationGroup#id}
      {@code rateCardId}{@link RateCardCustomizationGroup#rateCardId}
      {@code pricingMethod}{@link RateCardCustomizationGroup#pricingMethod}
      + * + * @param filterStatement a Publisher Query Language statement to filter a + * list of rate card customization groups. + * @return the rate card customization groups that match the filter + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class GetRateCardCustomizationGroupsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("GetRateCardCustomizationGroupsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class GetRateCardCustomizationGroupsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = ""; + + /** + * @access public + * @var RateCardCustomizationGroupPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + +}} + +if (!class_exists("UpdateRateCardCustomizationGroups", FALSE)) { +/** + * Updates the specified {@link RateCardCustomizationGroup} objects. + * + * @param rateCardCustomizationGroups the rate card customization groups to be updated + * @return the updated rate card customization groups + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class UpdateRateCardCustomizationGroups { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = ""; + + /** + * @access public + * @var RateCardCustomizationGroup[] + */ + public $rateCardCustomizationGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rateCardCustomizationGroups = null) { + $this->rateCardCustomizationGroups = $rateCardCustomizationGroups; + } + +}} + +if (!class_exists("UpdateRateCardCustomizationGroupsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class UpdateRateCardCustomizationGroupsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = ""; + + /** + * @access public + * @var RateCardCustomizationGroup[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + +}} + +if (!class_exists("AdUnitRateCardFeature", FALSE)) { +/** + * A rate customization applied to ad unit targeting. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class AdUnitRateCardFeature extends RateCardFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BandwidthRateCardFeature extends RateCardFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BrowserRateCardFeature extends RateCardFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BrowserLanguageRateCardFeature extends RateCardFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomTargetingRateCardFeature extends RateCardFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("FrequencyCapRateCardFeature", FALSE)) { +/** + * A rate customization applied to frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class FrequencyCapRateCardFeature extends RateCardFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GeographyRateCardFeature extends RateCardFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OperatingSystemRateCardFeature extends RateCardFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PlacementRateCardFeature extends RateCardFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("RateCardCustomizationGroupService", FALSE)) { +/** + * RateCardCustomizationGroupService + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class RateCardCustomizationGroupService extends DfpSoapClient { + + const SERVICE_NAME = "RateCardCustomizationGroupService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/RateCardCustomizationGroupService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/RateCardCustomizationGroupService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "AdUnitRateCardFeature" => "AdUnitRateCardFeature", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BandwidthRateCardFeature" => "BandwidthRateCardFeature", + "BooleanValue" => "BooleanValue", + "BrowserRateCardFeature" => "BrowserRateCardFeature", + "BrowserLanguageRateCardFeature" => "BrowserLanguageRateCardFeature", + "CommonError" => "CommonError", + "CustomTargetingRateCardFeature" => "CustomTargetingRateCardFeature", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "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", + "RateCardCustomizationGroup" => "RateCardCustomizationGroup", + "RateCardCustomizationGroupError" => "RateCardCustomizationGroupError", + "RateCardCustomizationGroupPage" => "RateCardCustomizationGroupPage", + "RateCardFeature" => "RateCardFeature", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UnknownRateCardFeature" => "UnknownRateCardFeature", + "UserDomainRateCardFeature" => "UserDomainRateCardFeature", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "PricingMethod" => "PricingMethod", + "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", + "RateCardCustomizationGroupError.Reason" => "RateCardCustomizationGroupErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "createRateCardCustomizationGroups" => "CreateRateCardCustomizationGroups", + "createRateCardCustomizationGroupsResponse" => "CreateRateCardCustomizationGroupsResponse", + "getRateCardCustomizationGroupsByStatement" => "GetRateCardCustomizationGroupsByStatement", + "getRateCardCustomizationGroupsByStatementResponse" => "GetRateCardCustomizationGroupsByStatementResponse", + "updateRateCardCustomizationGroups" => "UpdateRateCardCustomizationGroups", + "updateRateCardCustomizationGroupsResponse" => "UpdateRateCardCustomizationGroupsResponse", + ); + + + /** + * 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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * Creates a list of new {@link RateCardCustomizationGroup} objects. + * + * @param rateCardCustomizationGroups the rate card customization groups to be created + * @return the rate card customization groups with their IDs filled in + */ + public function createRateCardCustomizationGroups($rateCardCustomizationGroups) { + $args = new CreateRateCardCustomizationGroups($rateCardCustomizationGroups); + $result = $this->__soapCall("createRateCardCustomizationGroups", array($args)); + return $result->rval; + } + /** + * Gets a {@link RateCardCustomizationGroupPage} of + * {@link RateCardCustomizationGroup} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link RateCardCustomizationGroup#id}
      {@code rateCardId}{@link RateCardCustomizationGroup#rateCardId}
      {@code pricingMethod}{@link RateCardCustomizationGroup#pricingMethod}
      + * + * @param filterStatement a Publisher Query Language statement to filter a + * list of rate card customization groups. + * @return the rate card customization groups that match the filter + */ + public function getRateCardCustomizationGroupsByStatement($filterStatement) { + $args = new GetRateCardCustomizationGroupsByStatement($filterStatement); + $result = $this->__soapCall("getRateCardCustomizationGroupsByStatement", array($args)); + return $result->rval; + } + /** + * Updates the specified {@link RateCardCustomizationGroup} objects. + * + * @param rateCardCustomizationGroups the rate card customization groups to be updated + * @return the updated rate card customization groups + */ + public function updateRateCardCustomizationGroups($rateCardCustomizationGroups) { + $args = new UpdateRateCardCustomizationGroups($rateCardCustomizationGroups); + $result = $this->__soapCall("updateRateCardCustomizationGroups", array($args)); + return $result->rval; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/RateCardCustomizationService.php b/src/Google/Api/Ads/Dfp/v201403/RateCardCustomizationService.php new file mode 100755 index 000000000..84f5ee736 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/RateCardCustomizationService.php @@ -0,0 +1,3668 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RateCardCustomizationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class RateCardCustomization { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "RateCardCustomization"; + + /** + * @access public + * @var integer + */ + public $rateCardCustomizationGroupId; + + /** + * @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($rateCardCustomizationGroupId = null, $id = null, $status = null, $rateCardFeature = null, $adjustmentType = null, $adjustmentSize = null, $rateType = null) { + $this->rateCardCustomizationGroupId = $rateCardCustomizationGroupId; + $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 v201403 + */ +class RateCardCustomizationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RateCardCustomizationPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RateCardFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UnknownRateCardFeature extends RateCardFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UserDomainRateCardFeature extends RateCardFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RateCardCustomizationAdjustmentType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RateCardCustomizationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RateCardCustomizationStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RateType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class CreateRateCardCustomizations { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreateRateCardCustomizationsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 id}{@link RateCardCustomization#id}
      {@code status}{@link RateCardCustomization#status}
      + * + * @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 v201403 + */ +class GetRateCardCustomizationsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetRateCardCustomizationsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformRateCardCustomizationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformRateCardCustomizationActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class UpdateRateCardCustomizations { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateRateCardCustomizationsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ActivateRateCardCustomizations extends RateCardCustomizationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdUnitRateCardFeature extends RateCardFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BandwidthRateCardFeature extends RateCardFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BrowserRateCardFeature extends RateCardFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BrowserLanguageRateCardFeature extends RateCardFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomTargetingRateCardFeature extends RateCardFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeactivateRateCardCustomizations extends RateCardCustomizationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FrequencyCapRateCardFeature extends RateCardFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GeographyRateCardFeature extends RateCardFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class OperatingSystemRateCardFeature extends RateCardFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PlacementRateCardFeature extends RateCardFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RateCardCustomizationService extends DfpSoapClient { + + const SERVICE_NAME = "RateCardCustomizationService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/RateCardCustomizationService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "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", + "createRateCardCustomizations" => "CreateRateCardCustomizations", + "createRateCardCustomizationsResponse" => "CreateRateCardCustomizationsResponse", + "getRateCardCustomizationsByStatement" => "GetRateCardCustomizationsByStatement", + "getRateCardCustomizationsByStatementResponse" => "GetRateCardCustomizationsByStatementResponse", + "performRateCardCustomizationAction" => "PerformRateCardCustomizationAction", + "performRateCardCustomizationActionResponse" => "PerformRateCardCustomizationActionResponse", + "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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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; + } + /** + * 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 id}{@link RateCardCustomization#id}
      {@code status}{@link RateCardCustomization#status}
      + * + * @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} 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/RateCardService.php b/src/Google/Api/Ads/Dfp/v201403/RateCardService.php new file mode 100755 index 000000000..77f5fa0bf --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/RateCardService.php @@ -0,0 +1,3591 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("RateCardAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link RateCard} objects. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class RateCardAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RateCardActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RateCard { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("RateCardError", FALSE)) { +/** + * An error having to do with {@link RateCard}. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class RateCardError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + +}} + +if (!class_exists("RateCardPage", FALSE)) { +/** + * Captures a page of {@link RateCard} objects. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class RateCardPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("RateCardActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class RateCardActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("RateCardErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class RateCardErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "RateCardError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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 v201403 + */ +class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RateCardStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class CreateRateCards { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreateRateCardsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetRateCardsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetRateCardsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformRateCardAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformRateCardActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class UpdateRateCards { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateRateCardsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ActivateRateCards extends RateCardAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeactivateRateCards extends RateCardAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RateCardService extends DfpSoapClient { + + const SERVICE_NAME = "RateCardService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/RateCardService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "BooleanValue" => "BooleanValue", + "CommonError" => "CommonError", + "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", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "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", + "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", + "CommonError.Reason" => "CommonErrorReason", + "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", + "RateCardActionError.Reason" => "RateCardActionErrorReason", + "RateCardError.Reason" => "RateCardErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "RateCardStatus" => "RateCardStatus", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "createRateCards" => "CreateRateCards", + "createRateCardsResponse" => "CreateRateCardsResponse", + "getRateCardsByStatement" => "GetRateCardsByStatement", + "getRateCardsByStatementResponse" => "GetRateCardsByStatementResponse", + "performRateCardAction" => "PerformRateCardAction", + "performRateCardActionResponse" => "PerformRateCardActionResponse", + "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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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; + } + /** + * 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 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/ReconciliationOrderReportService.php b/src/Google/Api/Ads/Dfp/v201403/ReconciliationOrderReportService.php new file mode 100755 index 000000000..1a4a1612a --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/ReconciliationOrderReportService.php @@ -0,0 +1,2999 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReconciliationOrderReportAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReconciliationOrderReport { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReconciliationOrderReportPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SubmitReconciliationOrderReports extends ReconciliationOrderReportAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReconciliationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RevertReconciliationOrderReports extends ReconciliationOrderReportAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReconciliationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReconciliationOrderReportStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 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 v201403 + */ +class GetReconciliationOrderReportsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetReconciliationOrderReportsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 reconciliationReportId}{@link ReconciliationOrderReport#reconciliationReportId}
      + * + * The {@code reconciliationReportId} field and {@code orderId} are required and can only be + * combined with an {@code AND}. Furthermore, the results may only belong to one + * {@link ReconciliationReport}. + * 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 v201403 + */ +class PerformReconciliationOrderReportAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformReconciliationOrderReportActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReconciliationOrderReportService extends DfpSoapClient { + + const SERVICE_NAME = "ReconciliationOrderReportService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/ReconciliationOrderReportService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "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", + "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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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 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 reconciliationReportId}{@link ReconciliationOrderReport#reconciliationReportId}
      + * + * The {@code reconciliationReportId} field and {@code orderId} are required and can only be + * combined with an {@code AND}. Furthermore, the results may only belong to one + * {@link ReconciliationReport}. + * 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/ReconciliationReportRowService.php b/src/Google/Api/Ads/Dfp/v201403/ReconciliationReportRowService.php new file mode 100755 index 000000000..f426fcf7a --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/ReconciliationReportRowService.php @@ -0,0 +1,3113 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Money { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReconciliationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReconciliationImportError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReconciliationReportRow { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 tnsRateType + */ + public $rateType; + + /** + * @access public + * @var Money + */ + public $lineItemCostPerUnit; + + /** + * @access public + * @var integer + */ + public $lineItemContractedUnitsBought; + + /** + * @access public + * @var integer + */ + public $dfpVolume; + + /** + * @access public + * @var integer + */ + public $thirdPartyVolume; + + /** + * @access public + * @var integer + */ + public $manualVolume; + + /** + * @access public + * @var integer + */ + public $reconciledVolume; + + /** + * @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, $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->billFrom = $billFrom; + $this->rateType = $rateType; + $this->lineItemCostPerUnit = $lineItemCostPerUnit; + $this->lineItemContractedUnitsBought = $lineItemContractedUnitsBought; + $this->dfpVolume = $dfpVolume; + $this->thirdPartyVolume = $thirdPartyVolume; + $this->manualVolume = $manualVolume; + $this->reconciledVolume = $reconciledVolume; + $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 v201403 + */ +class ReconciliationReportRowPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BillFrom { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RateType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReconciliationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReconciliationImportErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetReconciliationReportRowsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetReconciliationReportRowsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateReconciliationReportRows { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateReconciliationReportRowsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReconciliationReportRowService extends DfpSoapClient { + + const SERVICE_NAME = "ReconciliationReportRowService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/ReconciliationReportRowService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "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", + "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", + "RateType" => "RateType", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/ReconciliationReportService.php b/src/Google/Api/Ads/Dfp/v201403/ReconciliationReportService.php new file mode 100755 index 000000000..6c1e98507 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/ReconciliationReportService.php @@ -0,0 +1,2797 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReconciliationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReconciliationImportError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReconciliationReport { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReconciliationReportPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReconciliationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReconciliationImportErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReconciliationReportStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class GetReconciliationReportsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetReconciliationReportsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class UpdateReconciliationReports { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateReconciliationReportsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReconciliationReportService extends DfpSoapClient { + + const SERVICE_NAME = "ReconciliationReportService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/ReconciliationReportService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "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", + "getReconciliationReportsByStatement" => "GetReconciliationReportsByStatement", + "getReconciliationReportsByStatementResponse" => "GetReconciliationReportsByStatementResponse", + "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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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} 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/ReportService.php b/src/Google/Api/Ads/Dfp/v201403/ReportService.php new file mode 100755 index 000000000..491f1b38d --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/ReportService.php @@ -0,0 +1,3191 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReportDownloadOptions { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReportError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReportJob { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReportQuery { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 integer[] + */ + public $contentMetadataKeyHierarchyCustomTargetingKeyIds; + + /** + * @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, $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; + $this->dimensionFilters = $dimensionFilters; + $this->statement = $statement; + $this->timeZone = $timeZone; + } + +}} + +if (!class_exists("RequiredError", FALSE)) { +/** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReportQueryAdUnitView { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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}. + * 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 v201403 + */ +class Column { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateRangeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Dimension { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DimensionAttribute { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DimensionFilter { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ExportFormat { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReportErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReportJobStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetReportDownloadURL { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetReportDownloadURLResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetReportDownloadUrlWithOptions { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetReportDownloadUrlWithOptionsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetReportJob { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetReportJobResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RunReportJob { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RunReportJobResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ReportService extends DfpSoapClient { + + const SERVICE_NAME = "ReportService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/ReportService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "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=null, $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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/SuggestedAdUnitService.php b/src/Google/Api/Ads/Dfp/v201403/SuggestedAdUnitService.php new file mode 100755 index 000000000..39728abe9 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/SuggestedAdUnitService.php @@ -0,0 +1,3173 @@ +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 v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdUnitSize { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SuggestedAdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SuggestedAdUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SuggestedAdUnitPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SuggestedAdUnitUpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AdUnitTargetWindow { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class EnvironmentType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TargetPlatform { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class GetSuggestedAdUnitsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetSuggestedAdUnitsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformSuggestedAdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformSuggestedAdUnitActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApproveSuggestedAdUnit extends SuggestedAdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SuggestedAdUnitService extends DfpSoapClient { + + const SERVICE_NAME = "SuggestedAdUnitService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/SuggestedAdUnitService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "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", + "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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/TeamService.php b/src/Google/Api/Ads/Dfp/v201403/TeamService.php new file mode 100755 index 000000000..d683c4098 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/TeamService.php @@ -0,0 +1,2850 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Team { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TeamPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TeamAccessType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class CreateTeams { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreateTeamsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetTeamsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetTeamsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("UpdateTeams", FALSE)) { +/** + * Updates the specified {@link Team} objects. + * + * @param teams the teams to update + * @return the updated teams + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class UpdateTeams { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateTeamsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TeamService extends DfpSoapClient { + + const SERVICE_NAME = "TeamService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/TeamService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "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", + "SetValue" => "SetValue", + "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", + "createTeams" => "CreateTeams", + "createTeamsResponse" => "CreateTeamsResponse", + "getTeamsByStatement" => "GetTeamsByStatement", + "getTeamsByStatementResponse" => "GetTeamsByStatementResponse", + "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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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; + } + /** + * 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 {@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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/UserService.php b/src/Google/Api/Ads/Dfp/v201403/UserService.php new file mode 100755 index 000000000..eefc0e4dd --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/UserService.php @@ -0,0 +1,3777 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomFieldValueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InvalidEmailError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Role { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UserAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UserPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UserRecord { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InvalidEmailErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class CreateUsers { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreateUsersResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetAllRoles { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetAllRolesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetCurrentUser { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetCurrentUserResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetUsersByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetUsersByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformUserAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformUserActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("UpdateUsers", FALSE)) { +/** + * Updates the specified {@link User} objects. + * + * @param users the users to update + * @return the updated users + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class UpdateUsers { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateUsersResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ActivateUsers extends UserAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeactivateUsers extends UserAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class User extends UserRecord { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UserService extends DfpSoapClient { + + const SERVICE_NAME = "UserService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/UserService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "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", + "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", + "createUsers" => "CreateUsers", + "createUsersResponse" => "CreateUsersResponse", + "getAllRoles" => "GetAllRoles", + "getAllRolesResponse" => "GetAllRolesResponse", + "getCurrentUser" => "GetCurrentUser", + "getCurrentUserResponse" => "GetCurrentUserResponse", + "getUsersByStatement" => "GetUsersByStatement", + "getUsersByStatementResponse" => "GetUsersByStatementResponse", + "performUserAction" => "PerformUserAction", + "performUserActionResponse" => "PerformUserActionResponse", + "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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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; + } + /** + * 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} 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/UserTeamAssociationService.php b/src/Google/Api/Ads/Dfp/v201403/UserTeamAssociationService.php new file mode 100755 index 000000000..b1b2ceda2 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/UserTeamAssociationService.php @@ -0,0 +1,2905 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UserRecordTeamAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UserTeamAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UserTeamAssociation extends UserRecordTeamAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UserTeamAssociationPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TeamAccessType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class CreateUserTeamAssociations { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CreateUserTeamAssociationsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetUserTeamAssociationsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class GetUserTeamAssociationsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformUserTeamAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PerformUserTeamAssociationActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("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 v201403 + */ +class UpdateUserTeamAssociations { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateUserTeamAssociationsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DeleteUserTeamAssociations extends UserTeamAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UserTeamAssociationService extends DfpSoapClient { + + const SERVICE_NAME = "UserTeamAssociationService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/UserTeamAssociationService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/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", + "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", + "createUserTeamAssociations" => "CreateUserTeamAssociations", + "createUserTeamAssociationsResponse" => "CreateUserTeamAssociationsResponse", + "getUserTeamAssociationsByStatement" => "GetUserTeamAssociationsByStatement", + "getUserTeamAssociationsByStatementResponse" => "GetUserTeamAssociationsByStatementResponse", + "performUserTeamAssociationAction" => "PerformUserTeamAssociationAction", + "performUserTeamAssociationActionResponse" => "PerformUserTeamAssociationActionResponse", + "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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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; + } + /** + * 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} 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; + } +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201403/WorkflowRequestService.php b/src/Google/Api/Ads/Dfp/v201403/WorkflowRequestService.php new file mode 100755 index 000000000..19e61623e --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201403/WorkflowRequestService.php @@ -0,0 +1,2891 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("WorkflowRequest", FALSE)) { +/** + * A {@code WorkflowRequest} represents a workflow action unit that requires external or manual + * interference. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class WorkflowRequest { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "WorkflowRequest"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $workflowRuleName; + + /** + * @access public + * @var integer + */ + public $entityId; + + /** + * @access public + * @var tnsWorkflowEntityType + */ + public $entityType; + + /** + * @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 + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the 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, $workflowRuleName = null, $entityId = null, $entityType = null, $WorkflowRequestType = null) { + $this->id = $id; + $this->workflowRuleName = $workflowRuleName; + $this->entityId = $entityId; + $this->entityType = $entityType; + $this->WorkflowRequestType = $WorkflowRequestType; + } + +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ForecastError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("LineItemOperationError", FALSE)) { +/** + * Lists all errors for executing operations on line items + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class LineItemOperationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DfpOAuth extends Authentication { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("WorkflowApprovalRequest", FALSE)) { +/** + * A {@code WorkflowApprovalRequest} represents a workflow action unit that requires user approval. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class WorkflowApprovalRequest extends WorkflowRequest { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "WorkflowApprovalRequest"; + + /** + * @access public + * @var tnsWorkflowApprovalRequestStatus + */ + 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($status = null, $id = null, $workflowRuleName = null, $entityId = null, $entityType = null, $WorkflowRequestType = null) { + parent::__construct(); + $this->status = $status; + $this->id = $id; + $this->workflowRuleName = $workflowRuleName; + $this->entityId = $entityId; + $this->entityType = $entityType; + $this->WorkflowRequestType = $WorkflowRequestType; + } + +}} + +if (!class_exists("WorkflowRequestAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link WorkflowRequest} objects. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class WorkflowRequestAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "WorkflowRequestAction"; + + /** + * @access public + * @var string + */ + public $WorkflowRequestActionType; + private $_parameterMap = array( + "WorkflowRequestAction.Type" => "WorkflowRequestActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { + $this->{$this->_parameterMap[$var]} = $value; + } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get + * @return mixed Variable value + */ + public function __get($var) { + if (!isset($this->_parameterMap[$var])) { + return null; + } + return $this->{$this->_parameterMap[$var]}; + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($WorkflowRequestActionType = null) { + $this->WorkflowRequestActionType = $WorkflowRequestActionType; + } + +}} + +if (!class_exists("WorkflowRequestPage", FALSE)) { +/** + * Captures a page of {@link WorkflowRequest} objects. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class WorkflowRequestPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "WorkflowRequestPage"; + + /** + * @access public + * @var WorkflowRequest[] + */ + 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("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("WorkflowApprovalRequestStatus", FALSE)) { +/** + * The status of the workflow approval request. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class WorkflowApprovalRequestStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "WorkflowApprovalRequestStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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 v201403 + */ +class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ForecastErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("LineItemOperationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class LineItemOperationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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. + * 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 v201403 + */ +class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("WorkflowEntityType", FALSE)) { +/** + * The entity types that workflows can be applied to. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class WorkflowEntityType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "WorkflowEntityType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name 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}. + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link WorkflowRequest#id}
      {@code workflowRuleName}{@link WorkflowRequest#workflowRuleName}
      {@code status}{@link WorkflowApprovalRequest#status}
      {@code entityType}{@link WorkflowRequest#entityType}
      {@code entityId}{@link WorkflowRequest#entityId}
      + * + * @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 v201403 + */ +class GetWorkflowRequestsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("GetWorkflowRequestsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class GetWorkflowRequestsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = ""; + + /** + * @access public + * @var WorkflowRequestPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + +}} + +if (!class_exists("PerformWorkflowRequestAction", FALSE)) { +/** + * Perform actions on {@link WorkflowRequest} objects that match the given + * {@link Statement#query}. + * + * @param action the action to perform + * @param filterStatement a Publisher Query Language statement used to filter a set of workflow + * requests + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class PerformWorkflowRequestAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = ""; + + /** + * @access public + * @var WorkflowRequestAction + */ + 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("PerformWorkflowRequestActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class PerformWorkflowRequestActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("ApproveWorkflowApprovalRequests", FALSE)) { +/** + * The action used to approve {@link WorkflowApprovalRequest workflow approval requests}. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class ApproveWorkflowApprovalRequests extends WorkflowRequestAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "ApproveWorkflowApprovalRequests"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($WorkflowRequestActionType = null) { + parent::__construct(); + $this->WorkflowRequestActionType = $WorkflowRequestActionType; + } + +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("RejectWorkflowApprovalRequests", FALSE)) { +/** + * The action used to reject {@link WorkflowApprovalRequest workflow approval requests}. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class RejectWorkflowApprovalRequests extends WorkflowRequestAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "RejectWorkflowApprovalRequests"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($WorkflowRequestActionType = null) { + parent::__construct(); + $this->WorkflowRequestActionType = $WorkflowRequestActionType; + } + +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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 v201403 + */ +class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + 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("WorkflowRequestService", FALSE)) { +/** + * WorkflowRequestService + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ +class WorkflowRequestService extends DfpSoapClient { + + const SERVICE_NAME = "WorkflowRequestService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const ENDPOINT = "https://www.google.com/apis/ads/publisher/v201403/WorkflowRequestService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201403/WorkflowRequestService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "ApproveWorkflowApprovalRequests" => "ApproveWorkflowApprovalRequests", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "WorkflowRequest" => "WorkflowRequest", + "BooleanValue" => "BooleanValue", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "ForecastError" => "ForecastError", + "InternalApiError" => "InternalApiError", + "LineItemOperationError" => "LineItemOperationError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "OAuth" => "DfpOAuth", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RejectWorkflowApprovalRequests" => "RejectWorkflowApprovalRequests", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UpdateResult" => "UpdateResult", + "Value" => "Value", + "WorkflowApprovalRequest" => "WorkflowApprovalRequest", + "WorkflowRequestAction" => "WorkflowRequestAction", + "WorkflowRequestPage" => "WorkflowRequestPage", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "WorkflowApprovalRequestStatus" => "WorkflowApprovalRequestStatus", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "LineItemOperationError.Reason" => "LineItemOperationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "WorkflowEntityType" => "WorkflowEntityType", + "getWorkflowRequestsByStatement" => "GetWorkflowRequestsByStatement", + "getWorkflowRequestsByStatementResponse" => "GetWorkflowRequestsByStatementResponse", + "performWorkflowRequestAction" => "PerformWorkflowRequestAction", + "performWorkflowRequestActionResponse" => "PerformWorkflowRequestActionResponse", + ); + + + /** + * 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=null, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * Gets a list of {@link WorkflowRequest} objects that satisfy the given {@link Statement#query}. + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link WorkflowRequest#id}
      {@code workflowRuleName}{@link WorkflowRequest#workflowRuleName}
      {@code status}{@link WorkflowApprovalRequest#status}
      {@code entityType}{@link WorkflowRequest#entityType}
      {@code entityId}{@link WorkflowRequest#entityId}
      + * + * @param filterStatement a Publisher Query Language statement used to filter a set of proposals + * @return the workflow requests that match the given filter + */ + public function getWorkflowRequestsByStatement($filterStatement) { + $args = new GetWorkflowRequestsByStatement($filterStatement); + $result = $this->__soapCall("getWorkflowRequestsByStatement", array($args)); + return $result->rval; + } + /** + * Perform actions on {@link WorkflowRequest} objects that match the given + * {@link Statement#query}. + * + * @param action the action to perform + * @param filterStatement a Publisher Query Language statement used to filter a set of workflow + * requests + * @return the result of the action performed + */ + public function performWorkflowRequestAction($action, $filterStatement) { + $args = new PerformWorkflowRequestAction($action, $filterStatement); + $result = $this->__soapCall("performWorkflowRequestAction", array($args)); + return $result->rval; + } +}} \ No newline at end of file diff --git a/src/README.md b/src/README.md new file mode 100755 index 000000000..d94aab7bb --- /dev/null +++ b/src/README.md @@ -0,0 +1,3 @@ +Copy the contents of this directory to the location of your PHP source files +that is on your PHP include path. + diff --git a/tests/Google/Api/Ads/AdWords/AdWordsIntegrationTest.php b/tests/Google/Api/Ads/AdWords/AdWordsIntegrationTest.php new file mode 100755 index 000000000..6d7b2511c --- /dev/null +++ b/tests/Google/Api/Ads/AdWords/AdWordsIntegrationTest.php @@ -0,0 +1,238 @@ +xmlResponse = $assetHelper->getAsset( + sprintf(self::RESPONSE_NAME, self::SERVICE)); + + $this->adWordsUser = new AdWordsUser( + $assetHelper->getAssetPath('auth.ini')); + } + + /** + * Tests that the user agent header is properly set for this client library. + */ + public function testIntegrationCheckUserAgent() { + $campaignService = $this->adWordsUser->getService(self::SERVICE); + + // Build a mocked SoapClient. + $headerPortion = implode('/', + $this->adWordsUser->GetClientLibraryNameAndVersion()); + + // Setup the test. + $soapClientMock = $this->getMockBuilder('SoapClient') + ->setMethods(array('__doRequest')) + ->disableOriginalConstructor() + ->getMock(); + + $soapClientMock->expects($this->any()) + ->method('__doRequest') + ->with($this->stringContains($headerPortion, false)) + ->will($this->returnValue($this->xmlResponse)); + + // Set the transport layer on the soap client to be the mocked soap client. + $campaignService->__SetTransportLayer($soapClientMock); + + // Create selector. + $selector = new Selector(); + // Specify the fields to retrieve. + $selector->fields = array('Login', 'CustomerId', 'Name'); + + // Make the get request. + $graph = $campaignService->get($selector); + + $this->assertEquals($graph->entries[0]->id, self::CAMPAIGN_ID); + } + + /** + * Tests that the user access_token is properly set in the URL for this client + * library. + */ + public function testIntegrationCheckSoapHeaders() { + $campaignService = $this->adWordsUser->getService(self::SERVICE); + + $oauth2AccessToken = ''; + $oAuth2Info = $this->adWordsUser->GetOAuth2Info(); + if (is_array($oAuth2Info) && isset($oAuth2Info['access_token'])) { + $oauth2AccessToken = $oAuth2Info['access_token']; + } + $oauth2Url = http_build_query(array('access_token' => $oauth2AccessToken)); + + // Setup the test. + $soapClientMock = $this->getMockBuilder('SoapClient') + ->setMethods(array('__doRequest')) + ->disableOriginalConstructor() + ->getMock(); + + // Checking for the URL param for the auth token + // (passed in the second function param) + $soapClientMock->expects($this->any()) + ->method('__doRequest') + ->with($this->anything(), $this->stringContains($oauth2Url)) + ->will($this->returnValue($this->xmlResponse)); + + // Set the transport layer on the soap client to be the mocked soap client. + $campaignService->__SetTransportLayer($soapClientMock); + + // Create selector. + $selector = new Selector(); + // Specify the fields to retrieve. + $selector->fields = array('Login', 'CustomerId', 'Name'); + + // Make the get request. + $campaignService->get($selector); + + $this->assertFalse(empty($oauth2AccessToken)); + } + + /** + * Tests that access_token is properly converted into a URL parameter for this + * client library when it's valid. + */ + public function testIntegrationOAuth2Handler_ValidAccessToken() { + $credentialsOverride = array( + 'access_token' => sprintf('TEST_ACCESS_TOKEN_%s', uniqid()) + ); + + $campaignService = $this->adWordsUser->getService(self::SERVICE); + + $oAuth2Info = $this->adWordsUser->GetOAuth2Info(); + $this->adWordsUser->SetOAuth2Info(array_merge($oAuth2Info, + $credentialsOverride)); + + // Get the expected auth param for the URL. + $oauth2Url = http_build_query( + array('access_token' => $credentialsOverride['access_token'])); + + // Setup the test. + $soapClientMock = $this->getMockBuilder('SoapClient') + ->setMethods(array('__doRequest')) + ->disableOriginalConstructor() + ->getMock(); + + // Checking for the URL param for the auth token + // (passed in the second function param) + $soapClientMock->expects($this->any()) + ->method('__doRequest') + ->with($this->anything(), $this->stringContains($oauth2Url)) + ->will($this->returnValue($this->xmlResponse)); + + // Set the transport layer on the soap client to be the mocked soap client. + $campaignService->__SetTransportLayer($soapClientMock); + + // Create selector. + $selector = new Selector(); + // Specify the fields to retrieve. + $selector->fields = array('Login', 'CustomerId', 'Name'); + + // Make the get request. + $campaignService->get($selector); + } + + /** + * Tests that the access_token is refreshed correctly and set on the URL + * params for this client library. + */ + public function testIntegrationOAuth2Handler_InvalidAccessToken() { + $credentialsOverride = array( + 'access_token' => sprintf('TEST_ACCESS_TOKEN_%s', uniqid()), + 'refresh_token' => sprintf('TEST_REFRESH_TOKEN_%s', uniqid()), + 'expires_in' => '3600', + 'timestamp' => strtotime('-1 day'), + ); + $credentialsRefreshed = array( + 'access_token' => sprintf('TEST_ACCESS_TOKEN_%s', uniqid()), + 'refresh_token' => $credentialsOverride['refresh_token'], + 'expires_in' => '3600', + 'timestamp' => time(), + 'Foo' => 'bar', + ); + + $campaignService = $this->adWordsUser->getService(self::SERVICE); + + $oAuth2Info = $this->adWordsUser->GetOAuth2Info(); + $newOAuth2Info = array_merge($oAuth2Info, $credentialsOverride); + $this->adWordsUser->SetOAuth2Info($newOAuth2Info); + + // Get the expected auth param for the URL. + $oauth2Url = http_build_query( + array('access_token' => $credentialsRefreshed['access_token'])); + + // Setup the mocked OAuth2Handler class. + $oAuth2Handler = $this->getMock('SimpleOAuth2Handler', + array('RefreshAccessToken')); + + $oAuth2Handler->expects($this->any()) + ->method('RefreshAccessToken') + ->will($this->returnValue($credentialsRefreshed)); + $this->adWordsUser->SetOAuth2Handler($oAuth2Handler); + + // Setup the test. + $soapClientMock = $this->getMockBuilder('SoapClient') + ->setMethods(array('__doRequest')) + ->disableOriginalConstructor() + ->getMock(); + + // Checking for the URL param for the auth token (passed in the second + // function param). + $soapClientMock->expects($this->any()) + ->method('__doRequest') + ->with($this->anything(), $this->stringContains($oauth2Url)) + ->will($this->returnValue($this->xmlResponse)); + + // Set the transport layer on the soap client to be the mocked soap client. + $campaignService->__SetTransportLayer($soapClientMock); + + // Create selector. + $selector = new Selector(); + // Specify the fields to retrieve. + $selector->fields = array('Login', 'CustomerId', 'Name'); + + // Make the get request. + $campaignService->get($selector); + } +} diff --git a/tests/Google/Api/Ads/AdWords/CampaignService-response.xml b/tests/Google/Api/Ads/AdWords/CampaignService-response.xml new file mode 100755 index 000000000..638b32829 --- /dev/null +++ b/tests/Google/Api/Ads/AdWords/CampaignService-response.xml @@ -0,0 +1 @@ +00000000000000000000000000000000CampaignServiceget036906CampaignPage000000000Test Campaign #0ALLCampaignStats0Campaign.suggestedMobileBidAdjustment0.8000000000Test Campaign #1ALLCampaignStats0Campaign.suggestedMobileBidAdjustment0.883606801Test Campaign #2ALLCampaignStats0Campaign.suggestedMobileBidAdjustment0.883606921Test Campaign #3ALLCampaignStats0Campaign.suggestedMobileBidAdjustment0.887243041Test Campaign #4ALLCampaignStats0Campaign.suggestedMobileBidAdjustment0.8000000000Test Campaign #5ALLCampaignStats0Campaign.suggestedMobileBidAdjustment0.8 diff --git a/tests/Google/Api/Ads/AdWords/Lib/AdWordsUserTest.php b/tests/Google/Api/Ads/AdWords/Lib/AdWordsUserTest.php new file mode 100755 index 000000000..dcfdc8f7e --- /dev/null +++ b/tests/Google/Api/Ads/AdWords/Lib/AdWordsUserTest.php @@ -0,0 +1,125 @@ +authIniFilePath = tempnam(sys_get_temp_dir(), 'auth.ini.'); + $this->mockOAuth2Credential = array('client_id' => 'cid', + 'client_secret' => 'csecret', 'refresh_token' => 'token'); + } + + /** + * @covers AdsUser::GetClientLibraryUserAgent + */ + public function + testGetClientLibraryUserAgentReturnsCorrectlyFormattedUserAgent() { + $USER_AGENT = 'AdWordsApiPhpClient-test'; + $LIB_NAME = 'AwApi-PHP'; + $COMMON_NAME = 'Common-PHP'; + $VERSION_REGEX = '\d{1,2}\.\d{1,2}\.\d{1,2}'; + + $user = new AdWordsUser($this->authIniFilePath, null, null, 'devToken', + null, $USER_AGENT, null, null, null, $this->mockOAuth2Credential); + + // Example: "AdWordsApiPhpClient-test (AwApi-PHP/4.1.1, Common-PHP/5.0.0, + // PHP/5.4.8)" + $search = sprintf( + '/^%s \(%s\/%s, %s\/%s, PHP\/%s\)$/', + preg_quote($user->GetUserAgent()), + preg_quote($LIB_NAME), + $VERSION_REGEX, + preg_quote($COMMON_NAME), + $VERSION_REGEX, + preg_quote(PHP_VERSION) + ); + + $this->assertRegExp($search, $user->GetClientLibraryUserAgent()); + } + + /** + * @expectedException ValidationException + * @covers AdWordsUser::ValidateUser + */ + public function + testValidateUserWithNullUserAgentFailsWithValidationException() { + $user = new AdWordsUser($this->authIniFilePath, null, null, 'devToken', + null, null, null, null, null, $this->mockOAuth2Credential); + $user->validateUser(); + } + + /** + * @expectedException ValidationException + * @covers AdWordsUser::ValidateUser + */ + public function + testValidateUserWithEmptyUserAgentFailsWithValidationException() { + $user = new AdWordsUser($this->authIniFilePath, null, null, 'devToken', + null, '', null, null, null, $this->mockOAuth2Credential); + $user->validateUser(); + } + + /** + * @expectedException ValidationException + * @covers AdWordsUser::ValidateUser + */ + public function + testValidateUserWithDefaultUserAgentFailsWithValidationException() { + $user = new AdWordsUser($this->authIniFilePath, null, null, 'devToken', + null, 'INSERT_COMPANY_NAME_HERE', null, null, null, + $this->mockOAuth2Credential); + $user->validateUser(); + } + + /** + * Tests that instantiating an AdWordsUser with an auth.ini file that has the + * key "clientId" will throw an exception because it has been changed to + * "clientCustomerId". + * + * @expectedException ValidationException + * @covers AdWordsUser::__construct + */ + public function testConstructWithClientIdFailsWithValidationException() { + $authIniFile = fopen($this->authIniFilePath, 'w'); + fwrite($authIniFile, 'clientId = "12345678"'); + fclose($authIniFile); + + new AdWordsUser($this->authIniFilePath, null, null, null, null, null, null, + null); + } +} + diff --git a/tests/Google/Api/Ads/AdWords/auth.ini b/tests/Google/Api/Ads/AdWords/auth.ini new file mode 100755 index 000000000..fc9b9cd69 --- /dev/null +++ b/tests/Google/Api/Ads/AdWords/auth.ini @@ -0,0 +1,9 @@ +developerToken = "testDevToken" +userAgent = "test-company" + +[OAUTH2] +client_id = "TestClientId" +client_secret = "TestClientSecret" +refresh_token = "TestRefreshToken" +access_token = "TestAccessToken" + diff --git a/tests/Google/Api/Ads/Common/Lib/AdsSoapClientTest.php b/tests/Google/Api/Ads/Common/Lib/AdsSoapClientTest.php new file mode 100755 index 000000000..41466cc7d --- /dev/null +++ b/tests/Google/Api/Ads/Common/Lib/AdsSoapClientTest.php @@ -0,0 +1,112 @@ +assertEquals($value, $result); + $this->assertEquals($type, gettype($result)); + } + + /** + * Tests serializing a long field value. + * @covers AdsSoapClient::TypemapLongToXml + * @dataProvider TypemapLongToXmlProvider + */ + public function testTypemapLongToXml($xml, $value, $type) { + $result = AdsSoapClient::TypemapLongToXml($value); + $this->assertEquals($xml, $result); + } + + /** + * Provider for testTypemapLongFromXml. + * @return an array or arrays of XML, value, and type. + */ + public function TypemapLongFromXmlProvider() { + $data = $this->TypemapLongToXmlProvider(); + + // ID fields. + $data[] = array('0', '0', 'string'); + $data[] = array('0', '0', 'string'); + $data[] = array('0', '0', 'string'); + $data[] = array('0', '0', + 'string'); + $data[] = array('0', '0', 'string'); + + // Non-id fields that end in "id". + $data[] = array('0', 0, 'integer'); + + return $data; + } + + /** + * Provider for testTypemapLongToXml. + * @return an array or arrays of XML, value, and type. + */ + public function TypemapLongToXmlProvider() { + $data = array(); + + // Within the integer space. + $data[] = array('0', 0, 'integer'); + $data[] = array('1', 1, 'integer'); + $data[] = array('-1', -1, 'integer'); + + // Integer boundaries. + if (PHP_INT_SIZE == 4) { + $data[] = array('2147483647', 2147483647, 'integer'); + $data[] = array('-2147483648', -2147483648, 'integer'); + $data[] = array('2147483648', 2147483648, 'double'); + $data[] = array('-2147483649', -2147483649, 'double'); + } else { + $data[] = array('9223372036854775807', 9223372036854775807, + 'integer'); + $data[] = array('-9223372036854775808', + -9223372036854775808, 'integer'); + $data[] = array('9223372036854775808', 9223372036854775808, + 'double'); + // Strings will be returned if the precision isn't great enough to + // reliably store a value. + $data[] = array('-9223372036854775809', + '-9223372036854775809', 'string'); + } + + return $data; + } +} + diff --git a/tests/Google/Api/Ads/Common/Lib/AdsUserTest.php b/tests/Google/Api/Ads/Common/Lib/AdsUserTest.php new file mode 100755 index 000000000..a72d193c8 --- /dev/null +++ b/tests/Google/Api/Ads/Common/Lib/AdsUserTest.php @@ -0,0 +1,441 @@ +logsRelativePathBase = dirname(__FILE__) . '/../'; + } + + /** + * Tests loading relative logging settings. + * @covers AdsUser::LoadSettings + */ + public function testLoadSettings_Logging_Relative() { + $logDirPath = 'Lib'; + $settings = array( + 'LOGGING' => array( + 'PATH_RELATIVE' => '1', + 'LIB_LOG_DIR_PATH' => $logDirPath, + ), + ); + $settingsFilePath = $this->createTempSettingsFile($settings); + $user = new TestAdsUser(); + $user->LoadSettings($settingsFilePath, self::DEFAULT_VERSION, + self::DEFAULT_SERVER, self::DEFAULT_LOGS_DIR, + $this->logsRelativePathBase); + $expected = realpath($this->logsRelativePathBase . '/' . $logDirPath); + $this->assertEquals($expected, $user->GetLogsDirectory()); + } + + /** + * Tests loading relative logging settings with an invalid path. + * @covers AdsUser::LoadSettings + */ + public function testLoadSettings_Logging_Relative_InvalidPath() { + $logsRelativeBasePath = '/foo/bar'; + $logDirPath = 'logs'; + $settings = array( + 'LOGGING' => array( + 'PATH_RELATIVE' => '1', + 'LIB_LOG_DIR_PATH' => $logDirPath, + ), + ); + $settingsFilePath = $this->createTempSettingsFile($settings); + $user = new TestAdsUser(); + $user->LoadSettings($settingsFilePath, self::DEFAULT_VERSION, + self::DEFAULT_SERVER, self::DEFAULT_LOGS_DIR, $logsRelativeBasePath); + $this->assertEquals(self::DEFAULT_LOGS_DIR, $user->GetLogsDirectory()); + } + + /** + * Tests loading relative logging settings with a missing path. + * @covers AdsUser::LoadSettings + */ + public function testLoadSettings_Logging_Relative_MissingPath() { + $settings = array( + 'LOGGING' => array( + 'PATH_RELATIVE' => '1', + ), + ); + $settingsFilePath = $this->createTempSettingsFile($settings); + $user = new TestAdsUser(); + $user->LoadSettings($settingsFilePath, self::DEFAULT_VERSION, + self::DEFAULT_SERVER, self::DEFAULT_LOGS_DIR, + $this->logsRelativePathBase); + $this->assertEquals(self::DEFAULT_LOGS_DIR, $user->GetLogsDirectory()); + } + + /** + * Tests loading logging settings with relative unspecified. + * @covers AdsUser::LoadSettings + */ + public function testLoadSettings_Logging_Relative_Unspecified() { + $logDirPath = '/var/log/ads'; + $settings = array( + 'LOGGING' => array( + 'LIB_LOG_DIR_PATH' => $logDirPath, + ), + ); + $settingsFilePath = $this->createTempSettingsFile($settings); + $user = new TestAdsUser(); + $user->LoadSettings($settingsFilePath, self::DEFAULT_VERSION, + self::DEFAULT_SERVER, self::DEFAULT_LOGS_DIR, + $this->logsRelativePathBase); + $this->assertEquals($logDirPath, $user->GetLogsDirectory()); + } + + /** + * Tests loading absolute logging settings. + * @covers AdsUser::LoadSettings + */ + public function testLoadSettings_Logging_Absolute() { + $logDirPath = '/var/log/ads'; + $settings = array( + 'LOGGING' => array( + 'PATH_RELATIVE' => '0', + 'LIB_LOG_DIR_PATH' => $logDirPath, + ), + ); + $settingsFilePath = $this->createTempSettingsFile($settings); + $user = new TestAdsUser(); + $user->LoadSettings($settingsFilePath, self::DEFAULT_VERSION, + self::DEFAULT_SERVER, self::DEFAULT_LOGS_DIR, + $this->logsRelativePathBase); + $this->assertEquals($logDirPath, $user->GetLogsDirectory()); + } + + /** + * Tests loading default logging settings. + * @covers AdsUser::LoadSettings + */ + public function testLoadSettings_Logging_Defaults() { + $settings = array( + 'LOGGING' => array(), + ); + $settingsFilePath = $this->createTempSettingsFile($settings); + $user = new TestAdsUser(); + $user->LoadSettings($settingsFilePath, self::DEFAULT_VERSION, + self::DEFAULT_SERVER, self::DEFAULT_LOGS_DIR, + $this->logsRelativePathBase); + $this->assertEquals(self::DEFAULT_LOGS_DIR, $user->GetLogsDirectory()); + } + + /** + * Tests loading server settings. + * @covers AdsUser::LoadSettings + */ + public function testLoadSettings_Server() { + $defaultVersion = 'v2'; + $defaultServer = 'https://testing.google.com'; + $settings = array( + 'SERVER' => array( + 'DEFAULT_VERSION' => $defaultVersion, + 'DEFAULT_SERVER' => $defaultServer, + ), + ); + $settingsFilePath = $this->createTempSettingsFile($settings); + $user = new TestAdsUser(); + $user->LoadSettings($settingsFilePath, self::DEFAULT_VERSION, + self::DEFAULT_SERVER, self::DEFAULT_LOGS_DIR, + $this->logsRelativePathBase); + $this->assertEquals($defaultVersion, $user->GetDefaultVersion()); + $this->assertEquals($defaultServer, $user->GetDefaultServer()); + } + + /** + * Tests loading default server settings. + * @covers AdsUser::LoadSettings + */ + public function testLoadSettings_Server_Defaults() { + $settings = array( + 'SERVER' => array(), + ); + $settingsFilePath = $this->createTempSettingsFile($settings); + $user = new TestAdsUser(); + $user->LoadSettings($settingsFilePath, self::DEFAULT_VERSION, + self::DEFAULT_SERVER, self::DEFAULT_LOGS_DIR, + $this->logsRelativePathBase); + $this->assertEquals(self::DEFAULT_VERSION, $user->GetDefaultVersion()); + $this->assertEquals(self::DEFAULT_SERVER, $user->GetDefaultServer()); + } + + /** + * Tests loading SOAP settings. + * @covers AdsUser::LoadSettings + */ + public function testLoadSettings_Soap() { + $compression = FALSE; + $compressionLevel = '5'; + $wsdlCache = WSDL_CACHE_MEMORY; + $settings = array( + 'SOAP' => array( + 'COMPRESSION' => $compression, + 'COMPRESSION_LEVEL' => $compressionLevel, + 'WSDL_CACHE' => $wsdlCache, + ), + ); + $settingsFilePath = $this->createTempSettingsFile($settings); + $user = new TestAdsUser(); + $user->LoadSettings($settingsFilePath, self::DEFAULT_VERSION, + self::DEFAULT_SERVER, self::DEFAULT_LOGS_DIR, + $this->logsRelativePathBase); + $this->assertEquals($compression, $user->IsSoapCompressionEnabled()); + $this->assertEquals($compressionLevel, $user->GetSoapCompressionLevel()); + $this->assertEquals($wsdlCache, $user->GetWsdlCacheType()); + } + + /** + * Tests loading SOAP settings with an invalid compression level. + * @covers AdsUser::LoadSettings + */ + public function testLoadSettings_Soap_InvalidCompression() { + $compressionLevel = '100'; + $settings = array( + 'SOAP' => array( + 'COMPRESSION_LEVEL' => $compressionLevel, + ), + ); + $settingsFilePath = $this->createTempSettingsFile($settings); + $user = new TestAdsUser(); + $user->LoadSettings($settingsFilePath, self::DEFAULT_VERSION, + self::DEFAULT_SERVER, self::DEFAULT_LOGS_DIR, + $this->logsRelativePathBase); + $this->assertEquals(1, $user->GetSoapCompressionLevel()); + } + + /** + * Tests loading SOAP settings with an invalid WSDL cache value. + * @covers AdsUser::LoadSettings + */ + public function testLoadSettings_Soap_InvalidWsdlCache() { + $wsdlCache = '100'; + $settings = array( + 'SOAP' => array( + 'WSDL_CACHE' => $wsdlCache, + ), + ); + $settingsFilePath = $this->createTempSettingsFile($settings); + $user = new TestAdsUser(); + $user->LoadSettings($settingsFilePath, self::DEFAULT_VERSION, + self::DEFAULT_SERVER, self::DEFAULT_LOGS_DIR, + $this->logsRelativePathBase); + $this->assertEquals(WSDL_CACHE_NONE, $user->GetWsdlCacheType()); + } + + /** + * Tests loading default SOAP settings. + * @covers AdsUser::LoadSettings + */ + public function testLoadSettings_Soap_Defaults() { + $settings = array( + 'SOAP' => array(), + ); + $settingsFilePath = $this->createTempSettingsFile($settings); + $user = new TestAdsUser(); + $user->LoadSettings($settingsFilePath, self::DEFAULT_VERSION, + self::DEFAULT_SERVER, self::DEFAULT_LOGS_DIR, + $this->logsRelativePathBase); + $this->assertEquals(TRUE, $user->IsSoapCompressionEnabled()); + $this->assertEquals(1, $user->GetSoapCompressionLevel()); + $this->assertEquals(WSDL_CACHE_NONE, $user->GetWsdlCacheType()); + } + + /** + * Tests loading proxy settings. + * @covers AdsUser::LoadSettings + */ + public function testLoadSettings_Proxy() { + $host = 'localhost'; + $port = '4040'; + $proxyUser = 'foo'; + $proxyPassword = 'bar'; + $settings = array( + 'PROXY' => array( + 'HOST' => $host, + 'PORT' => $port, + 'USER' => $proxyUser, + 'PASSWORD' => $proxyPassword, + ), + ); + $settingsFilePath = $this->createTempSettingsFile($settings); + $user = new TestAdsUser(); + $user->LoadSettings($settingsFilePath, self::DEFAULT_VERSION, + self::DEFAULT_SERVER, self::DEFAULT_LOGS_DIR, + $this->logsRelativePathBase); + $this->assertEquals($host, HTTP_PROXY_HOST); + $this->assertEquals($port, HTTP_PROXY_PORT); + $this->assertEquals($proxyUser, HTTP_PROXY_USER); + $this->assertEquals($proxyPassword, HTTP_PROXY_PASSWORD); + } + + /** + * Tests loading auth settings. + * @covers AdsUser::LoadSettings + */ + public function testLoadSettings_Auth() { + $server = 'http://localhost'; + $oAuth2HandlerClass = 'SimpleOAuth2Handler'; + $settings = array( + 'AUTH' => array( + 'AUTH_SERVER' => $server, + 'OAUTH2_HANDLER_CLASS' => $oAuth2HandlerClass, + ), + ); + $settingsFilePath = $this->createTempSettingsFile($settings); + $user = new TestAdsUser(); + $user->LoadSettings($settingsFilePath, self::DEFAULT_VERSION, + self::DEFAULT_SERVER, self::DEFAULT_LOGS_DIR, + $this->logsRelativePathBase); + $this->assertEquals($server, $user->GetAuthServer()); + $this->assertEquals($oAuth2HandlerClass, + get_class($user->GetOAuth2Handler())); + } + + /** + * Tests loading default auth settings. + * @covers AdsUser::LoadSettings + */ + public function testLoadSettings_Auth_Defaults() { + $settings = array( + 'AUTH' => array(), + ); + $settingsFilePath = $this->createTempSettingsFile($settings); + $user = new TestAdsUser(); + $user->LoadSettings($settingsFilePath, self::DEFAULT_VERSION, + self::DEFAULT_SERVER, self::DEFAULT_LOGS_DIR, + $this->logsRelativePathBase); + $this->assertEquals('https://accounts.google.com', $user->GetAuthServer()); + $this->assertEquals('SimpleOAuth2Handler', + get_class($user->GetOAuth2Handler())); + } + + /** + * Tests loading SSL settings. + * @covers AdsUser::LoadSettings + */ + public function testLoadSettings_Ssl() { + $verifyPeer = 1; + $verifyHost = 1; + $caPath = '/etc/ssl/certs'; + $caFile = '/etc/ssl/cafile'; + $settings = array( + 'SSL' => array( + 'VERIFY_PEER' => $verifyPeer, + 'VERIFY_HOST' => $verifyHost, + 'CA_PATH' => $caPath, + 'CA_FILE' => $caFile, + ), + ); + $settingsFilePath = $this->createTempSettingsFile($settings); + $user = new TestAdsUser(); + $user->LoadSettings($settingsFilePath, self::DEFAULT_VERSION, + self::DEFAULT_SERVER, self::DEFAULT_LOGS_DIR, + $this->logsRelativePathBase); + $this->assertEquals($verifyPeer, SSL_VERIFY_PEER); + $this->assertEquals($verifyHost, SSL_VERIFY_HOST); + $this->assertEquals($caPath, SSL_CA_PATH); + $this->assertEquals($caFile, SSL_CA_FILE); + } + + /** + * Creates a temporary settings file from the array of settings provided. + * @param array $settings the settings to use + * @return string the path to the temp file + */ + private function createTempSettingsFile(array $settings) { + $filePath = tempnam(sys_get_temp_dir(), 'settings.ini.'); + $file = fopen($filePath, 'w'); + foreach ($settings as $section => $properties) { + fwrite($file, sprintf("[%s]\n", $section)); + foreach ($properties as $name => $value) { + if ($value === FALSE) { + $value = '0'; + } + fwrite($file, sprintf("%s = '%s'\n", $name, $value)); + } + } + fclose($file); + return $filePath; + } +} + +/** + * A test class that extends AdsUser. + */ +class TestAdsUser extends AdsUser { + + const USER_AGENT_HEADER_NAME = 'applicationName'; + + const LIB_VERSION = '2.13.0'; + const LIB_NAME = "DfpApi-PHP"; + + const APPLICATION_NAME = 'GoogleTestPhp'; + + const OAUTH2_SCOPE = ''; + const HANDLER_CLASS = 'SimpleOAuth2Handler'; + + /** + * Creates a new instance of this test subclass. + */ + public function __construct() { + parent::__construct(); + $this->SetClientLibraryUserAgent(self::APPLICATION_NAME); + } + + /** + * @see AdsUser::GetUserAgentHeaderName() + */ + public function GetUserAgentHeaderName() { + return self::USER_AGENT_HEADER_NAME; + } + + /** + * @see AdsUser::GetClientLibraryNameAndVersion() + */ + public function GetClientLibraryNameAndVersion() { + return array(self::LIB_NAME, self::LIB_VERSION); + } + + public function GetDefaultOAuth2Handler($className = NULL) { + $className = !empty($className) ? $className : self::HANDLER_CLASS; + return new $className($this->GetAuthServer(), self::OAUTH2_SCOPE); + } +} + diff --git a/tests/Google/Api/Ads/Common/Testing/AssetHelper.php b/tests/Google/Api/Ads/Common/Testing/AssetHelper.php new file mode 100755 index 000000000..e8367bfbf --- /dev/null +++ b/tests/Google/Api/Ads/Common/Testing/AssetHelper.php @@ -0,0 +1,100 @@ +defaultExt = $defaultExt ?: ''; + $this->assetDirectory = $assetDirectory; + } + + /** + * Get the full path to an asset. + * @param string $assetName the name of the asset + * @param null|string $ext the extension of the asset, if applicable + * @return string the resultant path + */ + public function getAssetPath($assetName, $ext = null) { + $ext = $ext ?: $this->defaultExt; + return sprintf('%s/%s%s', $this->assetDirectory, $assetName, $ext); + } + + /** + * Get an Asset. + * @param string $assetName the asset name + * @param null|string $ext the extension of the asset, if applicable + * @throws InvalidArgumentException if theres an issue finding the file + * @return string the contents of the asset + */ + public function getAsset($assetName, $ext = null) { + $assetPath = $this->getAssetPath($assetName, $ext); + + if (!file_exists($assetPath)) { + throw new InvalidArgumentException(sprintf('"%s" asset not found: %s', + $assetName, $assetPath)); + } + + return file_get_contents($assetPath); + } + + /** + * Get an Asset as an XML Dom. + * @param string $assetName the XML asset name + * @param null|string $ext the extension of the asset, if applicable + * @return string the contents of the asset + * @throws InvalidArgumentException if theres an issue finding the file + * @throws DOMException if the DOM could not be loaded + */ + public function getAssetAsDom($assetName, $ext = null) { + return XmlUtils::GetDomFromXml($this->getAsset($assetName, $ext)); + } +} diff --git a/tests/Google/Api/Ads/Common/Util/AuthTokenTest.php b/tests/Google/Api/Ads/Common/Util/AuthTokenTest.php new file mode 100755 index 000000000..62805c75b --- /dev/null +++ b/tests/Google/Api/Ads/Common/Util/AuthTokenTest.php @@ -0,0 +1,110 @@ +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/ChoiceUtilsTest.php b/tests/Google/Api/Ads/Common/Util/ChoiceUtilsTest.php new file mode 100755 index 000000000..2af95a9ca --- /dev/null +++ b/tests/Google/Api/Ads/Common/Util/ChoiceUtilsTest.php @@ -0,0 +1,66 @@ +assertEquals($expected, $result); + } + + /** + * Provides choice objects along with the expected value. + * @return array an array of arrays of choices and expected values + */ + public function ChoiceProvider() { + $data = array(); + + // Populated choice. + $choice = (object) array('first' => NULL, 'second' => 'value'); + $data[] = array($choice, 'value'); + + // Empty choice. + $choice = (object) array('first' => NULL, 'second' => NULL); + $data[] = array($choice, NULL); + + return $data; + } +} + diff --git a/tests/Google/Api/Ads/Common/Util/DeprecationUtilsTest.php b/tests/Google/Api/Ads/Common/Util/DeprecationUtilsTest.php new file mode 100755 index 000000000..0e415af5e --- /dev/null +++ b/tests/Google/Api/Ads/Common/Util/DeprecationUtilsTest.php @@ -0,0 +1,103 @@ + '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"); + } +} + diff --git a/tests/Google/Api/Ads/Common/Util/ErrorUtilsTest.php b/tests/Google/Api/Ads/Common/Util/ErrorUtilsTest.php new file mode 100755 index 000000000..611b94bce --- /dev/null +++ b/tests/Google/Api/Ads/Common/Util/ErrorUtilsTest.php @@ -0,0 +1,125 @@ +assertEquals($expected, $errors); + } + + /** + * Provides SOAP faults along with the expected errors. + * @return array an array of arrays of SOAP faults and expected + * errors + */ + public function SoapFaultProvider() { + $data = array(); + $error = (object) array(); + + // No SoapVar. + $exception = (object) array('errors' => array($error)); + $details = (object) array('ApiExceptionFault' => $exception); + $fault = new SoapFault('soap:Server', NULL, NULL, $details); + $data[] = array($fault, array($error)); + + // With SoapVar. + $soapVar = new SoapVar($error, SOAP_ENC_OBJECT); + $exception = (object) array('errors' => array($soapVar)); + $details = (object) array('ApiExceptionFault' => $exception); + $fault = new SoapFault('soap:Server', NULL, NULL, $details); + $data[] = array($fault, array($error)); + + // No errors. + $fault = new SoapFault('soap:Server', NULL); + $data[] = array($fault, array()); + + return $data; + } + + /** + * Test getting the index of the operation referenced by an error. + * @param ApiError $error the ApiError to get the operation for + * @param int $expected the expected operation + * @covers ErrorUtils::GetSourceOperationIndex + * @dataProvider SourceOperationIndexProvider + */ + public function testGetSourceOperationIndex($error, $expected) { + $index = ErrorUtils::GetSourceOperationIndex($error); + $this->assertEquals($expected, $index); + } + + /** + * Provides errors along with the expected operation index. + * @return array an array of arrays of error and expected + * operation index + */ + public function SourceOperationIndexProvider() { + $data = array(); + + // Valid data sets. + // First operation. + $error = (object) array('fieldPath' => 'operations[0].operand'); + $data[] = array($error, 0); + // Two digit index. + $error = (object) array('fieldPath' => 'operations[10].operand'); + $data[] = array($error, 10); + + // Invalid data sets. + // NULL field path. + $error = (object) array('fieldPath' => NULL); + $data[] = array($error, NULL); + // Empty field path. + $error = (object) array('fieldPath' => ''); + $data[] = array($error, NULL); + // Field path that doesn't reference an operation. + $error = (object) array('fieldPath' => 'foo'); + $data[] = array($error, NULL); + // Negative index. + $error = (object) array('fieldPath' => 'operations[-1]'); + $data[] = array($error, NULL); + // Non-numeric index. + $error = (object) array('fieldPath' => 'operations[foo]'); + $data[] = array($error, NULL); + + return $data; + } +} + diff --git a/tests/Google/Api/Ads/Common/Util/MapUtilsTest.php b/tests/Google/Api/Ads/Common/Util/MapUtilsTest.php new file mode 100755 index 000000000..fd2ddc988 --- /dev/null +++ b/tests/Google/Api/Ads/Common/Util/MapUtilsTest.php @@ -0,0 +1,184 @@ +assertEquals($map, $result); + } + + /** + * Test getting map entries from a map. + * @param array $mapEntries the expected map entries + * @param array $map a map + * @covers MapUtils::GetMapEntries + * @dataProvider MapEntriesProvider + */ + public function testGetMapEntries(array $mapEntries, array $map) { + $result = MapUtils::GetMapEntries($map); + $this->assertEquals($mapEntries, $result); + } + + /** + * Test getting map entries from a map, using a named map entries class. + * @covers MapUtils::GetMapEntries + */ + public function testGetMapEntries_NamedEntries() { + $map = array('foo' => 'bar'); + $result = MapUtils::GetMapEntries($map, 'TestMapEntry'); + $this->assertEquals(1, sizeof($result)); + $this->assertTrue($result[0] instanceof TestMapEntry); + $this->assertEquals('foo', $result[0]->key); + $this->assertEquals('bar', $result[0]->value); + } + + /** + * Test determining if an array is a map. + * @param array $value the array to evaluate + * @param bool $expected the expected result of IsMap() + * @covers MapUtils::IsMap + * @dataProvider IsMapProvider + */ + public function testIsMap(array $value, $expected) { + $result = MapUtils::IsMap($value); + $this->assertEquals($expected, $result); + } + + /** + * Test converting a map to a set of method parameters. + * @param array $map the map of parameter names to values + * @param array $expected the expected array of parameter values + * @covers MapUtils::MapToMethodParameters + * @dataProvider MapToMethodParametersProvider + */ + public function testMapToMethodParameters(array $map, array $expected) { + $reflectionClass = new ReflectionClass($this); + $reflectionMethod = $reflectionClass->getMethod('SampleMethod'); + $result = MapUtils::MapToMethodParameters($map, $reflectionMethod); + $this->assertEquals($expected, $result); + } + + /** + * Provides map entries along with the expected map. + * @return array an array of arrays of map entries and expected map + */ + public function MapEntriesProvider() { + $data = array(); + + // One entry. + $mapEntry = (object) array('key' => 'foo', 'value' => 'bar'); + $map = array('foo' => 'bar'); + $data[] = array(array($mapEntry), $map); + + // More than one entry. + $mapEntry1 = (object) array('key' => 'foo', 'value' => 'bar'); + $mapEntry2 = (object) array('key' => 'tick', 'value' => 'tock'); + $map = array('foo' => 'bar', 'tick' => 'tock'); + $data[] = array(array($mapEntry1, $mapEntry2), $map); + + // No entries. + $data[] = array(array(), array()); + + return $data; + } + + /** + * Provides arrays and the expected value of MapUtils::IsMap(). + * @return array an array or arrays of array and booleans. + */ + public function IsMapProvider() { + $data = array(); + + // Maps. + $data[] = array(array('foo' => 'bar'), TRUE); + $data[] = array(array('foo' => 'bar', 1 => 'baz'), TRUE); + + // Not maps. + $data[] = array(array(), FALSE); + $data[] = array(array('bar', 'baz'), FALSE); + $data[] = array(array('0' => 'bar'), FALSE); + + return $data; + } + + /** + * Provides maps and the expected flat array that should be returned when + * MapUtils::MapToMethodParameters is called with the SampleMethod method. + * @return array an array of arrays of maps and arrays + */ + public function MapToMethodParametersProvider() { + $data = array(); + + // Normal order. + $data[] = array(array('a' => 'ant', 'b' => 'bat', 'c' => 'cat'), + array('ant', 'bat', 'cat')); + // Reverse order. + $data[] = array(array('c' => 'cat', 'b' => 'bat', 'a' => 'ant'), + array('ant', 'bat', 'cat')); + // Missing parameter. + $data[] = array(array('a' => 'ant', 'b' => 'bat'), + array('ant', 'bat', NULL)); + // Extra parameters. + $data[] = array(array('a' => 'ant', 'b' => 'bat', 'c' => 'cat', + 'd' => 'dog'), array('ant', 'bat', 'cat')); + // No parameters. + $data[] = array(array(), array(NULL, NULL, NULL)); + + return $data; + } + + /** + * A sample method for testing MapUtils::MapToMethodParameters(). + * @param string $a the first parameter + * @param string $b the second parameter + * @param string $c the third paremter (optional) + */ + public function SampleMethod($a, $b, $c = NULL) {} +} + +/** + * Class for testing map entries. + */ +class TestMapEntry { + public $key; + public $value; +} + diff --git a/tests/Google/Api/Ads/Common/Util/OAuth2HandlerTest.php b/tests/Google/Api/Ads/Common/Util/OAuth2HandlerTest.php new file mode 100755 index 000000000..2a35fbb2b --- /dev/null +++ b/tests/Google/Api/Ads/Common/Util/OAuth2HandlerTest.php @@ -0,0 +1,365 @@ +scope = 'TEST_SCOPE'; + + $this->oauth2Handler = new TestOAuth2Handler(NULL, $this->scope); + } + + public function testGetAuthorizationUrl() { + $credentials = array('client_id' => 'TEST_CLIENT_ID'); + + + $url = $this->oauth2Handler->GetAuthorizationUrl($credentials); + + $urlParts = parse_url($url); + $this->assertEquals('https', $urlParts['scheme']); + $this->assertEquals('accounts.google.com', $urlParts['host']); + $this->assertFalse(isset($urlParts['port'])); + $this->assertFalse(isset($urlParts['user'])); + $this->assertFalse(isset($urlParts['pass'])); + $this->assertEquals('/o/oauth2/auth', $urlParts['path']); + $this->assertFalse(isset($urlParts['fragment'])); + + $params = array(); + parse_str($urlParts['query'], $params); + $this->assertEquals('code', $params['response_type']); + $this->assertEquals('TEST_CLIENT_ID', $params['client_id']); + $this->assertEquals('urn:ietf:wg:oauth:2.0:oob', $params['redirect_uri']); + $this->assertEquals('TEST_SCOPE', $params['scope']); + $this->assertEquals('online', $params['access_type']); + } + + public function testGetAuthorizationUrl_AlternateServer() { + $scheme = 'http'; + $authServer = 'www.foo.com'; + $scope = 'TEST_SCOPE'; + $this->oauth2Handler = new TestOAuth2Handler( + sprintf('%s://%s', $scheme, $authServer), $scope); + $credentials = array('client_id' => 'TEST_CLIENT_ID'); + + + $url = $this->oauth2Handler->GetAuthorizationUrl($credentials); + + $urlParts = parse_url($url); + $this->assertEquals($scheme, $urlParts['scheme']); + $this->assertEquals($authServer, $urlParts['host']); + } + + /** + * @expectedException OAuth2Exception + */ + public function testGetAuthorizationUrl_MissingClientId() { + $credentials = array(); + $url = $this->oauth2Handler->GetAuthorizationUrl($credentials); + } + + public function testGetAuthorizationUrl_RedirectUri() { + $credentials = array('client_id' => 'TEST_CLIENT_ID'); + $redirectUri = 'http://www.foo.com/callback'; + + $url = $this->oauth2Handler->GetAuthorizationUrl($credentials, + $redirectUri); + + $urlParts = parse_url($url); + $params = array(); + parse_str($urlParts['query'], $params); + $this->assertEquals($redirectUri, $params['redirect_uri']); + } + + public function testGetAuthorizationUrl_Offline() { + $credentials = array('client_id' => 'TEST_CLIENT_ID'); + + $url = $this->oauth2Handler->GetAuthorizationUrl($credentials, NULL, + TRUE); + + $urlParts = parse_url($url); + $params = array(); + parse_str($urlParts['query'], $params); + $this->assertEquals('offline', $params['access_type']); + } + + public function testGetAuthorizationUrl_Params() { + $credentials = array('client_id' => 'TEST_CLIENT_ID'); + $params = array('foo' => 'bar'); + + $url = $this->oauth2Handler->GetAuthorizationUrl($credentials, NULL, NULL, + $params); + + $urlParts = parse_url($url); + $params = array(); + parse_str($urlParts['query'], $params); + $this->assertEquals('bar', $params['foo']); + } + + public function GetOrRefreshAccessToken_ValidAccessToken() { + $credentials = array( + 'access_token' => 'TEST_ACCESS_TOKEN', + 'expires_in' => '3600', + 'timestamp' => time() + ); + $this->assertSame($credentials, + $this->oauth2Handler->GetOrRefreshAccessToken($credentials)); + } + + public function testGetOrRefreshAccessToken_NoAccessToken() { + $credentials = array( + 'refresh_token' => 'TEST_REFRESH_TOKEN', + ); + try { + $this->oauth2Handler->GetOrRefreshAccessToken($credentials); + $this->fail('Should have thrown an exception.'); + } catch (Exception $e) { + $this->assertSame(TestOAuth2Handler::REFRESH_TOKEN_MESSAGE, + $e->getMessage()); + } + } + + public function testGetOrRefreshAccessToken_ExpiredAccessToken() { + $credentials = array( + 'refresh_token' => 'TEST_REFRESH_TOKEN', + 'access_token' => 'TEST_ACCESS_TOKEN', + 'expires_in' => '3600', + 'timestamp' => strtotime('-1 day') + ); + try { + $this->oauth2Handler->GetOrRefreshAccessToken($credentials); + $this->fail('Should have thrown an exception.'); + } catch (Exception $e) { + $this->assertSame(TestOAuth2Handler::REFRESH_TOKEN_MESSAGE, + $e->getMessage()); + } + } + + public function testShouldRefreshAccessToken_ValidAccessToken() { + $credentials = array( + 'access_token' => 'TEST_ACCESS_TOKEN', + 'expires_in' => '3600', + 'timestamp' => time() + ); + $this->assertFalse( + $this->oauth2Handler->ShouldRefreshAccessToken($credentials)); + } + + public function testShouldRefreshAccessToken_TrueForMissingAccessToken() { + $credentials = array( + 'expires_in' => '3600', + 'timestamp' => time() + ); + $this->assertTrue( + $this->oauth2Handler->ShouldRefreshAccessToken($credentials)); + } + + public function testShouldRefreshAccessToken_ExpiredAccessToken() { + $credentials = array( + 'access_token' => 'TEST_ACCESS_TOKEN', + 'expires_in' => '3600', + 'timestamp' => strtotime('-1 day') + ); + $this->assertTrue( + $this->oauth2Handler->ShouldRefreshAccessToken($credentials)); + } + + public function testShouldRefreshAccessToken_ExpiredInBufferAccessToken() { + $refreshBuffer = TestOAuth2Handler::REFRESH_BUFFER; + $expiresIn = 3600; + + $secondsInterval = (int) $expiresIn - ($refreshBuffer / 2); + + $credentials = array( + 'access_token' => 'TEST_ACCESS_TOKEN', + 'expires_in' => $expiresIn, + 'timestamp' => strtotime(sprintf('-%d seconds', $secondsInterval)) + ); + $this->assertTrue( + $this->oauth2Handler->ShouldRefreshAccessToken($credentials)); + } + + public function testIsAccessTokenValid() { + $credentials = array( + 'access_token' => 'TEST_ACCESS_TOKEN', + 'expires_in' => '3600', + 'timestamp' => time() + ); + $this->assertTrue($this->oauth2Handler->IsAccessTokenValid($credentials)); + } + + public function testIsAccessTokenValid_Expired() { + $credentials = array( + 'access_token' => 'TEST_ACCESS_TOKEN', + 'expires_in' => '3600', + 'timestamp' => strtotime('-1 day') + ); + $this->assertFalse($this->oauth2Handler->IsAccessTokenValid($credentials)); + } + + public function testIsAccessTokenValid_ValidInRefreshBuffer() { + $refreshBuffer = TestOAuth2Handler::REFRESH_BUFFER; + $expiresIn = 3600; + + $secondsInterval = (int) $expiresIn - ($refreshBuffer / 2); + + $credentials = array( + 'access_token' => 'TEST_ACCESS_TOKEN', + 'expires_in' => $expiresIn, + 'timestamp' => strtotime(sprintf('-%d seconds', $secondsInterval)), + ); + $this->assertTrue($this->oauth2Handler->IsAccessTokenValid($credentials)); + } + + public function testIsAccessTokenExpiring_ExpiredWithinRefreshBuffer() { + $refreshBuffer = TestOAuth2Handler::REFRESH_BUFFER; + $expiresIn = 3600; + + $secondsInterval = (int) $expiresIn - ($refreshBuffer / 2); + + $credentials = array( + 'access_token' => 'TEST_ACCESS_TOKEN', + 'expires_in' => $expiresIn, + 'timestamp' => strtotime(sprintf('-%d seconds', $secondsInterval)), + ); + $this->assertTrue( + $this->oauth2Handler->IsAccessTokenExpiring($credentials)); + } + + public function testIsAccessTokenExpiring_ValidBeforeRefreshBuffer() { + $refreshBuffer = TestOAuth2Handler::REFRESH_BUFFER; + $expiresIn = 3600; + + $secondsInterval = (int) $expiresIn - ($refreshBuffer * 2); + + $credentials = array( + 'access_token' => 'TEST_ACCESS_TOKEN', + 'expires_in' => $expiresIn, + 'timestamp' => strtotime(sprintf('-%d seconds', $secondsInterval)), + ); + $this->assertFalse( + $this->oauth2Handler->IsAccessTokenExpiring($credentials)); + } + + public function testIsAccessTokenValid_MissingAccessToken() { + $credentials = array( + 'expires_in' => '3600', + 'timestamp' => time() + ); + $this->assertFalse($this->oauth2Handler->IsAccessTokenValid($credentials)); + } + + public function testIsAccessTokenValid_MissingExpiresIn() { + $credentials = array( + 'access_token' => 'TEST_ACCESS_TOKEN', + 'timestamp' => time() + ); + $this->assertTrue($this->oauth2Handler->IsAccessTokenValid($credentials)); + } + + public function testIsAccessTokenValid_MissingTimestamp() { + $credentials = array( + 'access_token' => 'TEST_ACCESS_TOKEN', + 'expires_in' => '3600' + ); + $this->assertTrue($this->oauth2Handler->IsAccessTokenValid($credentials)); + } + + public function testCanRefreshAccessToken() { + $credentials = array('refresh_token' => 'TEST_REFRESH_TOKEN'); + $this->assertTrue( + $this->oauth2Handler->CanRefreshAccessToken($credentials)); + } + + public function testCanRefreshAccessToken_MissingRefreshToken() { + $credentials = array(); + $this->assertFalse( + $this->oauth2Handler->CanRefreshAccessToken($credentials)); + } + + public function testFormatCredentialsForUrl() { + $credentials = array('access_token' => 'TEST_ACCESS_TOKEN'); + $value = $this->oauth2Handler->FormatCredentialsForUrl($credentials); + $this->assertEquals('access_token=TEST_ACCESS_TOKEN', $value); + } + + /** + * @expectedException OAuth2Exception + */ + public function testFormatCredentialsForUrl_MissingToken() { + $credentials = array(); + $value = $this->oauth2Handler->FormatCredentialsForUrl($credentials); + } + + public function testFormatCredentialsForHeader() { + $credentials = array('access_token' => 'TEST_ACCESS_TOKEN'); + $value = $this->oauth2Handler->FormatCredentialsForHeader($credentials); + $this->assertEquals('Bearer TEST_ACCESS_TOKEN', $value); + } + + public function testFormatCredentialsForHeader_DifferentTokenType() { + $credentials = array( + 'access_token' => 'TEST_ACCESS_TOKEN', + 'token_type' => 'TEST_TOKEN_TYPE' + ); + $value = $this->oauth2Handler->FormatCredentialsForHeader($credentials); + $this->assertEquals('TEST_TOKEN_TYPE TEST_ACCESS_TOKEN', $value); + } + + /** + * @expectedException OAuth2Exception + */ + public function testFormatCredentialsForHeader_MissingToken() { + $credentials = array(); + $value = $this->oauth2Handler->FormatCredentialsForHeader($credentials); + } + +} + +class TestOAuth2Handler extends OAuth2Handler { + const GET_TOKEN_MESSAGE = 'Get not implemented.'; + const REFRESH_TOKEN_MESSAGE = 'Refresh not implemented.'; + + public function GetAccessToken(array $credentials, $code, + $redirectUri = NULL) { + throw new Exception(self::GET_TOKEN_MESSAGE); + } + + public function RefreshAccessToken(array $credentials) { + throw new Exception(self::REFRESH_TOKEN_MESSAGE); + } +} + diff --git a/tests/Google/Api/Ads/Common/Util/OgnlUtilsTest.php b/tests/Google/Api/Ads/Common/Util/OgnlUtilsTest.php new file mode 100755 index 000000000..cc5ce9375 --- /dev/null +++ b/tests/Google/Api/Ads/Common/Util/OgnlUtilsTest.php @@ -0,0 +1,131 @@ +assertEquals($expected, $value); + } + + /** + * Test getting the operation index referenced in an expression. + * @param string $expression the OGNL expression to evaluate + * @param mixed $expected the expected operation index + * @covers OgnlUtils::GetOperationIndex + * @dataProvider OperationIndexProvider + */ + public function testGetOperationIndex($expression, $expected) { + $index = OgnlUtils::GetOperationIndex($expression); + $this->assertEquals($expected, $index); + } + + /** + * Provides OGNL expressions and contexts along with the expected value. + * @return array an array of arrays of expression, context, and value + */ + public function OgnlProvider() { + $data = array(); + + // Valid expressions that evaluate in the context. + // Associative array context. + $data[] = array('foo', array('foo' => 'value'), 'value'); + // Object context. + $data[] = array('foo', (object) array('foo' => 'value'), 'value'); + // Array context. + $data[] = array('[0]', array('value'), 'value'); + // Null value. + $data[] = array('foo', array('foo' => NULL), NULL); + // Array value. + $data[] = array('foo[0]', array('foo' => array('value')), 'value'); + // Child value. + $data[] = + array('foo.bar', array('foo' => array('bar' => 'value')), 'value'); + // Empty expression. + $data[] = array('', array('foo' => 'value'), array('foo' => 'value')); + + // Valid expressions that don't evaluate in the context. + // Null context. + $data[] = array('foo', NULL, NULL); + // Child of NULL value. + $data[] = array('foo.bar', array('foo' => NULL), NULL); + // Fields deeper than context. + $data[] = array('foo.bar.more', array('foo' => 'value'), NULL); + // Index out of bounds. + $data[] = array('foo[1]', array('foo' => array('value')), NULL); + + // Invalid expressions. + // Null expression. + $data[] = array(NULL, array('foo' => 'value'), NULL); + // Invalid characters in field. + $data[] = array('foo!', array('foo' => 'value'), NULL); + // Invalid characters in index. + $data[] = array('[abc]', array('value'), NULL); + // Missing dot. + $data[] = array('foo[0]bar', array('foo' => array('bar' => 'value')), NULL); + + return $data; + } + + /** + * Provides OGNL expressions the expected operation index. + * @return array an array of arrays of expression and operation index + */ + public function OperationIndexProvider() { + $data = array(); + + // Expressions that reference an index. + $data[] = array('operations[0]', 0); + $data[] = array('operations[123]', 123); + + // Expressions that don't reference an index. + $data[] = array('operations', NULL); + $data[] = array('operations.foo', NULL); + $data[] = array('foo', NULL); + + // Invalid expressions. + $data[] = array(NULL, NULL); + $data[] = array('', NULL); + + return $data; + } +} + diff --git a/tests/Google/Api/Ads/Common/Util/SimpleOAuth2HandlerTest.php b/tests/Google/Api/Ads/Common/Util/SimpleOAuth2HandlerTest.php new file mode 100755 index 000000000..4598cfc23 --- /dev/null +++ b/tests/Google/Api/Ads/Common/Util/SimpleOAuth2HandlerTest.php @@ -0,0 +1,218 @@ +simpleOAuth2Handler = new TestSimpleOAuth2Handler(); + } + + public function testGetAccessToken() { + $credentials = array( + 'client_id' => 'TEST_CLIENT_ID', + 'client_secret' => 'TEST_CLIENT_SECRET' + ); + $code = 'TEST_CODE'; + + $this->simpleOAuth2Handler->response = array( + 'access_token' => 'TEST_ACCESS_TOKEN', + 'expires_in' => '3600', + 'refresh_token' => 'TEST_REFRESH_TOKEN' + ); + $response = $this->simpleOAuth2Handler->GetAccessToken($credentials, $code); + + $url = $this->simpleOAuth2Handler->lastUrl; + $this->assertEquals('https://accounts.google.com/o/oauth2/token', $url); + + $params = $this->simpleOAuth2Handler->lastParams; + $this->assertEquals('TEST_CODE', $params['code']); + $this->assertEquals('TEST_CLIENT_ID', $params['client_id']); + $this->assertEquals('TEST_CLIENT_SECRET', $params['client_secret']); + $this->assertEquals('urn:ietf:wg:oauth:2.0:oob', $params['redirect_uri']); + $this->assertEquals('authorization_code', $params['grant_type']); + + $this->assertEquals('TEST_CLIENT_ID', $response['client_id']); + $this->assertEquals('TEST_CLIENT_SECRET', $response['client_secret']); + $this->assertEquals('TEST_ACCESS_TOKEN', $response['access_token']); + $this->assertEquals('3600', $response['expires_in']); + $this->assertEquals('TEST_REFRESH_TOKEN', $response['refresh_token']); + $this->assertNotNull($response['timestamp']); + } + + public function testGetAccessToken_DifferentServer() { + $this->simpleOAuth2Handler = + new TestSimpleOAuth2Handler('http://www.foo.com'); + $credentials = array( + 'client_id' => 'TEST_CLIENT_ID', + 'client_secret' => 'TEST_CLIENT_SECRET' + ); + $code = 'TEST_CODE'; + $response = $this->simpleOAuth2Handler->GetAccessToken($credentials, $code); + + $url = $this->simpleOAuth2Handler->lastUrl; + $this->assertEquals('http://www.foo.com/o/oauth2/token', $url); + } + + /** + * @expectedException OAuth2Exception + */ + public function testGetAccessToken_MissingClientId() { + $credentials = array( + 'client_secret' => 'TEST_CLIENT_SECRET' + ); + $code = 'TEST_CODE'; + $response = $this->simpleOAuth2Handler->GetAccessToken($credentials, $code); + } + + /** + * @expectedException OAuth2Exception + */ + public function testGetAccessToken_MissingClientSecret() { + $credentials = array( + 'client_id' => 'TEST_CLIENT_ID' + ); + $code = 'TEST_CODE'; + $response = $this->simpleOAuth2Handler->GetAccessToken($credentials, $code); + } + + public function testGetAccessToken_DifferentRedirectUri() { + $credentials = array( + 'client_id' => 'TEST_CLIENT_ID', + 'client_secret' => 'TEST_CLIENT_SECRET' + ); + $code = 'TEST_CODE'; + $redirectUri = 'http://www.foo.com'; + $response = $this->simpleOAuth2Handler->GetAccessToken($credentials, $code, + $redirectUri); + + $params = $this->simpleOAuth2Handler->lastParams; + $this->assertEquals($redirectUri, $params['redirect_uri']); + } + + public function testRefreshAccessToken() { + $credentials = array( + 'client_id' => 'TEST_CLIENT_ID', + 'client_secret' => 'TEST_CLIENT_SECRET', + 'refresh_token' => 'TEST_REFRESH_TOKEN' + ); + + $this->simpleOAuth2Handler->response = array( + 'access_token' => 'TEST_ACCESS_TOKEN', + 'expires_in' => '3600' + ); + $response = $this->simpleOAuth2Handler->RefreshAccessToken($credentials); + + $url = $this->simpleOAuth2Handler->lastUrl; + $this->assertEquals('https://accounts.google.com/o/oauth2/token', $url); + + $params = $this->simpleOAuth2Handler->lastParams; + $this->assertEquals('TEST_CLIENT_ID', $params['client_id']); + $this->assertEquals('TEST_CLIENT_SECRET', $params['client_secret']); + $this->assertEquals('TEST_REFRESH_TOKEN', $params['refresh_token']); + $this->assertEquals('refresh_token', $params['grant_type']); + + $this->assertEquals('TEST_CLIENT_ID', $response['client_id']); + $this->assertEquals('TEST_CLIENT_SECRET', $response['client_secret']); + $this->assertEquals('TEST_REFRESH_TOKEN', $params['refresh_token']); + $this->assertEquals('TEST_ACCESS_TOKEN', $response['access_token']); + $this->assertEquals('3600', $response['expires_in']); + $this->assertNotNull($response['timestamp']); + } + + public function testRefreshAccessToken_DifferentServer() { + $this->simpleOAuth2Handler = + new TestSimpleOAuth2Handler('http://www.foo.com'); + $credentials = array( + 'client_id' => 'TEST_CLIENT_ID', + 'client_secret' => 'TEST_CLIENT_SECRET', + 'refresh_token' => 'TEST_REFRESH_TOKEN' + ); + $response = $this->simpleOAuth2Handler->RefreshAccessToken($credentials); + + $url = $this->simpleOAuth2Handler->lastUrl; + $this->assertEquals('http://www.foo.com/o/oauth2/token', $url); + } + + /** + * @expectedException OAuth2Exception + */ + public function testRefreshAccessToken_MissingClientId() { + $credentials = array( + 'client_secret' => 'TEST_CLIENT_SECRET', + 'refresh_token' => 'TEST_REFRESH_TOKEN' + ); + $response = $this->simpleOAuth2Handler->RefreshAccessToken($credentials); + } + + /** + * @expectedException OAuth2Exception + */ + public function testRefreshAccessToken_MissingClientSecret() { + $credentials = array( + 'client_id' => 'TEST_CLIENT_ID', + 'refresh_token' => 'TEST_REFRESH_TOKEN' + ); + $response = $this->simpleOAuth2Handler->RefreshAccessToken($credentials); + } + + /** + * @expectedException OAuth2Exception + */ + public function testRefreshAccessToken_MissingRefreshToken() { + $credentials = array( + 'client_id' => 'TEST_CLIENT_ID', + 'client_secret' => 'TEST_CLIENT_SECRET' + ); + $response = $this->simpleOAuth2Handler->RefreshAccessToken($credentials); + } +} + +class TestSimpleOAuth2Handler extends SimpleOAuth2Handler { + public $lastUrl; + public $lastParams; + public $response; + + public function __construct($server = NULL) { + parent::__construct($server); + $this->response = array(); + } + + protected function MakeRequest($url, $params) { + $this->lastUrl = $url; + $this->lastParams = $params; + return $this->response; + } +} + diff --git a/tests/Google/Api/Ads/Common/Util/SoapRequestXmlFixerTest.php b/tests/Google/Api/Ads/Common/Util/SoapRequestXmlFixerTest.php new file mode 100755 index 000000000..d4e704599 --- /dev/null +++ b/tests/Google/Api/Ads/Common/Util/SoapRequestXmlFixerTest.php @@ -0,0 +1,195 @@ + + + + foo + + + + + bar + + + +EOT; + $expected = << + + + + foo + + + + + bar + + + + +EOT; + $foo = new Foo(); + $foo->value = 'foo'; + $bar = new Bar(); + $bar->value = 'bar'; + $headers[] = $foo; + $arguments[] = $bar; + $fixer = new SoapRequestXmlFixer(TRUE, FALSE, FALSE); + $result = $fixer->FixXml($request, $arguments, $headers); + $this->assertEquals($expected, $result); + } + + /** + * Tests removing empty elements. + */ + public function testRemoveEmptyElements() { + $request = << + + + value + + + + + bar + + + +EOT; + $expected = << + + + + value + + + + + bar + + + + +EOT; + $bar = new Bar(); + $bar->value = 'bar'; + $headers[] = array('header1' => 'value', 'header2' => ''); + $arguments[] = $bar; + $fixer = new SoapRequestXmlFixer(FALSE, TRUE, FALSE); + $result = $fixer->FixXml($request, $arguments, $headers); + $this->assertEquals($expected, $result); + } + + /** + * Tests replacing element references. + */ + public function testReplaceElementReference() { + $request = << + + + foo + + + + + bar + + + + +EOT; + $expected = << + + + + foo + + + + + bar + + + bar + + + + +EOT; + $foo = new Foo(); + $foo->value = 'foo'; + $bar1 = new Bar(); + $bar1->value = 'bar'; + $bar2 = new Bar(); + $bar2->value = 'bar'; + $headers[] = $foo; + $arguments[] = $bar1; + $arguments[] = $bar2; + $fixer = new SoapRequestXmlFixer(FALSE, FALSE, TRUE); + $result = $fixer->FixXml($request, $arguments, $headers); + $this->assertEquals($expected, $result); + } +} + +/** + * Class used for testing. + */ +class Foo { + public $value; + public function getXsiTypeName() { return 'Foo'; } + public function getNamespace() { return 'http://example.com'; } +} + +/** + * Class used for testing. + */ +class Bar { + public $value; + public function getXsiTypeName() { return 'Bar'; } + public function getNamespace() { return 'http://example.com'; } +} + diff --git a/tests/Google/Api/Ads/Common/Util/UrlUtilsTest.php b/tests/Google/Api/Ads/Common/Util/UrlUtilsTest.php new file mode 100755 index 000000000..545440262 --- /dev/null +++ b/tests/Google/Api/Ads/Common/Util/UrlUtilsTest.php @@ -0,0 +1,133 @@ +assertEquals($expected, $value); + } + + /** + * Tests AddParamsToUrl. + * @param string $url the URL to perform to add parameters to + * @param string $params the parameters to add + * @param string $expected the expected value of the final URL + * @dataProvider AddParamsToUrlProvider + */ + public function testAddParamsToUrl($url, $params, $expected) { + $value = UrlUtils::AddParamsToUrl($url, $params); + $this->assertEquals($expected, $value); + } + + /** + * Provides urls, servers, and the expected URL after replacement. + * @return array an array of arrays of url, server, and expected result + */ + public function ReplaceServiceInUrlProvider() { + $data = array(); + + // Base case. + $data[] = array('http://www.foo.com', 'http://www.bar.com', + 'http://www.bar.com'); + // Path. + $data[] = array('http://www.foo.com/path', 'http://www.bar.com', + 'http://www.bar.com/path'); + // Deep path. + $data[] = array('http://www.foo.com/path/more', 'http://www.bar.com', + 'http://www.bar.com/path/more'); + // Query params. + $data[] = array('http://www.foo.com?a=b', 'http://www.bar.com', + 'http://www.bar.com?a=b'); + // Multiple query params. + $data[] = array('http://www.foo.com?a=b&c=d', 'http://www.bar.com', + 'http://www.bar.com?a=b&c=d'); + // Path and query params. + $data[] = array('http://www.foo.com/path?a=b', 'http://www.bar.com', + 'http://www.bar.com/path?a=b'); + // Different schemes. + $data[] = array('http://www.foo.com/path', 'ftp://www.bar.com', + 'ftp://www.bar.com/path'); + // Strange domains. + $data[] = array('http://1.foo/path', 'http://bar.3.org', + 'http://bar.3.org/path'); + // Port number in replacement. + $data[] = array('http://www.foo.com/path', 'http://www.bar.com:8080', + 'http://www.bar.com:8080/path'); + // Port number in original. + $data[] = array('http://www.foo.com:8080/path', 'http://www.bar.com', + 'http://www.bar.com/path'); + // Port number in both. + $data[] = array('http://www.foo.com:8080/path', 'http://www.bar.com:9090', + 'http://www.bar.com:9090/path'); + + return $data; + } + + /** + * Provides urls, parameters, and the expected URL after adding the + * parameters. + * @return array an array of arrays of url, parameters array, and expected + * result + */ + public function AddParamsToUrlProvider() { + $data = array(); + + // Base case. + $data[] = array('http://www.foo.com', array('a' => 'b'), + 'http://www.foo.com?a=b'); + // Multiple parameters. + $data[] = array('http://www.foo.com', array('a' => 'b', 'c' => 'd'), + 'http://www.foo.com?a=b&c=d'); + // Params in URL. + $data[] = array('http://www.foo.com?x=y', array('a' => 'b'), + 'http://www.foo.com?x=y&a=b'); + // Requires URL encoding. + $data[] = array('http://www.foo.com', array('a a' => 'b&b'), + 'http://www.foo.com?a+a=b%26b'); + // Empty params. + $data[] = array('http://www.foo.com', array(), 'http://www.foo.com'); + // Null params. + $data[] = array('http://www.foo.com', NULL, 'http://www.foo.com'); + + return $data; + } +} + diff --git a/tests/Google/Api/Ads/Common/Util/XmlUtilsTest.php b/tests/Google/Api/Ads/Common/Util/XmlUtilsTest.php new file mode 100755 index 000000000..526b1ad5a --- /dev/null +++ b/tests/Google/Api/Ads/Common/Util/XmlUtilsTest.php @@ -0,0 +1,254 @@ +assertTrue(isset($document)); + } + + /** + * Test getting a DOM document from an invalid XML string. + * @param string $xml the XML string to parse + * @covers XmlUtils::GetDomFromXml + * @dataProvider InvalidXmlProvider + * @expectedException DOMException + */ + public function testGetDomFromXml_invalid($xml) { + $document = XmlUtils::GetDomFromXml($xml); + } + + /** + * Test getting an XML string from a DOM document. + * @param string $xml the XML string to use + * @covers XmlUtils::GetXmlFromDom + * @dataProvider ValidXmlProvider + */ + public function testGetXmlFromDom($xml) { + $document = XmlUtils::GetDomFromXml($xml); + $result = XmlUtils::GetXmlFromDom($document); + $this->assertTrue(!empty($result)); + } + + /** + * Test pretty printing an XML string. + * @param string $xml the XML string to pretty print + * @param string $expected the expected result of pretty printing the XML + * @covers XmlUtils::PrettyPrint + * @dataProvider PrettyXmlProvider + */ + public function testPrettyPrint($xml, $expected) { + $result = XmlUtils::PrettyPrint($xml); + $this->assertEquals($expected, $result); + } + + /** + * Test converting a DOM document to an object. + * @param string $xml the XML to convert + * @param Object $expected the expected result of the conversion + * @covers XmlUtils::ConvertDocumentToObject + * @covers XmlUtils::ConvertElementToObject + * @covers XmlUtils::ConvertNodeValueToObject + * @dataProvider XmlToObjectProvider + */ + public function testConvertDocumentToObject($xml, $expected) { + $document = XmlUtils::GetDomFromXml($xml); + $result = XmlUtils::ConvertDocumentToObject($document); + $this->assertEquals($expected, $result); + } + + /** + * Test converting an object to a DOM document. + * @param string $expected the expected XML + * @param Object $object the object to convert + * @covers XmlUtils::ConvertObjectToDocument + * @covers XmlUtils::ConvertObjectToElement + * @covers XmlUtils::ConvertObjectToNodeValue + * @dataProvider ObjectToXmlProvider + */ + public function testConvertObjectToDocument($object, $expected) { + $document = XmlUtils::ConvertObjectToDocument($object, 'root'); + $result = XmlUtils::GetXmlFromDom($document); + $this->assertEquals($expected, $result); + } + + /** + * Provides valid XML strings. + * @return array an array of arrays of XML strings + */ + public function ValidXmlProvider() { + $data = array(); + + // No value. + $data[] = array(''); + // With value. + $data[] = array('value'); + // With attribute. + $data[] = array(''); + // With child elements. + $data[] = array('applebanana'); + // With namespaces. + $data[] = array('' + . ''); + + return $data; + } + + /** + * Provides invalid XML strings. + * @return array an array of arrays of XML strings + */ + public function InvalidXmlProvider() { + $data = array(); + + // Null. + $data[] = array(NULL); + // Empty string. + $data[] = array(''); + // Incomplete tag. + $data[] = array(''); + // Incomplete attribute. + $data[] = array(''); + + return $data; + } + + /** + * Provides non-pretty XML strings and their pretty counterparts. + * @return array an array of arrays of non-pretty and pretty XML strings + */ + public function PrettyXmlProvider() { + $data = array(); + + // Insert XML declaration. + $data[] = array('', "\n"); + // Collapse empty tags. + $data[] = array('', "\n"); + // Tab in child elements. + $data[] = array('apple', + "\n\n apple\n"); + // Invalid XML should have line breaks removed. + $data[] = array("\n\napple\n", "apple"); + + return $data; + } + + /** + * Provides XML strings and the expected value after being converted to an + * object. + * @return array an array of arrays of XML strings and resulting objects + */ + public function XmlToObjectProvider() { + $data = array(); + + // Empty. + $data[] = array('', ''); + // String value. + $data[] = array('value', 'value'); + // Integer value. + $data[] = array('15', 15); + // Float value. + $data[] = array('4.7', 4.7); + // Long value. + if (PHP_INT_SIZE == 4) { + $data[] = array('2147483648', 2147483648); + } else { + $data[] = array('9223372036854775808', 9223372036854775808); + } + // Boolean values. + $data[] = array('true', TRUE); + $data[] = array('false', FALSE); + // Nested elements. + $data[] = array('apple', + (Object) array('a' => 'apple')); + // Nested elements with the same name. + $data[] = array('appleartichoke', + (Object) array('a' => array('apple', 'artichoke'))); + + return $data; + } + + /** + * Provides objects and the expected XML strings after being converted to a + * document. + * @return array an array of arrays of objects and the resulting XML strings + */ + public function ObjectToXmlProvider() { + $data = array(); + + // Empty string. + $data[] = array('', "\n"); + // String value. + $data[] = array('value', "\nvalue"); + // Integer value. + $data[] = array(15, "\n15"); + // Float value. + $data[] = array(4.7, "\n4.7"); + // Long value. + if (PHP_INT_SIZE == 4) { + $data[] = + array(2147483648, "\n2147483648"); + } else { + $data[] = array(9223372036854775808, + "\n9223372036854775808"); + } + // Boolean values. + $data[] = array(TRUE, "\ntrue"); + $data[] = array(FALSE, "\nfalse"); + // Simple object. + $data[] = array((Object) array('a' => 'apple'), + "\napple"); + // Associative array. + $data[] = array(array('a' => 'apple'), + "\napple"); + // Object with array value. + $data[] = array((Object) array('a' => array('apple', 'artichoke')), + "\nappleartichoke"); + + return $data; + } +} + diff --git a/tests/Google/Api/Ads/Dfp/Util/DateTimeUtilsTest.php b/tests/Google/Api/Ads/Dfp/Util/DateTimeUtilsTest.php new file mode 100755 index 000000000..5afd2b025 --- /dev/null +++ b/tests/Google/Api/Ads/Dfp/Util/DateTimeUtilsTest.php @@ -0,0 +1,217 @@ +stringDate1 = '1983-06-02'; + $this->stringDate2 = '2014-12-31'; + $this->stringDate3 = '1999-09-23'; + + $this->stringDateTime1 = '1983-06-02T08:30:15'; + $this->stringDateTime2 = '1983-06-02T00:00:00'; + $this->stringDateTime3 = '1983-06-02T08:30:15'; + + $this->stringDateTimeWithTimeZone1 = '1983-06-02T08:30:15-04:00'; + $this->stringDateTimeWithTimeZone2 = '1983-06-02T00:00:00-07:00'; + $this->stringDateTimeWithTimeZone3 = '1983-06-02T08:30:15+04:00'; + + $this->dfpDate1 = new Date(1983, 6, 2); + $this->dfpDate2 = new Date(2014, 12, 31); + $this->dfpDate3 = new Date(1999, 9, 23); + + $this->dateTime1 = new DateTime($this->stringDateTime1, + new DateTimeZone(self::TIME_ZONE_ID1)); + $this->dateTime2 = new DateTime($this->stringDateTime2, + new DateTimeZone(self::TIME_ZONE_ID2)); + $this->dateTime3 = new DateTime($this->stringDateTime3, + new DateTimeZone(self::TIME_ZONE_ID3)); + + $this->dfpDateTime1 = new DfpDateTime(new Date(1983, 6, 2), 8, 30, 15, + self::TIME_ZONE_ID1); + $this->dfpDateTime2 = new DfpDateTime(new Date(1983, 6, 2), 0, 0, 0, + self::TIME_ZONE_ID2); + $this->dfpDateTime3 = new DfpDateTime(new Date(1983, 6, 2), 8, 30, 15, + self::TIME_ZONE_ID3); + } + + /** + * @covers DateTimeUtils::ToDfpDateTime + */ + public function testToDfpDateTime() { + $this->assertEquals($this->dfpDateTime1, + DateTimeUtils::ToDfpDateTime($this->dateTime1)); + $this->assertEquals($this->dfpDateTime2, + DateTimeUtils::ToDfpDateTime($this->dateTime2)); + $this->assertEquals($this->dfpDateTime3, + DateTimeUtils::ToDfpDateTime($this->dateTime3)); + } + + /** + * @covers DateTimeUtils::ToDfpDateTimeFromString + */ + public function _testToDfpDateTimeFromString() { + $actualDfpDateTime1 = DateTimeUtils::ToDfpDateTimeFromString( + $this->stringDateTimeWithTimeZone1); + self::assertEquals($this->dfpDateTime1, $actualDfpDateTime1); + $this->assertEquals('-04:00', $actualDfpDateTime1->timeZone); + + $actualDfpDateTime2 = DateTimeUtils::ToDfpDateTimeFromString( + $this->stringDateTimeWithTimeZone2); + self::assertEquals($this->dfpDateTime2, $actualDfpDateTime2); + $this->assertEquals('-07:00', $actualDfpDateTime2->timeZone); + + $actualDfpDateTime3 = DateTimeUtils::ToDfpDateTimeFromString( + $this->stringDateTimeWithTimeZone3); + self::assertEquals($this->dfpDateTime2, $actualDfpDateTime3); + $this->assertEquals('+04:00', $actualDfpDateTime3->timeZone); + } + + /** + * @covers DateTimeUtils::ToDfpDateTimeFromStringWithTimeZone + */ + public function _testToDfpDateTimeFromStringWithTimeZone() { + $self->assertTrue(self::isEqual($this->dfpDateTime1, + DateTimeUtils::ToDfpDateTimeFromStringWithTimeZone( + $this->stringDateTimeWithTimeZone1, self::TIME_ZONE_ID1))); + $self->assertTrue(self::assertEquals($this->dfpDateTime2->getTimestamp(), + DateTimeUtils::ToDfpDateTimeFromStringWithTimeZone( + $this->stringDateTimeWithTimeZone2, self::TIME_ZONE_ID2))); + $self->assertTrue(self::assertEquals($this->dfpDateTime3->getTimestamp(), + DateTimeUtils::ToDfpDateTimeFromStringWithTimeZone( + $this->stringDateTimeWithTimeZone3, self::TIME_ZONE_ID3))); + } + + /** + * @covers DateTimeUtils::FromDfpDateTime + */ + public function testFromDfpDateTime() { + $this->assertEquals($this->dateTime1, + DateTimeUtils::FromDfpDateTime($this->dfpDateTime1)); + $this->assertEquals($this->dateTime2, + DateTimeUtils::FromDfpDateTime($this->dfpDateTime2)); + $this->assertEquals($this->dateTime3, + DateTimeUtils::FromDfpDateTime($this->dfpDateTime3)); + } + + /** + * @covers DateTimeUtils::ToString + */ + public function testToString() { + $this->assertEquals($this->stringDate1, + DateTimeUtils::ToString($this->dfpDate1)); + $this->assertEquals($this->stringDate2, + DateTimeUtils::ToString($this->dfpDate2)); + $this->assertEquals($this->stringDate3, + DateTimeUtils::ToString($this->dfpDate3)); + } + + /** + * @covers DateTimeUtils::ToStringWithTimeZone + */ + public function testToStringWithTimeZone() { + $this->assertEquals($this->stringDateTimeWithTimeZone1, + DateTimeUtils::ToStringWithTimeZone($this->dfpDateTime1)); + $this->assertEquals($this->stringDateTimeWithTimeZone2, + DateTimeUtils::ToStringWithTimeZone($this->dfpDateTime2)); + $this->assertEquals($this->stringDateTimeWithTimeZone3, + DateTimeUtils::ToStringWithTimeZone($this->dfpDateTime3)); + } + + /** + * @covers DateTimeUtils::ToStringForTimeZone + */ + public function testToStringForTimeZone() { + $this->assertEquals($this->stringDateTime1, + DateTimeUtils::ToStringForTimeZone($this->dfpDateTime1, + self::TIME_ZONE_ID1)); + $this->assertEquals($this->stringDateTime2, + DateTimeUtils::ToStringForTimeZone($this->dfpDateTime2, + self::TIME_ZONE_ID2)); + $this->assertEquals($this->stringDateTime3, + DateTimeUtils::ToStringForTimeZone($this->dfpDateTime3, + self::TIME_ZONE_ID3)); + + $this->assertEquals($this->stringDateTime1, + DateTimeUtils::ToStringForTimeZone(DateTimeUtils::ToDfpDateTime( + $this->dateTime1->setTimeZone( + new DateTimeZone(self::TIME_ZONE_ID2))), self::TIME_ZONE_ID1)); + $this->assertEquals($this->stringDateTime2, + DateTimeUtils::ToStringForTimeZone(DateTimeUtils::ToDfpDateTime( + $this->dateTime2->setTimeZone( + new DateTimeZone(self::TIME_ZONE_ID1))), self::TIME_ZONE_ID2)); + $this->assertEquals($this->stringDateTime3, + DateTimeUtils::ToStringForTimeZone(DateTimeUtils::ToDfpDateTime( + $this->dateTime3->setTimeZone( + new DateTimeZone(self::TIME_ZONE_ID1))), self::TIME_ZONE_ID3)); + } + + public static function isEqual(DfpDateTime $expected, + DfpDateTime $actual) { + return $expected == $actual || ($expected->date->year == $actual->date->year + && $expected->date->month == $actual->date->month + && $expected->date->day == $actual->date->day + && $expected->hour == $actual->hour + && $expected->minute == $actual->minute + && $expected->second == $actual->second); + // TODO(vtsao): Figure out how to compare IANA versus offset time zones. + } +} + +date_default_timezone_set(DateTimeUtilsTest::TIME_ZONE_ID1); + diff --git a/tests/Google/Api/Ads/Dfp/Util/PqlTest.php b/tests/Google/Api/Ads/Dfp/Util/PqlTest.php new file mode 100755 index 000000000..658e001e3 --- /dev/null +++ b/tests/Google/Api/Ads/Dfp/Util/PqlTest.php @@ -0,0 +1,166 @@ +column1 = new ColumnType('Id'); + $this->column2 = new ColumnType('Name'); + $this->column3 = new ColumnType('Status'); + $this->textValue1 = new TextValue('hello world'); + $this->textValue2 = new TextValue('description'); + $this->textValue3 = new TextValue('rawr'); + $this->booleanValue1 = new BooleanValue(false); + $this->booleanValue2 = new BooleanValue(true); + $this->booleanValue3 = new BooleanValue(false); + $this->numberValue1 = new NumberValue('2'); + $this->numberValue2 = new NumberValue('7.999'); + $this->numberValue3 = new NumberValue('-8'); + $date1 = new Date(2012, 12, 2); + $dateTime1 = new DfpDateTime($date1, 12, 45, 0, PqlTest::TIME_ZONE_ID1); + $this->dateValue1 = new DateValue($date1); + $this->dateTimeValue1 = new DateTimeValue($dateTime1); + } + + /** + * @covers Pql::ToString + */ + public function testToString() { + $this->assertEquals('hello world', Pql::ToString($this->textValue1)); + $this->assertEquals('false', Pql::ToString($this->booleanValue1)); + $this->assertEquals('2', Pql::ToString($this->numberValue1)); + $this->assertEquals('2012-12-02', Pql::ToString($this->dateValue1)); + $this->assertEquals('2012-12-02T12:45:00+08:00', + Pql::ToString($this->dateTimeValue1)); + } + + /** + * @covers Pql::ToString + * @expectedException InvalidArgumentException + */ + public function testToStringWithUnsupportedValueTypeThrowsException() { + Pql::ToString(new MyValue()); + } + + /** + * @covers Pql::GetColumnLabels + */ + public function testGetColumnLabels() { + $resultSet = new ResultSet(array($this->column1, $this->column2, + $this->column3)); + $this->assertEquals(array('Id', 'Name', 'Status'), + Pql::GetColumnLabels($resultSet)); + } + + /** + * @covers Pql::GetRowStringValues + */ + public function testGetRowStringValues() { + $row = new Row(array($this->textValue1, $this->booleanValue1, + $this->numberValue1)); + $this->assertEquals(array('hello world', 'false', '2'), + Pql::GetRowStringValues($row)); + } + + /** + * @covers Pql::CombineResultSets + */ + public function testCombineResultSet() { + $row1 = new Row(array($this->textValue1, $this->booleanValue1, + $this->numberValue1)); + $row2 = new Row(array($this->textValue2, $this->booleanValue2, + $this->numberValue2)); + $row3 = new Row(array($this->textValue3, $this->booleanValue3, + $this->numberValue3)); + + $resultSet1 = new ResultSet(array($this->column1, $this->column2, + $this->column3), array($row1, $row2)); + $resultSet2 = new ResultSet(array($this->column1, $this->column2, + $this->column3), array($row3)); + + $combinedResultSet = Pql::CombineResultSets($resultSet1, $resultSet2); + + $this->assertEquals(3, count($combinedResultSet->rows)); + $this->assertEquals(array(new ColumnType('Id'), + new ColumnType('Name'), + new ColumnType('Status')), $combinedResultSet->columnTypes); + $this->assertEquals(array(new TextValue('hello world'), + new BooleanValue(false), + new NumberValue('2')), $combinedResultSet->rows[0]->values); + $this->assertEquals(array(new TextValue('description'), + new BooleanValue(true), + new NumberValue('7.999')), $combinedResultSet->rows[1]->values); + $this->assertEquals(array(new TextValue('rawr'), + new BooleanValue(false), + new NumberValue('-8')), $combinedResultSet->rows[2]->values); + } + + /** + * @covers Pql::CombineResultSets + * @expectedException InvalidArgumentException + */ + public function testCombineResultSetWithBadColumnsThrowsException() { + $row1 = new Row(array($this->textValue1, $this->booleanValue1, + $this->numberValue1)); + $row2 = new Row(array($this->textValue2, $this->booleanValue2, + $this->numberValue2)); + $row3 = new Row(array($this->textValue3, $this->booleanValue3)); + + $resultSet1 = new ResultSet(array($this->column1, $this->column2, + $this->column3), array($row1, $row2)); + $resultSet2 = new ResultSet(array($this->column1, $this->column2), + array($row3)); + + Pql::CombineResultSets($resultSet1, $resultSet2); + } +} + +class MyValue extends Value {} diff --git a/tests/Google/Api/Ads/Dfp/Util/ReportUtilsTest.php b/tests/Google/Api/Ads/Dfp/Util/ReportUtilsTest.php new file mode 100755 index 000000000..e98ba856c --- /dev/null +++ b/tests/Google/Api/Ads/Dfp/Util/ReportUtilsTest.php @@ -0,0 +1,62 @@ +assertTrue(file_exists($filePath)); + $this->assertGreaterThan(0, $downloadSize); + } + + /** + * Test downloading a report to a string. A dummy URL is used in place of a + * report URL. + * @covers ReportUtils::DownloadReport + */ + public function testDownloadReportToString() { + $result = ReportUtils::DownloadReport(ReportUtilsTest::DUMMY_REPORT_URL); + $this->assertTrue(isset($result)); + } +} +